:root {
  --paper: #F4F2EE;
  --ink: #16181C;
  --ink-2: #3F4654;
  --muted: #6D7483;
  --navy: #17355F;
  --blue: #3B5998;
  --yellow: #F2C230;
  --line: #DAD6CC;
  --hh: 70px;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --latin: Inter, "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  overflow-x: clip;
}
a { color: var(--blue); }
.sp { display: none; }
.pc { display: inline; }
:focus-visible { outline: 3px solid #8293AA; outline-offset: 3px; }

/* ヘッダー（読みもののページと同じ形） */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--hh); background: rgba(11, 20, 38, .96); color: #fff; }
.site-header__inner { width: min(1160px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex-direction: column; color: #fff; line-height: 1.25; text-decoration: none; }
.brand strong { font-family: var(--serif); font-size: 16px; letter-spacing: .035em; }
.brand small { color: #B7C6DF; font-family: var(--latin); font-size: 10px; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav a { color: #E6ECF6; font-size: 13px; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav .header-cta { padding: 9px 16px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; }

/* ボタン */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn-y { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 #B98F10; }
.btn-y:hover { transform: translateY(2px); box-shadow: 0 4px 0 #B98F10; }
.btn-line { border: 2px solid currentColor; color: var(--ink); }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-family: var(--latin); font-size: 12px; font-weight: 800; letter-spacing: .14em; }

/* ---------- スクロールの場面 ---------- */
.ride { position: relative; height: 1000vh; }
.stage {
  position: sticky;
  top: var(--hh);
  height: calc(100vh - var(--hh));
  height: calc(100svh - var(--hh));
  overflow: hidden;
  background: var(--paper);
}
.world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 50% 50%; will-change: transform; }
#topSvg { opacity: 0; }
.ghost-text { font-family: var(--latin); font-weight: 900; font-size: 250px; letter-spacing: -.02em; fill: #EAE6DE; }
.door-text { font-family: var(--sans); font-weight: 700; font-size: 12px; fill: #fff; }
.c-label { font-family: var(--sans); font-weight: 700; font-size: 24px; fill: var(--ink); }
.pref-names text { font-family: var(--sans); font-weight: 900; font-size: 170px; fill: rgba(23, 53, 95, .16); }
.place-label { font-family: var(--sans); font-weight: 700; font-size: 40px; fill: var(--ink); }
.place-sub { font-family: var(--sans); font-weight: 500; font-size: 28px; fill: var(--ink-2); }
.chip-text { font-family: var(--sans); font-weight: 700; font-size: 30px; fill: #fff; }

.beat { position: absolute; z-index: 5; pointer-events: none; opacity: 0; }
.beat a { pointer-events: auto; }
.beat.off a { pointer-events: none; visibility: hidden; }
.beat h1, .beat h2 { margin: 0; font-weight: 900; letter-spacing: .01em; line-height: 1.35; }

/* 1. 見出し */
.beat-hero { top: 7%; left: max(24px, calc((100% - 1160px) / 2)); width: min(760px, calc(100% - 48px)); opacity: 1; }
.beat-hero .kicker { display: inline-block; margin: 0 0 16px; max-width: 100%; padding: 4px 12px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.beat-hero h1 { font-size: clamp(28px, 3.4vw, 46px); }
.beat-hero .lead { margin: 18px 0 0; max-width: 34em; color: var(--ink-2); font-size: 15px; }
.scroll-hint { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #B8BEC8; font-size: 11px; letter-spacing: .2em; }
.scroll-hint i { width: 2px; height: 34px; background: linear-gradient(#B8BEC8, transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 1.5 積み込み中のカード */
.beat-load { top: 5%; left: max(24px, calc((100% - 1160px) / 2)); width: min(340px, calc(100% - 48px)); }
.load-cards { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.load-cards li { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 18px; border-left: 4px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 16px 36px rgba(23, 53, 95, .12); opacity: 0; transform: translate(-24px, 10px) scale(.96); transform-origin: left center; transition: opacity .45s, transform .55s cubic-bezier(.2, 1.5, .4, 1), border-color .3s; }
.load-cards li.on { opacity: .55; transform: none; }
.load-cards li.now { opacity: 1; border-left-color: var(--yellow); }
.load-cards .no { color: var(--blue); font-family: var(--latin); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.load-cards b { font-size: 18px; line-height: 1.4; }
.load-cards span:last-child { color: var(--ink-2); font-size: 13px; line-height: 1.7; }

/* 見出しの出方（左から現れて、にじみが消える） */
.scan {
  --t: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--t) * 120% - 20%), rgba(0, 0, 0, .3) calc(var(--t) * 120% - 6%), transparent calc(var(--t) * 120%));
  mask-image: linear-gradient(90deg, #000 calc(var(--t) * 120% - 20%), rgba(0, 0, 0, .3) calc(var(--t) * 120% - 6%), transparent calc(var(--t) * 120%));
  text-shadow: calc((1 - var(--t)) * -18px) 0 rgba(242, 194, 48, calc((1 - var(--t)) * .9)), calc((1 - var(--t)) * 10px) 0 rgba(59, 89, 152, calc((1 - var(--t)) * .6));
  letter-spacing: calc(.01em + (1 - var(--t)) * .12em);
}

/* 2. 確かめること（黒い地面の上） */
.beat-check { left: 0; right: 0; bottom: 0; top: 37%; color: #fff; }
.check-head { position: absolute; left: max(24px, calc((100% - 1160px) / 2)); top: 6%; }
.check-head .eyebrow { color: var(--yellow); }
.check-head h2 { font-size: clamp(26px, 3.2vw, 42px); }
.cards { position: absolute; left: 0; top: 38%; display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; will-change: transform; }
.card { flex: 0 0 300px; display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding: 22px 22px 24px; border: 1px solid #2E333C; border-top: 4px solid var(--yellow); border-radius: 6px; background: #1E2127; }
.card .no { color: var(--yellow); font-family: var(--latin); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.card b { font-size: 19px; }
.card span:last-child { color: #B4BCC8; font-size: 14px; line-height: 1.8; }

/* 3. 許可が要る都道府県 */
.beat-route { inset: 0; }
.route-head { position: absolute; left: max(24px, calc((100% - 1160px) / 2)); top: 9%; width: min(540px, 40%); padding: 22px 24px; border-radius: 8px; background: rgba(244, 242, 238, .92); }
.route-head h2 { font-size: clamp(20px, 2vw, 30px); }
.route-note { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.route-list { position: absolute; right: max(24px, calc((100% - 1160px) / 2)); top: 12%; width: min(360px, 30%); display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.route-list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(23, 53, 95, .12); opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.route-list li.on { opacity: 1; transform: none; }
.route-list b { display: block; font-size: 16px; line-height: 1.5; }
.pin { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
.pin-pass { background: #fff; border: 2px dashed var(--blue); color: var(--blue); }
.need { display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: 4px; background: #FFF3C8; color: #5B4300; font-size: 13px; font-weight: 700; }
.need-no { background: #E8EDF5; color: var(--navy); }

/* 雲と白 */
.clouds { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cloud { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, .85) 72%, rgba(255, 255, 255, 0)); opacity: 0; will-change: transform, opacity; }
.whiteout { position: absolute; inset: 0; z-index: 4; background: var(--paper); opacity: 0; pointer-events: none; }

/* 4. 相談 */
.beat-end { left: 50%; top: 50%; width: min(680px, calc(100% - 48px)); transform: translate(-50%, -50%); text-align: center; }
.beat-end h2 { font-size: clamp(28px, 3.6vw, 46px); }
.beat-end p { color: var(--ink-2); }
.beat-end .cta-row { justify-content: center; }

.progress { position: absolute; z-index: 6; right: 22px; bottom: 22px; width: 40px; height: 40px; }
.progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress circle { fill: none; stroke: rgba(120, 128, 140, .25); stroke-width: 3; }
.progress #progArc { stroke: var(--yellow); stroke-dasharray: 100.53; stroke-dashoffset: 100.53; }

/* ---------- 通常の区画 ---------- */
.sec { padding: 96px 0; }
.sec-paper { background: #fff; }
.wrap { width: min(1000px, calc(100% - 40px)); margin: 0 auto; }
.sec h2 { margin: 0 0 28px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.45; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; color: var(--blue); font-family: var(--latin); font-size: 26px; font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 24px; color: var(--ink-2); }
.sec-lead { max-width: 46em; margin: -8px 0 28px; color: var(--ink-2); }
.note { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.plan-main { grid-column: 1 / -1; border: 2px solid var(--ink); background: #fff; }
.plan-tag { align-self: flex-start; margin: 0 0 8px; padding: 2px 10px; border-radius: 4px; background: var(--yellow); font-size: 12px; font-weight: 700; }
.plan h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.plan > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.plan dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.plan dt { color: var(--muted); font-weight: 700; }
.plan dd { margin: 0; font-weight: 500; }
.plan dd strong { font-size: 18px; font-weight: 900; }
.plan-main dd strong { font-size: 22px; }
.office { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 18px 0 0; font-size: 14px; }
.office dt { color: var(--muted); font-weight: 700; }
.office dd { margin: 0; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 22px 70px; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(23, 53, 95, .07); counter-increment: step; }
.flow li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; color: var(--yellow); font-family: var(--latin); font-size: 26px; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px #B98F10; }
.flow b { font-size: 17px; }
.flow span { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.sec-cta .cta-row { flex-wrap: wrap; }

.scope { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.scope p { color: var(--ink-2); }
.scope-box { padding: 26px 28px; border-radius: 8px; background: var(--paper); }
.scope-box ul { margin: 10px 0 0; padding-left: 1.2em; }
.scope-box li { margin-bottom: 10px; line-height: 1.6; }
.scope-box small { color: var(--muted); font-size: 13px; }
.scope-box p { margin: 0; font-size: 14px; }
.rep { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.rep img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
.rep h2 { margin-bottom: 8px; }
.quals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.quals span { padding: 2px 12px; border-radius: 999px; background: #E8EDF5; color: var(--navy); font-size: 13px; font-weight: 700; }
.sec-cta { background: var(--ink); color: #fff; text-align: center; }
.sec-cta p { color: #C4CBD6; }
.sec-cta .cta-row { justify-content: center; }
.sec-cta .btn-line { color: #fff; }

.site-footer { padding: 34px 20px; background: #0B1426; color: #BAC6D8; font-size: 12px; }
.site-footer__inner { width: min(1160px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; }
.site-footer a { color: #E4EBF6; }

@media (max-width: 767px) {
  :root { --hh: 62px; }
  .sp { display: inline; }
  .pc { display: none; }
  .site-header__inner { width: calc(100% - 28px); gap: 10px; }
  .brand strong { font-size: 13px; }
  .brand small, .site-nav a:not(.header-cta) { display: none; }
  .site-nav .header-cta { padding: 8px 12px; font-size: 12px; }
  .ride { height: 900vh; }
  .beat-hero { top: 4%; }
  .beat-hero .kicker { font-size: 11px; }
  .beat-hero .lead { font-size: 13px; line-height: 1.8; }
  .beat-hero .cta-row { margin-top: 14px; }
  .beat-load { top: 3%; left: 14px; right: 14px; width: auto; }
  .load-cards { gap: 8px; }
  .load-cards li { padding: 10px 14px 12px; }
  .load-cards b { font-size: 15px; }
  .load-cards span:last-child { font-size: 12px; }
  .beat-check { top: 34%; }
  .cards { top: 34%; gap: 14px; }
  .card { flex-basis: 250px; min-height: 0; padding: 18px; }
  .card b { font-size: 17px; }
  .card span:last-child { font-size: 13px; }
  .route-head { top: 3%; left: 14px; right: 14px; width: auto; padding: 14px 16px; }
  .route-note { font-size: 12px; margin-top: 6px; }
  .route-list { top: auto; bottom: 16px; left: 14px; right: 14px; width: auto; gap: 8px; }
  .route-list li { padding: 10px 12px; gap: 10px; }
  .route-list b { font-size: 14px; }
  .pin { width: 42px; height: 42px; font-size: 11px; }
  .need { font-size: 12px; }
  .progress { right: 12px; bottom: 12px; width: 30px; height: 30px; }
  .sec { padding: 64px 0; }
  .scope, .rep { grid-template-columns: 1fr; gap: 24px; }
  .flow { grid-template-columns: 1fr; }
  .beat-hero .btn-line { display: none; }
  .rep img { width: 160px; height: 160px; }
  .site-footer__inner { flex-direction: column; }
}

/* 動きを減らす設定のときは、場面を固定せず、文章を順に並べる */
@media (prefers-reduced-motion: reduce) {
  .ride { height: auto; }
  .stage { position: relative; top: 0; height: auto; overflow: visible; padding: 40px 0; }
  .world, .clouds, .whiteout, .progress, .scroll-hint { display: none; }
  .beat { position: static; opacity: 1 !important; transform: none !important; width: min(1000px, calc(100% - 40px)) !important; margin: 0 auto 56px; }
  .beat.off a { pointer-events: auto; visibility: visible; }
  .beat-check { color: var(--ink); }
  .check-head, .route-head, .route-list { position: static; width: auto; }
  .cards { position: static; flex-wrap: wrap; transform: none !important; margin-top: 20px; }
  .card { color: #fff; }
  .route-list { margin-top: 16px; }
  .route-list li { opacity: 1; transform: none; }
  .load-cards li { opacity: 1; transform: none; }
  .scan { -webkit-mask-image: none; mask-image: none; text-shadow: none; letter-spacing: normal; }
  .beat-end { text-align: left; }
  .beat-end .cta-row { justify-content: flex-start; }
}
