/*
 * TSUMIAGE の見た目
 * ・色はロゴに合わせた「青（ふだん）」。config.js の theme で、以前の案の「緑」「黄色」にも切り替えられます
 *   （下の :root が青、[data-theme="green"] が緑、[data-theme="yellow"] が黄色）。
 * ・文字は Noto Sans JP。角は小さめ（4〜12px）にして、シャープでビジネスらしい印象にしています。
 * ・案件はどれも同じ4項目（継続報酬・続く期間・解約時の扱い・初期費用）の表で並べます。
 */

/* ========== 色と文字の設定（青：ロゴの色から決めたもの） ========== */
:root {
  --ink: #13284F;            /* 文字（ロゴの紺に近い色） */
  --muted: #4A5B78;          /* 補足の文字 */
  --bg: #FFFFFF;             /* 背景 */
  --bg-alt: #F3F7FD;         /* 1つおきの区画の背景 */
  --weak: #E6EFFC;           /* アイコンの下地など */
  --line: #DCE5F2;           /* 線 */
  --line-strong: #C7D5EA;    /* 少し濃い線（入力欄・ボタンの枠） */
  --accent: #1C5FD0;         /* ボタン・ラベルの塗り（ロゴの青） */
  --on-accent: #FFFFFF;      /* 塗りの上の文字 */
  --accent-ink: #1C5FD0;     /* アクセント色の文字・アイコンの線 */
  --accent-ring: none;       /* 塗りのふち（黄色のときだけうすく付ける） */
  --highlight: #BBD6FF;      /* 見出しの蛍光ペン */
  --offset: #B9D3F7;         /* 写真の後ろの色の板 */
  --bar-1: #D3E3FA;
  --bar-2: #A9C8F3;
  --bar-3: #6FA3EA;
  --bar-4: #3B82E0;
  --bar-last-ring: transparent;
  --bar-neutral: #D5DCE6;
  --meter: #1C5FD0;
  --unknown: #4A5B78;
  --unknown-line: #8A9AB3;
  --sample-bg: #FFF1C7;
  --sample-ink: #6B4E00;
  --dark: #0E2A5C;           /* いちばん上の帯・フッター（ロゴの紺） */
  --on-dark: #E7EEF9;
  --on-dark-muted: #A9BCD9;
  --dark-line: #23407A;
  --slider: #1C5FD0;
  --shadow: rgba(14, 42, 92, 0.08);
  --shadow-strong: rgba(14, 42, 92, 0.16);

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  color-scheme: light;
}

/* 緑（以前の案。ロゴの色とは合わないので、ふだんは使わない） */
:root[data-theme="green"] {
  --ink: #183A33;
  --muted: #4F6B64;
  --bg-alt: #F4FAF7;
  --weak: #EAF6F1;
  --line: #DCEBE5;
  --line-strong: #CFE6DD;
  --accent: #17775F;
  --on-accent: #FFFFFF;
  --accent-ink: #17775F;
  --accent-ring: none;
  --highlight: #FFD25A;
  --offset: #9FD3C1;
  --bar-1: #BFE3D6;
  --bar-2: #9FD3C1;
  --bar-3: #6FBBA2;
  --bar-4: #4FA88B;
  --bar-last-ring: transparent;
  --bar-neutral: #C9D6D2;
  --meter: #17775F;
  --unknown: #4F6B64;
  --unknown-line: #7A918A;
  --dark: #183A33;
  --on-dark: #E6F2EE;
  --on-dark-muted: #A9C4BC;
  --dark-line: #2E5249;
  --slider: #17775F;
  --shadow: rgba(24, 58, 51, 0.08);
  --shadow-strong: rgba(24, 58, 51, 0.16);
}

/* 黄色（以前の案。ロゴの色とは合わないので、ふだんは使わない） */
:root[data-theme="yellow"] {
  --ink: #2B2412;
  --muted: #6B5E45;
  --bg-alt: #FFF8E6;
  --weak: #FFF3CC;
  --line: #F0E4C4;
  --line-strong: #EAD9A8;
  --accent: #FFC83D;
  --on-accent: #2B2412;      /* 黄色の上の白い文字は読みにくいので、濃い茶色にする */
  --accent-ink: #8A5A00;
  --accent-ring: inset 0 0 0 1px rgba(43, 36, 18, 0.16);
  --highlight: #FFD54A;
  --offset: #FFE39A;
  --bar-1: #FFEDB8;
  --bar-2: #FFE39A;
  --bar-3: #FFD25A;
  --bar-4: #F5B700;
  --bar-last-ring: #8A5A00;
  --bar-neutral: #E8DFCC;
  --meter: #E0A100;
  --unknown: #6B5E45;
  --unknown-line: #A8977A;
  --sample-bg: #EFEAE0;
  --sample-ink: #4A4232;
  --dark: #2B2412;
  --on-dark: #FFF3D6;
  --on-dark-muted: #D9C9A3;
  --dark-line: #4A3F26;
  --slider: #A97300;
  --shadow: rgba(43, 36, 18, 0.08);
  --shadow-strong: rgba(43, 36, 18, 0.16);
}

/* ========== 基本 ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.8; letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.4; letter-spacing: 0.02em; word-break: auto-phrase; text-wrap: balance; }
svg.i { flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* 準備中のしるし */
.soon {
  display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 3px;
  font-size: 0.6875rem; font-weight: 500; line-height: 1.6; color: var(--muted); vertical-align: 1px; letter-spacing: 0.02em;
  white-space: nowrap;
}
.is-soon { color: var(--muted); }

/* ========== お知らせ帯（公開前のひな形） ========== */
.notice { background: var(--sample-bg); color: var(--sample-ink); font-size: 0.8125rem; }
.notice .wrap { padding-block: 6px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.notice strong { letter-spacing: 0.04em; }

/* ========== ヘッダー ========== */
.topbar { background: var(--dark); color: #FFFFFF; font-size: 0.75rem; line-height: 1.7; }
.topbar .wrap { padding-block: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 16px; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .is-soon { color: rgba(255, 255, 255, 0.82); }
.topbar .soon { border-color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.82); }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: #FFFFFF; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header__inner { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }

/* ロゴ（画像は assets/img/logo/。マークと文字を横に並べ、下に小さく説明を出す） */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo__mark { flex: none; display: block; width: auto; height: 52px; }
.logo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.logo__word { display: block; width: auto; height: 26px; }
.logo__sub { font-size: 0.6875rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; line-height: 1.3; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 0.9375rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent-ink); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 700; }

/* ========== ボタン ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.4; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-ring); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--sm { padding: 0 14px; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding: 0 24px; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"] {
  background: var(--bg-alt); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; filter: none;
}

/* ========== 区画と見出し ========== */
.section { padding-block: 64px; }
.section--alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.section-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.section-head--row > div { display: flex; flex-direction: column; gap: 6px; }
.section-head h2, .about__body h2 { margin: 0; font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-lead { margin: 0; color: var(--muted); }

.eyebrow {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-ink);
}
.eyebrow::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--accent); }
.eyebrow--hero { font-size: 0.875rem; letter-spacing: 0.04em; }
.eyebrow--hero::before { width: 28px; height: 3px; }

.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.more:hover { text-decoration: underline; }
.more svg { width: 16px; height: 16px; stroke-width: 2.6; }
.note { margin: 16px 0 0; font-size: 0.8125rem; color: var(--muted); }

/* ========== トップ：最初の画面 ========== */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero__inner {
  padding-block: 56px 64px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 56px; align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(1.875rem, 3.8vw, 3rem); line-height: 1.35; }
.marker { background: linear-gradient(transparent 66%, var(--highlight) 66%); }
.lead { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 32em; }

.search {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 8px 24px var(--shadow);
}
.search__title { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.search__title svg { width: 20px; height: 20px; stroke-width: 2.4; color: var(--accent-ink); }
.search__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.field select {
  min-height: 48px; width: 100%; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 400;
}

.trust { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; stroke-width: 2.6; color: var(--accent-ink); }

.hero__visual { position: relative; min-width: 0; padding: 0 16px 16px 0; }
.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 12px; }
.photo--offset { box-shadow: 16px 16px 0 var(--offset); }
.hero__visual .photo { aspect-ratio: 16 / 15; object-position: 45% 50%; }
.hero__count {
  position: absolute; top: 16px; right: 32px; padding: 6px 12px; border-radius: 4px; background: var(--bg);
  font-size: 0.8125rem; font-weight: 700; box-shadow: 0 6px 18px var(--shadow-strong);
}
.hero__count strong { font-size: 1rem; font-weight: 900; margin: 0 2px; font-variant-numeric: tabular-nums; }
.hero__chart {
  position: absolute; left: 16px; bottom: 32px; width: 250px; max-width: calc(100% - 48px);
  margin: 0; background: var(--bg); border-radius: 10px; padding: 14px 16px 12px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 28px var(--shadow-strong);
}
.hero__chart figcaption { font-size: 0.8125rem; font-weight: 700; line-height: 1.5; }
.hero__chart-note { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

/* 小さな棒グラフ（イメージ図） */
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 58px; border-bottom: 2px solid var(--line); }
.mini-bars span { flex: 1 1 0; border-radius: 2px 2px 0 0; background: var(--bar-2); }
.mini-bars .c0 { background: var(--bar-neutral); }
.mini-bars .c1 { background: var(--bar-1); }
.mini-bars .c2 { background: var(--bar-2); }
.mini-bars .c3 { background: var(--bar-3); }
.mini-bars .c4 { background: var(--bar-4); }
.mini-bars .is-last { background: var(--accent); box-shadow: inset 0 0 0 2px var(--bar-last-ring); }

/* ========== トップ：ジャンル ========== */
.genres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.genre {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; height: 100%;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 0.9375rem; line-height: 1.5;
}
.genre:hover { border-color: var(--accent-ink); }
.genre__icon { flex: none; width: 40px; height: 40px; border-radius: 6px; background: var(--weak); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.genre__icon svg { width: 22px; height: 22px; stroke-width: 2; }
.genre__label { flex: 1 1 auto; min-width: 0; }
.genre__count { flex: none; font-size: 0.75rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

.conds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.conds__label { font-weight: 700; font-size: 0.875rem; margin-right: 6px; }
.cond-chip {
  padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--bg);
  color: var(--ink); font-size: 0.875rem; text-decoration: none;
}
.cond-chip:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* ========== 案件カード ========== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; box-shadow: 0 2px 8px var(--shadow);
}
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--weak); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__noimage { display: block; width: 100%; height: 100%; }
.card__genre {
  position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 2px 10px; border-radius: 4px;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-ring);
  font-size: 0.75rem; font-weight: 700; line-height: 1.7;
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.card__title { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent-ink); text-decoration: underline; }
.card__company, .card__eligible { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.card__actions { margin-top: auto; padding-top: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card__actions .btn { white-space: normal; text-align: center; padding: 6px 10px; }

/* 比較の4項目（表） */
.ledger {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.ledger__item { background: var(--bg); padding: 10px 14px; min-width: 0; }
.ledger dt { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.ledger dd {
  margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.6;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.ledger dd.is-unknown { color: var(--unknown); }
.ledger dd.is-unknown span:last-child, .badge-unknown {
  display: inline-block; padding: 0 8px; border: 1px dashed var(--unknown-line); border-radius: 3px;
  font-size: 0.875rem; font-weight: 700; color: var(--unknown);
}
.ledger--card { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 6px; }
.ledger--card .ledger__item { padding: 7px 12px; }
.ledger--card dd { font-size: 0.9375rem; }
.ledger--card .meter { display: none; }
.ledger--big dd { font-size: 1.25rem; }

/* 続く期間のメーター：1目盛り = 12か月（案件ページで表示） */
.meter { display: inline-flex; align-items: center; gap: 3px; }
.meter__seg { width: 12px; height: 8px; border-radius: 2px; background: var(--line); }
.meter__seg.is-on { background: var(--meter); }
.meter--open .meter__seg.is-on { opacity: 0.7; }
.meter__more {
  width: 0; height: 0; margin-left: 1px;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--meter);
}
.meter--unknown .meter__seg { background: transparent; border: 1px dashed var(--unknown-line); }

/* ========== トップ：試算ツール ========== */
.sim {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.sim__inputs { background: var(--bg-alt); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; justify-content: center; gap: 24px; min-width: 0; }
.sim__row { display: flex; flex-direction: column; gap: 6px; }
.sim__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sim__label-row label { font-weight: 700; }
.sim__label-row output { font-weight: 900; font-size: 1.375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim input[type="range"] { width: 100%; min-height: 32px; margin: 0; accent-color: var(--slider); }
.sim__hint { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.sim__result { background: var(--bg); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sim__caption { margin: 0; font-weight: 700; color: var(--muted); }
.sim__value { margin: 0; font-weight: 900; font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.sim__unit { font-size: 0.4em; font-weight: 700; margin-left: 4px; }
.sim__total { margin: 0; font-size: 0.875rem; color: var(--muted); }
.sim__total strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.sim__bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; border-bottom: 2px solid var(--line-strong); }
.sim__col { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; justify-content: center; align-items: flex-end; }
.sim__bar { width: 100%; max-width: 30px; height: 6px; border-radius: 3px 3px 0 0; background: var(--bar-2); transition: height 0.2s ease; }
.sim__bar.is-last { background: var(--accent); box-shadow: inset 0 0 0 2px var(--bar-last-ring); }
.sim__axis { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); }
.sim__result .btn { align-self: flex-start; }

/* ========== トップ：ストック型ビジネスとは ========== */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 56px; align-items: center; }
.about__photo { justify-self: center; width: 100%; max-width: 460px; padding: 0 16px 16px 0; }
.about__photo .photo { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.about__body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about__body > p { margin: 0; color: var(--muted); }
.about__body > .btn { align-self: flex-start; white-space: normal; }
.compare { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.compare__row { display: flex; flex-direction: column; gap: 6px; }
.compare__label { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 0.875rem; }
.compare__label span { color: var(--muted); }
.compare .mini-bars { height: 44px; }
.compare__note { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* ========== トップ：比較の4項目の説明 ========== */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.point { border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.point__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.point__num { font-weight: 900; font-size: 1.875rem; line-height: 1; color: var(--accent-ink); }
.point__icon { flex: none; width: 44px; height: 44px; border-radius: 6px; background: var(--weak); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.point__icon svg { width: 24px; height: 24px; stroke-width: 2; }
.point h3 { margin: 0; font-size: 1.1875rem; font-weight: 700; }
.point p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.point__example { align-self: flex-start; padding: 2px 10px; border-radius: 4px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 700; }
.unknown-note { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.875rem; color: var(--muted); }

/* ========== トップ：ご利用の流れ ========== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.step { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.step__num { font-weight: 900; font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--accent-ink); }
.step h3 { margin: 0; font-size: 1.1875rem; font-weight: 700; }
.step p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

/* ========== トップ：よくある質問 ========== */
.faq {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: 40px;
  border-bottom: 1px solid var(--line);
}
.faq__item { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.faq dt { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; line-height: 1.75; }
.faq dd { margin: 0; display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--muted); }
.faq__q, .faq__a {
  flex: none; width: 28px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.875rem; line-height: 1;
}
.faq__q { background: var(--accent); color: var(--on-accent); box-shadow: var(--accent-ring); }
.faq__a { background: var(--weak); color: var(--accent-ink); }

/* ========== トップ：掲載をご検討の企業様へ ========== */
.company {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.company__photo { position: relative; min-height: 300px; }
.company__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company__body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.company__body h2 { margin: 0; font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.45; }
.company__body > p { margin: 0; color: var(--muted); }
.company__body > .btn { align-self: flex-start; white-space: normal; }
.company__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.company__actions .btn { white-space: normal; text-align: center; }
.prices { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.price { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.price dt { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.price dd { margin: 0; font-weight: 900; font-size: 1.75rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.875rem; font-weight: 700; margin-left: 2px; }
.price dd.price__sub { font-size: 0.75rem; font-weight: 500; color: var(--muted); line-height: 1.4; }
.company__note { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* ========== 一覧ページ ========== */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 40px 32px; display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { margin: 0; font-weight: 900; font-size: clamp(1.625rem, 3vw, 2.125rem); }
.filters {
  margin: 12px 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 16px; box-shadow: 0 8px 24px var(--shadow);
}
.checks { display: grid; gap: 4px; align-content: end; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--slider); }
.results { padding-block: 24px 64px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.results-bar .count { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.link-btn {
  background: none; border: 0; padding: 8px 0; color: var(--accent-ink); font: inherit; font-size: 0.9375rem; font-weight: 700;
  cursor: pointer; text-decoration: underline;
}
.empty { background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 24px; color: var(--muted); margin: 0; }

/* ========== 案件ページ ========== */
.breadcrumb { font-size: 0.8125rem; color: var(--muted); padding-block: 16px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); }

.detail-head { display: flex; flex-direction: column; gap: 8px; padding-block: 12px 4px; }
.detail-head h1 { margin: 0; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); }
.detail-head .company-name { margin: 0; color: var(--muted); }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 1px 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-alt);
  color: var(--ink); font-size: 0.75rem; font-weight: 700; line-height: 1.7; text-decoration: none;
}
.tag--accent { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: var(--accent-ring); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-block: 16px 64px; }
.detail-main { display: grid; gap: 24px; min-width: 0; }
.detail-photo { margin: 0; }
.detail-photo img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 10px; }
.detail-photo figcaption { margin-top: 6px; font-size: 0.75rem; color: var(--muted); }
.box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; min-width: 0; }
.box h2 { margin: 0 0 12px; font-size: 1.1875rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.box h2::before { content: ""; flex: none; width: 4px; height: 1.1em; border-radius: 2px; background: var(--accent); }
.box p { margin: 0; }
.box .note { margin-top: 12px; }

.conditions { margin: 0; display: grid; }
.cond { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.cond:first-child { border-top: 0; padding-top: 0; }
.cond dt { color: var(--muted); font-size: 0.875rem; }
.cond dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cond dd.is-unknown { color: var(--unknown); }

.side { position: sticky; top: 16px; display: grid; gap: 12px; }
.cta { background: var(--weak); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 10px; }
.cta p { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.cta .btn { width: 100%; white-space: normal; text-align: center; }
.cta--inline { display: none; }
.meta { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* ========== 文書のページ（規約・ポリシー・運営者情報・お問い合わせ） ========== */
.page-head--doc .wrap { padding-top: 16px; }
.page-head .breadcrumb { padding-block: 0 8px; }
.page-head__meta { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 780px); gap: 24px 48px; align-items: start; padding-block: 32px 72px; }
.doc-layout--single { grid-template-columns: minmax(0, 780px); }

/* 目次（パソコンでは左に固定、スマホでは上にたたんで置く） */
.toc { position: sticky; top: 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 0.875rem; }
.toc summary { cursor: pointer; font-weight: 700; padding: 2px 0; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; line-height: 1.5; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.doc { display: grid; gap: 40px; min-width: 0; }
.doc__sec { min-width: 0; scroll-margin-top: 16px; }
.doc__sec > h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 900; }
.doc__sec > h2 + .box { margin-top: 4px; }
.doc h3 { margin: 22px 0 8px; font-size: 1.0625rem; font-weight: 700; }
.doc p { margin: 0 0 12px; }
.doc ol, .doc ul { margin: 0 0 12px; padding-left: 1.6em; display: grid; gap: 6px; }
.doc li > ol, .doc li > ul { margin: 6px 0 0; }
.doc li::marker { color: var(--muted); }
.doc p:last-child, .doc ol:last-child, .doc ul:last-child { margin-bottom: 0; }
/* （1）（2）…の箇条 */
.doc .paren { list-style: none; padding-left: 0; counter-reset: paren; }
.doc .paren > li { counter-increment: paren; position: relative; padding-left: 2.4em; }
.doc .paren > li::before { content: "（" counter(paren) "）"; position: absolute; left: 0; color: var(--muted); }
.doc .cond dd { word-break: auto-phrase; }
.doc .box { margin: 0 0 12px; }
.doc .box:last-child { margin-bottom: 0; }
.doc-callout { margin: 0; background: var(--weak); border-radius: 10px; padding: 16px 18px; }
.doc-end { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* まだ入っていない項目のしるし（公開前に config.js で入れる） */
.unset {
  display: inline-block; padding: 0 8px; border-radius: 4px; background: var(--sample-bg); color: var(--sample-ink);
  font-size: 0.8125rem; font-weight: 700; line-height: 1.8;
}

/* お問い合わせ */
.contact-cta { display: grid; gap: 10px; justify-items: start; }
.contact-cta p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.contact-grid .box { margin: 0; display: grid; gap: 8px; align-content: start; }
.contact-grid .box h3 { margin: 0; font-size: 1.0625rem; font-weight: 900; }
.contact-grid .box p { margin: 0; }

/* ========== フッター ========== */
.site-footer { background: var(--dark); color: var(--on-dark); }
.footer__inner { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 36px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
/* 縦並びの箱の中で横に引き伸ばされないよう、左寄せにして縦横の比率を保つ */
.footer__logo { display: block; align-self: flex-start; width: 229px; max-width: 100%; height: auto; margin-bottom: 4px; }
.footer__slogan { font-size: 0.875rem; font-weight: 700; color: #FFFFFF; word-break: auto-phrase; }
.footer__tagline { font-size: 0.8125rem; color: var(--on-dark-muted); word-break: auto-phrase; }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 0.875rem; }
.footer__title { margin: 0; font-weight: 700; color: #FFFFFF; }
.footer__nav a { color: var(--on-dark); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__nav .is-soon { color: var(--on-dark-muted); }
.site-footer .soon { border-color: var(--dark-line); color: var(--on-dark-muted); }
.footer__bottom {
  margin: 0; padding-top: 20px; border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.75rem; color: var(--on-dark-muted);
}
.footer__bottom p { margin: 0; }

/* ========== 画面幅ごとの調整 ========== */
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .cta--inline { display: grid; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); padding-block: 24px 56px; }
  .toc { position: static; }
}

@media (max-width: 640px) {
  .section { padding-block: 48px; }
  .hero__inner { padding-block: 36px 44px; }
  .ledger:not(.ledger--card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cond { grid-template-columns: minmax(0, 1fr); }
  .hero__count { right: 24px; top: 10px; }
  .hero__chart { left: 10px; bottom: 26px; }
  .nav { gap: 4px 16px; }
  .logo__mark { height: 44px; }
  .logo__word { height: 22px; }
}

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