.culture-page {
    min-height: 720px;
    padding: 46px 0 68px;
    color: #202020;
    background: #fff;
}

.culture-shell {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
}

.culture-gallery { outline: none; }

.culture-gallery:focus-visible {
    outline: 2px solid #a82628;
    outline-offset: 8px;
}

.culture-reference-layout {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.58fr);
    min-height: 520px;
    background: #efefef;
}

.culture-reference-layout__intro {
    display: flex;
    padding: 54px 48px 40px;
    flex-direction: column;
    justify-content: center;
}

.culture-reference-layout__intro h1 {
    margin: 0;
    color: #9f2628;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.culture-reference-layout__divider {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    margin: 11px 0 14px;
    background: #d8d8d8;
}

.culture-reference-layout__divider::after {
    position: absolute;
    top: 3px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-top: 12px solid #d8d8d8;
    border-right: 18px solid transparent;
    border-left: 18px solid transparent;
    content: "";
}

.culture-reference-layout__intro p {
    margin: 0;
    color: #1f1f1f;
    font-size: 20px;
    line-height: 2.05;
    text-align: justify;
    text-indent: 2em;
}

.culture-reference-layout__bottom-line {
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 12px;
    background: #d8d8d8;
}

.culture-reference-layout__main,
.culture-gallery__stage {
    position: relative;
    min-width: 0;
    min-height: 520px;
    margin: 0;
    overflow: hidden;
    background: #e4e4e4;
}

.culture-gallery__stage > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: opacity .18s ease;
}

.culture-gallery__stage.is-changing > img { opacity: .48; }

.culture-gallery__counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: #ff6200;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, .75);
}

.culture-gallery__current-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.culture-gallery__rail-wrap {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
}

.culture-gallery__rail {
    display: flex;
    min-width: 0;
    gap: 12px;
    padding: 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.culture-gallery__rail::-webkit-scrollbar { display: none; }

.culture-gallery__rail-arrow {
    display: flex;
    width: 64px;
    height: 104px;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: center;
    color: #a4272a;
    font-family: Arial, sans-serif;
    font-size: 68px;
    font-weight: 300;
    line-height: 1;
    background: transparent;
    cursor: pointer;
}

.culture-gallery__rail-arrow:hover,
.culture-gallery__rail-arrow:focus-visible { color: #da0037; }

.culture-thumbnail {
    flex: 0 0 calc((100% - 36px) / 4);
    min-width: 0;
    padding: 2px;
    border: 2px solid transparent;
    color: #7b7b7b;
    text-align: center;
    background: transparent;
    cursor: pointer;
}

.culture-thumbnail:hover,
.culture-thumbnail.is-active {
    border-color: #ff6a00;
    color: #666;
}

.culture-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}

.culture-thumbnail span {
    display: block;
    padding: 8px 4px 4px;
    overflow: hidden;
    font-size: 15px;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .culture-reference-layout {
        grid-template-columns: minmax(290px, .9fr) minmax(0, 1.35fr);
        min-height: 440px;
    }

    .culture-reference-layout__intro { padding: 38px 32px 30px; }
    .culture-reference-layout__intro h1 { font-size: 28px; }

    .culture-reference-layout__intro p {
        font-size: 17px;
        line-height: 1.9;
    }

    .culture-reference-layout__main,
    .culture-gallery__stage,
    .culture-gallery__stage > img { min-height: 440px; }
}

@media (max-width: 767px) {
    .culture-page {
        min-height: 0;
        padding: 24px 0 40px;
    }

    .culture-shell { width: calc(100% - 24px); }

    .culture-reference-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .culture-reference-layout__intro { padding: 28px 24px 26px; }
    .culture-reference-layout__intro h1 { font-size: 25px; }

    .culture-reference-layout__intro p {
        font-size: 15px;
        line-height: 1.82;
    }

    .culture-reference-layout__main,
    .culture-gallery__stage,
    .culture-gallery__stage > img {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .culture-gallery__counter {
        right: 10px;
        bottom: 10px;
        font-size: 16px;
    }

    .culture-gallery__rail-wrap {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 5px;
        margin-top: 12px;
    }

    .culture-gallery__rail-arrow {
        width: 34px;
        height: 72px;
        font-size: 46px;
    }

    .culture-gallery__rail { gap: 8px; }
    .culture-thumbnail { flex-basis: calc((100% - 8px) / 2); }

    .culture-thumbnail span {
        padding-top: 5px;
        font-size: 12px;
        line-height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .culture-gallery__stage > img { transition: none; }
    .culture-gallery__rail { scroll-behavior: auto; }
}
