@charset "UTF-8";

/* ============================================================
   Route — 共通スタイル
   配色はここだけで決まります。ロゴ確定後はこのブロックを差し替え。
   ------------------------------------------------------------
   現在：営業資料と同じ NAVY 系（234F6E / B87309）
   緑系に振る場合は下の [緑案] のコメントを外して上を消す
   ============================================================ */
:root {
  --brand:        #234F6E;   /* 主色 */
  --brand-deep:   #16354C;   /* 濃い側（フッター・見出し） */
  --brand-tint:   #EDF3F7;   /* 面 */
  --accent:       #B87309;   /* 差し色。提供中の印とリンクの下線だけに使う */
  --ink:          #1F2933;
  --muted:        #6B7A88;
  --line:         #DCE4EA;
  --paper:        #F7F9FA;
  --white:        #FFFFFF;

  /* [緑案] ロゴが深緑＋真鍮に決まったらこちらへ
  --brand:      #2C4A3B;
  --brand-deep: #1B3126;
  --brand-tint: #EDF2EF;
  --accent:     #A67C33;
  */

  --jp-gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --jp-mincho: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Cabin", var(--jp-gothic);

  --wrap: 1080px;
  --gap: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp-gothic);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ---------- ヘッダー ---------- */
.site-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark .mark {
  font-family: var(--latin);
  font-size: 25px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand-deep);
}
.wordmark .kanji { font-size: 12px; color: var(--muted); letter-spacing: .18em; }

.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); font-size: 14.5px; }
.nav a[aria-current="page"] { color: var(--brand); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.nav .login {
  border: 1px solid var(--brand); border-radius: 4px;
  padding: 6px 14px; color: var(--brand); font-size: 14px;
}
.nav .login:hover { background: var(--brand); color: var(--white); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 4px; padding: 8px 12px; font-family: inherit; cursor: pointer;
}

/* ---------- 見出し・本文 ---------- */
.eyebrow {
  font-family: var(--latin);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
h1, h2, h3 { line-height: 1.55; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.mincho { font-family: var(--jp-mincho); font-weight: 500; }
p { margin: 0 0 18px; }
.lead { font-size: 17px; }
.note { font-size: 14px; color: var(--muted); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- ヒーロー ---------- */
.hero { background: var(--white); padding: 76px 0 56px; border-bottom: 1px solid var(--line); }
.hero .thesis {
  font-family: var(--jp-mincho);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.7; font-weight: 500; letter-spacing: .01em;
  margin: 0 0 24px; color: var(--brand-deep);
}
.hero .thesis .em { border-bottom: 3px solid var(--accent); padding-bottom: 2px; }
.hero p { max-width: 44em; }

/* ---------- カバレッジ格子（サイトの中心） ---------- */
.grid-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; justify-content: space-between; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.now { background: var(--accent); }
.dot.soon { background: var(--brand); opacity: .45; }
.dot.plan { background: var(--line); border: 1px solid #C7D2DA; }

.matrix { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--white); }
.matrix caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 10px; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 0; text-align: left; }
.matrix thead th {
  background: var(--brand-tint); color: var(--brand-deep);
  font-size: 13.5px; font-weight: 700; padding: 12px 14px; vertical-align: bottom;
}
.matrix thead th:first-child { background: var(--white); border-top-color: transparent; border-left-color: transparent; }
.matrix tbody th { width: 30%; padding: 0; }
.matrix tbody th a {
  display: block; padding: 16px 14px; color: var(--ink); font-weight: 700; font-size: 15px;
}
.matrix tbody th a:hover { background: var(--brand-tint); text-decoration: none; }
.matrix tbody th small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.cell { padding: 16px 14px; font-size: 13.5px; color: var(--muted); }
.cell b { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.cell.is-now { background: #FDF8EF; }
.cell.is-now b { color: var(--brand-deep); }
.cell span { display: block; margin-top: 3px; }

/* 読み込み時に左上から順に立ち上がる */
.matrix tbody td, .matrix tbody th { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .matrix tbody td, .matrix tbody th { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- カード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 24px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 14px; }
.card .more { margin-top: auto; font-size: 14px; }
.card .more::after { content: " →"; }

/* ---------- 一覧・定義リスト ---------- */
.stack { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.stack li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.stack .ttl { font-weight: 700; }
.stack .meta { font-size: 13px; color: var(--muted); }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; gap: 20px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts dt { width: 9em; flex: none; color: var(--muted); font-size: 14px; margin: 0; }
.facts dd { margin: 0; }
.todo { color: var(--accent); font-size: 13px; }

/* ---------- タグ（ナレッジ） ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filters button {
  font-family: inherit; font-size: 13px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px; margin-right: 6px; white-space: nowrap; }

.empty {
  background: var(--white); border: 1px dashed #C7D2DA; border-radius: 4px;
  padding: 32px 28px; text-align: left;
}

/* ---------- 帯 ---------- */
.band { background: var(--brand-deep); color: #E7EDF2; }
.band h2 { color: var(--white); }
.band a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.btn {
  display: inline-block; background: var(--brand); color: var(--white);
  border: 1px solid var(--brand); border-radius: 4px; padding: 12px 24px; font-weight: 700;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* ---------- パンくず・フッター ---------- */
.crumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--muted); }

.site-foot { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap); }
.foot-grid h4 { font-size: 13px; color: var(--muted); margin: 0 0 10px; font-weight: 700; letter-spacing: .06em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; font-size: 14px; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- 狭い画面 ---------- */
@media (max-width: 860px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .login { text-align: center; margin-top: 14px; border-bottom: 1px solid var(--brand); }

  /* 格子は縦積みに組み替える */
  .matrix, .matrix tbody, .matrix tr, .matrix td, .matrix th { display: block; width: auto; }
  .matrix thead { display: none; }
  .matrix tr { margin-bottom: 18px; border: 1px solid var(--line); background: var(--white); }
  .matrix tbody th, .matrix td { border: none; border-bottom: 1px solid var(--line); }
  .matrix tr td:last-child { border-bottom: none; }
  .cell::before { content: attr(data-col) "："; color: var(--muted); font-size: 12.5px; display: block; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dt { width: auto; }
}

/* ============================================================
   追加：画面キャプチャの枠／分野の入口／状態バッジ
   ============================================================ */

/* 画面キャプチャ。img を入れれば置き換わる。無ければ枠だけ出る */
.shot {
  aspect-ratio: 16 / 10;
  background: var(--brand-tint);
  border: 1px dashed #BFCEDA;
  border-radius: 4px;
  display: grid; place-items: center;
  margin: 0 0 18px; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot .ph { text-align: center; padding: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.shot .ph b { display: block; color: var(--accent); font-size: 12px; letter-spacing: .08em; margin-bottom: 4px; }
.shot.wide { aspect-ratio: 16 / 7; }

/* 分野の入口（トップの分岐器） */
.fieldlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.fieldlist a {
  display: block; height: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; padding: 18px 20px; color: var(--ink);
}
.fieldlist a:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; }
.fieldlist .name { font-weight: 700; font-size: 15px; display: block; }
.fieldlist .sub { font-size: 12.5px; color: var(--muted); display: block; line-height: 1.65; margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  border-radius: 3px; padding: 2px 8px; margin-bottom: 8px;
}
.badge.now  { background: #FDF3E3; color: #8A5606; }
.badge.soon { background: var(--brand-tint); color: var(--brand); }
.badge.plan { background: #F0F3F5; color: var(--muted); }

.inline-link { font-size: 14.5px; }
.inline-link::after { content: " →"; }

@media (max-width: 860px) {
  .fieldlist { grid-template-columns: 1fr; }
}
