/* /about/ マーケティングサイト。設計は docs/design/marketing-site/README.md と、
   デザインボード「マーケティングページ リニューアル素案」(PC・スマホの 2 枚)。
   白地・墨の字と丸いボタン。緑は小見出しとアクセントだけ。地図は字を消した本物の地図。 */

:root {
  --ink: #121513;
  --sub: #5f6661;
  --green: #47664d;
  --tint: #f4f6f3;
  --line: #eceeec;
  --map-ground: #f3f3f0;
  --credit: #7c8480;
  --header-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); }
a:hover { color: var(--green); }
img { display: block; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ── ヘッダー ── */
.nav {
  max-width: 1240px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 14px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.brand { height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.brand span { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.nav-link { height: 44px; padding: 0 14px; display: flex; align-items: center; font-size: 15px; font-weight: 500; text-decoration: none; }

/* ── ボタン ── */
.cta {
  height: 58px;
  padding: 0 48px;
  border-radius: 29px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.cta:hover { color: #ffffff; background: #2a302c; }
.cta-small { height: 44px; margin-left: 10px; padding: 0 24px; border-radius: 22px; font-size: 15px; }
.cta-outline { padding: 0 36px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #d6dad7; font-size: 16px; }
.cta-outline:hover { background: var(--tint); color: var(--ink); }

/* ── 見出しと本文 ── */
.display { font-size: 60px; line-height: 1.32; font-weight: 900; }
.display-m { font-size: 52px; line-height: 1.36; }
.section-title { font-size: 44px; line-height: 1.35; font-weight: 900; }
.lead { font-size: 18px; line-height: 2; color: var(--sub); }
.eyebrow { margin-bottom: 18px; font-size: 15px; font-weight: 700; color: var(--green); }
.credit { position: absolute; right: 16px; bottom: 10px; z-index: 3; font-size: 10px; color: var(--credit); pointer-events: none; }

/* ── 地図の絵(358×470 の舞台を、カードの大きさに拡大して載せる) ── */
.card { position: relative; overflow: hidden; background: var(--map-ground); --k: 1; }
.stage { position: absolute; left: 0; top: 0; width: 358px; height: 470px; transform: scale(var(--k)); transform-origin: 0 0; }
.stage > img:not(.figure):not(.figure-read):not(.read-card) { position: absolute; inset: 0; width: 358px; height: 470px; }
.figure { position: absolute; width: 66px; height: 88px; }
.card-large { --k: 1.3; flex: none; width: 465px; height: 611px; border-radius: 36px; }
.card-case { --k: 1.04; width: 100%; max-width: 372px; height: 488px; border-radius: 28px; background: #e9ece7; }

/* ── ヒーロー ── */
.hero-copy {
  min-height: calc(100svh - var(--header-h));
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 { font-size: 76px; line-height: 1.32; font-weight: 900; letter-spacing: 0.01em; text-align: center; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 紹介動画。三本を輪にして回す(真ん中を大きく、左右は小さく傾けて奥に。page.ts が data-spot を振る)。
   JS が無いときは横に並べて滑らせる。--reel-w は真ん中の一本の幅、--reel-shift は左右の一本までの距離 */
.reels { --reel-w: min(800px, 72vw); --reel-shift: calc(var(--reel-w) * 0.55); padding-bottom: 40px; overflow: hidden; }
.reels-track {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 16px calc((100% - var(--reel-w)) / 2) 56px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reels-track::-webkit-scrollbar { display: none; }
.reel { position: relative; flex: none; width: var(--reel-w); margin: 0; scroll-snap-align: center; border-radius: 24px; overflow: hidden; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(40, 50, 45, 0.12); }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.reels:not(.is-live) .reel-seek { display: none; }

.reels.is-live .reels-track { display: block; height: calc(var(--reel-w) * 9 / 16); margin: 16px 0 64px; padding: 0; overflow: visible; perspective: 1800px; }
.reels.is-live .reel {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: calc(var(--reel-w) / -2);
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.7s ease;
}
.reels.is-live .reel[data-spot='0'] { z-index: 3; }
.reels.is-live .reel[data-spot='1'] { z-index: 1; opacity: 0.55; transform: translateX(var(--reel-shift)) scale(0.7) rotateY(-24deg); }
.reels.is-live .reel[data-spot='-1'] { z-index: 1; opacity: 0.55; transform: translateX(calc(var(--reel-shift) * -1)) scale(0.7) rotateY(24deg); }
.reels.is-live .reel video { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .reels.is-live .reel { transition: none; } }
/* 止まっている真ん中の一本には再生の印を出す(押すと再生) */
.reel.is-active.is-paused::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 38px;
  background: rgba(18, 21, 19, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23ffffff'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat;
  pointer-events: none;
}
/* シークバーは真ん中の一本の上に、バーだけ。マウスを載せたとき(指の端末は押したとき)に透明度で出し入れする */
.reel-seek {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 1;
  width: calc(100% - 40px);
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
@media (hover: hover) { .reel.is-active:hover .reel-seek { opacity: 1; pointer-events: auto; } }
.reel.is-active.is-seek .reel-seek,
.reel.is-active .reel-seek:focus-visible { opacity: 1; pointer-events: auto; }

.reels-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(18, 21, 19, 0.06), 0 8px 24px rgba(40, 50, 45, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.reels-nav[hidden] { display: none; }
.reels-nav:hover { color: var(--green); }
.reels-prev { left: 48px; }
.reels-next { right: 48px; }

.reels-bar { width: var(--reel-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 24px; }
.reels-bar[hidden] { display: none; }
.reels-now { display: flex; align-items: baseline; gap: 12px; }
.reels-now b { font-size: 22px; font-weight: 900; }
.reels-now small { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.reels-dots { display: flex; justify-content: center; gap: 4px; }
.reels-dot { height: 24px; padding: 0 2px; border: 0; background: transparent; display: flex; align-items: center; cursor: pointer; }
.reels-dot i { display: block; width: 10px; height: 10px; border-radius: 5px; background: #d6dad7; transition: width 0.4s ease, background 0.4s ease; }
.reels-dot[aria-current='true'] i { width: 32px; background: var(--ink); }
.reels-sound { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.reels-mute { flex: none; width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--tint); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.reels-mute:hover { background: #e9ece8; }
.reels-mute[aria-pressed='true'] .icon-on,
.reels-mute[aria-pressed='false'] .icon-off { display: none; }
.reels-volume { width: 120px; accent-color: var(--ink); cursor: pointer; }
.reels-volume[hidden] { display: none; }

/* ── 左右に組む節(意義・いつ見つかるか) ── */
.split {
  max-width: 1240px;
  margin: 0 auto;
  padding: 160px 40px 140px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.split-copy { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: 28px; }
.split-time { padding: 160px 40px; }
.split-time .split-copy { flex-basis: 380px; max-width: 440px; gap: 32px; }
.split-time .lead { line-height: 2.1; }
.time-map { position: relative; flex: 0 1 680px; min-width: 320px; height: 560px; border-radius: 36px; overflow: hidden; background: var(--map-ground); }
.time-stage { position: absolute; right: -250px; top: -30px; width: 1200px; height: 620px; }
.time-stage > img:not(.figure) { position: absolute; inset: 0; width: 1200px; height: 620px; }

/* ── こんなときに ── */
.cases { background: var(--tint); }
.cases .wrap { padding-top: 128px; padding-bottom: 136px; }
.cases .section-title { margin-bottom: 64px; }
.case-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px 36px; }
.case h3 { margin-top: 18px; font-size: 30px; line-height: 1.4; font-weight: 900; }

/* ── 使いかた ── */
.use { border-top: 1px solid var(--line); }
.use-list { padding-top: 144px; padding-bottom: 144px; display: flex; flex-wrap: wrap; justify-content: center; gap: 64px 56px; }
.use-step { width: 465px; max-width: 100%; display: flex; flex-direction: column; }
.step-title { margin-top: 32px; display: flex; align-items: flex-start; gap: 16px; }
.step-no { flex: none; margin-top: 8px; width: 32px; height: 32px; border-radius: 16px; background: var(--ink); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.step-title h3 { font-size: 32px; line-height: 1.4; font-weight: 900; }
.veil { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.28); }
.figure-read { position: absolute; left: 78px; top: 103px; width: 90px; height: 117px; }
.read-card { position: absolute; left: 82px; top: 135px; width: 226px; height: 96px; }

/* ── あしあと ── */
.trace-head { padding-top: 136px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.trace-head .lead { max-width: 440px; margin-bottom: 8px; }
.trace-map { position: relative; height: 720px; overflow: hidden; background: #f8f4f0; }
.trace-map > img { position: absolute; left: 50%; top: 0; width: 1920px; height: 720px; margin-left: -960px; }
.clear-card {
  position: absolute;
  left: max(40px, calc(50% - 580px));
  top: 48px;
  width: max-content;
  padding: 8px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(60, 70, 60, 0.08), 0 8px 24px rgba(40, 50, 45, 0.14);
  -webkit-backdrop-filter: blur(9px) saturate(1.15);
  backdrop-filter: blur(9px) saturate(1.15);
}
.clear-card-head { height: 38px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.clear-card-nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-variant-numeric: tabular-nums; }
.clear-card-nums b { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.clear-card-nums small { margin-left: 6px; font-size: 17px; font-weight: 700; }
.clear-card-nums span:first-child small { margin-left: 2px; }
/* 触れた町の札(cloud-layer.js の CARD_CSS と同じ形)。点は絵の (1099, 520)、絵の真ん中から右へ 139px */
.chome-card {
  position: absolute;
  left: calc(50% + 139px);
  top: 520px;
  min-width: 92px;
  padding: 7px 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #2f4434;
  box-shadow: 0 2px 10px rgba(30, 40, 50, 0.18);
  transform: translate(-50%, calc(-100% - 14px));
}
.chome-card .n { display: block; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.chome-card .p { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.chome-card .bar { display: block; margin-top: 4px; height: 4px; border-radius: 2px; background: rgba(71, 102, 77, 0.16); overflow: hidden; }
.chome-card .bar i { display: block; width: 52%; height: 100%; border-radius: 2px; background: var(--green); }
.trace-points { margin: 0; padding: 64px 0 144px; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.trace-points h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.5; font-weight: 900; }
.trace-points p { font-size: 16px; line-height: 1.9; color: var(--sub); }

/* ── 位置情報 ── */
.location { position: relative; }
.location .wrap { padding-top: 136px; padding-bottom: 136px; }
.peek { position: absolute; right: 0; top: 64px; width: 180px; height: 270px; }
.promises { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.promises li { padding: 32px 28px 36px; border-radius: 24px; background: var(--tint); display: flex; flex-direction: column; gap: 22px; font-size: 20px; line-height: 1.55; font-weight: 700; }
.promise-icon { flex: none; width: 52px; height: 52px; border-radius: 26px; background: #ffffff; display: flex; align-items: center; justify-content: center; }

/* ── 締め ── */
.closing { padding: 96px 24px 160px; display: flex; flex-direction: column; align-items: center; }
.closing-figure { height: 300px; width: auto; margin-top: 20px; }
.closing h2 { margin-top: 48px; font-size: 64px; text-align: center; }
.closing .cta { margin-top: 52px; padding: 0 56px; }

/* ── フッター ── */
.footer { border-top: 1px solid var(--line); }
.footer-row { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand img { width: 24px; height: 24px; }
.footer .brand span { font-size: 16px; }
.footer-credit { font-size: 12px; color: var(--sub); }

/* ── スマホ(ボードの「スマホ」) ── */
@media (max-width: 700px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .nav { min-height: var(--header-h); padding: 0 16px 0 20px; }
  .brand img { width: 24px; height: 24px; }
  .brand span { font-size: 17px; }
  .nav-link { display: none; }
  .cta-small { height: 44px; margin-left: 0; padding: 0 20px; font-size: 14px; }

  .hero-copy { padding: 40px 20px; align-items: stretch; }
  .hero h1 { font-size: 30px; line-height: 1.42; }
  .hero-actions { margin-top: 32px; flex-direction: column; gap: 10px; }
  .hero-actions .cta { height: 54px; font-size: 16px; }
  .hero-actions .cta-outline { font-size: 15px; }
  /* 真ん中の一本を画面の 7 割ほどにし、左右は端から半分ほどのぞかせる。音は消音のボタンだけ、矢印は出さない(指で滑らせる) */
  .reels { --reel-shift: calc(var(--reel-w) * 0.61); padding-bottom: 24px; }
  .reels-track { gap: 12px; }
  .reel { border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 14px 36px rgba(40, 50, 45, 0.12); }
  .reels.is-live .reels-track { margin-bottom: 32px; }
  .reel.is-active.is-paused::after { width: 56px; height: 56px; margin: -28px 0 0 -28px; background-size: 26px; }
  .reel-seek { left: 12px; bottom: 8px; width: calc(100% - 24px); }
  .reels-nav { display: none; }
  .reels-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; }
  .reels-dots { grid-column: 1 / -1; grid-row: 1; }
  .reels-now b { font-size: 20px; }
  .reels-now small { font-size: 13px; }
  .reels-volume { display: none; }

  .display { font-size: 34px; line-height: 1.38; }
  .display-m { font-size: 30px; line-height: 1.42; }
  .section-title { font-size: 30px; line-height: 1.4; }
  .lead { font-size: 15px; line-height: 1.95; }
  .eyebrow { margin-bottom: 10px; font-size: 14px; }
  .credit { right: 12px; bottom: 8px; font-size: 9px; }

  /* 地図の絵は等倍(358×470)。それより狭い画面では左右を少し切る */
  .card-large, .card-case { --k: 1; width: 358px; max-width: 100%; height: 470px; border-radius: 28px; margin: 0 auto; }
  .card-large .stage, .card-case .stage { left: 50%; margin-left: -179px; }

  .split { padding: 80px 16px 72px; gap: 36px; }
  .split-copy { flex-basis: 100%; gap: 18px; padding: 0 12px; }
  .split-time { padding: 80px 16px 72px; }
  .split-time .split-copy { flex-basis: 100%; gap: 20px; }
  .split-time .lead { line-height: 2; }
  .time-map { flex: none; width: 358px; max-width: 100%; min-width: 0; height: 460px; border-radius: 28px; margin: 0 auto; }
  .time-stage { right: -512px; top: -60px; }

  .cases .wrap { padding-top: 72px; padding-bottom: 80px; }
  .cases .section-title { margin: 0 12px 40px; }
  .case-list { gap: 56px; }
  .case h3 { margin: 20px 12px 0; font-size: 26px; line-height: 1.42; }

  .use-list { padding-top: 72px; padding-bottom: 80px; gap: 52px; }
  .use-step { width: 358px; }
  .step-title { margin: 24px 12px 0; gap: 12px; }
  .step-no { margin-top: 6px; width: 28px; height: 28px; border-radius: 14px; font-size: 13px; }
  .step-title h3 { font-size: 26px; line-height: 1.42; }

  .trace-head { padding: 72px 28px 0; gap: 16px; }
  .trace-head .lead { margin: 0; }
  .trace-map { height: 420px; margin-top: 32px; }
  /* 真ん中は晴れわたった町ばかりなので、触れた町(雲と晴れ間にまたがる)が入るところを見せる */
  .trace-map > img { top: -150px; margin-left: -1135px; }
  .chome-card { left: calc(50% - 36px); top: 370px; }
  .clear-card { left: 16px; right: 16px; top: 16px; width: auto; padding: 6px 14px 12px; border-radius: 22px; }
  .clear-card-head { height: 34px; font-size: 13px; }
  .clear-card-nums { gap: 2px 14px; }
  .clear-card-nums b { font-size: 28px; }
  .clear-card-nums small { font-size: 15px; }
  .trace-points { padding: 36px 12px 80px; gap: 28px; }
  .trace-points h3 { margin-bottom: 8px; font-size: 19px; }
  .trace-points p { font-size: 15px; }

  .location .wrap { padding-top: 80px; padding-bottom: 72px; }
  .location .section-title { margin: 0 12px; }
  .peek { top: 24px; width: 120px; height: 180px; }
  .promises { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
  .promises li { padding: 20px; border-radius: 20px; flex-direction: row; align-items: center; gap: 14px; font-size: 16px; line-height: 1.5; }
  .promise-icon { width: 44px; height: 44px; border-radius: 22px; }

  .closing { padding: 48px 20px 96px; align-items: stretch; }
  .closing-figure { height: 240px; align-self: center; }
  .closing h2 { margin-top: 36px; font-size: 30px; line-height: 1.42; }
  .closing .cta { margin-top: 36px; height: 54px; font-size: 16px; }

  .footer-row { padding: 24px 20px 40px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer .brand img { width: 22px; height: 22px; }
  .footer .brand span { font-size: 15px; }
  .footer-credit { font-size: 11px; }
}
