/*
 * 紹介ページの体裁。
 *
 * **アプリと同じ色を使う。** デモを開いた人が別の製品に見えないようにする
 * ためで、色は `frontend/src/index.css` のトークンから写している。
 *
 * 外部への通信を持たない。書体は端末にあるものだけを使う — 紹介ページで
 * いちばん効くのは表示の速さで、書体1つのために 200〜300ms 待たせると、
 * 待たされた人はそもそも中身を読まない。
 */
:root {
  /* 文字の並び。**rolo・会社案内と同じにしてある。**
     ヒラギノを先頭に置くと、英字までヒラギノで出て「Stroka」「Excel」が
     重く見える。OS の既定（macOS/iOS なら SF Pro）を先に置き、
     日本語だけがヒラギノに落ちる形にする。 */
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI",
    Roboto, sans-serif;

  --ink-900: #171c23;
  --ink-700: #333c48;
  --ink-500: #636e7c;
  --ink-400: #8b94a1;
  --ink-100: #e8ebef;
  --ink-50:  #f4f6f8;
  --brand-600: #0064d9;
  --brand-700: #0052b4;
  --brand-50:  #eef5ff;
  --brand-100: #dbe9fe;
  --ink-200: #d4d9e0;
  /* 押してほしいボタンの色。白文字との明度差は 4.9:1 で、青の上でも沈まない。 */
  --brand-800: #084494;
  /* 料金表の推し行の縁取りに使う。ボタンには使わない。 */
  --accent-600: #c2410c;
  --positive-600: #12805c;
  --positive-50:  #e9f6ef;
  --caution-700: #855200;
  --caution-50:  #fdf3e3;
  --page: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23, 28, 35, .06), 0 8px 24px rgba(23, 28, 35, .06);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-900);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); }

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

/* ── ヘッダー ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .01em; text-decoration: none; color: var(--ink-900); }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--brand-600); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
/* **ボタンには掛けない。** `.site-nav a` は要素セレクタを含むぶん
   `.btn-primary` より強く、そのままだとボタンの文字色を上書きする。
   実際にヘッダーの「デモを見る」が青地に濃灰の文字になっていた。 */
.site-nav a:not(.btn) { color: var(--ink-700); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--brand-700); }

/* ── ボタン ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
/*
 * 背景が色で塗られたボタンは、**必ず白文字**にする。
 *
 * 色を混ぜないのは、押す場所が2種類あるように見せないためである。目立たせる
 * のは色相ではなく、濃さと影と大きさで行う。
 */
.btn-primary,
.btn-secondary {
  background: var(--brand-600); color: #fff; font-weight: 700;
  box-shadow: 0 1px 2px rgb(0 60 130 / .22), 0 6px 16px rgb(0 60 130 / .18);
}
.btn-primary:hover,
.btn-secondary:hover { background: var(--brand-700); color: #fff; }
/* 一番押してほしいものだけ、濃さを一段上げる。 */
.btn-primary { background: var(--brand-700); }
.btn-primary:hover { background: var(--brand-800); }
.btn-ghost { border-color: var(--ink-200); color: var(--ink-900); background: #fff; font-weight: 700; }
.btn-ghost:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--brand-50); }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ── ヒーロー ─────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--brand-50), #fff 70%); }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.35;
  margin: 0 0 20px; letter-spacing: -.01em; font-weight: 800;
}
.hero .lead { font-size: 18px; color: var(--ink-700); margin: 0 0 28px; max-width: 46em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { margin: 16px 0 0; font-size: 13px; color: var(--ink-500); }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 4px 12px;
  background: #fff; border: 1px solid var(--brand-100); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--brand-700);
}

/* ── ヒーローの画面図 ─────────────────────────────────────── */
/*
 * **文字だけの紹介ページは、何を売っているのか分からない。**
 * 会計や CRM の製品ページが例外なく画面の絵を置いているのはそのためで、
 * 「業務管理システム」という言葉から想像できる画面は人によって違いすぎる。
 *
 * 実写ではなく図で描いてある。実写は文字が潰れ、拡大すると粗くなり、
 * 画面を1つ直すたびに撮り直しになる。図なら**どの大きさでも読める**。
 */
.hero-shot {
  margin-top: 36px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ink-100);
  box-shadow: 0 2px 4px rgb(23 28 35 / .05), 0 20px 48px rgb(23 28 35 / .12);
  background: #fff;
}
.hero-shot svg { display: block; width: 100%; height: auto; }

/* ── セクション ───────────────────────────────────────────── */
section { padding: 64px 0; }
section h2 {
  font-size: clamp(23px, 3vw, 30px); margin: 0 0 12px;
  letter-spacing: -.01em; font-weight: 700;
}
section .section-lead { color: var(--ink-700); margin: 0 0 36px; max-width: 52em; }
.alt { background: var(--ink-50); }

/* ── カード ───────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 22px 22px 24px;
}
/* カードの絵。**文字だけの並びは、読む前に「どれが自分に関係あるか」が
   分からない。**絵があると、目が止まる場所ができる。 */
.card-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-700);
  margin-bottom: 12px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.card p  { margin: 0; color: var(--ink-700); font-size: 15px; }
.card .tag {
  display: inline-block; margin: 0 0 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12px; font-weight: 700;
}

/* ── 取り込みの手順 ───────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 20px 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-600); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.step h3 { margin: 3px 0 6px; font-size: 17px; }
.step p  { margin: 0 0 6px; color: var(--ink-700); font-size: 15px; }
.step .why {
  margin: 8px 0 0; padding: 10px 14px; border-radius: 8px;
  background: var(--ink-50); font-size: 14px; color: var(--ink-700);
}
.step .why b { color: var(--ink-900); }

/* ── 表 ───────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--ink-100); text-align: left; vertical-align: top; }
th { font-size: 13px; color: var(--ink-500); font-weight: 700; background: var(--ink-50); white-space: nowrap; }
td code, p code, li code {
  background: var(--ink-50); border: 1px solid var(--ink-100);
  border-radius: 5px; padding: 1px 6px; font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── 図（SVG） ────────────────────────────────────────────── */
figure { margin: 0; }
figure svg { width: 100%; height: auto; display: block;
  border: 1px solid var(--ink-100); border-radius: var(--radius); background: #fff; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-500); }
.figure-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.import-shot { margin-top: 30px; }
.import-shot svg { box-shadow: 0 1px 3px rgb(23 28 35 / .06), 0 12px 32px rgb(23 28 35 / .08); }
/* 横へ送れることの案内。送れる幅のときだけ出す（下のメディアクエリ）。 */
.figure-hint { display: none; font-size: 12px; color: var(--ink-400); margin-top: 8px; }

/* ── FAQ ──────────────────────────────────────────────────── */
details {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
}
details[open] { border-color: var(--brand-100); }
summary { font-weight: 700; cursor: pointer; font-size: 16px; }
details p { margin: 12px 0 0; color: var(--ink-700); font-size: 15px; }

/* ── 注記 ─────────────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--brand-600);
  background: var(--brand-50); padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px;
}
.callout.plain { border-left-color: var(--ink-400); background: var(--ink-50); }

/* ── フォーム ─────────────────────────────────────────────── */
.form { display: grid; gap: 16px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--ink-500); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; padding: 10px 13px;
  border: 1px solid var(--ink-100); border-radius: 8px; background: #fff;
  color: var(--ink-900); width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--brand-600); outline-offset: 1px; border-color: transparent;
}
.field textarea { min-height: 160px; resize: vertical; }
/* 罠。人には見せない。`display:none` にしないのは、それだけを見て
   避ける機械があるためで、画面の外へ出すほうが素直に踏まれる。 */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; padding: 12px 16px; border-radius: 8px; display: none; }
.form-status.ok   { display: block; background: var(--positive-50); color: var(--positive-600); }
.form-status.ng   { display: block; background: var(--caution-50);  color: var(--caution-700); }
.required { color: #b42318; }

/* ── フッター ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--ink-100); padding: 40px 0; color: var(--ink-500); font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer a { color: var(--ink-700); text-decoration: none; }
.site-footer a:hover { color: var(--brand-700); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

.skip-link {
  position: absolute; left: -9999px; background: var(--brand-600); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 50;
}
.skip-link:focus { left: 0; top: 0; }

/* ══ スマートフォン ═══════════════════════════════════════════════════
 *
 * ヘッダーが壊れていた。項目が縮んで「Excel取／り込み」「料／金」と2行に
 * 折れ、いちばん押してほしい「デモを見る」は3行になったうえ端が切れていた。
 * **押せないボタンを置いておくくらいなら、置かないほうがよい。**
 *
 * 直し方は、項目を小さくするのではなく**減らす**。狭い画面でヘッダーに残す
 * 価値があるのは、戻る手段（ロゴ）と、次にしてほしいこと（デモ）の2つだけ
 * である。中の見出しへの案内は、下まで読めば同じ場所に着く。
 */
@media (max-width: 860px) {
  .site-header .wrap { height: 54px; gap: 12px; padding-inline: 16px; }
  .site-nav { gap: 10px; }
  /* 中身への案内はしまう。ページを下へ読めば同じ場所に着く。 */
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { white-space: nowrap; padding: 8px 14px; font-size: 13.5px; }
  .logo { font-size: 16px; }
}

@media (max-width: 640px) {
  section { padding: 40px 0; }
  .wrap { padding-inline: 18px; }
  .hero { padding: 36px 0 34px; }
  .hero h1 { font-size: 27px; line-height: 1.45; }
  .hero .lead { font-size: 16px; }
  /* 縦に積む。横並びのままだと、2つ目のボタンが画面からはみ出す。 */
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { justify-content: center; }
  /* 画面図は縮めず横へ送らせる。幅 350px に押し込むと文字が潰れ、
     **読めない絵**が残る。読めない絵は無いのと同じである。 */
  .hero-shot { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 26px; }
  .hero-shot svg { min-width: 700px; }
  .btn-lg { padding: 14px 22px; font-size: 16px; }
  .step { grid-template-columns: 30px 1fr; gap: 12px; padding: 16px; }
  .step::before { width: 28px; height: 28px; font-size: 13px; }
  .card { padding: 18px; }
  .plan { padding: 22px 20px 24px; }
  .plan .price .num { font-size: 30px; }
  section h2 { font-size: 22px; line-height: 1.45; }
  /* 表は箱の中で送る。ページごと横に伸びると、縦読みの途中で
     指が横に流れて読む場所を見失う。 */
  .table-scroll { -webkit-overflow-scrolling: touch; }

  /* 図は縮めずに、横へ送らせる。
     幅 354px に押し込むと 980×300 の図が高さ 110px になり、**文字が
     読めない図**が残る。読めない図は無いのと同じなので、送れるようにする。 */
  .figure-scroll svg { min-width: 640px; }
  .figure-hint { display: block; }
  .site-footer .cols { flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── 料金 ─────────────────────────────────────────────────── */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: 14px; padding: 26px 24px 28px; display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--brand-600); box-shadow: var(--shadow); position: relative; }
.plan .ribbon {
  position: absolute; top: -13px; left: 24px;
  background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 19px; }
.plan .for { margin: 0 0 18px; font-size: 14px; color: var(--ink-500); min-height: 3em; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan .price .num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan .price .unit { font-size: 15px; color: var(--ink-500); font-weight: 600; }
.plan .initial { margin: 0 0 20px; font-size: 14px; color: var(--ink-700); }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan li { font-size: 14.5px; padding-left: 24px; position: relative; color: var(--ink-700); }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 11px; height: 6px; border-left: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; justify-content: center; }

/* ── 数字 ─────────────────────────────────────────────────── */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 20px 20px 18px;
  display: flex; flex-direction: column;
}
.stat-num {
  font-size: 40px; font-weight: 800; letter-spacing: -.02em;
  color: var(--brand-700); line-height: 1.1;
}
.stat-unit { font-size: 18px; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 15px; font-weight: 700; margin-top: 8px; }
.stat-sub { font-size: 13px; color: var(--ink-500); margin-top: 4px; line-height: 1.6; }
/* 帯は「どのくらい残るか」を長さで見せる。数字だけだと、3回が1回になったのか
   100回が1回になったのかが同じ大きさに見える。 */
.stat-bar {
  margin-top: 14px; height: 6px; border-radius: 99px;
  background: var(--ink-100); overflow: hidden;
}
.stat-bar i { display: block; height: 100%; background: var(--brand-600); border-radius: 99px; }

/* ── ビフォーアフター ─────────────────────────────────────── */
.ba { display: grid; gap: 0; grid-template-columns: 1fr; border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden; }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink-100); }
.ba-row:first-child { border-top: 0; }
.ba-cell { padding: 18px 20px; font-size: 15px; }
.ba-cell.before { background: #fff; color: var(--ink-700); border-right: 1px solid var(--ink-100); }
.ba-cell.after  { background: var(--brand-50); color: var(--ink-900); font-weight: 600; }
.ba-head { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-50); font-size: 13px; font-weight: 700; color: var(--ink-500); }
.ba-head div { padding: 11px 20px; }
.ba-head div:first-child { border-right: 1px solid var(--ink-100); }

@media (max-width: 640px) {
  .ba-row, .ba-head { grid-template-columns: 1fr; }
  .ba-cell.before { border-right: 0; border-bottom: 1px solid var(--ink-100); }
  .ba-head div:first-child { border-right: 0; }
  .plan .for { min-height: 0; }
}
