/* PlainWalk — 白地図に黒い線。アプリの見た目をそのままサイトに持ってくる */

:root {
  --bg: #fbfbfa;
  --ink: #141414;
  --sub: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e4e4e2;
  --panel: #ffffff;
  --halo: #d9e6fa;
  --gutter: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans KR",
               "Yu Gothic", sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- ヘッダー ---- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 250, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

header.site.scrolled { border-bottom-color: var(--line); }

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}

.brand { font-weight: 600; letter-spacing: .04em; text-decoration: none; font-size: 16px; }

nav.main {
  display: flex;
  gap: 22px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--sub);
}

nav.main a { text-decoration: none; }
nav.main a:hover { color: var(--ink); }

.pill {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill:hover { opacity: .85; }

.lang { display: flex; gap: 10px; font-size: 12px; color: var(--faint); }
.lang a { text-decoration: none; }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---- ページ全体を貫く一本の線 ---- */
/* 装飾ではなくアプリの説明なので、スクロールに合わせて実際に描かれる */

.trail-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.trail-layer svg { width: 100%; height: 100%; }

.trail-layer path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: .38;
}

main { position: relative; z-index: 1; }

/* ---- ヒーロー ---- */

.hero { padding: 76px 0 40px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: .01em;
}

.hero p.lead {
  margin-top: 22px;
  color: var(--sub);
  font-size: 16px;
}

.hero .pill { display: inline-block; margin-top: 30px; padding: 13px 30px; font-size: 15px; }

/* ---- 端末の枠 ---- */

.phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 193 / 396;
  background: #fff;
  border: 9px solid #131313;
  border-radius: 38px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 15px;
  background: #131313;
  border-radius: 999px;
  z-index: 2;
}

.phone svg { width: 100%; height: 100%; display: block; }

/* 実機のスクリーンショットを入れる版。撮った画像にステータスバーが
   含まれているので、作り物のノッチは重ねない */
.phone.shot { aspect-ratio: 1170 / 2532; }
.phone.shot::before { display: none; }
.phone.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .route { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.phone .halo { fill: var(--halo); }
.phone .dot { fill: var(--ink); }

/* ---- セクション ---- */

section { padding: 84px 0; }

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 46px;
}

h2.left { text-align: left; font-size: 24px; font-weight: 700; margin-bottom: 34px; }

/* ---- 画面 ---- */

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.screens figure { text-align: center; }
.screens .phone { max-width: 100%; border-width: 7px; border-radius: 30px; }
.screens figcaption {
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 14px;
  line-height: 1.7;
}
.screens figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }

/* ---- できること ---- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.features .card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px 30px;
  background: var(--panel);
}

.card .head { display: flex; align-items: center; gap: 10px; }

.card .head svg { width: 26px; height: 26px; flex: none; }
.card .head svg * { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { font-size: 14px; font-weight: 600; letter-spacing: .01em; }

.card .art {
  height: 92px;
  margin: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .art svg { width: 100%; height: 100%; }

.card p {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--sub);
}

/* ---- プライバシー ---- */

.privacy .wrap {
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: 720px;
}

.privacy .seal {
  flex: none;
  width: 88px; height: 88px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.privacy .seal svg { width: 34px; height: 34px; }
.privacy .seal svg * { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }

.privacy h2 { font-size: 22px; font-weight: 700; line-height: 1.6; }
.privacy p { margin-top: 12px; color: var(--sub); font-size: 14.5px; }
.privacy a.more { display: inline-block; margin-top: 14px; font-size: 14px; }

/* ---- 締め ---- */

.closing { text-align: center; padding-bottom: 96px; }
.closing h2 { font-size: clamp(22px, 3.6vw, 30px); font-weight: 700; }
.closing .pill { margin-top: 28px; padding: 15px 46px; font-size: 16px; }
.closing .req { margin-top: 14px; font-size: 12px; color: var(--faint); }

/* ---- フッター ---- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 13px;
  color: var(--faint);
}

footer.site .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .mid { display: flex; gap: 18px; margin: 0 auto; }

/* ---- プライバシーポリシー本文 ---- */

.policy { max-width: 720px; padding-top: 46px; padding-bottom: 90px; }
.policy h1 { font-size: 26px; font-weight: 700; }
.policy h2 { font-size: 18px; font-weight: 700; margin-top: 42px; padding-bottom: 10px;
             border-bottom: 1px solid var(--line); }
.policy p { margin-top: 14px; }
.policy ul { margin: 14px 0 0 20px; }
.policy li { margin-bottom: 10px; }
.policy-date { color: var(--faint); font-size: 13px; margin-top: 8px; }
.back { display: inline-block; margin-bottom: 26px; color: var(--sub);
        font-size: 14px; text-decoration: none; }
.back:hover { color: var(--ink); }

/* ---- 狭い画面 ---- */

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 720px) {
  .hero { padding: 44px 0 20px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero .order-text { order: 1; }
  .hero .order-phone { order: 2; }
  /* 端末が縦を占有しすぎると、次のセクションまで遠くなる */
  .hero .phone { max-width: 208px; }
  section { padding: 60px 0; }
  nav.main { display: none; }
  .privacy .wrap { flex-direction: column; text-align: center; gap: 22px; }
  /* 背景の線は狭い画面だと本文にかぶるので引っ込める */
  .trail-layer { display: none; }
}

/* iPhone SE 以下の幅。見出しが語の途中で折れないところまで詰める */
@media (max-width: 360px) {
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15px; }
  :root { --gutter: 18px; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  /* 画面は 2 枚並べたまま。1 枚ずつ縦に積むと、この節だけで延々スクロールになる */
  .screens { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .screens .phone { border-width: 5px; border-radius: 20px; }
  .screens figcaption { font-size: 11px; margin-top: 10px; }
  .screens figcaption strong { font-size: 12px; }
}

/* ---- 動きを減らす設定を尊重する ---- */
/* 線は最初から全部描かれた状態にする。演出が無くても情報は欠けない */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trail-layer path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- 現れ方 ---- */

/* **JS があるときだけ隠す。** 無条件に opacity:0 にすると、
   JS が動かない環境で本文がまるごと見えなくなる */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.in { opacity: 1; transform: none; }
