/* ============================================
   TATSUMIYA Premium - Archive & Single Pages
   ============================================ */

/* --- Archive Hero --- */
.archive-hero {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(180, 150, 90, 0.25) 0%, rgba(180, 150, 90, 0.06) 40%, transparent 65%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 30%),
        linear-gradient(180deg, #0a0a0e 0%, #050505 100%);
}

.archive-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(200, 169, 110, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.archive-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.archive-hero__label {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #c8a96e;
    margin-bottom: 12px;
}

.archive-hero__title {
    font-family: "Noto Serif JP", serif;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 16px;
}

.archive-hero__description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.06em;
}

/* --- Archive Main --- */
.archive-main {
    padding: 80px 0 120px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(180, 150, 90, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(180, 150, 90, 0.06) 0%, transparent 35%),
        linear-gradient(180deg, #050505 0%, #0a0a0e 50%, #050505 100%);
}

.archive-main__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Archive Grid (Blog) --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.archive-grid__item {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.archive-grid__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(200, 169, 110, 0.1);
    border-color: rgba(200, 169, 110, 0.2);
}

.archive-grid__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.archive-grid__link:hover {
    opacity: 1;
}

.archive-grid__image-wrap {
    position: relative;
    overflow: hidden;
}

.archive-grid__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-grid__item:hover .archive-grid__image {
    transform: scale(1.06);
}

.archive-grid__image--placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1a2e, #0d0d10);
}

.archive-grid__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.archive-grid__body {
    padding: 24px 20px 28px;
}

.archive-grid__date {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #c8a96e;
    margin-bottom: 10px;
    display: block;
}

.archive-grid__title {
    font-family: "Noto Serif JP", serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 12px;
}

.archive-grid__excerpt {
    font-size: 0.82rem;
    line-height: 1.8;
    color: #999999;
    margin-bottom: 16px;
}

.archive-grid__readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #c8a96e;
    transition: gap 0.3s ease;
}

.archive-grid__item:hover .archive-grid__readmore {
    gap: 14px;
}

.archive-grid__readmore-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #c8a96e;
    font-size: 0.65rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.archive-grid__item:hover .archive-grid__readmore-arrow {
    background-color: #c8a96e;
    color: #0d0d0d;
}

/* --- Plan Archive Grid --- */
.plan-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.plan-archive-grid__item {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.plan-archive-grid__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(200, 169, 110, 0.12);
}

.plan-archive-grid__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.plan-archive-grid__link:hover {
    opacity: 1;
}

.plan-archive-grid__image-wrap {
    position: relative;
    overflow: hidden;
}

.plan-archive-grid__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.plan-archive-grid__item:hover .plan-archive-grid__image {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.plan-archive-grid__image--placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e, #0d0d10);
}

.plan-archive-grid__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 28px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    transform: translateY(20px);
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.plan-archive-grid__item:hover .plan-archive-grid__overlay {
    transform: translateY(0);
    opacity: 1;
}

.plan-archive-grid__title {
    font-family: "Noto Serif JP", serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.5;
}

.plan-archive-grid__excerpt {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.plan-archive-grid__readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: #c8a96e;
    transition: gap 0.3s ease;
}

.plan-archive-grid__item:hover .plan-archive-grid__readmore {
    gap: 14px;
}

.plan-archive-grid__readmore-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #c8a96e;
    font-size: 0.65rem;
    transition: background-color 0.3s ease;
}

.plan-archive-grid__item:hover .plan-archive-grid__readmore-arrow {
    background-color: #c8a96e;
    color: #0d0d0d;
}

/* --- Pagination --- */
.archive-pagination {
    margin-top: 60px;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: #ffffff;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.archive-pagination .page-numbers:hover {
    border-color: #c8a96e;
    background-color: rgba(200, 169, 110, 0.1);
}

.archive-pagination .page-numbers.current {
    background-color: #c8a96e;
    border-color: #c8a96e;
    color: #0d0d0d;
    font-weight: 600;
}

.archive-pagination .prev,
.archive-pagination .next {
    font-size: 1rem;
}

/* --- Archive Empty --- */
.archive-empty {
    text-align: center;
    padding: 80px 0;
}

.archive-empty__text {
    font-family: "Noto Serif JP", serif;
    font-size: 1.1rem;
    color: #999999;
    letter-spacing: 0.08em;
}

/* ============================================
   Single Post / Plan
   ============================================ */

/* --- Single Hero --- */
.single-post__hero,
.single-plan__hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
}

.single-post__hero-image,
.single-plan__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.single-post__hero-overlay,
.single-plan__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 70%, rgba(180, 150, 90, 0.12) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(5, 5, 5, 0.85) 100%);
}

.single-post__hero-content,
.single-plan__hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.single-post__date {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
}

.single-post__category {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #c8a96e;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #c8a96e;
}

.single-post__title,
.single-plan__title {
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.5;
    color: #ffffff;
}

.single-plan__label {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #c8a96e;
    margin-bottom: 12px;
}

/* --- Single Body --- */
.single-post__body,
.single-plan__body {
    padding: 80px 0 120px;
    background:
        radial-gradient(ellipse at 50% 10%, rgba(180, 150, 90, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #050505 0%, #0a0a0e 50%, #050505 100%);
}

.single-post__inner,
.single-plan__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Content Area (WordPress Editor Output) --- */
.single-post__content,
.single-plan__content {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.95rem;
    line-height: 2.2;
    color: #cccccc;
    letter-spacing: 0.03em;
}

.single-post__content h2,
.single-plan__content h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 60px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200, 169, 110, 0.3);
    letter-spacing: 0.06em;
}

.single-post__content h3,
.single-plan__content h3 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 3px solid #c8a96e;
    letter-spacing: 0.04em;
}

.single-post__content h4,
.single-plan__content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 30px 0 12px;
}

.single-post__content p,
.single-plan__content p {
    margin-bottom: 24px;
}

.single-post__content img,
.single-plan__content img {
    border-radius: 4px;
    margin: 32px 0;
}

.single-post__content blockquote,
.single-plan__content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 3px solid #c8a96e;
    background: rgba(200, 169, 110, 0.05);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #bbbbbb;
}

.single-post__content ul,
.single-post__content ol,
.single-plan__content ul,
.single-plan__content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.single-post__content li,
.single-plan__content li {
    margin-bottom: 8px;
    list-style: disc;
    color: #cccccc;
}

.single-post__content ol li,
.single-plan__content ol li {
    list-style: decimal;
}

.single-post__content a,
.single-plan__content a {
    color: #c8a96e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post__content a:hover,
.single-plan__content a:hover {
    color: #e0c080;
}

/* --- Post Navigation --- */
.single-post__nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post__nav-item {
    flex: 1;
}

.single-post__nav-item--next {
    text-align: right;
}

.single-post__nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.single-post__nav-link:hover {
    border-color: rgba(200, 169, 110, 0.3);
    background-color: rgba(200, 169, 110, 0.03);
    opacity: 1;
}

.single-post__nav-arrow {
    font-size: 1.2rem;
    color: #c8a96e;
}

.single-post__nav-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #999999;
}

.single-post__nav-title {
    font-family: "Noto Serif JP", serif;
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

/* --- Back Button --- */
.single-post__back {
    text-align: center;
    margin-top: 60px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Responsive (SP: < 768px)
   ============================================ */
@media screen and (max-width: 767px) {
    .archive-hero {
        height: 35vh;
        min-height: 250px;
    }

    .archive-hero__title {
        font-size: 1.8rem;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .plan-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plan-archive-grid__title {
        font-size: 1.1rem;
    }

    .single-post__hero,
    .single-plan__hero {
        height: 40vh;
        min-height: 300px;
    }

    .single-post__title,
    .single-plan__title {
        font-size: 1.4rem;
    }

    .single-post__content h2,
    .single-plan__content h2 {
        font-size: 1.25rem;
    }

    .single-post__content h3,
    .single-plan__content h3 {
        font-size: 1.05rem;
    }

    .single-post__nav {
        flex-direction: column;
        gap: 16px;
    }

    .single-post__nav-item--next {
        text-align: left;
    }
}

/* ============================================
   Related Posts
   ============================================ */
.related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* 親の max-width: 780px を超えて広げる */
    max-width: 100%;
    width: 100%;
}

.related-posts__heading {
    font-family: "Noto Serif JP", serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.related-posts__heading::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: #c8a96e;
    margin: 12px auto 0;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-posts__item {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.related-posts__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(200, 169, 110, 0.08);
    border-color: rgba(200, 169, 110, 0.2);
}

.related-posts__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-posts__link:hover {
    opacity: 1;
}

.related-posts__image-wrap {
    position: relative;
    overflow: hidden;
}

.related-posts__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* WordPress が出力する img の width/height 属性を上書き */
.related-posts__image-wrap img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.related-posts__item:hover .related-posts__image {
    transform: scale(1.05);
}

.related-posts__image--placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1a2e, #0d0d10);
}

.related-posts__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.related-posts__body {
    padding: 16px 16px 20px;
}

.related-posts__date {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #c8a96e;
    margin-bottom: 8px;
    display: block;
}

.related-posts__title {
    font-family: "Noto Serif JP", serif;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: #ffffff;
    transition: color 0.3s ease;
}

.related-posts__item:hover .related-posts__title {
    color: #c8a96e;
}

/* ============================================
   Responsive (SP: < 768px)
   ============================================ */
@media screen and (max-width: 767px) {
    .archive-hero {
        height: 35vh;
        min-height: 250px;
    }

    .archive-hero__title {
        font-size: 1.8rem;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .plan-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plan-archive-grid__title {
        font-size: 1.1rem;
    }

    .single-post__hero,
    .single-plan__hero {
        height: 40vh;
        min-height: 300px;
    }

    .single-post__title,
    .single-plan__title {
        font-size: 1.4rem;
    }

    .single-post__content h2,
    .single-plan__content h2 {
        font-size: 1.25rem;
    }

    .single-post__content h3,
    .single-plan__content h3 {
        font-size: 1.05rem;
    }

    .single-post__nav {
        flex-direction: column;
        gap: 16px;
    }

    .single-post__nav-item--next {
        text-align: left;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-posts__heading {
        font-size: 1.1rem;
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}