/* AIにおまかせ 紹介サイト ── 案D「端正・法人向け」
   白と紺、細い罫線、表で語る。**堅実さと説明責任**を見せる。
   想定：稟議を通す担当者、複数人で検討する会社。

   **6 ページとも同じ見た目を、この 1 枚から出す。**
   ページごとに色や余白を書くと、必ずどこかがずれる。

   **暗い配色は用意しない。**この案は白地に committed で、
   紙に印刷して回覧されることまで想定している。 */

:root {
  --ink: #16202e;
  --sub: #5b6675;
  --line: #dde3ea;
  --bg: #fff;
  --tint: #f4f7fa;
  --accent: #1f4e79;
  --ok: #127a51;
  --warn: #b3261e;
  --max: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.45; }

/* ---- 上のメニュー ---- */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.nav .brand { font-weight: 700; letter-spacing: .04em; color: var(--accent); text-decoration: none; font-size: 16px; }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--sub); text-decoration: none; font-size: 13.5px; }
.nav a.link:hover { color: var(--accent); }
.nav a.link[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav a.navcta {
  background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 3px;
  font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
.nav .brand { white-space: nowrap; }

/* **狭い画面ではメニューを畳まず、詰める。**押す先が消えるほうが困る */
@media (max-width: 560px) {
  .nav .wrap { gap: 12px; height: 56px; }
  .nav a.link { font-size: 12.5px; }
  .nav a.navcta { padding: 7px 12px; font-size: 12.5px; }
  /* ただし「動きの見本」だけは外す。**4 つ目を足したらサービス名が 2 行に折れた。**
     この行き先は、上の見出し部と下のリンクの両方に残してある。 */
  .nav a.nav-demo { display: none; }
}

/* ---- 見出し部 ---- */
.hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 60px 0; }
.hero .wrap { display: grid; gap: 32px; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.hero h1 { font-size: clamp(24px, 4.4vw, 35px); margin: 0 0 18px; letter-spacing: .01em; }
.hero .lead { color: var(--sub); font-size: 15px; margin: 0 0 24px; }

/* 見出し部の仕様表。**数字を先に見せる。**稟議では、まずここが読まれる */
.spec { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 6px 20px; }
.spec dl { display: grid; grid-template-columns: 8.5em 1fr; margin: 0; }
.spec dt, .spec dd { padding: 11px 0; border-top: 1px solid var(--line); margin: 0; font-size: 13.5px; }
.spec dl > dt:first-of-type, .spec dl > dt:first-of-type + dd { border-top: 0; }
.spec dt { color: var(--sub); }
.spec dd { font-weight: 700; }

.page-head { border-bottom: 1px solid var(--line); padding: 44px 0 32px; }
.page-head h1 { font-size: clamp(23px, 4.2vw, 32px); margin: 0 0 8px; }
.page-head p { color: var(--sub); margin: 0; font-size: 14.5px; }

.cta { margin: 0; }
.cta a, .btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 13px 30px; border-radius: 3px; font-size: 14.5px; font-weight: 700;
}
.cta .sub { display: block; margin-top: 12px; font-size: 13px; color: var(--sub); }

/* **主役は 1 つだけ。**同じ見た目のボタンを 2 つ並べると、どちらを押せばよいか
   分からなくなる。並びの 2 番目は文字のリンクに落とす。 */
.cta a.linkarrow {
  background: none; color: var(--accent); padding: 13px 0;
  margin-left: 20px; font-weight: 400; font-size: 14px;
}

/* ---- 区切り ---- */
section { padding: 52px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: .02em; }
section h2::before {
  content: ""; display: inline-block; width: 3px; height: 16px;
  background: var(--accent); margin-right: 10px; vertical-align: -2px;
}
section .note { color: var(--sub); font-size: 13.5px; margin-bottom: 26px; }

.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card h3 { font-size: 15px; margin: 0 0 6px; color: var(--accent); }
.card p { font-size: 13.5px; color: var(--sub); margin: 0; }

/* ---- 段取り ---- */
.flow { counter-reset: step; display: grid; gap: 0; padding: 0; margin: 0; }
.flow li {
  list-style: none; padding: 16px 0 16px 46px; position: relative;
  border-bottom: 1px solid var(--line);
}
.flow li:first-child { border-top: 1px solid var(--line); }
.flow li::before {
  counter-increment: step; content: counter(step) ".";
  position: absolute; left: 10px; top: 16px;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.flow strong { display: block; margin-bottom: 2px; font-size: 14.5px; }
.flow span { font-size: 13.5px; color: var(--sub); }

/* ---- 料金 ---- */
.plan { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; padding: 30px 26px; }
.plan .amount { font-size: clamp(32px, 7vw, 42px); font-weight: 700; line-height: 1.2; color: var(--accent); }
.plan .amount small { font-size: 15px; font-weight: 400; color: var(--sub); }
.plan ul { margin: 22px 0 0; padding: 0; }
.plan li {
  list-style: none; padding: 10px 0 10px 24px; position: relative;
  font-size: 14px; border-top: 1px solid var(--line);
}
.plan li:first-child { border-top: 0; }
.plan li::before { content: "・"; position: absolute; left: 2px; color: var(--accent); }

.callout {
  margin-top: 20px; background: var(--tint); border-left: 3px solid var(--accent);
  padding: 16px 18px; font-size: 13.5px;
}
.callout strong { color: var(--accent); }

/* ---- 表 ---- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 460px; }
caption { text-align: left; color: var(--sub); font-size: 13px; padding-bottom: 8px; }
th, td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--tint); font-weight: 700; white-space: nowrap; }
tbody th { background: var(--tint); font-weight: 700; white-space: nowrap; width: 11em; }
.num { text-align: right; white-space: nowrap; }
.tag {
  display: inline-block; background: #e7f3ee; color: var(--ok);
  font-size: 12px; padding: 2px 8px; border-radius: 3px; font-weight: 700;
}

/* ---- よくある質問 ---- */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
details p { margin: 10px 0 0; font-size: 13.5px; color: var(--sub); }

/* ---- 問い合わせ ---- */
form { border: 1px solid var(--line); border-radius: 4px; padding: 24px 22px; }
label { display: block; font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
input, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
button {
  width: 100%; font: inherit; font-size: 15px; font-weight: 700; padding: 14px;
  background: var(--accent); color: #fff; border: 0; border-radius: 3px; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { margin-top: 14px; font-size: 14px; font-weight: 700; }
.result.ok { color: var(--ok); }
.result.ng { color: var(--warn); }

/* ---- 規約 ---- */
.terms h2 { font-size: 16px; margin: 32px 0 6px; }
.terms ol { padding-left: 1.4em; }
.terms li { margin-bottom: .4em; font-size: 14px; }
.terms p { font-size: 14px; }
.terms .table-scroll { margin: 12px 0; }

/* ---- 下 ---- */
footer { padding: 32px 0 60px; font-size: 12.5px; color: var(--sub); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
footer a { text-decoration: none; }
.todo { color: var(--warn); }

/* ---- 申し込みの選択欄 ---- */
.plan-pick { border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.plan-pick label { display: block; font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.plan-pick select {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: inherit;
}
.plan-pick button {
  width: 100%; font: inherit; font-size: 15px; font-weight: 700; padding: 14px;
  background: var(--accent); color: #fff; border: 0; border-radius: 3px; cursor: pointer;
}
.plan-pick button:disabled { opacity: .5; cursor: default; }
