/* ========== 大島酒造 - メインスタイルシート ========== */

body {
    background-color: #fcfcfc;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* オープニング — 映像の余白に、ゆっくり言葉を添える */
.hero-opening {
    position: relative;
    isolation: isolate;
    height: 100vh;
    height: 100svh;
    min-height: 34rem;
    overflow: hidden;
    background: #171512;
    color: #fffaf2;
}

.hero-media,
.hero-media-image,
.hero-media-video,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media-image,
.hero-media-video {
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(15, 12, 9, .38), transparent 22%),
        linear-gradient(0deg, rgba(15, 12, 9, .53), transparent 65%),
        linear-gradient(90deg, rgba(15, 12, 9, .48), rgba(15, 12, 9, .08) 58%, transparent 80%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: clamp(2rem, 7.5vw, 9rem);
    bottom: clamp(7.5rem, 16vh, 12rem);
    max-width: calc(100% - 4rem);
    font-family: "Noto Serif JP", serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .24);
}

.hero-welcome {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0 0 1.8rem;
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: .2em;
}

.hero-welcome > span {
    width: 2.5rem;
    height: 1px;
    background: #d5b98f;
}

.hero-heading {
    margin: 0;
    font-weight: 300;
}

.hero-title {
    display: block;
    font-size: clamp(2.75rem, 5vw, 5rem);
    line-height: 1.5;
    letter-spacing: .09em;
    white-space: nowrap;
}

.hero-title > span { display: block; }
.hero-invitation > span { display: inline-block; }

.hero-invitation {
    display: block;
    margin-top: 1.1rem;
    font-size: clamp(1.05rem, 1.75vw, 1.5rem);
    line-height: 2;
    letter-spacing: .15em;
    font-weight: 400;
}

/* JavaScript が動かない場合もコピーを読める状態を保つ。 */
.hero-opening.is-intro-pending .hero-reveal {
    opacity: 0;
    transform: translateY(16px);
}

.hero-opening.is-intro-ready .hero-reveal {
    animation: hero-copy-arrive 1.5s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-opening.is-intro-ready .hero-welcome { animation-delay: .25s; }
.hero-opening.is-intro-ready .hero-title { animation-delay: .75s; }
.hero-opening.is-intro-ready .hero-invitation { animation-delay: 1.3s; }

@keyframes hero-copy-arrive {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
    position: absolute;
    z-index: 2;
    right: clamp(2rem, 5vw, 6rem);
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    padding: .65rem;
    color: #fffaf2;
    font-size: .625rem;
    letter-spacing: .22em;
    text-decoration: none;
}

.hero-scroll-line {
    position: relative;
    width: 1px;
    height: 3rem;
    overflow: hidden;
    background: rgba(255, 250, 242, .3);
}

.hero-scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    transform-origin: top;
    animation: hero-scroll-flow 2.6s ease-in-out infinite;
}

@keyframes hero-scroll-flow {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

#concept { scroll-margin-top: 5rem; }

@media (max-width: 767px) {
    .hero-opening { min-height: 32rem; }
    .hero-copy {
        left: 1.75rem;
        bottom: 8.5rem;
        max-width: calc(100% - 3.5rem);
    }
    .hero-shade {
        background:
            linear-gradient(180deg, rgba(15, 12, 9, .4), transparent 24%),
            linear-gradient(0deg, rgba(15, 12, 9, .72), rgba(15, 12, 9, .24) 42%, transparent 75%);
    }
    .hero-welcome { margin-bottom: 1.35rem; font-size: .85rem; gap: .8rem; }
    .hero-welcome > span { width: 1.75rem; }
    .hero-title { font-size: clamp(2rem, 8.8vw, 3.5rem); letter-spacing: .06em; }
    .hero-invitation { margin-top: 1rem; font-size: clamp(.9rem, 3.8vw, 1.2rem); letter-spacing: .08em; }
    .hero-scroll { right: 1.25rem; bottom: 1.5rem; }
    .hero-scroll-line { height: 2.5rem; }
}

@media (max-height: 600px) and (min-width: 768px) {
    .hero-opening { min-height: 28rem; }
    .hero-copy { bottom: 5rem; }
    .hero-welcome { margin-bottom: .8rem; }
    .hero-title { font-size: 3rem; }
    .hero-invitation { margin-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-opening .hero-reveal,
    .hero-opening.is-intro-pending .hero-reveal,
    .hero-opening.is-intro-ready .hero-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .hero-scroll-line::after { animation: none; }
}

/* スクロールバー非表示 */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* フェードインアニメーション */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* モーダル表示時の背景固定 */
body.modal-open {
    overflow: hidden;
}

/* 写真と映像を中心にしたトップページ */
.home-photo-site { background: #f7f5f0; color: #34312b; }
.home-photo-site main > section { scroll-margin-top: 5rem; }
.home-container { width: min(1248px, calc(100% - 112px)); margin-inline: auto; }
.section-kicker { margin: 0 0 1.2rem; font-size: .65rem; font-weight: 500; letter-spacing: .2em; color: #85745c; }
.home-photo-site main h2 { font-family: "Noto Serif JP", serif; font-weight: 500; letter-spacing: .08em; line-height: 1.8; }
.home-intro { padding: 100px 0 80px; }
.home-intro-inner { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.home-intro h2 { margin: 0; font-size: clamp(1.65rem, 2.5vw, 2.25rem); }
.home-intro-text { margin: 0; color: #706a60; font-size: .875rem; line-height: 2.4; letter-spacing: .06em; }
.mobile-break { display: none; }
.gallery-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 0 0 1.1rem; border-bottom: 1px solid #d8d2c6; margin-bottom: 1.5rem; }
.gallery-heading p { font-size: .65rem; letter-spacing: .2em; }
.gallery-heading > span { font-size: .75rem; letter-spacing: .07em; color: #797267; }
.moments-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.moment { min-width: 0; margin: 0; }
.media-card { display: block; position: relative; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: #d8d0c3; color: #fffaf2; cursor: pointer; }
.media-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .5s ease; }
.media-card:hover > img { transform: scale(1.035); filter: brightness(.92); }
.media-card:focus-visible { outline: 2px solid #84694a; outline-offset: 5px; }
.media-kind { position: absolute; left: 1.1rem; bottom: 1rem; font-size: .55rem; font-weight: 500; letter-spacing: .2em; text-shadow: 0 1px 6px #000; }
.media-play { position: absolute; inset: 0; display: grid; place-content: center; background: rgba(0,0,0,.1); }
.media-play svg { width: 4rem; height: 4rem; padding: 1.2rem; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; stroke-width: 1.2; fill: rgba(255,255,255,.25); }
.media-expand { position: absolute; right: 1rem; top: 1rem; opacity: 0; transition: opacity .3s ease; }
.media-expand svg { width: 1.2rem; height: 1.2rem; stroke-width: 1.3; filter: drop-shadow(0 1px 3px #000); }
.media-card:hover .media-expand, .media-card:focus-visible .media-expand { opacity: 1; }
.moment figcaption { padding: 1.05rem .15rem 0; }
.moment-meta { display: block; color: #8a7c69; font-size: .6rem; letter-spacing: .14em; }
.moment figcaption p { margin: .55rem 0 0; font-family: "Noto Serif JP", serif; font-size: 1.05rem; font-weight: 500; letter-spacing: .05em; line-height: 1.8; }
.moment-product { display: inline-block; margin-top: .8rem; font-size: .7rem; letter-spacing: .04em; color: #706a60; text-decoration: none; border-bottom: 1px solid #c8beae; padding-bottom: .25rem; transition: color .2s; }
.moment-product:hover { color: #a6392e; }
.home-shochu { display: grid; grid-template-columns: .85fr 1.4fr; gap: 4rem; padding-block: 88px 96px; margin-top: 80px; border-top: 1px solid #d8d2c6; }
.shochu-intro h2 { font-size: 2rem; margin-bottom: 1rem; }
.shochu-intro > p:last-child { font-size: .825rem; color: #706a60; line-height: 2.3; letter-spacing: .03em; }
.shochu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; align-content: start; }
.shochu-links > a { display: flex; align-items: center; gap: .6rem; min-height: 66px; padding: 1rem 0; border-bottom: 1px solid #d8d2c6; color: inherit; text-decoration: none; transition: color .2s; }
.shochu-name { font-family: "Noto Serif JP", serif; font-size: 1rem; letter-spacing: .02em; }
.shochu-kind { margin-left: auto; font-size: .6rem; color: #8a7c69; white-space: nowrap; }
.shochu-links > a > span:last-child { color: #8a7c69; font-size: .875rem; }
.shochu-links > a:hover { color: #a6392e; }
.home-origin { display: grid; grid-template-columns: 1.15fr 1fr; background: #eae6dc; }
.home-origin > img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.origin-copy { align-self: center; padding: 5rem clamp(2.5rem, 5vw, 6rem); }
.origin-copy h2 { margin-bottom: 1.4rem; font-size: clamp(1.75rem, 2.4vw, 2.4rem); }
.origin-copy > p:not(.section-kicker) { font-size: .875rem; line-height: 2.3; color: #706a60; }
.origin-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.origin-links a { font-size: .75rem; padding-bottom: .4rem; border-bottom: 1px solid #b8ae9c; }
.origin-links a:hover { color: #a6392e; }
.home-instagram { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 70px; }
.home-instagram h2 { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.home-instagram .section-kicker { margin-bottom: .75rem; }
.instagram-link { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding: 1rem 0; border-bottom: 1px solid #b8ae9c; font-size: .75rem; white-space: nowrap; }
.instagram-link svg { width: 18px; height: 18px; stroke-width: 1.4; }
.instagram-link:hover { color: #a6392e; }

/* 写真・映像の拡大表示 */
body.media-open { overflow: hidden; }
.media-dialog { margin: auto; padding: 3.5rem 0 0; width: min(1100px, calc(100% - 48px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); overflow-y: auto; border: 0; background: #171512; color: #fffaf2; }
.media-dialog::backdrop { background: rgba(12, 10, 8, .9); backdrop-filter: blur(8px); }
.media-close { position: absolute; top: .3rem; right: .6rem; display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: none; color: inherit; cursor: pointer; }
.media-close svg { width: 22px; height: 22px; stroke-width: 1.3; }
.media-close:focus-visible { outline: 1px solid currentColor; outline-offset: -3px; }
.media-stage { display: flex; align-items: center; justify-content: center; background: #090807; }
.media-stage > img, .media-stage > video { width: 100%; max-height: calc(100vh - 210px); max-height: calc(100svh - 210px); object-fit: contain; }
.media-stage > [hidden], .media-dialog-info > [hidden] { display: none; }
.media-dialog-info { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 2rem; }
#media-caption { font-family: "Noto Serif JP", serif; font-size: 1rem; letter-spacing: .06em; line-height: 1.8; }
#media-product { flex-shrink: 0; color: #d5b98f; border-bottom: 1px solid #807159; font-size: .75rem; padding-block: .4rem; }

@media (max-width: 900px) {
    .home-container { width: calc(100% - 64px); }
    .home-intro-inner { display: block; }
    .home-intro-text { margin-top: 1.5rem; }
    .home-shochu { grid-template-columns: 1fr 1.4fr; gap: 2rem; }
    .shochu-links { grid-template-columns: 1fr; }
    .home-origin { grid-template-columns: 1fr 1fr; }
    .origin-copy { padding: 3rem 2rem; }
}
@media (max-width: 767px) {
    .home-container { width: calc(100% - 40px); }
    .hero-title { line-height: 1.5; }
    .hero-copy { bottom: 7.5rem; }
    .hero-welcome { margin-bottom: 1rem; }
    .hero-invitation { font-size: .875rem; margin-top: 1.1rem; line-height: 1.9; letter-spacing: .07em; }
    .home-intro { padding: 64px 0 40px; }
    .home-intro h2 { font-size: 1.7rem; }
    .home-intro-text { font-size: .8rem; line-height: 2.2; }
    .desktop-break { display: none; }
    .mobile-break { display: inline; }
    .section-kicker { font-size: .6rem; margin-bottom: .9rem; }
    .gallery-heading { margin-bottom: 1rem; padding-bottom: .8rem; gap: .7rem; }
    .gallery-heading p { font-size: .55rem; }
    .gallery-heading > span { font-size: .65rem; }
    .moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .8rem; }
    .moment figcaption { padding-top: .8rem; }
    .moment figcaption p { font-size: .8rem; letter-spacing: 0; line-height: 1.8; }
    .moment-meta { font-size: .5rem; letter-spacing: .05em; }
    .moment-product { font-size: .65rem; margin-top: .5rem; }
    .media-kind { font-size: .5rem; left: .65rem; bottom: .6rem; }
    .media-play svg { width: 3rem; height: 3rem; padding: .9rem; }
    .media-expand { right: .6rem; top: .6rem; }
    .home-shochu { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 48px; padding-block: 48px 56px; }
    .shochu-intro h2 { font-size: 1.7rem; }
    .shochu-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
    .shochu-links > a { min-height: 58px; gap: .25rem; }
    .shochu-name { font-size: .75rem; }
    .shochu-kind { font-size: .5rem; }
    .home-origin { grid-template-columns: 1fr; }
    .home-origin > img { aspect-ratio: 4 / 3; min-height: 0; }
    .origin-copy { padding: 44px 28px 48px; }
    .origin-copy h2 { font-size: 1.75rem; }
    .home-instagram { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-block: 40px; }
    .home-instagram h2 { font-size: .9rem; letter-spacing: .03em; }
    .instagram-link { min-width: 200px; }
    .media-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding-top: 3.2rem; }
    .media-dialog-info { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.2rem; }
    #media-caption { font-size: .875rem; }
    #media-product { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .media-card > img, .media-expand { transition: none; }
    .media-card:hover > img { transform: none; }
}
