/* ============================================================
   タビフダ — 公開ページ共通スタイル
   デザイントークンはアプリ（docs-internal/design.md §3）と同じ
   紙 #F6F4EE ／ 墨 #15181D ／ サイン黄 #FFC21A ／ 困った #B3261E
   黄は「相手に向けるもの（札）」だけに使う
   ============================================================ */

:root {
  --paper: #f6f4ee;
  --surface: #ffffff;
  --ink: #15181d;
  --ink2: #4a4f57;
  --rule: #d9d6cd;
  --sign: #ffc21a;
  --on-sign: #0e1013;
  --on-sign2: #3a3000;
  --sign-text: #8a5a00;
  --route: #1f5fbf;
  --alert: #b3261e;
  --night: #0e1013;
  --night-ink: #f3f1ea;
  --night-ink2: #a9adb4;
  --radius: 20px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1013;
    --surface: #1a1d22;
    --ink: #f3f1ea;
    --ink2: #a9adb4;
    --rule: #2e3238;
    --sign-text: #ffc21a;
    --route: #7fb0ff;
    --alert: #ff8a80;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Apple SD Gothic Neo",
    "PingFang TC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a.inline { color: var(--route); text-decoration: underline; text-underline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ナビ ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* ---------- 札（荷物タグ） ---------- */
.tag {
  position: relative;
  background: var(--sign);
  color: var(--on-sign);
  border-radius: var(--radius);
  padding: 36px 24px 20px;
  font-weight: 800;
}
.tag::before { /* 紐穴 */
  content: ""; position: absolute; top: 12px; left: 50%;
  width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--night);
}
.tag small { display: block; color: var(--on-sign2); font-weight: 600; font-size: 13px; margin-top: 8px; }

/* ---------- ヒーロー（見せる画面と同じ、常に夜の地） ---------- */
.hero { background: var(--night); color: var(--night-ink); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--sign); }
.hero .lead { margin-top: 20px; font-size: clamp(15px, 2.2vw, 18px); color: var(--night-ink2); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.langs span {
  border: 1px solid #3a3f47; color: var(--night-ink); border-radius: 999px;
  padding: 4px 14px; font-size: 13px; font-weight: 600;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sign); color: var(--on-sign);
  border-radius: 14px; padding: 10px 20px; font-weight: 800; line-height: 1.2;
}
.badge-soon small { display: block; font-size: 11px; font-weight: 600; }
.hero-note { font-size: 13px; color: var(--night-ink2); }
.hero-phone { display: flex; justify-content: center; }

.phone {
  width: 100%; max-width: 300px; border-radius: 40px; overflow: hidden;
  border: 8px solid #262a31; background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.phone img { display: block; width: 100%; height: auto; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone .phone { max-width: 260px; }
}

/* ---------- セクション ---------- */
.section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink2);
  border: 1px solid var(--rule); border-radius: 999px; padding: 2px 12px; margin-bottom: 12px;
}
.section-label.alert { color: var(--alert); border-color: var(--alert); }
h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; line-height: 1.4; }
.desc { margin-top: 16px; color: var(--ink2); font-size: 16px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; margin-top: 96px; }
.feature.reverse > :first-child { order: 2; }
.feature-media { display: flex; justify-content: center; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .feature.reverse > :first-child { order: 0; }
  .feature-media .phone { max-width: 250px; }
}

.answers { display: flex; gap: 10px; margin-top: 20px; }
.answers .tag { flex: 1; text-align: center; padding: 28px 12px 14px; font-size: 26px; }

/* ---------- 困ったとき ---------- */
.alert-band { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.alert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.acard { border: 1px solid var(--rule); border-left: 6px solid var(--alert); border-radius: 14px; padding: 18px 20px; background: var(--paper); }
.acard b { display: block; font-size: 16px; }
.acard span { font-size: 14px; color: var(--ink2); }
.note { margin-top: 20px; font-size: 13px; color: var(--ink2); }

/* ---------- プライバシー ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.pcard { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.pcard b { display: block; font-size: 16px; }
.pcard span { font-size: 14px; color: var(--ink2); }

/* ---------- 料金 ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 28px; font-weight: 800; margin-top: 4px; }
.plan .price small { font-size: 14px; color: var(--ink2); font-weight: 600; }
.plan ul { margin-top: 16px; padding-left: 1.2em; color: var(--ink2); }
.plan.plus { border: 2px solid var(--ink); }

/* ---------- CTA ---------- */
.cta { text-align: center; background: var(--night); color: var(--night-ink); padding: 80px 0; }
.cta .icon { width: 96px; height: 96px; border-radius: 22px; }
.cta h2 { margin-top: 20px; }
.cta .desc { color: var(--night-ink2); }
.cta .cta-row { justify-content: center; }

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--rule); padding: 32px 0; font-size: 13px; color: var(--ink2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- 文書ページ ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; line-height: 1.3; }
.doc h2 { font-size: 20px; margin-top: 40px; }
.doc h3 { font-size: 17px; margin-top: 28px; }
.doc p, .doc ul, .doc table { margin-top: 12px; }
.doc ul { padding-left: 1.4em; }
.doc li { margin-top: 4px; }
.doc .updated { color: var(--ink2); font-size: 14px; margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { border-bottom: 1px solid var(--rule); padding: 8px 6px; text-align: left; vertical-align: top; }
.back-home { display: inline-block; font-size: 14px; color: var(--ink2); margin-bottom: 24px; }
.callout {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--rule);
  border-left: 6px solid var(--sign); border-radius: 12px; padding: 16px 20px;
}
.callout.alert { border-left-color: var(--alert); }
