/* 発電所ドクター — 共通スタイル
   色：報告書の紙、モジュールの紺、測定器の黄、朱肉の赤（「解決」の印だけに使う） */
:root {
  color-scheme: light;
  --paper: #f6f7f4;
  --sheet: #ffffff;
  --ink: #1a2230;
  --module: #23395b;
  --module-deep: #182a45;
  --signal: #f2c230;
  --signal-deep: #d9a913;
  --stamp: #c23b2e;
  --line: #d5dad3;
  --muted: #56616d;
  --ok: #2f6b4f;
  --warn-bg: #fff4d1;
  --danger-bg: #fbe7e4;
  --radius-s: 6px;
  --radius-m: 10px;
  --wrap: 1120px;
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--module); text-underline-offset: 3px; }
a:hover { color: var(--module-deep); }
:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.35; letter-spacing: 0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 900; }
h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; max-width: 40em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-head { background: var(--module); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 20px; align-items: center; font-size: 15px; }
.site-nav a { color: #fff; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 720px) { .site-nav .hide-sm { display: none; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-s);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-signal { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn-signal:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--ink); }
.btn-line { background: transparent; color: var(--module); border-color: var(--module); }
.btn-line:hover { background: var(--module); color: #fff; }
.on-dark .btn-line { color: #fff; border-color: #fff; }
.on-dark .btn-line:hover { background: #fff; color: var(--module); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--module); color: #fff; padding: 56px 0 72px; overflow: hidden; position: relative; }
.hero::before {
  /* パネルのセルの格子 */
  content: ""; position: absolute; inset: 0; opacity: 0.09; pointer-events: none;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero-lead { font-size: 18px; color: #dfe6f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: #c9d3e0; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- 改修記録カード（このサイトの顔） ---------- */
.record {
  position: relative; background: var(--sheet); color: var(--ink);
  border-radius: var(--radius-s); padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(10, 20, 40, 0.35);
  font-size: 15px;
}
.record { margin: 0; padding-bottom: 104px; }
@media (max-width: 480px) { .record dl { grid-template-columns: 4.6em 1fr; } .record { padding: 18px 16px 100px; } }
.record-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.record-head strong { font-family: var(--font-display); font-size: 18px; }
.record-head span { font-size: 13px; color: var(--muted); }
.record dl { margin: 0; display: grid; grid-template-columns: 6.5em 1fr; }
.record dt, .record dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.record dt { color: var(--muted); font-size: 13px; padding-top: 11px; }
.record dd { font-weight: 700; }
.record ol { margin: 0; padding-left: 1.2em; font-weight: 400; }
.stamp {
  position: absolute; right: 22px; bottom: 10px; width: 86px; height: 86px;
  border: 3px solid var(--stamp); border-radius: 50%; color: var(--stamp);
  display: grid; place-items: center; transform: rotate(-12deg);
  font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.6);
}
.stamp::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--stamp); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: press 0.5s 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
  @keyframes press { from { opacity: 0; transform: rotate(-12deg) scale(1.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
}

/* ---------- 区切り ---------- */
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-sheet { background: var(--sheet); }
.section-lead { color: var(--muted); max-width: 36em; }

/* 使い方（順番のある手順） */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--module); padding-top: 16px; }
.steps li::before { content: "手順 " counter(step); display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* 根拠の流れ */
.ledger { display: flex; flex-wrap: wrap; align-items: stretch; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--sheet); }
.ledger div { flex: 1 1 200px; padding: 20px 22px; }
.ledger div + div { border-left: 1px solid var(--line); }
.ledger b { display: block; font-family: var(--font-display); font-size: 38px; font-weight: 900; color: var(--module); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ledger b small { font-size: 18px; margin-left: 2px; }
@media (max-width: 640px) { .ledger div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* 症状の一覧 */
.symptoms { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.symptoms li { border-bottom: 1px solid var(--line); }
.symptoms a { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 16px 4px; text-decoration: none; color: var(--ink); font-weight: 700; }
.symptoms a:hover { color: var(--module); background: rgba(35, 57, 91, 0.04); }
.symptoms a span { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.plan { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--module); }
.plan h3 { margin-bottom: 2px; }
.price { font-family: var(--font-display); font-size: 40px; font-weight: 900; line-height: 1.2; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 700; }
.plan ul { padding-left: 1.2em; margin: 14px 0 22px; flex: 1; }
.free-note { margin-top: 20px; padding: 14px 18px; background: var(--warn-bg); border-radius: var(--radius-s); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style-position: outside; }
.faq details p { margin: 0 0 16px; }

/* お約束 */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ---------- 記事（症状別ページ・規約） ---------- */
.article { max-width: 780px; }
.article h2 { margin-top: 1.8em; padding-top: 0.4em; border-top: 2px solid var(--ink); }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.cause-table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 15px; }
.cause-table th, .cause-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.cause-table th { font-size: 13px; color: var(--muted); font-weight: 400; }
.cause-table td.n { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.check-list { padding-left: 1.4em; }
.check-list li { margin-bottom: 8px; }
.safety-box { border-left: 4px solid var(--stamp); background: var(--danger-bg); padding: 14px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 20px 0; }
.cta-box { background: var(--module); color: #fff; border-radius: var(--radius-m); padding: 28px; margin: 40px 0; }
.cta-box h2 { border: 0; margin-top: 0; padding: 0; color: #fff; }
.cta-box p { color: #dfe6f0; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.legal-table th { width: 30%; color: var(--muted); font-weight: 400; }

/* ---------- フッター ---------- */
.site-foot { background: var(--ink); color: #c7ced8; padding: 40px 0; font-size: 14px; margin-top: 0; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 640px) {
  .cause-table thead { display: none; }
  .cause-table, .cause-table tbody, .cause-table tr, .cause-table td { display: block; width: 100%; }
  .cause-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .cause-table td { border: 0; padding: 4px 0; }
  .cause-table td[data-label]::before { content: attr(data-label) "："; color: var(--muted); font-size: 13px; font-weight: 400; }
}

/* ---- 図説（こんなことができます） ---- */
.flow { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.flow li { position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 18px; }
.band-sheet .flow li { background: var(--paper); }
.flow li + li::before { content: "→"; position: absolute; left: -28px; top: 44px; font-size: 22px; font-weight: 900; color: var(--stamp); }
.flow .fi { width: 52px; height: 52px; color: var(--module); display: block; margin-bottom: 8px; }
.flow h3 { margin: 0 0 6px; font-size: 18px; }
.flow p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 880px) {
  .flow { grid-template-columns: 1fr; gap: 30px; }
  .flow li + li::before { content: "↓"; left: 50%; top: -28px; transform: translateX(-50%); }
}
/* ---- 報告書作成への案内（ドクターのトップ） ---- */
.promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.ba svg { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.ba span { font-size: 26px; font-weight: 900; color: var(--stamp); }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }
/* ---- 発電所レポーターの紹介ページ ---- */
.hero-rp { background: #1f5c50; }
.eyebrow { margin: 0 0 8px; font-weight: 700; color: var(--signal); letter-spacing: .08em; }
.report-mock { margin: 0; background: var(--sheet); color: var(--ink); border-radius: var(--radius-m); padding: 18px 20px; box-shadow: 0 18px 40px #0004; }
.rm-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.rm-head strong { font-family: var(--font-display); font-size: 18px; }
.rm-head span { font-size: 13px; color: var(--muted); }
.rm-meta { display: grid; grid-template-columns: 5em 1fr; margin: 8px 0 12px; font-size: 14px; }
.rm-meta dt, .rm-meta dd { margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rm-meta dt { color: var(--muted); }
.rm-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.rm-pair small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.rm-pair svg { width: 100%; display: block; border: 1px solid var(--line); }
.rm-arrow { color: var(--stamp); font-weight: 900; font-size: 22px; padding-bottom: 18px; }
.rm-comment { margin: 10px 0 0; font-size: 13px; border: 1px solid var(--line); padding: 6px 8px; }
.kinds { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kinds li { border-left: 4px solid #1f5c50; background: var(--paper); padding: 12px 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.kinds b { display: block; }
.kinds span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .kinds { grid-template-columns: 1fr; } }
.plans-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .plans-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans-4 { grid-template-columns: 1fr; } }
.rp-head { background: #1f5c50; }
.lp-cta { margin-top: 28px; text-align: center; }
/* 報告書の書き方の記事 */
.guide-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.guide-links a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--sheet); font-weight: 700; text-decoration: none; color: var(--ink); }
.guide-links a::after { content: " →"; color: #1f5c50; }
.cta-rp { background: #1f5c50; }
.cta-rp .btn-line { color: #fff; border-color: #fff; }
/* 記事を読みやすく（2026-11-11） */
.article { font-size: 18px; line-height: 1.95; }
.article h1 { font-size: 34px; line-height: 1.4; }
.article h2 { font-size: 24px; }
.article li { margin-bottom: 6px; }
.article details summary { font-size: 18px; padding: 8px 0; cursor: pointer; }
.cta-mini { background: #eef6f3; border-left: 4px solid #1f5c50; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 16px; }
.cta-mini a { font-weight: 700; color: #1f5c50; }
@media (max-width: 560px) { .article { font-size: 17px; } .article h1 { font-size: 26px; } .article h2 { font-size: 21px; } }
/* 記事の図 */
.gfig { margin: 20px 0 8px; padding: 14px; background: #f7f9fb; border: 1px solid var(--line); border-radius: var(--radius-m); }
.gfig svg { width: 100%; height: auto; display: block; }
.gfig figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); text-align: center; }
