/* =========================================================
   UNDER Design — Bold  v1.0  base.css
   白と黒が基本。セクションは平らな色面で切り替える。
   カードの並べ方・番号バッジ・見出し上のラベル・強調語の色替えは使わない。
   大きく太い左寄せの見出しを、ページでいちばん目立つものにする。
   このファイル1つで完結する（tokens.css は不要）。外部読み込みなし。
   顧客ごとに変えるのは「ブランド」ブロックの値だけ（各顧客の site.css の :root で上書き）。
   ========================================================= */

:root {
  /* --- ブランド（顧客ごとに上書きしてよい） --- */
  --surface-accent: #e3f48c;   /* 色面A：サービスなど1か所だけ（明るい色。文字は黒） */
  --surface-strong: #1c2a6e;   /* 色面B：お問い合わせ（暗い色。文字は白） */
  --btn-light-hover: var(--surface-accent);

  /* --- ニュートラル（基本は変えない） --- */
  --ink: #000000;              /* 見出し・本文・主ボタン */
  --ink-sub: #474747;          /* 説明文（白・灰・色面Aの上で 4.5:1 以上） */
  --paper: #ffffff;
  --gray: #f2f2f2;             /* 交互のセクション */
  --line: #d6d6d6;
  --line-strong: #000000;

  /* --- 文字 --- */
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic,
    "Noto Sans JP", "Noto Sans CJK JP", Meiryo, system-ui, sans-serif;
  --size-hero: clamp(2.5rem, 8.4vw, 6.75rem);
  --size-title: clamp(1.875rem, 4.4vw, 3.25rem);
  --size-h3: clamp(1.125rem, 1.6vw, 1.3125rem);
  --size-row: clamp(1.375rem, 2.6vw, 2rem);

  /* --- レイアウト --- */
  --measure: 36em;             /* 本文の行の長さ（全角で約36字） */
  --wrap: 76rem;
  --wrap-narrow: 48rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --block-y: clamp(4.5rem, 11vw, 9rem);
  --radius-pill: 999px;        /* 角丸はボタンだけ */
  --header-h: 68px;

  /* --- 動き --- */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 250ms;

  color-scheme: light;
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, dl, dd, ol, table, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.block--strong :focus-visible { outline-color: var(--paper); }

h1, h2, h3, .faq summary, .price tbody th { word-break: auto-phrase; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-pill); text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.75rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.btn--sm { min-height: 40px; padding: 0 1.25rem; font-size: 0.875rem; }
.btn--lg { min-height: 60px; padding: 0 2.25rem; font-size: 1.0625rem; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #333333; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--btn-light-hover); }

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.text-link:hover { text-decoration-thickness: 4px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: 100%; }
.logo {
  font-family: system-ui, sans-serif;
  font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none;
}
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.875rem; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
@media (max-width: 879px) {
  .nav { display: none; }
  .header__inner > .btn { margin-left: auto; }
}

/* ---------- ファーストビュー ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(4rem, 9vw, 7rem); }
.hero__title {
  font-size: var(--size-hero);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.hero__foot {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 2px solid var(--line-strong);
}
.hero__lead { max-width: var(--measure); font-size: clamp(1rem, 1.5vw, 1.1875rem); color: var(--ink-sub); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
@media (min-width: 880px) {
  .hero__foot { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- セクション共通（色面） ---------- */
.block { padding-block: var(--block-y); }
.block--gray { background: var(--gray); }
.block--accent { background: var(--surface-accent); }
.block--strong { background: var(--surface-strong); color: var(--paper); }

.block__title {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-size: var(--size-title);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.block__lead {
  max-width: var(--measure);
  margin: calc(clamp(2rem, 4vw, 3.5rem) * -0.5) 0 clamp(2rem, 4vw, 3rem);
  color: var(--ink-sub);
}

/* ---------- 行組み（カードの代わりに、太い見出しと説明を線で区切って並べる） ---------- */
.rows { border-top: 2px solid var(--ink); }
.rows__item {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--ink);
}
.rows dt {
  font-size: var(--size-row);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.rows dd { max-width: var(--measure); }
@media (min-width: 880px) {
  .rows__item { grid-template-columns: 2fr 3fr; gap: 3rem; align-items: baseline; padding-block: 2rem; }
}

/* ---------- 左右2段（文章＋表など） ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.split:last-child { padding-bottom: 0; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
}
.split__text h3 {
  margin-bottom: 0.875rem;
  font-size: var(--size-h3);
  font-weight: 800;
  line-height: 1.5;
}
.split__text p { max-width: var(--measure); color: var(--ink-sub); }

/* 見本の表（項目と内容） */
.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 0.9375rem;
}
.sheet caption { padding-bottom: 0.625rem; text-align: left; font-size: 0.875rem; font-weight: 700; }
.sheet th, .sheet td { padding: 0.875rem 1.125rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { width: 9.5em; font-weight: 700; background: var(--gray); }

/* ---------- 流れ（順番があるときだけ番号を使う。丸いバッジにはしない） ---------- */
.flow { display: grid; gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.flow li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.flow h3 { font-size: var(--size-h3); font-weight: 800; line-height: 1.4; }
.flow p { margin-top: 0.25rem; color: var(--ink-sub); font-size: 0.9375rem; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; border-top: 0; }
  .flow li { padding-block: 1.75rem 2rem; border-top: 2px solid var(--ink); border-bottom: 0; }
}
.flow__note { margin-top: 2rem; max-width: var(--measure); color: var(--ink-sub); font-size: 0.9375rem; }

/* ---------- 料金（表。スマホでは縦に積む） ---------- */
.price { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.price th, .price td { padding: 1.5rem 1rem 1.5rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price thead th { padding-block: 0.875rem; font-size: 0.8125rem; font-weight: 700; color: var(--ink-sub); }
.price tbody th { font-size: var(--size-h3); font-weight: 800; line-height: 1.5; width: 30%; }
.price td { color: var(--ink-sub); }
.price td:last-child { color: var(--ink); font-weight: 700; white-space: nowrap; padding-right: 0; text-align: right; }
@media (max-width: 719px) {
  .price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price, .price tbody, .price tr, .price th, .price td, .price tbody th { display: block; width: auto; }
  .price tr { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
  .price th, .price td { padding: 0; border: 0; }
  .price td { margin-top: 0.375rem; }
  .price td:last-child { margin-top: 0.75rem; text-align: left; }
}

/* ---------- よくある質問（JavaScript なしで開閉） ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative;
  padding: 1.375rem 3rem 1.375rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--duration) var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: var(--measure); padding-bottom: 1.5rem; color: var(--ink-sub); }

/* ---------- お問い合わせ（色面B） ---------- */
.contact__title {
  font-size: var(--size-title);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.contact__lead {
  max-width: var(--measure);
  margin: 1.75rem 0 2.5rem;
  color: rgba(255, 255, 255, 0.82);
}
.contact__hint { margin-top: 1rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- フッター ---------- */
.footer { padding-block: 2.5rem; font-size: 0.875rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
