/* もしもえほん 玄関ページ。切り絵の世界観は ../shared/ehon.css（絵本画面）とそろえる */
:root {
  --indigo: #263744;
  --paper: #f5ebd5;
  --ink: #38382f;
  --persimmon: #ab4931;
  --bamboo: #526b52;
  --peach: #efac91;
  --wood: #7a5236;
  --grain: url("/top/img/grain.jpg") center / 520px auto;
  --cut: polygon(.6% 2%, 11% .8%, 26% 1.6%, 43% 0, 61% 1%, 81% .3%, 99.6% 1.8%, 100% 42%, 99.5% 69%, 99.8% 97.8%, 79% 99%, 58% 98.5%, 40% 100%, 20% 98.6%, .3% 99%, .6% 72%, 0 44%);
  --cut2: polygon(1% 3%, 18% 0, 37% 2%, 58% .5%, 77% 2.4%, 99% 0, 100% 30%, 98.6% 62%, 100% 98%, 74% 100%, 52% 97.6%, 30% 100%, 8% 98%, 0 100%, 1.4% 64%, 0 33%);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 700;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { background: #f2c7a8; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; }

/* ===== 1枚目 ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #f0c6a6; isolation: isolate; }
.stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } /* 大きさと位置は top.js が「画面を覆う 3:2」に合わせる */
.layer { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 夕日の光と雲 */
.sun { position: absolute; left: var(--sun-x, 89%); top: var(--sun-y, 40%); width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, #ffd9a066, #ffc38a33 55%, #ffc38a00); animation: sun-breathe 7s ease-in-out infinite; }
@keyframes sun-breathe { 50% { transform: translate(-50%, -50%) scale(1.25); opacity: .65; } }
.cloud { position: absolute; height: auto; opacity: .95; animation: drift linear infinite; }
.c1 { width: 24%; left: 4%; top: 6%; animation-duration: 95s; }
.c2 { width: 19%; left: 52%; top: 15%; animation-duration: 120s; animation-delay: -40s; }
.c3 { width: 15%; left: 76%; top: 4%; animation-duration: 80s; animation-delay: -20s; }
@keyframes drift { 0% { transform: translateX(-6vw); } 50% { transform: translateX(6vw); } 100% { transform: translateX(-6vw); } }

/* 川面（流れの筋・桃などは top.js が置く） */
.water { pointer-events: none; }
.curl { position: absolute; left: 0; top: 0; width: 7%; height: 1.1%; border-radius: 50%; background: #f4f1e4; opacity: 0;
  clip-path: polygon(0 60%, 12% 20%, 40% 0, 70% 10%, 100% 55%, 72% 70%, 45% 52%, 18% 80%); will-change: transform, opacity; }
.curl.b { background: #9ccbd0; }

.drifter { position: absolute; left: 0; top: 0; width: 20%; aspect-ratio: 1; margin: -10% 0 0 -10%; pointer-events: auto; cursor: grab; will-change: transform; touch-action: manipulation; }
.drifter .body { position: absolute; inset: 0; will-change: transform; }
.drifter .body img { position: absolute; left: 10%; top: 4%; width: 80%; height: auto; -webkit-user-drag: none; user-select: none; }
.drifter.k-turtle .body img { left: 6%; top: 18%; width: 88%; }
.drifter.k-mini .body img { width: 38%; }
.drifter.k-mini .body img:nth-child(1) { left: 4%; top: 40%; }
.drifter.k-mini .body img:nth-child(2) { left: 33%; top: 30%; }
.drifter.k-mini .body img:nth-child(3) { left: 60%; top: 44%; }
.ripple { position: absolute; left: 50%; top: 80%; width: 120%; height: 30%; margin: -15% 0 0 -60%; border-radius: 50%; border: .5vmin solid #e9f3ef; opacity: 0;
  animation: ripple 2.6s ease-out infinite; }
.ripple:nth-of-type(2) { animation-delay: .85s; } .ripple:nth-of-type(3) { animation-delay: 1.7s; }
@keyframes ripple { 0% { transform: scale(.45); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.splash { position: absolute; left: -14%; width: 128%; top: 64%; height: auto; will-change: transform; }
.drop { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50% 50% 50% 0; background: #f6f3e8; left: 50%; top: 70%; opacity: 0; animation: hop 1.9s ease-out infinite; }
.drop:nth-of-type(1) { --x: -38%; animation-delay: .1s; }
.drop:nth-of-type(2) { --x: 46%; animation-delay: .7s; background: #a9d6d6; }
.drop:nth-of-type(3) { --x: -18%; animation-delay: 1.3s; width: 3.6%; }
.drop:nth-of-type(4) { --x: 30%; animation-delay: 1.6s; width: 3%; background: #a9d6d6; }
@keyframes hop {
  0% { transform: translate(0, 0) rotate(-45deg) scale(.4); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate(calc(var(--x) * 9), -340%) rotate(-45deg) scale(1); }
  100% { transform: translate(calc(var(--x) * 14), 60%) rotate(-45deg) scale(.6); opacity: 0; }
}
.drifter.k-turtle .splash, .drifter.k-turtle .drop { display: none; }

/* 手前の岸・すすき */
.bank { position: absolute; left: -2%; bottom: -3%; width: 58%; height: auto; -webkit-mask-image: linear-gradient(90deg, #000 80%, #0000 99%); mask-image: linear-gradient(90deg, #000 80%, #0000 99%); }
.susuki { position: absolute; height: auto; transform-origin: 50% 100%; animation: sway 5.5s ease-in-out infinite; }
.s1 { left: -3%; bottom: -4%; width: 15%; }
.s2 { left: 6%; bottom: -8%; width: 11%; animation-duration: 4.6s; animation-delay: -1.5s; }
.s3 { right: -4%; bottom: -10%; width: 12%; animation-duration: 6.2s; animation-delay: -3s; transform: scaleX(-1); }
@keyframes sway { 0%, 100% { rotate: -2deg; } 50% { rotate: 3.5deg; } }

/* ===== 文字と部品 ===== */
.ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
.ui a, .ui button { pointer-events: auto; }
.logo { position: absolute; left: max(2.2vw, 16px); top: max(2.2vw, 14px); display: flex; align-items: center; gap: .55em; font-size: clamp(15px, 1.9vw, 26px); letter-spacing: .1em; color: var(--indigo); }
.book { position: relative; width: 1.7em; height: 2em; transform: rotate(-6deg); background: linear-gradient(#263744e8, #263744e8), var(--grain); clip-path: var(--cut); }
.book::before { content: ""; position: absolute; left: 14%; top: 0; bottom: 0; width: 6%; background: var(--persimmon); box-shadow: 0 0 0 .05em #0002; }
.book::after { content: ""; position: absolute; left: 38%; top: 28%; width: 46%; height: 30%; background: #f5ebd5d9; }

.title { position: absolute; left: 0; right: 0; top: max(7.5vh, 50px); margin: 0; text-align: center; color: var(--indigo);
  font-size: min(9.6vw, 13.4vh); line-height: 1.14; letter-spacing: .02em; font-weight: 800; }
.title .line { display: block; white-space: nowrap; }
.title .ch { display: inline-block; -webkit-text-stroke: .045em var(--indigo); paint-order: stroke fill; text-shadow: .03em .05em 0 #6a3b2a38; }
.title.split .ch { opacity: 0; }
.title.go .ch { animation: paste .62s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i) * 75ms + 200ms); }
@keyframes paste {
  0% { opacity: 0; transform: translate(var(--dx), -55%) rotate(var(--r0)) scale(1.45); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: rotate(var(--r1)); }
}
.title.go .ch.wig { animation: wig .7s ease-in-out both; }
@keyframes wig { 0%, 100% { opacity: 1; transform: rotate(var(--r1)); } 30% { opacity: 1; transform: translateY(-.08em) rotate(calc(var(--r1) - 7deg)); } 65% { opacity: 1; transform: rotate(calc(var(--r1) + 4deg)); } }
.lead { word-break: keep-all; position: absolute; left: 0; right: 0; top: calc(max(7.5vh, 50px) + min(9.6vw, 13.4vh) * 2.36); margin: 0; text-align: center;
  font-size: clamp(14px, 2.15vw, 30px); letter-spacing: .12em; color: var(--indigo); opacity: 0; animation: fade-up .8s 1.6s ease-out both; }
.lead::before { content: ""; position: absolute; left: 50%; top: -.1em; bottom: -.15em; width: 21em; max-width: 96vw; transform: translateX(-50%) rotate(-.6deg); z-index: -1;
  background: linear-gradient(#f5ebd5b8, #f5ebd5b8), var(--grain); clip-path: var(--cut2); }
@keyframes fade-up { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }

/* 立て札 */
.shelf { position: absolute; left: 3vw; bottom: 3.5vh; width: min(44vw, 72vh); display: flex; flex-direction: column; align-items: flex-start; }
.signs { position: relative; display: flex; gap: 1.4vw; padding: 2.2vh 1.2vw 0; width: 100%; }
.signs::before { /* 横木 */ content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.4vh; min-height: 12px; background: linear-gradient(#7a5236e6, #5d3e29e6), var(--grain); clip-path: var(--cut2); transform: rotate(-.5deg); z-index: 1; }
.sign { position: relative; flex: 1 1 0; min-width: 0; text-decoration: none; color: var(--ink); opacity: 0; animation: sign-in .8s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(1.3s + var(--i) * .18s); perspective: 700px; }
.sign::before, .sign::after { /* 柱 */ content: ""; position: absolute; top: -3vh; bottom: -14vh; width: 9%; background: linear-gradient(90deg, #5d3e29e6, #8a5e3ee6, #5d3e29e6), var(--grain); clip-path: var(--cut); z-index: -1; }
.sign::before { left: 6%; } .sign::after { right: 6%; }
@keyframes sign-in { 0% { opacity: 0; transform: translateY(-30vh) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
.board { position: relative; display: block; transform-origin: 50% -8%; animation: swing 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); padding: 4.5% 4.5% 0; isolation: isolate; }
.board::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#f5ebd5f2, #eadfc5f2), var(--grain); clip-path: var(--cut); }
.board::after { /* 紙の落ち影（下に重ねた紙） */ content: ""; position: absolute; inset: 2% -1% -2% 2%; z-index: -2; background: #5d3e2959; clip-path: var(--cut); }
.rope { position: absolute; top: -2.6vh; width: 2px; height: 3vh; background: #6b4a30; }
.rope.l { left: 22%; } .rope.r { right: 22%; }
@keyframes swing { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.face { position: relative; display: block; aspect-ratio: 4 / 3.3; perspective: 500px; perspective-origin: 50% 0; }
.face .back { position: absolute; inset: 0; display: grid; place-items: end center; padding: 6% 6% 12%; text-align: center; background: linear-gradient(#efac91cc, #efac91cc), var(--grain); clip-path: var(--cut2);
  font-size: clamp(12px, 1.6vw, 21px); line-height: 1.5; letter-spacing: .04em; color: #4a2a20; word-break: keep-all; }
.face .back em { font-style: normal; display: block; margin-top: .4em; font-size: .9em; color: var(--persimmon); }
.cover { position: absolute; inset: 0; transform-origin: 50% 0; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); clip-path: var(--cut2); background: #dcccac; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); }
.cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(28px, 4.4vw, 64px); color: #f5ebd5; background: linear-gradient(#526b52dd, #526b52dd), var(--grain); }
.sign-title { display: block; text-align: center; padding: .55em 0 .7em; font-size: clamp(14px, 2vw, 28px); letter-spacing: .08em; white-space: nowrap; }
@media (hover: hover) { .sign:hover .cover, .sign:focus-visible .cover { transform: rotateX(-72deg); } .sign:hover .board { animation-duration: 1.2s; } }
.sign.open .cover { transform: rotateX(-72deg); }
.sign:focus-visible { outline: none; } .sign:focus-visible .board::before { background: linear-gradient(#fff4dcf2, #fff4dcf2), var(--grain); }

/* よんでみる */
.go-btn { position: relative; isolation: isolate; display: inline-grid; place-items: center; text-decoration: none; color: #fff8e8; letter-spacing: .14em;
  font-size: clamp(18px, 2.7vw, 36px); padding: .55em 1.5em .62em 1.6em; min-height: 52px; transform: rotate(-1.2deg); transition: transform .15s; }
.go-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#ab4931ee, #ab4931ee), var(--grain); clip-path: var(--cut); }
.go-btn::after { content: ""; position: absolute; inset: 7% 4%; z-index: -1; border: 2px dashed #f5ebd566; border-radius: 4px; }
.shelf .go-btn { margin: 3.2vh 0 0 6%; opacity: 0; animation: fade-up .7s 1.9s ease-out both, nudge 3.6s 3s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: rotate(-1.2deg); } 78% { transform: rotate(-3deg) scale(1.05); } 86% { transform: rotate(1deg) scale(1.02); } }
.go-btn:hover { transform: rotate(-2.4deg) scale(1.04); }
.go-btn:active { transform: translateY(3px) rotate(-1deg) scale(.98); }
.go-btn:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; }

/* 桃のしかけの札・ふきだし */
.plaque { position: absolute; right: 4vw; bottom: 9vh; padding: .9em 1.4em 1em; font-size: clamp(14px, 1.9vw, 26px); letter-spacing: .08em; color: var(--paper);
  transform-origin: 50% -40%; opacity: 0; pointer-events: none; isolation: isolate; white-space: nowrap; }
.plaque::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#263744ec, #263744ec), var(--grain); clip-path: var(--cut); }
.plaque::after { content: ""; position: absolute; left: 50%; top: -1.2em; width: 2px; height: 1.3em; background: #263744aa; }
.plaque.show { animation: plaque-in 4.6s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes plaque-in {
  0% { opacity: 0; transform: translateY(-40%) rotate(-12deg); }
  12% { opacity: 1; transform: translateY(0) rotate(5deg); }
  20% { transform: rotate(-3deg); } 28% { transform: rotate(1.5deg); } 36%, 86% { opacity: 1; transform: rotate(0); }
  100% { opacity: 0; transform: translateY(20%) rotate(2deg); }
}
.pop { position: absolute; left: 0; top: 0; font-size: clamp(16px, 2.3vw, 32px); letter-spacing: .06em; color: var(--indigo); padding: .3em .7em .38em; opacity: 0; pointer-events: none; isolation: isolate; white-space: nowrap; }
.pop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#f5ebd5f0, #f5ebd5f0), var(--grain); clip-path: var(--cut2); }
.pop.show { animation: pop 1.1s ease-out both; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6) rotate(-6deg); } 18% { opacity: 1; transform: translate(-50%, -40%) scale(1.06) rotate(3deg); } 70% { opacity: 1; transform: translate(-50%, -70%) rotate(0); } 100% { opacity: 0; transform: translate(-50%, -110%); } }

.scroll-hint { position: absolute; left: 50%; bottom: 1.6vh; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; opacity: 0; animation: fade-up .6s 3s both; }
.scroll-hint span { width: 14px; height: 14px; border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; filter: drop-shadow(0 1px 0 #26374466); }
@keyframes bob { 50% { transform: translateY(6px) rotate(45deg); } }

/* ===== 2枚目：しくみ ===== */
.about { position: relative; isolation: isolate; padding: 9vh 5vw 5vh; color: var(--paper); background: var(--indigo); overflow: hidden; }
.about::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); filter: grayscale(1); mix-blend-mode: soft-light; opacity: .35; }
.about::after { /* 上のちぎれた縁 */ content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 26px; background: #f0c6a6; clip-path: polygon(0 0, 100% 0, 100% 40%, 92% 70%, 84% 38%, 76% 80%, 66% 46%, 57% 74%, 47% 40%, 38% 82%, 29% 50%, 20% 76%, 11% 42%, 4% 70%, 0 46%); }
.about-title { margin: 0 0 6vh; text-align: center; font-size: clamp(22px, 3.2vw, 42px); letter-spacing: .2em; }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5vw; }
.step { text-align: center; opacity: 0; transform: translateY(40px) rotate(var(--r, -1deg)); transition: opacity .7s, transform .8s cubic-bezier(.2, .9, .3, 1.2); transition-delay: calc(var(--i, 0) * .18s); }
.step:nth-child(2) { --i: 1; --r: 1deg; } .step:nth-child(3) { --i: 2; --r: -.6deg; }
.step.seen { opacity: 1; transform: none; }
.pic { position: relative; aspect-ratio: 5 / 3.4; margin-bottom: 1.4em; isolation: isolate; overflow: hidden; }
.pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#f5ebd5f0, #f5ebd5f0), var(--grain); clip-path: var(--cut); }
.step h3 { margin: 0 0 .5em; font-size: clamp(18px, 2.3vw, 30px); letter-spacing: .1em; }
.step h3 b { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: .5em; font-size: .7em; vertical-align: .15em; background: var(--persimmon); clip-path: var(--cut); color: var(--paper); }
.step p { word-break: keep-all; margin: 0; font-size: clamp(14px, 1.55vw, 20px); line-height: 1.8; letter-spacing: .05em; color: #e9dfc6; }

/* 1 えらぶ */
.s-choose .q { position: absolute; left: 0; right: 0; top: 14%; color: var(--ink); font-size: clamp(15px, 1.9vw, 24px); letter-spacing: .1em; }
.mini-btn { position: absolute; top: 46%; width: 38%; padding: .7em 0 .78em; font-size: clamp(13px, 1.6vw, 20px); color: #fff8e8; isolation: isolate; }
.mini-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--cut); background: var(--persimmon); }
.mini-btn.a { left: 8%; transform: rotate(-1deg); } .mini-btn.b { right: 8%; transform: rotate(1deg); } .mini-btn.b::before { background: var(--bamboo); }
.seen .mini-btn.b { animation: press 3s 1s ease-in-out infinite; }
@keyframes press { 0%, 40%, 100% { transform: rotate(1deg); } 48% { transform: translateY(5px) rotate(1deg) scale(.95); } 58% { transform: rotate(1deg) scale(1.04); } }
.tap { position: absolute; right: 22%; top: 60%; width: 13%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--persimmon); opacity: 0; }
.seen .tap { animation: tap 3s 1s ease-out infinite; }
@keyframes tap { 0%, 44% { opacity: 0; transform: scale(.3); } 50% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(1.6); } }

/* 2 わかれる */
.s-branch svg { position: absolute; inset: 8% 8% 6%; width: 84%; height: 86%; overflow: visible; }
.s-branch path { fill: none; stroke: #8a6d4b; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 12; }
.s-branch .br { stroke: var(--bamboo); stroke-dasharray: 160; stroke-dashoffset: 160; }
.seen .br { animation: draw 4.5s ease-in-out infinite; } .seen .b2 { animation-delay: .4s; } .seen .b3 { animation-delay: .8s; }
@keyframes draw { 0% { stroke-dashoffset: 160; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.s-branch .dot { fill: var(--persimmon); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.seen .dot { animation: dot 4.5s ease-out infinite; } .seen .d1 { animation-delay: 1.2s; } .seen .d2 { animation-delay: 1.6s; } .seen .d3 { animation-delay: 2s; }
@keyframes dot { 0% { transform: scale(0); } 10%, 60% { transform: scale(1); } 75%, 100% { transform: scale(0); } }
.walker { position: absolute; left: 50%; bottom: 4%; width: 16%; height: auto; transform: translateX(-50%); }
.seen .walker { animation: walk 4.5s ease-in-out infinite; }
@keyframes walk { 0% { transform: translate(-50%, 0) rotate(0); } 35% { transform: translate(-50%, -150%) rotate(-10deg); } 50% { transform: translate(-50%, -160%) rotate(8deg); } 80% { transform: translate(-50%, -160%) rotate(0); } 100% { transform: translate(-50%, 0); } }

/* 3 あつめる */
.s-collect .pic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5%; padding: 9% 10%; perspective: 600px; }
.s-collect .card { position: relative; transform: rotateY(180deg); background: #3a4a55; clip-path: var(--cut); transition: transform .6s, background .01s .3s; }
.s-collect .card::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px dashed #f5ebd544; }
.seen .card { animation: flip 6s ease-in-out infinite; }
.s-collect .card:nth-child(1) { animation-delay: .4s; } .s-collect .card:nth-child(2) { animation-delay: .8s; } .s-collect .card:nth-child(3) { animation-delay: 1.2s; }
.s-collect .card:nth-child(4) { animation-delay: 1.6s; } .s-collect .card:nth-child(5) { animation-delay: 2s; } .s-collect .card:nth-child(6) { animation-delay: 2.4s; } .s-collect .card:nth-child(7) { animation-delay: 2.8s; }
@keyframes flip { 0% { transform: rotateY(180deg); background: #3a4a55; } 10%, 70% { transform: rotateY(0); background: var(--peach); } 80%, 100% { transform: rotateY(180deg); background: #3a4a55; } }
.s-collect .card:nth-child(odd) { --c: var(--peach); }

.about-go { text-align: center; margin: 7vh 0 5vh; }
.foot { text-align: center; font-size: 12px; letter-spacing: .14em; color: #f5ebd599; }

/* ===== めくる紙 ===== */
.curtain { position: fixed; inset: 0; z-index: 50; pointer-events: none; visibility: hidden; }
.curtain i { position: absolute; left: -6%; right: -6%; height: 120%; top: 125%; clip-path: var(--cut2); }
.curtain i:nth-child(1) { background: linear-gradient(#efac91f5, #efac91f5), var(--grain); transform: rotate(-4deg); }
.curtain i:nth-child(2) { background: linear-gradient(#f5ebd5f8, #f5ebd5f8), var(--grain); transform: rotate(3deg); }
.curtain i:nth-child(3) { background: linear-gradient(#263744, #263744); transform: rotate(-1deg); }
.leaving .curtain { pointer-events: auto; visibility: visible; }
.leaving .curtain i { animation: cover-up .7s cubic-bezier(.6, 0, .3, 1) forwards; }
.leaving .curtain i:nth-child(2) { animation-delay: .1s; } .leaving .curtain i:nth-child(3) { animation-delay: .2s; }
@keyframes cover-up { to { top: -10%; } }
.leaving .title .ch { animation: fly .6s ease-in forwards !important; animation-delay: calc(var(--i) * 25ms) !important; }
@keyframes fly { to { opacity: 0; transform: translateY(-60%) rotate(calc(var(--r0) * -1)) scale(.8); } }

/* ===== スマホ縦 ===== */
@media (max-aspect-ratio: 4/5) {
  .hero { min-height: 600px; }
  .title { top: max(10vh, 64px); font-size: min(11.2vw, 7.4vh); }
  .lead { top: calc(max(10vh, 64px) + min(11.2vw, 7.4vh) * 2.4); font-size: clamp(13px, 3.8vw, 20px); letter-spacing: .06em; }
  .logo { left: 50%; transform: translateX(-50%); top: max(2.2vh, 14px); }
  .shelf { left: 0; right: 0; width: auto; bottom: 3vh; padding: 0 5vw; align-items: center; }
  .signs { padding-top: 2vh; gap: 4vw; width: 84vw; }
  .shelf .go-btn { margin: 2.4vh 0 0; }
  .face .back { font-size: 3vw; }
  .plaque { right: 50%; transform: translateX(50%); bottom: auto; top: 37vh; font-size: 4vw; }
  .plaque.show { animation-name: plaque-in-m; }
  .steps { grid-template-columns: 1fr; gap: 8vh; max-width: 460px; }
  .susuki.s1 { width: 22%; } .susuki.s2 { display: none; }
}
@keyframes plaque-in-m { 0% { opacity: 0; transform: translateX(50%) translateY(-40%) rotate(-12deg); } 12%, 86% { opacity: 1; transform: translateX(50%) rotate(0); } 100% { opacity: 0; transform: translateX(50%) translateY(20%); } }
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) { /* 正方形に近い画面 */
  .shelf { width: 60vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .title.split .ch { opacity: 1; }
  .step { opacity: 1; transform: none; }
  .ripple, .drop { display: none; }
}
.plaque.still { opacity: 1; animation: none; }
