/* ==========================================================
   わが家の家計相談室 記事LP（制作サンプル）
   配色：くすみグリーン系 ／ オレンジ系は使わない
   ========================================================== */

:root {
  --green-900: #3f5a4c;   /* 見出し・濃い文字 */
  --green-700: #5f8270;   /* メインのくすみグリーン */
  --green-500: #87a594;   /* 線・アクセント */
  --green-200: #d5e3d9;   /* 薄い面 */
  --green-100: #ecf3ee;   /* ごく薄い面 */
  --marker:    #cfe6c3;   /* 太字マーカー */
  --bg:        #f7f6f1;   /* 生成り */
  --paper:     #ffffff;
  --text:      #3d4440;
  --muted:     #7a837e;
  --line:      #dfe5e0;
  --radius:    14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1.4em; }
img { max-width: 100%; height: auto; }

.sp { display: inline; }
@media (min-width: 600px) { .sp { display: none; } }

/* ---------- PR 表記 ---------- */
.pr-bar {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 16px 0;
  text-align: right;
}
.pr-label {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--muted);
  border-radius: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

/* ---------- 本文コンテナ ---------- */
.article {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  padding-bottom: 24px;
}

/* ---------- マーカー ---------- */
strong { font-weight: 700; }
.mk {
  background: linear-gradient(transparent 58%, var(--marker) 58%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- ファーストビュー ---------- */
.hero {
  padding: 36px 20px 8px;
  background: linear-gradient(180deg, var(--green-100) 0%, var(--paper) 100%);
  text-align: center;
}
.hero__title {
  margin: 0 0 16px;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 26px;
  line-height: 1.55;
  color: var(--green-900);
}
.hero__sub {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 4px;
  border-top: 1px solid var(--green-500);
  border-bottom: 1px solid var(--green-500);
  color: var(--green-700);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}
@media (min-width: 600px) {
  .hero__title { font-size: 32px; }
}

/* ---------- 画像プレースホルダー ---------- */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  margin: 0 0 1.6em;
  padding: 16px;
  border: 2px dashed var(--green-500);
  border-radius: var(--radius);
  background: var(--green-100);
  color: var(--green-700);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.img-ph--hero { aspect-ratio: 4 / 3; margin-bottom: 16px; }

/* ---------- セクション ---------- */
.sec {
  padding: 32px 20px 8px;
}
.sec__title {
  position: relative;
  margin: 0 0 24px;
  padding: 14px 16px 14px 20px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-900);
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 21px;
  line-height: 1.5;
}
.sec__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: var(--green-700);
}

.voice-line {
  margin: 1.6em 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-900);
}

.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.note--sample {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
}

/* ---------- 試したこと ---------- */
.tried {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}
.tried__item {
  margin-bottom: 14px;
  padding: 16px 16px 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tried__head { margin-bottom: 0.4em; font-size: 18px; }

/* ---------- 会話 ---------- */
.talk {
  position: relative;
  margin: 0 0 1.6em;
  padding: 18px 18px 2px;
  border-radius: var(--radius);
  background: var(--green-100);
}
.talk::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  border: 10px solid transparent;
  border-top: 0;
  border-bottom-color: var(--green-100);
}

/* ---------- お客様の声 ---------- */
.voices { margin-bottom: 12px; }
.voice {
  margin: 0 0 14px;
  padding: 18px 18px 14px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 2px 0 var(--green-200);
}
.voice p { margin-bottom: 0.6em; }
.voice cite {
  display: block;
  text-align: right;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}
.voice cite::before { content: "（"; }
.voice cite::after  { content: "）"; }

/* ---------- チェックリスト ---------- */
.checks {
  margin: 0 0 1.4em;
  padding: 16px 16px 4px;
  border-radius: var(--radius);
  background: var(--green-100);
  list-style: none;
}
.checks li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 30px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-700);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(0.45em + 4px);
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- サービス概要表 ---------- */
.spec {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
}
.spec th,
.spec td {
  padding: 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.spec th {
  width: 32%;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 700;
}

/* ---------- 3つの理由 ---------- */
.reason {
  margin-bottom: 16px;
  padding: 20px 18px 4px;
  border-radius: var(--radius);
  background: var(--green-100);
}
.reason__num {
  margin: 0 0 4px;
  color: var(--green-700);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.reason__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--green-900);
}

/* ---------- 比較表（横スクロール） ---------- */
.scroll-hint {
  margin: 0 0 8px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 680px) { .scroll-hint { display: none; } }

.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.compare-wrap:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }

.compare {
  min-width: 620px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.compare th,
.compare td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }
.compare th:last-child,
.compare td:last-child { border-right: 0; }

.compare thead th {
  background: var(--green-100);
  color: var(--green-900);
  font-size: 14px;
}
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 120px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 14px;
  text-align: left;
}
.compare thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.compare .is-ours {
  background: #f3f8f2;
  color: var(--green-900);
  font-weight: 700;
}
.compare thead .is-ours {
  background: var(--green-700);
  color: #fff;
}
.compare thead .is-ours .mk { background: none; }

/* ---------- 申し込み手順 ---------- */
.steps {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  margin-bottom: 22px;
  padding: 16px 16px 2px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-bottom: 0;
  border-top-color: var(--green-500);
}
.step__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- CTA ---------- */
.cta {
  margin: 28px 0 24px;
  text-align: center;
}
.cta__micro {
  margin: 0 0 8px;
  color: var(--green-700);
  font-size: 15px;
  font-weight: 700;
}
.cta__btn {
  display: block;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px;
  border-radius: 999px;
  background: var(--green-700);
  box-shadow: 0 5px 0 var(--green-900);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.cta__btn::after { content: "  ›"; }
.cta__btn:hover { background: #567866; }
.cta__btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--green-900);
}
.cta__sub {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 追伸 ---------- */
.sec--ps {
  margin: 16px 16px 0;
  padding: 28px 18px 4px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  background: #fbfcfa;
}
.sec--ps .sec__title {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--green-200);
  border-radius: 0;
  background: none;
  font-size: 19px;
}
.sec--ps .sec__title::before { display: none; }

/* ---------- フッター ---------- */
.footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.footer p { margin: 0 0 6px; }
.footer__copy { font-size: 12px; }
