/*
 * 또쿠오카 소개 페이지.
 * 배치는 두 참고 사이트를 재해석했다. 둥근 액자 히어로·알약 메뉴·제목 속 그림 칩·흐르는 띠·
 * 어두운 기능 목록(왼쪽 항목이 켜지면 오른쪽 폰이 바뀜)·낱말 흰 알약은 Coorda 에서,
 * 밝은 가운데 제목·풍경 위 폰과 떠 있는 정보 카드·탭 전환 기능 소개는 Finora 에서.
 * 사진 자리는 앱의 클레이 그림과 동네 그림이 맡는다. 색은 앱 토큰(미색 바탕, 흰 카드, 먹색, 명란 핑크)에
 * 멘치 몸 색인 명란 주홍을 강조로.
 * 숨겨 두는 시작 상태는 html.motion 아래에만 둔다. 움직임 줄이기면 처음부터 다 보인다.
 */

:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --card: #ffffff;
  --ink: #10131a;
  --ink-2: #5d616a;
  --ink-3: #8b8f98;
  --line: #e4e2da;
  --mentai: #d9481f;
  --mentai-ink: #b23816;
  --key: #ffa9c4;
  --key-soft: #ffe3ec;
  --dark: #16181d;
  --dark-2: #1e2128;
  --night: #121726;
  --lantern: #ff6a3d;
  --glow: #ffc56b;
  --t-city: #ff8fb3;
  --t-near: #3fd1a0;
  --t-far: #f2c14e;
  --t-food: #ff7a45;
  --t-event: #9fb6ff;
  --frame: 28px;
  --shadow: 0 1px 2px rgba(16, 19, 26, .05), 0 12px 32px rgba(16, 19, 26, .08);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --num: 'Manrope', 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.6 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* 마지막 줄에 한 낱말만 남지 않게. 지원 안 하는 브라우저는 무시하고 지금 모양 그대로 */
  text-wrap: pretty;
}
[lang='ja'] { word-break: normal; }
/* 제목과 짧은 숫자 메모는 줄 길이를 고르게 */
h1, h2, h3, .lede, .sc-note, .f-meta { text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.12; font-weight: 800; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mentai); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 calc(var(--gutter) + env(safe-area-inset-right, 0px)) 0 calc(var(--gutter) + env(safe-area-inset-left, 0px)); }
.center { display: grid; justify-items: center; text-align: center; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.86); } }

/* 작은 알약 꼬리표 (Finora 의 섹션 머리표를 앱 톤으로) */
.tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px 0 11px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: 0 1px 2px rgba(16, 19, 26, .06); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--mentai); box-shadow: 0 0 0 3px rgba(217, 72, 31, .14); }
.tag.dark { background: rgba(255, 255, 255, .08); color: #d5d8e2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tag.dark i { background: var(--lantern); box-shadow: 0 0 10px var(--lantern); }
.sub { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); max-width: 34em; }

/* 낱말 흰 알약 (Coorda) */
.hl { background: var(--card); padding: .02em .3em .06em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: 0 1px 2px rgba(16, 19, 26, .06); }
.hl-w { display: inline-block; background: #fff; color: var(--dark); padding: 0 .2em .04em; border-radius: .2em; line-height: 1.16; }

/* 버튼 */
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; }
.web-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 4px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .92); text-decoration: none; border-bottom: 1.5px solid rgba(255, 255, 255, .4); transition: border-color .2s; }
.web-link:hover { border-color: #fff; }
.web-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn svg.apple { fill: currentColor; stroke: none; width: 19px; height: 19px; margin-top: -2px; }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.btn.white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .2); }
.btn.white:hover svg { transform: translate(2px, -2px); }
.btn.glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.line { min-height: 44px; padding: 0 18px; background: var(--card); color: var(--ink); font-size: 14px; box-shadow: 0 1px 2px rgba(16, 19, 26, .06); }
.btn.line:hover { transform: translateY(-2px); }
.btn.red-ink { color: var(--mentai-ink); }

/* ---------- 알약 메뉴 ---------- */
.nav { position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top, 0px)); left: 0; right: 0; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.nav-in { display: flex; gap: 4px; pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(22, 24, 29, .5); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .2s; }
.pill:hover { background: rgba(22, 24, 29, .72); }
.pill.brand { padding-left: 8px; }
.pill.brand img { width: 26px; height: 26px; border-radius: 8px; }
.pill.solid { background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(16, 19, 26, .14); }
.pill.solid:hover { background: #fff; transform: translateY(-1px); }

/* ---------- 1. 히어로 (둥근 액자) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin: 8px; border-radius: var(--frame); min-height: calc(100vh - 16px); min-height: calc(100svh - 16px); display: grid; place-items: center; padding: 104px 20px 150px; color: #fff; background: #141a3d; }
.sky { position: absolute; inset: 0; z-index: -2; }
.sky-l { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.sky-l[data-area='0'] { background: radial-gradient(80% 55% at 50% 108%, rgba(255, 201, 214, .55), transparent 62%), linear-gradient(#163b6c, #2f68a6 58%, #4b77b3); }
.sky-l[data-area='1'] { background: radial-gradient(80% 55% at 50% 108%, rgba(255, 128, 110, .5), transparent 62%), linear-gradient(#0f1338, #2a2866 58%, #533a78); }
.sky-l[data-area='2'] { background: radial-gradient(80% 55% at 50% 108%, rgba(255, 186, 204, .5), transparent 62%), linear-gradient(#183528, #33604a 58%, #5d7f5b); }
.sky-l[data-area='3'] { background: radial-gradient(80% 55% at 50% 108%, rgba(240, 214, 200, .5), transparent 62%), linear-gradient(#1c253d, #3f4e74 58%, #67739a); }
.glow { position: absolute; left: 50%; top: 44%; width: min(980px, 130vw); aspect-ratio: 1.1; transform: translate(-50%, -50%); filter: blur(70px) saturate(1.4); opacity: .5; pointer-events: none; }
.glow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero[data-area='0'] .sky-l[data-area='0'], .hero[data-area='1'] .sky-l[data-area='1'], .hero[data-area='2'] .sky-l[data-area='2'], .hero[data-area='3'] .sky-l[data-area='3'],
.hero[data-area='0'] .glow img[data-area='0'], .hero[data-area='1'] .glow img[data-area='1'], .hero[data-area='2'] .glow img[data-area='2'], .hero[data-area='3'] .glow img[data-area='3'] { opacity: 1; }

.hero-clay { position: absolute; z-index: -1; bottom: 62px; translate: 0 calc(var(--hy, 0) * 1px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .32)); pointer-events: none; }
.hc-left { left: 3%; width: clamp(108px, 15vw, 210px); }
.hc-right { right: 2%; width: clamp(150px, 23vw, 330px); }
.motion .hc-left { animation: pop 1.1s var(--spring) .55s both; }
.motion .hc-right { animation: pop 1.1s var(--spring) .7s both; }

.hero-copy { position: relative; display: grid; justify-items: center; text-align: center; max-width: 1000px; }
.glass-tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 700; }
.hero-title { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .04em .2em; margin: 22px 0 20px; font-size: clamp(54px, 9.4vw, 128px); line-height: 1.06; letter-spacing: -.06em; text-shadow: 0 4px 30px rgba(0, 0, 0, .18); }
.hero-title .w { display: inline-block; }
.chip { position: relative; display: inline-block; flex: none; width: 1.6em; height: .84em; border-radius: .24em; overflow: hidden; background: linear-gradient(#fffaf6, #ffe3ec); box-shadow: 0 0 0 .045em rgba(255, 255, 255, .65), 0 .12em .34em rgba(0, 0, 0, .28); transform: rotate(-3deg); }
.chip img { position: absolute; left: 50%; top: 56%; width: 112%; max-width: none; transform: translate(-50%, -50%) scale(.86); opacity: 0; transition: opacity .55s var(--ease), transform .8s var(--spring); }
.hero[data-area='0'] .chip img[data-area='0'], .hero[data-area='1'] .chip img[data-area='1'], .hero[data-area='2'] .chip img[data-area='2'], .hero[data-area='3'] .chip img[data-area='3'] { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sticker { flex: none; width: .7em; height: .7em; transform: rotate(10deg); filter: drop-shadow(0 .06em .1em rgba(0, 0, 0, .28)); }
.motion .hero-title > * { animation: rise .9s var(--ease) both; animation-delay: calc(.1s + var(--i) * .12s); }
.motion .hero-title > .sticker { animation: rise .9s var(--spring) both, wob 3.4s ease-in-out 1.4s infinite; animation-delay: .46s, 1.4s; }
@keyframes wob { 50% { transform: rotate(-6deg) translateY(-.05em); } }
.lede { max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .88); line-height: 1.6; }
.motion .hero .glass-tag, .motion .hero .lede, .motion .hero .cta-row, .motion .hero .web-link { animation: fadeUp .8s var(--ease) both; }
.motion .hero .lede { animation-delay: .45s; }
.motion .hero .cta-row { animation-delay: .58s; }
.motion .hero .web-link { animation-delay: .66s; }

/* 동네 이름 띠 (Coorda 의 로고 띠 자리) */
.band { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 0 22px; overflow: hidden; background: linear-gradient(transparent, rgba(6, 8, 22, .42)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.band-track { display: flex; width: max-content; }
.band-row { display: flex; gap: 38px; padding-right: 38px; }
.band span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.band span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--key); }
.band b { font-size: 18px; font-weight: 800; color: #fff; }
.is-off .hc-left, .is-off .hc-right, .is-off .sticker { animation-play-state: paused; }

/* ---------- 2. 한 문장 소개 + 숫자 카드 ---------- */
.intro { padding: 96px 0 88px; }
.intro-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.statement { font-size: clamp(26px, 3.3vw, 42px); line-height: 1.5; letter-spacing: -.035em; font-weight: 700; max-width: 21em; }
/* 알약이 왼쪽에서 깔린다 */
.motion .intro .hl { background: linear-gradient(#fff, #fff) no-repeat 0 0 / 0% 100%; box-shadow: none; transition: background-size .7s var(--ease), box-shadow .4s; transition-delay: calc(.15s + var(--k) * .18s); }
.statement .hl { white-space: nowrap; padding-inline: .2em; }
.motion .intro-head.is-in .hl { background-size: 100% 100%; box-shadow: 0 1px 2px rgba(16, 19, 26, .06); }

.stat-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1120px; margin: 44px auto 0; padding: 0 var(--gutter); }
.stat-cards li { position: relative; display: flex; flex-direction: column; min-height: 318px; padding: 20px 20px 0; border-radius: 24px; background: var(--card); overflow: hidden; }
.sc-no { font: 700 13px/1 var(--num); color: var(--ink-3); }
.sc-name { margin-top: 12px; font-size: 17px; letter-spacing: -.03em; }
.sc-num { margin-top: 2px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.sc-num b { margin-right: 3px; font: 800 clamp(40px, 4vw, 52px)/1.05 var(--num); letter-spacing: -.05em; color: var(--ink); }
.sc-note { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.stat-cards img { width: auto; max-width: 74%; height: 132px; object-fit: contain; margin: auto auto -10px; transition: transform .5s var(--spring); }
.stat-cards li:hover img { transform: translateY(-8px) rotate(-4deg) scale(1.05); }
.motion .stat-cards li { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k) * 80ms); }
.motion .stat-cards.is-in li { opacity: 1; transform: none; }

/* ---------- 3. 오늘 화면 (풍경 위 폰 + 떠 있는 카드) ---------- */
.today { position: relative; z-index: 1; padding: 24px 0 88px; background: var(--bg); border-radius: 0 0 32px 32px; }
.today h2 { margin: 18px 0 14px; font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -.05em; }
.scene { --p: .5; --mx: 0; --my: 0; position: relative; isolation: isolate; overflow: hidden; height: clamp(540px, 58vw, 680px); margin-top: 40px; border-radius: var(--frame); }
.scene-sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(40% 30% at 76% 18%, rgba(255, 255, 255, .9), transparent 70%), linear-gradient(#b9daf0 0%, #e2ebf0 44%, #ffe6ee 76%, #ffd3df 100%); }
.cloud { position: absolute; height: 34px; border-radius: 999px; background: #fff; opacity: .85; filter: blur(5px); }
.cloud.c1 { width: 170px; top: 13%; left: 12%; }
.cloud.c2 { width: 230px; top: 26%; right: 8%; }
.cloud.c3 { width: 120px; top: 6%; left: 56%; }
.motion .cloud { animation: drift 38s ease-in-out infinite alternate; }
.motion .cloud.c2 { animation-duration: 52s; animation-direction: alternate-reverse; }
.motion .cloud.c3 { animation-duration: 30s; }
@keyframes drift { to { translate: 90px 0; } }
.is-off .cloud { animation-play-state: paused; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; z-index: -1; }
.hill { position: absolute; bottom: -3%; width: clamp(150px, 25%, 300px); translate: 0 calc((1 - var(--p)) * 46px); filter: drop-shadow(0 16px 20px rgba(140, 60, 90, .16)); }
.hill.h1 { left: -1%; }
.hill.h2 { left: 18%; bottom: 8%; width: clamp(110px, 17%, 220px); }
.hill.h3 { right: 18%; bottom: 8%; width: clamp(110px, 17%, 220px); }
.hill.h4 { right: -1%; }
.scene-phone { position: absolute; left: 50%; top: 9%; z-index: 1; width: clamp(196px, 26%, 296px); aspect-ratio: 600 / 1304; padding: 8px; border-radius: 42px; background: #0b0d12; translate: -50% calc((1 - var(--p)) * 90px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 34px 70px rgba(60, 24, 50, .32); }
.scene-phone::before { content: ''; position: absolute; z-index: 2; top: 18px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #0b0d12; }
.scene-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }

.float { position: absolute; z-index: 2; width: clamp(150px, 21%, 240px); padding: 14px 16px 15px; border-radius: 20px; background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgba(16, 19, 26, .06), 0 18px 40px rgba(70, 30, 60, .16); translate: calc(var(--mx) * var(--d) * 1px) calc((.5 - var(--p)) * var(--s) * 1px + var(--my) * var(--d) * 1px); }
.f-rate { left: 6%; top: 11%; }
.f-train { right: 6%; top: 15%; }
.f-yatai { left: 5%; bottom: 13%; }
.f-tax { right: 5%; bottom: 16%; }
.f-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.f-label img { width: 26px; height: 26px; object-fit: contain; }
.f-big { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.f-big b { font: 800 30px/1.1 var(--num); letter-spacing: -.04em; color: var(--ink); }
.f-name { margin-top: 6px; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.f-name span { font-weight: 700; color: var(--ink-3); font-size: 15px; }
.f-meta { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.f-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.f-tags span { padding: 3px 8px; border-radius: 999px; background: #f2f1ec; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.f-tags span:last-child { background: var(--key-soft); color: #9a2c4d; }
.motion .float { opacity: 0; scale: .88; transition: opacity .6s var(--ease), scale .8s var(--spring); transition-delay: calc(.25s + var(--k) * .14s); }
.motion .scene.is-in .float { opacity: 1; scale: 1; }
.scene-note { margin: 14px auto 0; max-width: 52em; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 4. 어두운 기능 목록 ---------- */
.story { --sg: rgba(255, 122, 69, .22); position: relative; margin-top: -32px; padding-top: 32px; background: var(--dark); color: #fff; }
.story[data-scene='taxi'] { --sg: rgba(255, 169, 196, .26); }
.story[data-scene='log'] { --sg: rgba(63, 209, 160, .2); }
.story[data-scene='depart'] { --sg: rgba(159, 182, 255, .24); }
.story-pin { padding: 96px 0 120px; }
.motion .story { height: 400vh; }
.motion .story-pin { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; padding: 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; width: 100%; }
.story-grid > * { min-width: 0; }
.story-left { display: flex; flex-direction: column; gap: 28px; min-height: min(620px, 80svh); padding: 64px 0 28px; }
.story h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; font-weight: 700; letter-spacing: -.045em; }
.feat { position: relative; display: grid; gap: 4px; }
.feat-btn { display: inline-block; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .55); font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s; }
.feat-btn:hover { color: #fff; }
.feat-item.is-active .feat-btn { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.feat-desc { max-width: 30em; padding: 4px 14px 12px; font-size: 15.5px; line-height: 1.6; color: #b0b5c3; }
.motion .feat-item:not(.is-active) .feat-desc { display: none; }
.motion .feat-item.is-active .feat-desc { animation: fadeUp .5s var(--ease); }
.story-foot { display: grid; justify-items: start; gap: 16px; margin-top: auto; }
.story-foot p { font-size: 15px; color: #c8ccd8; }
.story-panel { position: relative; display: grid; place-items: center; height: min(700px, 86svh); border-radius: 24px; overflow: hidden; background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.story-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 58%, var(--sg), transparent 72%); transition: background .8s var(--ease); }
.phone { --h: min(600px, calc(86svh - 100px)); position: relative; height: var(--h); aspect-ratio: 600 / 1304; border-radius: calc(var(--h) * .075); background: #0b0d12; padding: calc(var(--h) * .016); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 80px rgba(0, 0, 0, .45); transition: transform .8s var(--ease); }
.phone::before { content: ''; position: absolute; z-index: 3; top: calc(var(--h) * .03); left: 50%; width: 30%; height: calc(var(--h) * .03); transform: translateX(-50%); background: #0b0d12; border-radius: 999px; }
.shot { position: absolute; inset: calc(var(--h) * .016); width: calc(100% - var(--h) * .032); height: calc(100% - var(--h) * .032); object-fit: cover; border-radius: calc(var(--h) * .06); opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.phone[data-scene='food'] .shot[data-shot='food'],
.phone[data-scene='taxi'] .shot[data-shot='taxi'],
.phone[data-scene='log'] .shot[data-shot='log'],
.phone[data-scene='depart'] .shot[data-shot='depart'] { opacity: 1; transform: none; }
/* 기사님께 내미는 손짓: 폰이 앞으로 기울며 커진다 */
.phone[data-scene='taxi'] { transform: perspective(1200px) rotateY(-14deg) rotateX(6deg) scale(1.05); }
.story-bar { position: absolute; bottom: 18px; left: 50%; display: flex; gap: 6px; translate: -50% 0; }
.story-bar li { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: width .4s var(--ease), background-color .3s; }
.story-bar li.is-on { width: 34px; background: #fff; }

/* ---------- 5. 면세 계산기 ---------- */
.tax { position: relative; z-index: 1; margin-top: -32px; padding: 128px 0 104px; background: var(--bg); border-radius: 32px 32px 0 0; }
.tax .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tax h2 { margin: 18px 0 18px; font-size: clamp(36px, 5vw, 60px); }
.tax h2 .hl { box-shadow: 0 1px 2px rgba(16, 19, 26, .06); }
.tax-copy > p { max-width: 30em; font-size: 17px; color: var(--ink-2); }
.tax-rules { display: grid; gap: 10px; margin-top: 24px; }
.tax-rules li { position: relative; padding-left: 26px; font-weight: 600; }
.tax-rules li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--key-soft); box-shadow: inset 0 0 0 2px var(--key); }

.calc { display: grid; gap: 16px; padding: 24px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.calc-head { display: flex; justify-content: space-between; align-items: center; min-height: 64px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.calc-menchi { width: 64px; height: 64px; object-fit: contain; transition: transform .4s var(--spring); }
.calc-menchi.is-bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: translateY(-8px) rotate(-6deg) scale(1.06); } }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.yen-input { display: flex; align-items: baseline; gap: 4px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.yen-input i { font: 800 34px/1 var(--num); font-style: normal; color: var(--ink-3); }
.yen-input input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font: 800 44px/1.1 var(--num); letter-spacing: -.04em; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.yen-input input:focus { outline: none; }
.yen-input:focus-within { border-color: var(--mentai); }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range { width: 100%; height: 28px; margin: 0; accent-color: var(--mentai); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { padding: 7px 12px; border: 0; border-radius: 999px; background: #f2f1ec; font: 700 14px/1 var(--num); cursor: pointer; transition: background-color .2s, transform .15s; }
.quick button:hover { background: var(--key-soft); }
.quick button:active { transform: scale(.96); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 4px; border: 0; border-radius: 14px; background: #f2f1ec; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 19, 26, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--mentai); outline-offset: 1px; }
.field.small { grid-template-columns: 1fr auto; align-items: center; }
.field.small input { width: 96px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfaf7; font: 700 16px/1 var(--num); text-align: right; }
.field.small input:focus { outline: none; border-color: var(--mentai); }

.receipt { position: relative; overflow: hidden; padding: 18px 20px 20px; border-radius: 20px; background: var(--ink); color: #fff; }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px; background: radial-gradient(circle at 8px 10px, var(--card) 6px, transparent 6.5px) 0 0 / 16px 10px repeat-x; }
.rc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #a9aec0; }
.badge { padding: 4px 10px; border-radius: 999px; background: rgba(63, 209, 160, .16); color: #6fe0b9; font-size: 12px; transition: background-color .3s, color .3s; }
.badge[data-state='under'] { background: rgba(255, 169, 196, .18); color: var(--key); }
.rc-big { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 12px; font-size: 22px; font-weight: 800; transition: opacity .3s; }
.rc-big b { font: 800 clamp(44px, 5vw, 56px)/1 var(--num); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.receipt.is-under .rc-big { opacity: .4; }
.rc-rows { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .2); }
.rc-rows div { display: flex; justify-content: space-between; font-size: 14px; color: #c9cde0; }
.rc-rows dd { font: 700 15px/1.4 var(--num); color: #fff; }
.rc-note { margin-top: 10px; padding-bottom: 6px; font-size: 13px; color: #a9aec0; }
.receipt.is-under .rc-note { color: var(--key); font-weight: 700; }

/* ---------- 6. 밤 야타이 (둥근 밤 액자) ---------- */
.night { position: relative; overflow: hidden; margin: 0 8px; padding: 104px 0 96px; border-radius: var(--frame); background: radial-gradient(120% 80% at 80% 100%, #2a2240 0%, transparent 60%), linear-gradient(var(--night), #171c2e); color: #f3f1ea; }
.night .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.night h2 { margin: 18px 0 18px; font-size: clamp(38px, 5.4vw, 68px); }
.night h2 .hl-w { color: var(--night); }
.night-copy p { max-width: 28em; font-size: 17px; color: #b7bccd; }
.night-count { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; }
.night-count b { min-width: 1.3em; font: 800 clamp(64px, 8vw, 104px)/1 var(--num); letter-spacing: -.05em; color: var(--glow); text-shadow: 0 0 30px rgba(255, 140, 60, .45); font-variant-numeric: tabular-nums; }
.night-count span { font-size: 18px; font-weight: 700; color: #8f96ad; }
.night-copy .night-src { margin-top: 12px; font-size: 12.5px; color: #7d8399; }
.night-stage { position: relative; padding-bottom: 210px; }
.lanterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); grid-auto-rows: 48px; justify-items: center; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .13) 0 1px, transparent 1px 48px); }
.lanterns i { position: relative; width: 16px; height: 22px; margin-top: 9px; border-radius: 7px; background: #2b3149; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); transform-origin: 50% -9px; transition: background-color .35s, box-shadow .5s; }
.lanterns i::before { content: ''; position: absolute; left: 50%; top: -9px; width: 1px; height: 9px; background: rgba(255, 255, 255, .25); }
.lanterns i::after { content: ''; position: absolute; left: 3px; right: 3px; top: -2px; height: 3px; border-radius: 2px; background: #1a1f30; }
.lanterns i:nth-child(3n) { margin-top: 14px; }
.lanterns i:nth-child(4n+1) { margin-top: 11px; }
.lanterns i.on { background: radial-gradient(circle at 50% 40%, #ffd890, var(--lantern) 60%, #c8381a); box-shadow: 0 0 14px rgba(255, 120, 60, .75), 0 0 34px rgba(255, 106, 61, .3); }
.motion .lanterns i.on { animation: sway 3.2s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
@keyframes sway { 50% { transform: rotate(5deg); } }
.night-yatai { position: absolute; right: 4%; bottom: -6px; width: 160px; filter: drop-shadow(0 0 40px rgba(255, 140, 60, .35)); }
.night-noren { position: absolute; left: 0; bottom: 40px; font-size: clamp(56px, 7vw, 92px); font-weight: 900; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 197, 107, .35); }
.is-off .lanterns i { animation-play-state: paused; }

/* ---------- 7. 여행 카드 ---------- */
.cards { padding: 112px 0 88px; overflow: hidden; }
.cards-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.cards h2 { margin-bottom: 16px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
.cards-head p { max-width: 34em; font-size: 17px; color: var(--ink-2); }
.deck-wrap { position: relative; margin-top: 16px; }
.deck { display: flex; gap: 18px; overflow-x: auto; padding: 30px max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))) 56px; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.deck li { flex: none; scroll-snap-align: start; }
.motion .deck li { opacity: 0; transform: translateX(80px) rotate(6deg); transition: opacity .6s var(--ease), transform .8s var(--spring); transition-delay: calc(var(--k, 0) * 80ms); }
.motion .deck.is-in li { opacity: 1; transform: none; }

.tcard { --rx: 0deg; --ry: 0deg; --fa: 0deg; --glow: var(--t-city); display: block; width: 216px; height: 304px; padding: 0; border: 0; border-radius: 18px; background: none; cursor: pointer; perspective: 900px; }
.tcard.t-near { --glow: var(--t-near); }
.tcard.t-far { --glow: var(--t-far); }
.tcard.t-event { --glow: var(--t-event); }
.tc-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip, 0deg))); transition: transform .7s var(--ease); }
.tcard.is-tilting .tc-inner { transition: transform .12s linear; }
.tcard[aria-pressed='true'] { --flip: 180deg; }
.tc-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; border-radius: 18px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tc-front { justify-content: flex-end; padding: 14px 12px 16px; background: radial-gradient(120% 70% at 50% 30%, #3a2e5c 0%, #1b1d36 70%); border: 3px solid var(--glow); box-shadow: 0 0 0 4px #1b1d36, 0 0 0 5px rgba(255, 255, 255, .15), 0 18px 34px rgba(27, 29, 54, .35); color: #fff; }
.tc-front::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; pointer-events: none; }
.tc-front::after { content: ''; position: absolute; inset: 0; background: conic-gradient(from var(--fa) at 50% 45%, transparent 0deg, rgba(255, 255, 255, .26) 40deg, transparent 90deg, rgba(255, 220, 240, .2) 180deg, transparent 240deg, rgba(200, 240, 255, .22) 300deg, transparent 360deg); mix-blend-mode: soft-light; opacity: .55; transition: opacity .3s; pointer-events: none; }
.tcard:hover .tc-front::after, .tcard.is-tilting .tc-front::after { opacity: 1; }
.tc-front img { position: absolute; top: 26px; left: 50%; width: 88%; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.tc-front b { position: relative; font-size: 19px; letter-spacing: -.04em; }
.tc-front small { position: relative; font-size: 12px; font-weight: 700; color: var(--glow); }
.tc-back { transform: rotateY(180deg); justify-content: center; gap: 10px; padding: 22px 18px; background: #fffaf3; border: 3px solid var(--glow); color: var(--ink); text-align: center; box-shadow: 0 18px 34px rgba(27, 29, 54, .2); }
.stamp { display: grid; place-items: center; width: 92px; height: 92px; padding: 8px; border: 2.5px solid var(--mentai); border-radius: 50%; color: var(--mentai); font-size: 18px; font-weight: 900; line-height: 1.1; transform: rotate(-10deg); box-shadow: inset 0 0 0 4px #fffaf3, inset 0 0 0 5.5px rgba(217, 72, 31, .5); word-break: break-all; }
.tc-back b { font-size: 18px; letter-spacing: -.04em; }
.tc-line { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tc-back small { font-size: 12px; font-weight: 700; color: var(--ink-3); }

.deck-nav { display: flex; flex: none; gap: 8px; }
.deck-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s var(--ease); }
.deck-btn:hover { transform: translateY(-2px); }
.deck-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.collect { padding: 18px 20px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 2px rgba(16, 19, 26, .05); }
.collect-label { font-weight: 700; color: var(--ink-2); }
.collect-label b { font: 800 26px/1 var(--num); letter-spacing: -.04em; color: var(--ink); }
.dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #e3e0d7; transition: background-color .3s, transform .4s var(--spring); }
.dots i.on { transform: scale(1.25); }
.dots i.city.on { background: var(--t-city); }
.dots i.near.on { background: var(--t-near); }
.dots i.far.on { background: var(--t-far); }
.dots i.food.on { background: var(--t-food); }
.dots i.event.on { background: var(--t-event); }
.collect-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lg::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.lg.city::before { background: var(--t-city); }
.lg.near::before { background: var(--t-near); }
.lg.far::before { background: var(--t-far); }
.lg.food::before { background: var(--t-food); }
.lg.event::before { background: var(--t-event); }

/* ---------- 8. 그 밖에 (탭 전환) ---------- */
.more { padding: 40px 0 112px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.more h2 { margin: 18px 0 14px; font-size: clamp(34px, 4.6vw, 56px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs [role='tab'] { height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.tabs [role='tab']:hover { color: var(--ink); border-color: #cfccc2; }
.tabs [role='tab'][aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-panels { margin-top: 16px; padding: 18px 22px; min-height: 116px; border-radius: 18px; background: #ebe9e2; }
.tab-panels li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.6; }
.tab-panels li + li { margin-top: 4px; }
.tab-panels li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.tab-panels [role='tabpanel']:focus-visible { outline-offset: 6px; }
.motion .tab-panels [role='tabpanel']:not([hidden]) { animation: fadeUp .45s var(--ease); }

.more-stage { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: 480px; border-radius: var(--frame); background: linear-gradient(#ffd7e2 0%, #ffe9e0 55%, #fff3e6 100%); }
.more-stage::before, .more-stage::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.more-stage::before { left: -20%; right: 30%; bottom: -38%; height: 70%; background: #cfe6c4; }
.more-stage::after { left: 30%; right: -25%; bottom: -44%; height: 70%; background: #b7dbb0; }
.stage-sun { position: absolute; z-index: -1; top: 12%; right: 14%; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, #fff7d6, #ffd98a 70%); box-shadow: 0 0 60px rgba(255, 210, 120, .6); }
.stage-img { position: absolute; top: 50%; left: 50%; width: auto; height: min(260px, 58%); max-width: 70%; object-fit: contain; opacity: 0; transform: translate(-50%, -46%) scale(.82) rotate(-6deg); transition: opacity .45s var(--ease), transform .7s var(--spring); filter: drop-shadow(0 22px 26px rgba(120, 60, 60, .2)); }
.stage-img.is-on { opacity: 1; transform: translate(-50%, -52%); }
.stage-card { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; color: var(--ink-3); box-shadow: 0 8px 20px rgba(80, 40, 50, .12); }
.stage-no { font: 800 15px/1 var(--num); color: var(--ink); }
.stage-bar { position: relative; display: block; width: 56px; height: 3px; margin-left: 6px; overflow: hidden; border-radius: 2px; background: rgba(16, 19, 26, .12); }
.stage-bar i { position: absolute; inset: 0; background: var(--mentai); transform: scaleX(0); transform-origin: 0 50%; }
.more-stage.is-manual .stage-bar { display: none; }

/* ---------- 9. 마무리 (둥근 주홍 액자) ---------- */
.closer { position: relative; overflow: hidden; margin: 0 8px 8px; padding: 96px 0 104px; border-radius: var(--frame); background: var(--mentai); color: #fff; text-align: center; }
.closer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none; }
.wordmark { position: relative; display: flex; justify-content: center; font-size: clamp(76px, 17vw, 220px); line-height: 1; letter-spacing: -.07em; }
.wordmark span { display: inline-block; }
.motion .wordmark span { opacity: 0; transform: translateY(-80px) rotate(-8deg); }
.motion .closer.is-in .wordmark span { animation: drop .8s var(--spring) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes drop { to { opacity: 1; transform: none; } }
.closer-menchi { position: relative; width: 120px; margin: 8px auto 0; filter: drop-shadow(0 14px 18px rgba(80, 20, 0, .3)); }
.motion .closer.is-in .closer-menchi { animation: hop 1.6s var(--ease) .5s infinite; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 20% { transform: translateY(-22px) rotate(-4deg); } 40% { transform: translateY(0) scaleY(.92); } }
.closer.is-off .closer-menchi { animation-play-state: paused; }
.closer-line { position: relative; margin-top: 20px; font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, .92); }

.foot { padding: 28px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .stat-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 6px; }
  .stat-cards::-webkit-scrollbar { display: none; }
  .stat-cards li { flex: 0 0 38%; scroll-snap-align: start; }
  .night .wrap, .tax .wrap, .more-grid { grid-template-columns: 1fr; gap: 36px; }
  .more-stage { min-height: 380px; }
  .intro-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --frame: 24px; }
  .hero { align-items: start; padding: 96px 16px 150px; }
  .hero-title { margin: 18px 0 16px; }
  .band { padding: 24px 0 16px; }
  .band span { font-size: 13px; }
  .band b { font-size: 15px; }
  .intro { padding: 72px 0 64px; }
  .stat-cards li { flex-basis: 66%; min-height: 290px; }
  .today { padding-bottom: 64px; }
  .scene { height: 560px; margin-top: 28px; }
  .scene-phone { top: 12%; width: 188px; border-radius: 32px; padding: 6px; }
  .scene-phone img { border-radius: 27px; }
  .scene-phone::before { top: 13px; height: 15px; }
  .hill { width: 132px; }
  .hill.h2, .hill.h3 { width: 104px; bottom: 6%; }
  .hill.h2 { left: 14%; }
  .hill.h3 { right: 14%; }
  .float { width: 150px; padding: 10px 12px 11px; border-radius: 16px; }
  .f-rate { left: 10px; top: 16px; }
  .f-train { right: 10px; top: 150px; }
  .f-yatai { left: 10px; bottom: 26px; }
  .f-tax { display: none; }
  .f-yatai { width: 164px; }
  .f-tags span { padding: 2px 7px; font-size: 10.5px; }
  .f-yatai .f-tags span:nth-child(2) { display: none; }
  .f-big b { font-size: 24px; }
  .f-name { font-size: 15px; }
  .f-name span { font-size: 13px; }
  .f-label img { width: 22px; height: 22px; }

  /* 어두운 기능 목록: 위에 제목, 가로 알약 목록, 켜진 항목 설명, 그 아래 폰 */
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .story-left { min-height: 0; padding: 0; gap: 14px; }
  .story h2 { font-size: 30px; }
  .story-panel { height: 56svh; min-height: 340px; }
  .phone { --h: calc(56svh - 56px); }
  .phone[data-scene='taxi'] { transform: perspective(900px) rotateY(-10deg) rotateX(4deg) scale(1.03); }
  .motion .story-pin { align-items: flex-start; padding-top: 68px; }
  .motion .feat { display: flex; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 84px; overflow-x: auto; scrollbar-width: none; }
  .motion .feat::-webkit-scrollbar { display: none; }
  .motion .feat-item { flex: none; }
  .motion .feat-btn { padding: 8px 13px; font-size: 14px; white-space: nowrap; background: rgba(255, 255, 255, .06); }
  .story-left { position: relative; }
  .motion .feat { position: static; }
  /* 설명은 가로로 밀리는 목록 밖(.story-left 기준)에 고정해 스크롤과 함께 잘리지 않게 */
  .motion .feat-desc { position: absolute; left: 0; right: 0; bottom: 8px; max-width: none; padding: 0; font-size: 14.5px; }
  .motion .story-foot { display: none; }
  .story-pin { padding: 72px 0 96px; }

  .tax { padding: 100px 0 72px; }
  .calc { padding: 18px; border-radius: 24px; }
  .yen-input input { font-size: 38px; }
  .night { padding: 72px 0; }
  .lanterns { grid-template-columns: repeat(auto-fill, minmax(22px, 1fr)); grid-auto-rows: 42px; background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .13) 0 1px, transparent 1px 42px); }
  .lanterns i { width: 13px; height: 18px; }
  .night-yatai { width: 120px; }
  .night-stage { padding-bottom: 160px; }
  .cards { padding: 80px 0 64px; }
  .cards-head { flex-direction: column; align-items: flex-start; }
  .tcard { width: 196px; height: 278px; }
  .more { padding: 24px 0 80px; }
  .tabs [role='tab'] { height: 38px; padding: 0 12px; font-size: 13.5px; }
  .tab-panels li { font-size: 15px; }
  .more-stage { min-height: 320px; }
  .closer { padding: 72px 0 80px; }
  .closer-line { font-size: 15px; }
}

/* 모바일: 웹판 버튼은 히어로와 마무리에 있으니 빼고, 섹션 메뉴를 남긴다. 브랜드는 아이콘만 */
@media (max-width: 560px) {
  .pill.solid { display: none; }
  .pill.brand span { display: none; }
  .pill.brand { padding: 0 7px; }
  .pill { height: 38px; padding: 0 13px; font-size: 13.5px; }
}

@media (max-width: 380px) {
  .nav-in { gap: 3px; }
  .pill { padding: 0 11px; font-size: 13px; }
  .float { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* 메뉴 이동: 누른 알약이 톡 눌리고, 도착한 섹션 제목이 살짝 떠오른다 (site.js initJump) */
.motion .is-press { animation: jump-press .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jump-press { 40% { transform: scale(.9); } }
.motion .is-arrive h2 { animation: jump-arrive .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes jump-arrive { from { transform: translateY(14px); opacity: .35; } }
section[tabindex="-1"]:focus { outline: none; }

/* ---------- 또쿠오카 시리즈: 일본어 앱 둘(멘치카나, 멘치보카)로 가는 카드. 마무리 바로 앞 ---------- */
.series { padding: 8px 0 104px; }
.series-head { display: grid; justify-items: center; text-align: center; }
.series h2 { margin: 18px 0 12px; font-size: clamp(34px, 4.6vw, 56px); }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.series .s-card { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; min-height: 340px; padding: 24px 24px 26px; border-radius: 24px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.series .s-kana { background: linear-gradient(160deg, #fff 30%, #ffe3ec 75%, #ffc9d9); }
.series .s-voca { background: linear-gradient(160deg, #fff 30%, #fff3cc 75%, #ffe08a); }
.series .s-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.series .s-glyph { position: absolute; z-index: -1; right: 18px; top: 10px; font: 800 clamp(64px, 8vw, 104px)/1 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; letter-spacing: -.02em; color: rgba(232, 69, 107, .14); }
.series .s-glyph b { color: rgba(47, 111, 224, .14); }
.series .s-voca .s-glyph { color: rgba(138, 93, 0, .13); }
.series .s-clay { position: absolute; z-index: -1; right: 4%; bottom: -6px; width: auto; height: 62%; max-width: 46%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(16, 19, 26, .14)); transition: transform .5s var(--spring); }
.series .s-card:hover .s-clay { transform: translateY(-8px) rotate(-4deg); }
.series .s-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.series .s-icon { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 6px 16px rgba(16, 19, 26, .12); }
.series .s-kicker { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.series .s-kana .s-kicker { color: #b8264c; }
.series .s-voca .s-kicker { color: #8a5d00; }
.series .s-name { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.05em; }
.series .s-line { max-width: 18em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.series .s-state { margin-top: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.series .s-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 800; }
.series .s-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.series .s-card:hover .s-go svg { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .series { padding: 0 0 72px; }
  .series-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .series .s-card { min-height: 0; padding: 20px 20px 22px; }
  .series .s-line { max-width: none; margin-bottom: 16px; }
  /* 좁은 폭에서는 클레이를 오른쪽 위로 올려 글과 겹치지 않게 */
  .series .s-clay { top: 12px; bottom: auto; right: 14px; height: 108px; max-width: 34%; }
  .series .s-glyph { display: none; }
}

/* 11-19 가치가자: 마무리 칸은 앱 브랜드 색(하늘 바탕, 밤 남색 글자, 「치」만 빨강) */
.closer { background: #bfddfb; color: #26365a; }
.closer .wm-chi { color: #f0503c; }
.closer-line { color: #26365a; }
.closer .btn.glass { color: #26365a; border-color: rgba(38, 54, 90, .25); background: rgba(255, 255, 255, .45); }

/* 11-19 마무리 칸 이름은 앱 스플래시와 같은 영문 워드마크(gachigaja, chi 만 빨강) */
.closer-title { position: relative; display: flex; justify-content: center; }
.closer-mark { display: block; width: min(560px, 78vw); height: auto; }
