/* tabibi 公式LP。値の正本は docs/design/visual-tokens.md。ぼかし・グラデーション・テクスチャは使わない。 */
:root {
  --ink: #141412; --white: #fff;
  --yellow: #FEE24D; --pink: #FF7DC7; --green: #43E08B; --blue: #3C82F5; --indigo: #2F45D8; --cream: #FFF6E5;
  --line: 2.5px solid var(--ink);
  --panel-w: clamp(360px, 30.6vw, 440px);
  --right-w: clamp(88px, 12vw, 173px);
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;

  /* ライト */
  --page-bg: var(--cream); --page-fg: var(--ink);
  --panel-border: var(--line);
  --s1: var(--white); --s2: var(--blue); --s3: var(--pink); --s4: var(--green); --s5: var(--white); --s6: var(--yellow);
  --num: var(--white); --num-dark: var(--white);
  --route-edge: var(--ink); --route-core: var(--blue);
  --logo-wrap: transparent; --logo-pad: 0;
  --focus: var(--indigo);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: var(--indigo); --page-fg: var(--white);
    --panel-border: 0 solid transparent;
    --s1: var(--cream); --s2: var(--indigo); --s3: var(--cream); --s4: var(--indigo); --s5: var(--cream); --s6: var(--cream);
    --num: var(--pink); --num-dark: var(--yellow);
    --route-edge: #2437B8; --route-core: #5B6DE8;
    --logo-wrap: var(--cream); --logo-pad: 10px;
    --focus: var(--yellow);
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-weight: 700; color: var(--page-fg); background: var(--page-bg); line-height: 1.5; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--yellow); color: var(--ink); border: var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 900; }
.skip:focus { top: 12px; }

/* 骨格: 左右は固定(sticky)、中央のパネルだけが流れる */
.page { position: relative; display: flex; align-items: flex-start; }
.left, .right { position: sticky; top: 0; height: 100vh; height: 100svh; }
.left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 3vh, 30px); padding: 0 24px; text-align: center; }
.right { flex: none; width: var(--right-w); }
.panel-col { flex: none; width: var(--panel-w); padding: 20px 0; position: relative; }
.panel { border-radius: 48px; overflow: clip; border: var(--panel-border); position: relative; isolation: isolate; color: var(--ink); }

/* 固定の飾りと見出し */
.bg-route { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.bg-route path { fill: none; stroke-linecap: round; }
.bg-route .edge { stroke: var(--route-edge); stroke-width: 22px; }
.bg-route .core { stroke: var(--route-core); stroke-width: 12px; }
/* ロゴは見える範囲で切り出してあるので、四方の余白は padding だけで決まる。インライン表示だと画像の下に行の余白が付くため、ブロックにする。 */
.site-logo { position: fixed; top: 28px; left: 40px; display: block; box-sizing: content-box; width: 128px; z-index: 5; background: var(--logo-wrap); padding: var(--logo-pad); border-radius: 14px; }
.site-logo img { display: block; width: 100%; height: auto; }
.menu { position: sticky; top: 40px; float: right; margin: 40px 40px 0 0; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: var(--line); display: grid; place-content: center; gap: 6px; cursor: pointer; z-index: 6; }
.menu i { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }
.copyright { position: absolute; right: 36px; bottom: 60px; writing-mode: vertical-rl; font-size: 12px; font-weight: 800; letter-spacing: .08em; }

/* 左の内容 */
/* キャラクターだけを背景なしで大きく置く。低い画面では高さに合わせて縮め、左の列から溢れさせない。 */
.character { width: clamp(120px, min(20vw, 26svh), 260px); height: auto; animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
h1 { font-weight: 900; font-size: clamp(30px, 3.5vw, 54px); line-height: 1.2; letter-spacing: -0.3px; }
.num { display: inline-block; color: var(--pink); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; stroke-linejoin: round; filter: drop-shadow(4px 4px 0 var(--ink)); margin: 0 .03em; }
@media (prefers-color-scheme: dark) { .num { color: var(--yellow); } }
.cta-row { position: relative; margin-top: 20px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 34px; background: var(--yellow); color: var(--ink); border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); font: inherit; font-weight: 900; font-size: 20px; text-decoration: none; transition: transform 80ms ease-out, box-shadow 80ms ease-out; }
.cta:hover, .cta:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.sticker { position: absolute; background: var(--green); color: var(--ink); border: var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; transform: rotate(-6deg); animation: wobble 3.2s ease-in-out infinite; white-space: nowrap; }
.cta-row .sticker { left: -22px; top: -24px; }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(-3deg) translateY(-3px); } }
.links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 13px; font-weight: 800; margin-top: clamp(8px, 3vh, 28px); }
.links a { text-underline-offset: 4px; }

/* パネルの節。節の境目は弧 */
.sec { position: relative; padding: 72px 28px 64px; text-align: center; }
.sec + .sec { padding-top: 110px; }
.sec + .sec::before { content: ""; position: absolute; left: -12%; right: -12%; top: -56px; height: 124px; background: inherit; border-top: var(--line); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.sec > * { position: relative; }
.s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); }
.s4 { background: var(--s4); } .s5 { background: var(--s5); } .s6 { background: var(--s6); }
@media (prefers-color-scheme: dark) {
  .s2, .s4 { color: var(--white); }
  .sec + .sec::before { border-top: 0; }
}
.catch-s { font-weight: 800; font-size: 17px; line-height: 1.5; color: var(--indigo); }
.shot { margin: 22px auto 0; width: 76%; border: 3px solid var(--ink); border-radius: 13% / 6%; overflow: hidden; background: var(--cream); box-shadow: 5px 5px 0 var(--ink); }
.shot img { width: 100%; }
.tilt-l { transform: rotate(-3deg); } .tilt-r { transform: rotate(3deg); }
.statement { font-weight: 900; font-size: 24px; line-height: 1.45; margin-top: 34px; }
.dots { border: 0; border-top: 5px dotted var(--ink); margin: 12px auto; width: 70%; }
.step-n { font-weight: 900; font-size: 84px; line-height: 1; color: var(--num); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; stroke-linejoin: round; filter: drop-shadow(5px 5px 0 var(--ink)); }
@media (prefers-color-scheme: dark) { .s2 .step-n, .s4 .step-n { color: var(--num-dark); } }
.sec h2 { font-weight: 900; font-size: 30px; letter-spacing: -.3px; line-height: 1.3; margin-top: 12px; }
.s1 h2 { margin-top: 0; font-size: 17px; }
.sec p.body { font-size: 16px; margin: 12px auto 0; max-width: 20em; text-wrap: pretty; word-break: auto-phrase; }
.promises { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; text-align: left; }
.promises li { background: var(--white); border: var(--line); border-radius: 20px; padding: 14px 18px; font-size: 15px; line-height: 1.6; text-wrap: pretty; word-break: auto-phrase; }
.foot-sec { padding-bottom: 150px; }
.foot-sec .cta { margin-top: 24px; }

/* 経路の点線。パネルの左右の余白に沿い、節の境目でだけ反対側へ渡る(site.js が引く) */
.route-dots { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.route-dots path { fill: none; stroke-linecap: round; stroke-dasharray: 0 24; }
.route-dots .edge { stroke: var(--ink); stroke-width: 17px; }
.route-dots .core { stroke: var(--white); stroke-width: 9px; }

/* スクロールで現れる */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.shot.tilt-l.reveal.in { transform: rotate(-3deg); } .shot.tilt-r.reveal.in { transform: rotate(3deg); }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .shot.tilt-l { transform: rotate(-3deg); } .no-js .shot.tilt-r { transform: rotate(3deg); }

/* メニュー */
.menu-dialog { border: var(--line); border-radius: 36px; padding: 28px; width: min(92vw, 420px); background: var(--cream); color: var(--ink); margin: auto; }
.menu-dialog::backdrop { background: rgba(20, 20, 18, .3); }
.menu-dialog nav { display: grid; gap: 12px; margin-top: 8px; }
.menu-dialog nav a { display: flex; align-items: center; min-height: 52px; padding: 0 22px; background: var(--white); border: var(--line); border-radius: 999px; font-weight: 800; text-decoration: none; }
.menu-dialog nav a:first-child { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.menu-close { display: grid; place-content: center; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: var(--line); background: var(--white); cursor: pointer; }
.menu-close i { grid-area: 1 / 1; width: 22px; height: 3px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
.menu-close i + i { transform: rotate(-45deg); }

/* 細い幅のデスクトップ: 点線の通る余白を保つ */
@media (min-width: 901px) and (max-width: 1200px) { .sec { padding-left: 52px; padding-right: 52px; } .shot { width: 70%; } }

/* スマホ: 1列。ロゴとメニューが上、ダウンロードバーが下に固定される */
.cta-bar { display: none; }
@media (max-width: 900px) {
  .page { display: block; }
  .right { position: static; height: 0; width: auto; }
  .menu { position: fixed; top: 16px; right: 16px; margin: 0; }
  .copyright { display: none; }
  .site-logo { top: 22px; left: 20px; width: 96px; }
  .left { position: static; height: auto; padding: 88px 20px 44px; }
  .character { width: min(200px, 52vw); }
  .left .links, .left .cta-row { display: none; }
  .panel-col { width: auto; padding: 0 12px 110px; }
  .panel { border-radius: 36px; }
  .route-dots, .bg-route { display: none; }
  .cta-bar { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; }
  .cta-bar .cta { width: 100%; }
  .cta-bar .sticker { left: -6px; top: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .3s; }
  .shot.tilt-l.reveal.in { transform: rotate(-3deg); } .shot.tilt-r.reveal.in { transform: rotate(3deg); }
  .character, .sticker { animation: none; }
  .cta { transition: none; }
}
