@charset "UTF-8";

:root {
    color: #17212b;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.news-detail-page {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 96px;
}

.news-detail-article {
    margin: 0;
}

.news-detail-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 280px;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #17212b;
}

.news-detail-hero img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 620px;
    width: auto;
    height: auto;
}

.news-detail-hero--fallback::before {
    position: absolute;
    z-index: 0;
    inset: -24px;
    background: var(--news-image) center / cover;
    content: "";
    filter: blur(22px);
    opacity: 0.65;
    transform: scale(1.1);
}

.news-detail-hero--fallback::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(15, 23, 32, 0.2);
    content: "";
}

.news-detail-header {
    padding: 32px 0 28px;
    border-bottom: 1px solid #e3e7ec;
}

.news-detail-category {
    margin: 0 0 10px;
    color: #55a9df;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.news-detail-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.45;
}

.news-detail-header time {
    display: block;
    margin-top: 12px;
    color: #66727e;
    font-size: 0.9rem;
}

.news-detail-body {
    max-width: 760px;
    margin: 36px auto 0;
    font-size: 1rem;
    line-height: 2;
}

.news-detail-body p {
    margin: 0;
}

.news-detail-body p + p,
.news-detail-body h2 + p {
    margin-top: 20px;
}

.news-detail-body h2 {
    margin: 40px 0 14px;
    font-size: 1.35rem;
}

.news-detail-body .news-detail-section-title {
    padding-left: 14px;
    border-left: 4px solid #55a9df;
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    line-height: 1.6;
}

.news-detail-link {
    border-radius: 2px;
    color: #188dd8;
    font-weight: 700;
    text-underline-offset: 0.2em;
    transition: color 0.2s;
}

.news-detail-link:hover {
    color: #df508d;
}

.news-detail-link:focus-visible {
    outline: 2px solid #188dd8;
    outline-offset: 4px;
}

.news-detail-event {
    padding: 24px;
    border: 1px solid #dce9f2;
    border-radius: 12px;
    background: #f5f9fc;
}

.news-detail-event + .news-detail-event {
    margin-top: 16px;
}

.news-detail-event h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.news-detail-event-info {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 16px;
    margin: 16px 0 0;
}

.news-detail-event-info dt {
    font-weight: 700;
}

.news-detail-event-info dd {
    margin: 0;
}

.news-detail-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(280px, 100%);
    height: 50px;
    margin: 56px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ba4e5, #7cbef0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.news-detail-back:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .news-detail-page {
        padding-top: 32px;
    }

    .news-detail-hero {
        min-height: 180px;
        border-radius: 10px;
    }

    .news-detail-header {
        padding: 24px 0;
    }

    .news-detail-body {
        margin-top: 28px;
    }

    .news-detail-event {
        padding: 20px 16px;
    }

    .news-detail-event-info {
        gap: 8px 12px;
    }
}
