/* ---------------------------------------------------------------
   下層ページ(/features/*)の共通パーツ。base.css の上に読み込む。
   base.css のトークン(--ink / --muted / --brand-d …)をそのまま使う。
   トップと同じ骨格(.wrap / .block / .card / .chip)は再利用し、
   ここには「読み物ページで足りないもの」だけを足す。
   --------------------------------------------------------------- */

/* ---------- パンくず ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand-d); }
.crumb .sep { color: var(--edge-2); }
.crumb .now { color: var(--ink-2); }

/* ---------- ページ見出し ---------- */
.page-head { background: var(--band); border-bottom: 1px solid var(--edge); padding: 26px 0 56px; }
.page-head .eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-d); font-weight: 600; display: block; margin-top: 26px;
}
.page-head h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; margin-top: 12px; max-width: 20ch; }
.page-head .lede { color: var(--muted); margin-top: 18px; font-size: 15.5px; line-height: 2.0; max-width: 60ch; }
.page-head .lede b { color: var(--ink); font-weight: 700; }
.page-head .chiprow { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 目次 ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--edge-2); border-radius: 999px; padding: 7px 14px;
  transition: border-color .16s ease, color .16s ease;
}
.toc a:hover { color: var(--brand-d); border-color: var(--brand); }

/* ---------- セクション見出し(左寄せ・読み物用) ---------- */
.sec-head--l { text-align: left; max-width: 720px; margin: 0; }
.sec-head--l .sub { text-align: left; }

/* ---------- 仕様の並び(用語 + 説明) ---------- */
.spec { display: grid; gap: 0; margin-top: 34px; }
.spec > div { display: grid; grid-template-columns: 190px 1fr; gap: 22px; padding: 20px 0; border-top: 1px solid var(--edge); }
.spec > div:first-child { border-top: 0; }
.spec dt, .spec .t { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.6; }
.spec dd, .spec .d { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.spec .d b { color: var(--ink); font-weight: 700; }
.spec .d code {
  font-family: var(--mono); font-size: 12.5px; background: var(--band);
  border: 1px solid var(--edge); border-radius: 6px; padding: 1px 6px;
}

/* ---------- スクリーンショット(スマホ枠は素材側に含まれる) ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 100%; height: auto; display: block; }
.shots figcaption {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--muted);
  margin-top: 12px; letter-spacing: 0.02em; line-height: 1.7;
}

/* ---------- 補足の囲み ---------- */
.note {
  margin-top: 34px; background: #fff; border: 1px solid var(--edge);
  border-left: 3px solid var(--brand); border-radius: 12px; padding: 18px 20px;
  font-size: 13.5px; line-height: 1.95; color: var(--muted);
}
.note b { color: var(--ink); font-weight: 700; }
.note .h { display: block; font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 4px; }
.block--band .note { background: rgba(255,255,255,0.72); }

/* ---------- 指標カードの並び ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.metric { background: #fff; border: 1px solid var(--edge); border-radius: 14px; padding: 20px; }
.metric h3 { font-size: 15.5px; font-weight: 800; }
.metric p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.metric .k {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--muted-2); text-transform: uppercase;
}

/* ---------- 次に読むページ ---------- */
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.next a {
  display: block; background: #fff; border: 1px solid var(--edge); border-radius: 14px;
  padding: 20px; transition: border-color .16s ease, transform .16s ease;
}
.next a:hover { border-color: var(--brand); transform: translateY(-2px); }
.next .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; }
.next h3 { font-size: 16px; font-weight: 800; margin-top: 6px; }
.next p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 940px) {
  .shots, .metrics, .next { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 20px 0 44px; }
}

@media (max-width: 640px) {
  .shots, .metrics, .next { grid-template-columns: 1fr; }
  /* 用語を上、説明を下に積む(190px の固定列だと語が途中で折れる) */
  .spec > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .shots { max-width: 380px; margin-left: auto; margin-right: auto; }
}
