@charset "UTF-8";

.scenes { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.scene.is-active, .scene.is-leaving { visibility: visible; }
.scene.is-active { pointer-events: auto; }
.scene.is-active { z-index: 2; }
.scene.is-leaving { z-index: 1; }
.scene-effects { position: absolute; pointer-events: none; overflow: hidden; }
.scene.is-flow-out { filter: url("#scene-flow-out"); }
.scene.is-flow-in { filter: url("#scene-flow-in"); }
.scene.is-flow-out, .scene.is-flow-in { will-change: opacity, filter, transform; }
.scenes.is-transitioning { pointer-events: none; }
.scenes.is-transitioning .scene { pointer-events: none; }
.scene-scroll { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* D0: one fixed brand column; only the right column scrolls on desktop. */
.scene--d0 { overflow: hidden; color: var(--cream); background: var(--ink); }
.scene--d0::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("../img/index-bg00-pc.webp") center / cover no-repeat;
    transform: scale(1.2);
    animation: home-water-drift 14s ease-in-out infinite alternate;
    animation-play-state: paused;
}
.scene--d0.is-active::before { animation-play-state: running; }
@keyframes home-water-drift {
    from { transform: scale(1.2) translate3d(-1%, 0, 0); }
    to { transform: scale(1.2) translate3d(1%, 1%, 0); }
}
.home-layout { --home-content-top: 21.3262vh; position: relative; display: grid; grid-template-columns: 44.1484% minmax(0, 1fr); height: 100%; overflow: hidden; }
.home-brand { position: absolute; top: var(--home-content-top); left: 11.9122%; width: 21.0554%; max-width: 405px; }
.home-brand h1 { width: 86%; margin: 0 auto; }
.home-event { margin-top: 24.5%; padding-left: clamp(6px, .783699vw, 15px); border-left: clamp(2px, .366vw, 7px) solid var(--cream); }
.home-brand .event-info { width: 100%; }
.home-scroll { grid-column: 2; height: 100%; padding-right: 6.75vw; }
.home-panel { min-height: 100%; padding: var(--home-content-top) 0 clamp(48px, 5.625vw, 108px); }
.home-copy { padding-top: calc(var(--home-content-top) - .2em); font-size: clamp(15px, 1.5625vw, 30px); line-height: 1.633333; font-weight: 700; }
.home-copy p + p { margin-top: 1.633333em; }
.home-copy .font-en { font-weight: 400; }
.home-directory { padding-top: calc(var(--home-content-top) - .15em); padding-left: .5875vw; font-size: clamp(15px, 1.458333vw, 28px); line-height: 1.321429; font-weight: 700; }
.department-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75vw 3.2vw; }
.department-links button { text-align: left; line-height: inherit; }
.department-links button:hover, .department-links button:focus-visible { color: var(--orange); }
.department-links .font-en { display: block; font-size: 1.142857em; line-height: 1.2; }
.department-links .department-summary { display: block; margin-left: 2.4425em; }
.department-links button:last-child { grid-column: 1 / -1; }
.music { margin-top: 3.333333vw; }
.music h2 { font-size: 1.142857em; line-height: 1.2; }
.music ul { margin: 8px 0 0 2.4558em; padding: 0; list-style: none; font-size: .928571em; font-weight: 400; line-height: 1.423077; }

/* PDF column boundary: 1029.6 / 1920 = 53.625%. */
.department { display: grid; grid-template-columns: var(--department-content-width) minmax(0, 1fr); }
.department-layout { position: absolute; inset: 0; display: grid; grid-template-columns: var(--department-content-width) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; overflow: hidden; }
.scene--d1 { --background-pc: url("../img/index-bg01-pc.webp"); --background-sp: url("../img/index-bg01-sp.webp"); }
.scene--d2 { --background-pc: url("../img/index-bg02-pc.webp"); --background-sp: url("../img/index-bg02-sp.webp"); }
.scene--d3 { --background-pc: url("../img/index-bg03-pc.webp"); --background-sp: url("../img/index-bg03-sp.webp"); }
.scene--d4 { --background-pc: url("../img/index-bg04-pc.webp"); --background-sp: url("../img/index-bg04-sp.webp"); }
.scene--d5 { --background-pc: url("../img/index-bg05-pc.webp"); --background-sp: url("../img/index-bg05-sp.webp"); }
.department-visual { position: relative; grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; background: var(--ink); color: var(--cream); }
.department-background { position: absolute; inset: 0; pointer-events: none; }
/* Fit to the width and bottom; never crop the lettering at the sides.
   The upper water layer fills unusually tall viewports without stretching the lettering. */
.department-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--background-pc);
    background-position: center top;
    background-size: 100% 300%;
    background-repeat: no-repeat;
}
.department-background img {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 175%;
    object-fit: contain;
    object-position: center bottom;
}
.department-heading { position: relative; grid-column: 2; grid-row: 1; min-width: 0; padding: clamp(28px, 3.645833vw, 70px) 10% 24px 2.08125vw; color: var(--cream); }
.department-logo { display: none; }
/* Desktop title text and internal spacing are 80% of the previous size. */
.department-number { display: block; padding-left: .074166vw; font-size: clamp(14.4px, 1.833333vw, 35.2px); line-height: 1; font-weight: 700; }
.department-heading h2 { margin: clamp(6.4px, .833333vw, 16px) 0 0 -.119583vw; font-size: clamp(22.4px, 3.333333vw, 64px); line-height: 1.1; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.department-copy { margin-top: clamp(6.4px, .833333vw, 16px); font-size: clamp(12px, 1.5vw, 28.8px); line-height: 1.75; font-weight: 700; }
.department-copy span { display: block; }
.department-scroll { grid-column: 1; grid-row: 1; height: 100%; background: var(--cream); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 40px clamp(16px, 1.15vw, 22px); padding: clamp(14px, 1.04vw, 20px); }
.shop-card { min-width: 0; }
.shop-card:nth-child(n + 3) { padding-top: 40px; border-top: 1px solid #575953; }
.shop-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.shop-heading { margin-top: clamp(20px, 1.666667vw, 32px); font-size: clamp(16px, 1.25vw, 24px); line-height: 1.4; font-weight: 700; }
.shop-heading small { display: inline; margin-left: .25em; font-size: clamp(11px, .833333vw, 16px); white-space: nowrap; }
.shop-instagram, .product-price { display: block; color: var(--orange); font-family: var(--font-en), sans-serif; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.shop-instagram:hover, .shop-instagram:focus-visible { color: var(--ink); text-decoration: none; }
.shop-description { margin-top: 32px; font-size: clamp(13px, .729167vw, 14px); line-height: 1.75; }
.shop-description p + p { margin-top: 1.75em; }
.shop-offerings { margin-top: 32px; }
.shop-offerings h4 { display: inline-block; padding: 5px 13px 5px 8px; background: #fff; border-block: 1px solid #666; clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%); font-size: 18px; font-weight: 400; line-height: 1.15; }
.shop-offerings ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; line-height: 1.75; }
.shop-offerings li { padding-left: .7em; text-indent: -.7em; }
.shop-offerings li::before { content: "・"; }
.online-link { display: block; margin-top: 36px; padding: 10px 12px; border-radius: 2px; background: var(--ink); color: var(--cream); text-align: center; font-size: 16px; line-height: 1.3; }
.online-link:hover, .online-link:focus-visible { background: var(--orange); text-decoration: none; }
.online-link span { margin-left: .25em; }
.scene--d5 .shop-grid { padding-top: clamp(20px, 1.707292vw, 32.78px); }
.scene--d5 .shop-photo { aspect-ratio: 482.76 / 630.9; }
.scene--d5 .shop-heading { font-weight: 400; }

.home-copy, .home-directory, .department-heading, .online-link { text-shadow: var(--water-shadow); }
.department-links button { text-shadow: inherit; }

/* First visit: the water is visible before the brand and copy surface together. */
.intro-pending :is(.home-brand, .home-panel, .site-logo, .site-controls) { opacity: 0; }
.intro-entering :is(.home-brand, .home-panel, .site-logo, .site-controls) {
    animation: home-surface-emerge 1800ms 500ms both;
}
@keyframes home-surface-emerge {
    0% { opacity: 0; filter: blur(14px); transform: translate3d(0, 12px, 0) scale(1.012); animation-timing-function: cubic-bezier(.2, .6, .25, 1); }
    65% { opacity: .9; filter: blur(1.5px); transform: translate3d(0, -1px, 0) scale(.999); animation-timing-function: ease-out; }
    100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

/* D0 scroll content fades in place; distortion is reserved for scene transitions. */
#d0 .scroll-fade-pending { opacity: 0; filter: blur(8px); pointer-events: none; }
#d0 .scroll-fade-entering {
    animation: d0-scroll-fade 1200ms cubic-bezier(.22, .61, .28, 1) both;
    will-change: opacity, filter;
}
@keyframes d0-scroll-fade {
    from { opacity: 0; filter: blur(8px); }
    to { opacity: 1; filter: blur(0); }
}

@media (min-width: 768px) {
    /* Halve the visible title gap, including the blank space within the line boxes. */
    .department-copy { margin-top: calc(clamp(3.2px, .416667vw, 8px) - .45em); }
    .shop-heading { font-size: clamp(18px, calc(1.25vw + 2px), 26px); }
    .shop-heading small { font-size: clamp(13px, calc(.833333vw + 2px), 18px); }
    .shop-instagram { font-size: 14px; line-height: 20px; }
    .product-price { font-size: 18px; line-height: 1.5; }
    .shop-description { font-size: clamp(15px, calc(.729167vw + 2px), 16px); }
    .shop-offerings ul { font-size: 14px; }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .shop-heading small { display: block; margin-left: 0; font-size: 14px; }
    .department-links { grid-template-columns: 1fr; gap: 24px; }
}

/* Share the viewport reference and compensate for the introduction's font leading. */
@media (min-width: 768px) and (max-width: 1366px) {
    .home-copy { padding-top: calc(var(--home-content-top) - .5em); }
}

@media (min-width: 768px) and (max-height: 620px) {
    .home-layout { --home-content-top: 8vh; }
    .home-brand { width: min(21.0554vw, 59vh); }
}

@media (max-width: 767px) {
    .scenes { touch-action: pan-y pinch-zoom; }
    .home-layout { display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    /* Mobile D0: one large centered logo, event details, then the introduction. */
    .home-brand { position: relative; top: auto; left: auto; width: 59%; max-width: none; margin: 0 auto; padding: max(20.18vw, env(safe-area-inset-top)) 0 0; }
    .home-brand h1 { width: 85.5%; }
    .home-event { padding-left: 2.34375vw; border-left-width: 1.041667vw; }
    .department-logo { position: absolute; top: var(--heading-top); right: 4.1667vw; width: 18vw; max-width: 104px; margin: 0; }
    .home-scroll { height: auto; padding: 0; overflow: visible; }
    .home-panel { min-height: auto; padding: 0 2.21% 0 4.393%; }
    .home-copy { padding: 16.6vw 2% 0; font-size: clamp(12px, 3.90625vw, 18px); line-height: 2.066667; text-align: center; }
    .home-copy p + p { margin-top: 2.066667em; }
    .home-directory { padding: 106px 4.393% calc(94px + env(safe-area-inset-bottom)) 13.4%; font-size: clamp(12px, 3.90625vw, 18px); line-height: 1.4; }
    .department-links { display: flex; flex-direction: column; gap: 25px; }
    .department-links .font-en, .music h2 { font-size: 1.2em; }
    .department-links .department-summary { margin-left: 2.28em; }
    .music { margin-top: 26px; }
    .music ul { margin-top: 0; margin-left: 2.28em; font-size: 1em; line-height: 1.4; }
    .department { display: block; }
    .department-visual { position: absolute; inset: 0; }
    .department-background::before { background-image: var(--background-sp); }
    /* Only the background stays in place; the heading, logo and cards scroll together. */
    .department-layout {
        --heading-top: max(20px, env(safe-area-inset-top));
        --heading-shift: calc(max(40px, env(safe-area-inset-top)) - var(--heading-top));
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
    }
    .department-layout::-webkit-scrollbar { display: none; }
    .department-heading { min-height: calc(clamp(150px, 39.0625vw, 214px) - var(--heading-shift)); padding: var(--heading-top) 3.588542% 0; }
    .department-logo { display: block; }
    .department-number { padding-left: .174479vw; font-size: clamp(15px, 4.278646vw, 22px); line-height: 1; }
    .department-heading h2 { margin-top: 3px; margin-left: -.276042vw; font-size: clamp(26px, 8.335938vw, 48px); line-height: 1.12; letter-spacing: 0; }
    .department-copy { margin-top: 6px; font-size: clamp(12px, 3.645833vw, 19px); line-height: 1.57; }
    .department-copy span { display: block; }
    .department-scroll {
        height: auto;
        padding: 0 6.77% calc(94px + env(safe-area-inset-bottom));
        overflow: visible;
        background: transparent;
    }
    .shop-grid, .scene--d5 .shop-grid { display: block; padding: 17px; border-radius: 4px; background: var(--cream); }
    .shop-card + .shop-card { margin-top: 40px; padding-top: 40px; border-top: 1px solid #575953; }
    .shop-heading { margin-top: 22px; font-size: clamp(17px, 5.361979vw, 25px); line-height: 1.35; }
    .shop-heading small { font-size: 13px; margin-left: .25em; }
    .shop-instagram { font-size: 10px; line-height: 18px; }
    .scene--d1 .shop-card:first-child .shop-instagram { font-size: 12px; }
    .product-price { font-size: 16px; line-height: 1.5; }
    .shop-description { margin-top: 32px; font-size: clamp(14px, 3.645833vw, 18px); line-height: 1.75; }
    .shop-description p + p { margin-top: 1.75em; }
    .shop-offerings { margin-top: 32px; }
    .shop-offerings h4 { padding: 3px 9px 3px 6px; font-size: 13px; }
    .shop-offerings ul { margin-top: 16px; font-size: clamp(12px, 3.125vw, 16px); line-height: 1.75; }
    .scene--d5 .department-heading { min-height: calc(clamp(208px, 54.17vw, 290px) - var(--heading-shift)); }
    .scene--d5 .shop-card + .shop-card { border-top: 0; padding-top: 0; }
    .scene--d5 .shop-heading { font-weight: 700; }
    .online-link { margin-top: 26px; font-size: 12px; padding: 8px; }
}

@media (max-width: 767px) and (max-height: 500px) {
    .department-layout {
        --heading-top: max(8px, env(safe-area-inset-top));
        --heading-shift: calc(max(16px, env(safe-area-inset-top)) - var(--heading-top));
    }
    .department-logo { width: 50px; }
    .department-heading { min-height: calc(110px - var(--heading-shift)); }
    .department-heading h2 { font-size: 26px; }
    .department-copy { font-size: 12px; }
    .scene--d5 .department-heading { min-height: calc(166px - var(--heading-shift)); }
    .site-controls { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    #d0 .scroll-fade-pending, #d0 .scroll-fade-entering { opacity: 1; filter: none; animation: none; will-change: auto; pointer-events: auto; }
    .intro-pending :is(.home-brand, .home-panel, .site-logo, .site-controls),
    .intro-entering :is(.home-brand, .home-panel, .site-logo, .site-controls) { opacity: 1; animation: none; }
    .scene-scroll { scroll-behavior: auto; }
    .scene--d0::before { animation: none; transform: scale(1.2); }
}
