/* お知らせ詳細：本文・リッチコンポーネント */

.page-contents .page-list.news-detail__panel {
    padding-top: 60px;
}

@media screen and (max-width: 768px) {
    .page-contents .page-list.news-detail__panel {
        padding-top: 40px;
    }
}

.news-detail__panel {
    display: grid;
    gap: 40px;
}

.news-detail__header {
    display: grid;
    gap: 20px;
}

.news-detail__meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.news-detail__date {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
}

.news-detail__cat {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
    border-radius: 3px;
    background: #0876BB;
    padding: 8px 14px;
    width: fit-content;
    text-align: center;
}

.news-detail__title {
    margin: 0;
    color: #000;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}

.news-detail__body {
    display: grid;
    gap: 1.25em;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #000;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.news-detail__body > *:first-child {
    margin-top: 0;
}

.news-detail__body p,
.news-detail__body ul {
    margin: 0;
}

.news-detail__body a {
    color: #0876BB;
    word-break: break-all;
}

.news-detail__body img,
.news-detail__body iframe,
.news-detail__body video {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.news-detail__body iframe {
    width: 100%;
}

.news-detail__body h4 {
    margin: 0.75em 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.news-detail__body ul:not(.slick-dots) {
    display: grid;
    gap: 0.35em;
    padding: 0 0 0 1.25em;
    list-style: disc;
}

.news-detail__back {
    padding-top: 10px;
    border-top: 1px solid #F5F5F5;
}

.news-detail__back a {
    color: #0876BB;
    font-size: 16px;
    text-decoration: none;
}

.news-detail__back a:hover {
    text-decoration: underline;
}

/* リッチ記事コンポーネント */
.news-article {
    display: grid;
    gap: 1.25em;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.news-article p,
.news-article ul {
    margin: 0;
}

.news-photo-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0.5em 0 1em;
    overflow: hidden;
    box-sizing: border-box;
}

.news-photo-slider__items:not(.slick-initialized) {
    overflow: hidden;
}

.news-photo-slider__items:not(.slick-initialized) > div:not(:first-child) {
    display: none;
}

.news-photo-slider__items img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    margin: 0 auto;
    object-fit: contain;
    background: #f7f7f7;
}

.news-photo-slider .slick-prev,
.news-photo-slider .slick-next {
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    transform: translateY(-50%);
}

.news-photo-slider .slick-prev {
    left: 8px;
    background-image: url(/y_img/home/2024/prev.svg) !important;
}

.news-photo-slider .slick-next {
    right: 8px;
    background-image: url(/y_img/home/2024/next.svg) !important;
}

.news-photo-slider .slick-prev:before,
.news-photo-slider .slick-next:before {
    display: none !important;
    content: none !important;
}

.news-photo-slider .slick-dots {
    bottom: 8px;
}

.news-photo-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    background: #666261;
}

.news-photo-slider .slick-dots li button:before {
    display: none !important;
    content: none !important;
}

.news-photo-slider .slick-dots li.slick-active button {
    background: #F49831;
}

.news-campaign-banner__link {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .news-campaign-banner__link:hover {
        opacity: 0.92;
    }
}

.news-campaign-banner__link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.news-order-cta {
    display: grid;
    gap: 0.75em;
    justify-items: center;
    text-align: center;
}

.news-order-cta__btn {
    display: inline-block;
    padding: 0.85em 2em;
    background-color: #fc6666;
    border-radius: 6px;
    color: #fff !important;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

@media (hover: hover) {
    .news-order-cta__btn:hover {
        background-color: #2b98ce;
        text-decoration: none;
    }
}

.news-order-cta__note {
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.5;
}

.news-coupon-box {
    display: grid;
    gap: 0.5em;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.25em 1em;
    background-color: #fffbe6;
    border: 2px dashed #e6c200;
    border-radius: 8px;
    text-align: center;
}

.news-coupon-box__benefit {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
}

.news-coupon-box__guide {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.news-coupon-box__code-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #555;
}

.news-coupon-box__code {
    display: inline-block;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #c0392b;
    padding: 0.15em 0.5em;
    word-break: break-all;
}

.news-coupon-box__period {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #333;
}

@media screen and (max-width: 768px) {
    .news-detail__title {
        font-size: 18px;
    }

    .news-detail__body {
        font-size: 14px;
        gap: 1em;
    }

    .news-detail__meta {
        gap: 10px;
    }

    .news-detail__date,
    .news-detail__cat {
        font-size: 12px;
    }

    .news-photo-slider__items img {
        max-height: 280px;
    }

    .news-photo-slider .slick-prev,
    .news-photo-slider .slick-next {
        width: 32px;
        height: 32px;
    }

    .news-order-cta__btn {
        display: block;
        width: 100%;
        max-width: 320px;
        padding: 0.9em 1em;
        font-size: 1rem;
    }
}
