/* TRINITY landing: noren intro, hero, 三位一体 crest scene, departure board, torii path, ema wall, portrait, koi pond */

/* ------------------------------------------------------------------ 暖簾 intro */
.noren { position: fixed; inset: 0; z-index: 100; display: flex; pointer-events: auto; perspective: 1200px; background: #05060c; cursor: pointer; }
html:not(.js) .noren, .noren.gone { display: none; }
.noren.opening { background: transparent; pointer-events: none; transition: background .2s; }
.noren { --bw: max(100vw, 74.6vh); --bh: calc(var(--bw) * 1.34); --ox: calc((100vw - var(--bw)) / 2); --lw: calc(var(--ox) + .305 * var(--bw)); --mw: calc(.3875 * var(--bw)); }
.nr-panel { position: relative; flex: none; transform-origin: 50% 0; background: url(/media/noren.webp) no-repeat; background-size: var(--bw) var(--bh); background-position-y: 50%; animation: sway 3.2s ease-in-out infinite; }
.nr-panel.l { width: var(--lw); background-position-x: var(--ox); animation-delay: -.4s; }
.nr-panel.m { width: var(--mw); background-position-x: calc(var(--ox) - var(--lw)); }
.nr-panel.r { flex: 1; background-position-x: calc(var(--ox) - var(--lw) - var(--mw)); animation-delay: -1.1s; }
@keyframes sway { 50% { transform: rotateX(4deg) skewX(.6deg); } }
.noren.opening .nr-panel { animation: lift 1.05s cubic-bezier(.5, 0, .2, 1) forwards; }
.noren.opening .nr-panel.l { animation-delay: .05s; } .noren.opening .nr-panel.r { animation-delay: .12s; }
@keyframes lift { 0% { transform: none; } 35% { transform: rotateX(-30deg) translateZ(30px); } 100% { transform: rotateX(-96deg) translateY(-10%); opacity: 0; } }
.nr-hint { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); color: var(--washi); font-size: 14px; letter-spacing: .4em; opacity: .85; animation: blink 1.6s steps(2) infinite; }
.noren.opening .nr-hint { opacity: 0; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg, .hero-vid { position: absolute; inset: 0; z-index: -3; }
.hero-bg img, .hero-vid { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg img { transform: scale(1.06); animation: breathe 18s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.12) translate(-1%, -1%); } }
.hero-vid { opacity: 0; transition: opacity 1.4s; }
.hero-vid.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5, 6, 12, .82) 0%, rgba(5, 6, 12, .45) 42%, transparent 70%), linear-gradient(0deg, var(--night) 0%, transparent 32%), linear-gradient(180deg, rgba(5, 6, 12, .6), transparent 22%); }
.hero-in { padding: 110px 0 120px; }
.breaking { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; white-space: nowrap; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(10, 12, 24, .55); box-shadow: 0 0 0 1px var(--line) inset; font-size: 12px; letter-spacing: .14em; color: var(--mute); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.breaking > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.breaking .dot { flex: none; background: var(--hino); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: 13px; letter-spacing: .2em; }
.breaking i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hino); box-shadow: 0 0 0 0 rgba(232, 56, 79, .7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(232, 56, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 56, 79, 0); } }
.title { margin: 22px 0 6px; line-height: .9; }
.t-kana { display: block; font-size: clamp(18px, 3.4vw, 30px); letter-spacing: .62em; color: var(--sakura2); margin-bottom: 10px; padding-left: .2em; }
.t-latin {
  display: block; font-size: clamp(40px, min(13.4vw, calc((100vw - 44px) / 6.2)), 196px); letter-spacing: .015em; white-space: nowrap;
  background: linear-gradient(180deg, #fff 10%, var(--sakura2) 55%, var(--sakura) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 158, 193, .35)); min-height: 1em;
}
.hero-lead { font-size: clamp(28px, 5.4vw, 52px); font-weight: 800; letter-spacing: .14em; margin-top: 8px; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
html[data-lang="en"] .hero-lead { letter-spacing: .02em; }
.hero-sub { color: var(--washi); opacity: .88; margin-top: 10px; font-size: clamp(15px, 2.2vw, 19px); max-width: 560px; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.hero-sub b { color: var(--sakura); font-weight: 700; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.tate { position: absolute; right: clamp(14px, 4vw, 60px); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: clamp(15px, 1.9vw, 21px); letter-spacing: .5em; color: var(--moon); opacity: .78; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
html[data-lang="en"] .tate { letter-spacing: .22em; font-size: clamp(12px, 1.4vw, 15px); text-transform: uppercase; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; overflow: hidden; background: rgba(4, 5, 10, .82); border-top: 1px solid #2a2e44; display: flex; align-items: center; }
.tk-track { display: flex; white-space: nowrap; color: var(--led); text-shadow: 0 0 8px rgba(255, 179, 71, .55); font-size: 15px; animation: tick 46s linear infinite; will-change: transform; }
.tk-track span { padding-right: 46px; }
.tk-track .r { color: var(--hino); text-shadow: 0 0 8px rgba(232, 56, 79, .6); }
.tk-track .x { background: var(--led); color: transparent; text-shadow: none; border-radius: 2px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (min-width: 761px) and (max-width: 1180px) { .tate { display: none; } }
@media (max-width: 760px) {
  .hero { align-items: end; }
  .hero-shade { background: linear-gradient(0deg, var(--night) 4%, rgba(5, 6, 12, .55) 42%, transparent 64%), linear-gradient(180deg, rgba(5, 6, 12, .55), transparent 18%); }
  .hero-in { padding: 0 0 92px; }
  .tate { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ 三位一体 */
.trio { position: relative; }
.trio-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 90px 0 40px; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 52%, rgba(30, 39, 88, .55), transparent 70%); }
.trio-head { text-align: center; }
.trio-head .eyebrow::before { display: none; }
.trio-stage { position: relative; width: min(66vw, 46svh, 430px); aspect-ratio: 1; margin: 0 auto; }
.crest { width: 100%; height: 100%; overflow: visible; }
.tomoe { fill: rgba(233, 236, 245, .06); stroke: rgba(233, 236, 245, .45); stroke-width: .8; transition: fill .6s, stroke .6s; transform-box: view-box; }
.tomoe.lit { fill: url(#tg); stroke: #ffe3ee; filter: url(#glow); }
.trio-coin { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; opacity: 0; transform: scale(.5) rotate(-40deg); pointer-events: none; filter: drop-shadow(0 30px 60px rgba(255, 92, 149, .35)); }
.trio-vid { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; mix-blend-mode: screen; opacity: 0; transition: opacity .8s; pointer-events: none; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%); mask-image: radial-gradient(circle, #000 55%, transparent 71%); }
.trio-vid.on { opacity: 1; }
.trio-flash { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 240, .95), rgba(255, 158, 193, .3) 40%, transparent 65%); opacity: 0; pointer-events: none; }
.trio-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.trio-cards li { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: rgba(14, 18, 40, .6); box-shadow: 0 0 0 1px var(--line) inset; opacity: .3; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease), box-shadow .6s; }
.trio-cards li.on { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(255, 158, 193, .5) inset, 0 20px 50px -24px var(--sakura3); }
.trio-cards .k { font-size: 40px; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 158, 193, .12); color: var(--sakura); flex: none; }
.trio-cards h3 { font-family: 'Kaku', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .06em; }
.trio-cards p { color: var(--mute); font-size: 14px; line-height: 1.5; }
html:not(.gsap) .tomoe { fill: url(#tg); filter: url(#glow); }
html:not(.gsap) .trio-cards li { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .trio-cards { grid-template-columns: 1fr; gap: 8px; }
  .trio-cards li { padding: 10px 12px; }
  .trio-cards .k { width: 42px; height: 42px; font-size: 28px; }
  .trio-cards h3 { font-size: 15px; } .trio-cards p { font-size: 13px; }
  html.gsap .trio-cards { position: relative; height: 72px; }
  html.gsap .trio-cards li { position: absolute; inset: 0 0 auto; opacity: 0; }
  html.gsap .trio-cards li.on { opacity: 1; }
  html.gsap .trio-cards li.past { opacity: 0; transform: translateY(-10px); }
}

/* ------------------------------------------------------------------ departures */
.depart { padding: 80px 0 40px; }
.sec-head { margin-bottom: 26px; }

/* ------------------------------------------------------------------ 鳥居の道 */
.path { position: relative; }
.path-pin { position: relative; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.path-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 45%; opacity: .32; filter: saturate(.9) blur(1px); transform: scale(1.1); }
.path-pin::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 55%, transparent, var(--night) 85%), linear-gradient(var(--night), transparent 20%, transparent 80%, var(--night)); pointer-events: none; }
.path-head { position: relative; z-index: 3; padding-top: 86px; text-align: center; }
.path-head .eyebrow::before { display: none; }
.path-head .h2 { font-size: clamp(30px, 6.4vw, 64px); }
.tunnel { position: absolute; inset: 0; z-index: 2; perspective: 700px; perspective-origin: 50% 52%; }
.cam { position: absolute; left: 50%; top: 56%; transform-style: preserve-3d; }
.gate { position: absolute; left: 0; top: 0; width: min(78vw, 560px); aspect-ratio: 1 / .92; transform-style: preserve-3d; translate: -50% -50%; --n: #ff6f9f; --g: rgba(255, 92, 149, .75); }
.gate i { position: absolute; display: block; border-radius: 3px; background: linear-gradient(#2a1222, #12070e); box-shadow: inset 0 0 0 2px #ffb3cf, inset 0 0 14px rgba(255, 92, 149, .55), 0 0 12px var(--g), 0 0 38px rgba(255, 92, 149, .35); }
.gate .kasagi { left: -9%; right: -9%; top: 0; height: 7.5%; border-radius: 40% 40% 6px 6px / 80% 80% 6px 6px; background: linear-gradient(#2a1420, #120a12); box-shadow: 0 0 12px var(--g), inset 0 -2px 0 #ff9ec1, inset 0 0 0 1.5px rgba(255, 158, 193, .9); }
.gate .shimaki { left: -4%; right: -4%; top: 7.5%; height: 5%; }
.gate .nuki { left: 2%; right: 2%; top: 25%; height: 5.5%; }
.gate .pl { top: 7%; bottom: 0; width: 8.5%; border-radius: 4px; }
.gate .pl.l { left: 13%; } .gate .pl.r { right: 13%; }
.gate .gaku { position: absolute; left: 50%; top: 9%; translate: -50% 0; width: 15%; aspect-ratio: .78; display: grid; place-items: center; background: #0d0a16; border: 2px solid #ffd0e0; box-shadow: 0 0 16px var(--g); color: #fff; font-size: clamp(16px, 3.6vw, 30px); border-radius: 4px; }
.gate .gt { position: absolute; left: 50%; bottom: -14%; translate: -50% 0; white-space: nowrap; font-family: 'Dela', sans-serif; font-size: clamp(14px, 2.6vw, 22px); color: var(--washi); text-shadow: 0 0 18px rgba(255, 92, 149, .8); letter-spacing: .06em; }
.gate.end i { box-shadow: inset 0 0 0 2px #fff, inset 0 0 18px rgba(255, 255, 255, .5), 0 0 16px rgba(255, 255, 255, .7), 0 0 50px rgba(255, 158, 193, .6); }
.path-cap { position: absolute; z-index: 3; left: 50%; bottom: max(36px, env(safe-area-inset-bottom)); translate: -50% 0; width: min(92vw, 560px); text-align: center; padding: 14px 18px; border-radius: 16px; background: rgba(8, 9, 20, .72); box-shadow: 0 0 0 1px rgba(255, 158, 193, .35) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.path-cap b { display: block; color: var(--sakura); font-size: 13px; letter-spacing: .3em; }
.path-cap span { display: block; font-size: clamp(15px, 2.4vw, 18px); }
.path-list { position: relative; z-index: 3; list-style: none; display: none; gap: 10px; counter-reset: s; padding: 30px 0 60px; }
.path-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(14, 18, 40, .7); box-shadow: 0 0 0 1px var(--line) inset; }
.path-list b { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--sakura); color: var(--washi); font-size: 22px; }
html:not(.gsap) .path-pin { height: auto; }
html:not(.gsap) .tunnel, html:not(.gsap) .path-cap { display: none; }
html:not(.gsap) .path-list { display: grid; }

/* ------------------------------------------------------------------ 絵馬 */
.ema { padding: 90px 0 40px; }
.ema-wall { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 16px; padding: 30px 0 10px; }
.ema-wall::before { content: ''; position: absolute; left: -4%; right: -4%; top: 12px; height: 6px; border-radius: 3px; background: linear-gradient(#3a2a1c, #20160e); box-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
.em { position: relative; aspect-ratio: 420 / 336; background: url(/media/ema.webp) center / contain no-repeat; transform-origin: 50% 0; animation: swing var(--d, 4.4s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); text-decoration: none; color: #2b1a0e; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26% 10% 6%; text-align: center; transition: filter .3s; }
.em:hover { filter: brightness(1.12) drop-shadow(0 0 18px rgba(255, 179, 71, .4)); }
@keyframes swing { from { transform: rotate(-2.6deg); } to { transform: rotate(2.6deg); } }
.em b { font-family: 'Mincho', serif; font-weight: 800; font-size: clamp(14px, 1.8vw, 17px); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em span { font-family: 'Dot', monospace; font-size: 12px; color: #6a3a1a; margin-top: 2px; }
.em i { position: absolute; right: 6%; bottom: 8%; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c0283b; color: #c0283b; font-style: normal; font-family: 'Mincho', serif; font-weight: 800; font-size: 11px; display: grid; place-items: center; transform: rotate(-12deg); opacity: .8; }
.em.ghost { opacity: .55; filter: grayscale(.3); }
@media (max-width: 760px) { .ema-wall { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; } .em span { font-size: 11px; } }

/* ------------------------------------------------------------------ portrait */
.who { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; padding: 90px 0; }
.who-fig { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(255, 92, 149, .35); }
.who-fig img { width: 100%; height: auto; }
.who-fig figcaption { position: absolute; right: 14px; top: 14px; writing-mode: vertical-rl; font-size: 20px; letter-spacing: .4em; padding: 12px 6px; background: rgba(5, 6, 12, .6); border-radius: 10px; color: var(--washi); }
.who-q { font-family: 'Mincho', serif; font-weight: 800; font-size: clamp(28px, 4.2vw, 48px); letter-spacing: .06em; line-height: 1.35; }
.who-txt .btn { margin-top: 22px; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; padding: 60px 0; } }

/* ------------------------------------------------------------------ 鯉の池 */
.pond { position: relative; min-height: 92svh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(90% 70% at 50% 60%, #0d1736, #060914 70%); touch-action: pan-y; }
.koi { position: absolute; inset: 0; width: 100%; height: 100%; }
.pond-in { position: relative; z-index: 2; text-align: center; padding: 60px var(--pad); pointer-events: none; }
.pond-in .btn { pointer-events: auto; margin-top: 18px; }
.pond-k { font-size: clamp(18px, 3vw, 26px); letter-spacing: .4em; color: var(--sakura2); }
.pond .h2 { max-width: 820px; margin-inline: auto; text-shadow: 0 6px 40px rgba(0, 0, 0, .8); }
.pond-note { margin-top: 16px; font-size: 13px; color: var(--dim); letter-spacing: .2em; }
