/* 見積デジ 先行登録LP
 * 値は docs/design/mitsumoridesk.dc.html（デザインの正本）から取った。
 * 元は 1280px 固定のアートボードだが、ここではレスポンシブにしている。 */

:root {
  --ground:   #F0F0EC;
  --surface:  #FFFFFF;
  --ink:      #12263A;
  --ink-2:    #4F6070;
  --line:     #D3DAE1;
  --line-2:   #EEF1F4;
  --accent:   #2B5D9B;
  --dark:     #12263A;   /* 比較セクションの地 */

  --won:      #1E6B4A;   /* 受注 */
  --won-bg:   #E3F3EA;
  --lost:     #A33A2A;   /* 失注 */
  --lost-bg:  #FBE7E4;
  --hold:     #9A5A0E;   /* 読み取り中 */
  --hold-bg:  #FFF2E3;
  --tag-fax:  #6B3F86;
  --tag-mail: #1F5FA8;
  --tag-pdf:  #C27A12;
  --amber-bg: #FFF7EC;

  --serif: 'Shippori Mincho B1', 'Yu Mincho', serif;
  --sans:  'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;

  --pad-x: 64px;
  --pad-y: 64px;
  --max:   1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); margin: 0; line-height: 1.35; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ── ヘッダー ───────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  max-width: var(--max); margin: 0 auto; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 var(--pad-x);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 24px; white-space: nowrap; }

.badge {
  font-size: 11px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid var(--dark); border-radius: 4px;
  background: var(--dark); color: #fff;
  padding: 9px 20px; font-size: 14px; white-space: nowrap;
}
.btn:hover { background: #0C1B2A; color: #fff; }

/* ── セクションの土台 ───────────────────── */

section { padding: var(--pad-y) var(--pad-x); }
section > .wrap { max-width: calc(var(--max) - var(--pad-x) * 2); }

.band-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-dark { background: var(--dark); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }

.sec-title { font-size: 34px; margin-bottom: 8px; }
.sec-lead  { color: var(--ink-2); font-size: 15px; }

/* ── ヒーロー ───────────────────────────── */

.hero > .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px; align-items: start;
}
.eyebrow {
  display: inline-block; font-size: 13px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 3px;
  padding: 5px 12px; margin-bottom: 22px;
}
.hero h1 { font-size: 50px; line-height: 1.32; margin-bottom: 22px; }
.hero__lead { font-size: 16.5px; color: var(--ink-2); line-height: 1.95; max-width: 34em; }

.points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px; margin-top: 36px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.points dt { font-family: var(--serif); font-size: 30px; }
.points dd { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ── 受信箱 と 似ている過去の見積 ───────── */

.screens {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px; margin-top: 40px; align-items: start;
}

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 5px; overflow: hidden; min-width: 0;
}
.panel--lit { border-color: var(--accent); }
.panel__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
}
.panel__head span { font-weight: 400; color: var(--ink-2); font-size: 11px; }

.req {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  gap: 9px; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--line-2);
  font-size: 11.5px; white-space: nowrap;
}
.req:last-child { border-bottom: none; }
.req__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.req__qty, .req__due { color: var(--ink-2); }

.tag {
  font-size: 9px; font-weight: 700; color: #fff;
  padding: 1px 4px; border-radius: 3px; text-align: center;
}
.tag--fax  { background: var(--tag-fax); }
.tag--mail { background: var(--tag-mail); }
.tag--pdf  { background: var(--tag-pdf); }

.pill { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.pill--done { background: var(--won-bg);  color: var(--won); }
.pill--todo { background: var(--lost-bg); color: var(--lost); }
.pill--wait { background: var(--hold-bg); color: var(--hold); }

.past {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line-2); font-size: 11.5px;
}
.past b { display: block; font-weight: 700; }
.past small { color: var(--ink-2); }
.past .won  { color: var(--won);  font-weight: 700; }
.past .lost { color: var(--lost); font-weight: 700; }

.advice {
  margin: 10px; padding: 8px 10px; border-radius: 4px;
  background: var(--amber-bg); border: 1px solid #F0DCBF;
  font-size: 11px; line-height: 1.6;
}
.advice b { font-weight: 700; }

/* ── 課題 4つ ───────────────────────────── */

.issues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.issue { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.issue__no { font-family: var(--serif); font-size: 26px; color: var(--accent); }
.issue h3 { font-size: 16px; margin: 6px 0 8px; font-family: var(--sans); font-weight: 700; }
.issue p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

/* ── 使い方 3ステップ ───────────────────── */

.steps { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
.step + .step { margin-top: 28px; }
.step__no {
  width: 44px; height: 44px; border-radius: 3px;
  background: var(--dark); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px;
}
.step h3 { font-size: 18px; font-family: var(--sans); font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }

/* ── 比較（2枚のカード） ────────────────── */

.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.card {
  border: 1px solid var(--line); border-radius: 5px; padding: 24px 26px;
  background: var(--surface);
}
.card--ours { background: var(--dark); border-color: var(--dark); color: #fff; }
.card__k { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.card h3 { font-size: 30px; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.card--ours p { color: #B9C6D4; }
.versus-note { font-size: 12px; color: var(--ink-2); line-height: 1.8; margin-top: 16px; }

/* ── 特典 ───────────────────────────────── */

.perks { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
.perks ul { display: grid; gap: 14px; }
.perks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.perks li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ── 開発の進め方 ───────────────────────── */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.plan__k { font-size: 12px; color: var(--accent); font-weight: 700; }
.plan h3 { font-size: 16px; font-family: var(--sans); font-weight: 700; margin: 4px 0 8px; }
.plan p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

/* ── FAQ ────────────────────────────────── */

.faq { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
.faq dl { display: grid; }
.faq .qa { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq .qa:first-child { padding-top: 0; }
.faq .qa:last-child { border-bottom: none; }
.faq .q-mark { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.faq dt { font-weight: 700; font-size: 15px; }
.faq dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.8; }

/* ── データの扱い ───────────────────────── */

.facts { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
.facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fact { border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; background: var(--ground); }
.fact h3 { font-size: 15px; font-family: var(--sans); font-weight: 700; margin-bottom: 6px; }
.fact p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

/* ── 先行登録フォーム ───────────────────── */

.cta > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; align-items: center; }
.cta h2 { font-size: 36px; margin-bottom: 16px; }
.cta p { color: var(--ink-2); font-size: 15px; line-height: 1.9; }

.signup {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 28px 30px;
  box-shadow: 0 1px 2px rgba(18, 38, 58, .04), 0 12px 32px -20px rgba(18, 38, 58, .22);
}
.signup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.signup__head h2, .signup__head h3 { font-size: 20px; font-family: var(--serif); }
.signup__head span { font-size: 12.5px; color: var(--ink-2); }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 11px 13px;
}
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

/* ボットよけ。人には見せない */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  width: 100%; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 4px;
  padding: 14px; margin-top: 6px;
}
.submit:hover:not(:disabled) { background: #24518A; border-color: #24518A; }
.submit:disabled { opacity: .45; cursor: progress; }

.signup__foot { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; line-height: 1.7; }

.msg { margin-top: 12px; font-size: 13.5px; line-height: 1.7; border-radius: 4px; padding: 10px 12px; }
.msg[hidden] { display: none; }
.msg--bad  { background: var(--lost-bg); border: 1px solid #EFC9C3; color: #8A2E20; }
.msg--note { background: #EDF2F8; border: 1px solid #C8D8EA; color: var(--ink); }

/* ── フッター ───────────────────────────── */

.site-foot { background: var(--surface); border-top: 1px solid var(--line); }
.site-foot__inner {
  max-width: var(--max); margin: 0 auto; min-height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 20px var(--pad-x);
  font-size: 12.5px; color: var(--ink-2);
}
.site-foot a { margin-left: 24px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 狭い画面 ───────────────────────────── */

@media (max-width: 1100px) {
  :root { --pad-x: 40px; --pad-y: 52px; }
  .hero > .wrap,
  .cta  > .wrap,
  .steps, .perks, .faq, .facts { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 40px; }
  .sec-title { font-size: 28px; }
  .cta h2 { font-size: 28px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; --pad-y: 44px; }
  body { font-size: 14.5px; }
  .hero h1 { font-size: 30px; }
  .points, .issues, .plans, .facts__grid, .screens, .versus { grid-template-columns: minmax(0, 1fr); }
  .points dt { font-size: 24px; }
  .card h3 { font-size: 24px; }
  /* 受信箱の行は狭いと収まらない。横に逃がす（ページ自体は横スクロールさせない） */
  .panel { overflow-x: auto; }
  .req { min-width: 420px; }
  .signup { padding: 22px 18px; }
  .site-head__inner { height: 64px; }
  .brand__name { font-size: 19px; }
  .badge { display: none; }
}

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