/* ==========================================================================
   Subpage Title
   ========================================================================== */
.subpage__title {
    width: 100%;
    padding: clamp(8rem, 15.333vw, 11.5rem) clamp(2rem, 10vw, 7.5rem) clamp(2rem, 5.333vw, 4rem);
    text-align: center;
}

.subpage__title .t__wrapper {
    max-width: 55rem;
    margin: 0 auto;
}

.subpage__title .ja__txt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3.75vw, 2.8125rem);
    line-height: 1.4;
    color: #333851;
    letter-spacing: 0.1em;
}

.subpage__title .ja__txt span {
    color: #468f03;
}

/* ==========================================================================
   News Detail
   ========================================================================== */
.news-detail {
    width: 100%;
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.news-detail__inner {
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header (Label + Title + Meta)
   ========================================================================== */
.news-detail__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    width: 50rem;
    max-width: 100%;
}

.news-detail__label {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.333vw, 1.125rem);
    line-height: 1.4;
    color: #b9b9b9;
    letter-spacing: 0.05em;
}

.news-detail__title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.4;
    color: #333851;
    text-align: left;
}

.news-detail__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.news-detail__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.625rem;
    height: 1.5rem;
    border-radius: 0.6875rem;
    background-color: #468f03;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: #ffcd16;
}

.news-detail__date {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: #333851;
}

/* Slider
   ========================================================================== */
.content-wrapper:has(+ .news-detail__slider-wrap) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.news-detail__slider-wrap + .content-wrapper {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.news-detail__slider-wrap {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    max-width: 75rem;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.news-detail__swiper {
    overflow: visible !important;
    max-width: 50rem;
    margin: 0 auto;
}

.news-detail__swiper .swiper-wrapper {
    align-items: center;
}

.news-detail__swiper .swiper-slide {
    width: 50rem;
    height: auto;
    border-radius: 1.5625rem;
    overflow: hidden;
    background-color: #ffffff;
    transition: opacity 0.3s ease;
}

.news-detail__swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 1.5625rem;
    height: 1.5625rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.news-detail__arrow img {
    width: 100%;
    height: 100%;
}

.news-detail__arrow--prev {
    left: calc(50% - 25rem + 1rem);
}

.news-detail__arrow--next {
    right: calc(50% - 25rem + 1rem);
}

/* Divider
   ========================================================================== */
.news-detail__divider {
    border: none;
    border-top: 1px solid #333851;
    width: 55rem;
    max-width: 90%;
    margin: clamp(2rem, 4vw, 3rem) 0;
}

/* Body
   ========================================================================== */
.news-detail__body {
    width: 37.5rem;
    max-width: 90%;
    margin: 0 auto;
}

.news-detail__body p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(0.875rem, 1.333vw, 1rem);
    line-height: 1.4;
    color: #333851;
}

/* Back Button
   ========================================================================== */
.news-detail__back {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.news-detail__back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 13.625rem;
    height: 2.6875rem;
    background-color: #b9b9b9;
    color: #ffffff;
    border-radius: 1.5625rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.news-detail__back-btn:hover {
    filter: brightness(0.9);
}

.news-detail__back-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.9375rem;
    background-color: #ffffff;
    border-radius: 50%;
}

.news-detail__back-icon img {
    width: 0.875rem;
    height: auto;
}

/* ==========================================================================
   Responsive – Tablet (max-width: 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .subpage__title {
        padding-top: clamp(6rem, 10vw, 8rem);
    }

    .news-detail__header {
        width: 70vw;
    }

    .news-detail__swiper {
        max-width: 70vw;
    }

    .news-detail__swiper .swiper-slide {
        width: 70vw;
        height: auto;
    }

    .news-detail__arrow--prev {
        left: calc(50% - 35vw + 0.5rem);
    }

    .news-detail__arrow--next {
        right: calc(50% - 35vw + 0.5rem);
    }
}

/* ==========================================================================
   Responsive – Mobile (max-width: 797px)
   ========================================================================== */
@media (max-width: 797px) {
    .subpage__title {
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }

    .news-detail {
        padding: 1.5rem 0 2rem;
    }

    .news-detail__header {
        width: 80vw;
    }

    .news-detail__swiper {
        max-width: 80vw;
    }

    .news-detail__swiper .swiper-slide {
        width: 80vw;
    }

    .news-detail__arrow--prev {
        left: calc(50% - 40vw + 0.25rem);
    }

    .news-detail__arrow--next {
        right: calc(50% - 40vw + 0.25rem);
    }

    .news-detail__divider {
        max-width: 85%;
    }

    .news-detail__body {
        max-width: 85%;
    }
}
