/* 外壁を守る記録 — 共通スタイル v4(2026-07-15 「白基調の高級感」再設計)
   方向: コンサルレポート風(白・余白・ヘアライン罫線・明朝大見出し)+Apple系ミニマル。
   ユーザー指示: 高級感・清潔感・文字の裏に薄い関連画像・ホバーで浮く動きは維持。
   維持している根拠(DESIGN_research_2026-07-15): CTAはオレンジ(本家3/5社帯域)/
   本文18px・行間1.8・タップ48px(60代可読性の下限)/広告表記は上部1行+フッター全文/
   数字tabular-nums/見出し内1〜2語だけ強調。文面・mark.checkの関門はv3から変更なし */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #24303c;
  --ink-light: #5f6b76;
  --navy: #16233f;
  --navy-deep: #0d1830;
  --gold: #b8963e;          /* 罫線・点使い用 */
  --gold-deep: #8a6f24;     /* 白地に文字として載せる時用(コントラスト確保) */
  --accent: #e96e0f;        /* CTA専用(本家5社中3社のオレンジ帯域) */
  --accent-dark: #b55300;
  --paper: #ffffff;
  --cream: #f9f7f3;
  --line: #e7e5e0;          /* ヘアライン罫線(1種類に統一) */
  --box-border: #e6e9ec;
  --warn-bg: #fbf6ee;
  --warn-border: #e6d3b1;
  --check-bg: #fff59d;      /* 公開前確認マーカー(公開時に残っていたら不合格) */
  --green: #2e7d4f;
  --green-bg: #f1f7f3;
  --red-soft: #f9f2ef;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  --shadow: 0 1px 2px rgba(13, 24, 48, 0.05);
  --shadow-lift: 0 10px 28px rgba(13, 24, 48, 0.10);
}

html { font-size: 16px; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.125rem;            /* 18px: 高齢読者基準 */
  color: var(--ink);
  line-height: 1.85;
  background: var(--paper);
}

/* ── 広告表記(上部は小さく明瞭に1行・詳細はフッター) ──
   実例準拠: 同ジャンルのアフィブログはH1直下に小型の「ⓘ広告」バッジ。
   下部のみ配置はステマ規制(明瞭性)リスクがあるため上部1行は残す ── */
.ad-disclosure {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 7px 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6b6455;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── サイトヘッダー ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 26px 16px 20px;
  text-align: center;
}
.site-header .site-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--navy);
}
.site-header .site-name a { color: inherit; text-decoration: none; }
.site-header .site-name a::before {
  content: "";
  display: inline-block;
  width: 0.58em; height: 0.58em;
  margin-right: 0.5em;
  background: linear-gradient(135deg, var(--gold), #d8bc6e);
  clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
}
.site-header .site-tagline {
  font-size: 0.76rem;
  color: var(--ink-light);
  margin-top: 6px;
  letter-spacing: 0.12em;
}

main { max-width: 760px; margin: 0 auto; padding: 0 20px 32px; }

/* ── ヒーロー(白基調・大余白・文字の裏に薄い線画) ── */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;   /* 写真風の光は7/15に試作→ユーザー判断で白に戻した(実写が来たら再検討) */
  color: var(--ink);
  padding: 92px 20px 84px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
/* 家の輪郭の線画(自作SVG・著作権フリー)。文字の裏に薄く敷く */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='680' height='460' viewBox='0 0 680 460' fill='none' stroke='%2316233f' stroke-width='1.4'%3E%3Cpolyline points='30,220 190,90 350,220'/%3E%3Crect x='60' y='220' width='260' height='170'/%3E%3Cline x1='60' y1='250' x2='320' y2='250'/%3E%3Cline x1='60' y1='280' x2='320' y2='280'/%3E%3Cline x1='60' y1='310' x2='320' y2='310'/%3E%3Crect x='95' y='330' width='50' height='60'/%3E%3Crect x='210' y='250' width='60' height='46'/%3E%3Cline x1='240' y1='250' x2='240' y2='296'/%3E%3Cpolyline points='355,300 465,210 575,300'/%3E%3Crect x='380' y='300' width='170' height='90'/%3E%3Cline x1='380' y1='330' x2='550' y2='330'/%3E%3Cline x1='380' y1='360' x2='550' y2='360'/%3E%3Crect x='470' y='320' width='44' height='36'/%3E%3Cline x1='0' y1='390' x2='680' y2='390'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -60px bottom -20px;
  background-size: 680px auto;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero .kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 34px;
}
.hero h1 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 26px;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.05em;
}
/* 見出し内の強調は「金のマーカー」1箇所だけ(白地では金文字はコントラスト不足) */
.hero h1 .u {
  color: var(--navy);
  background: linear-gradient(transparent 66%, rgba(184, 150, 62, 0.32) 66%);
  padding: 0 2px;
}
.hero .lead {
  font-size: 1rem;
  line-height: 2.1;
  color: var(--ink-light);
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: left;
}

/* 450万 vs 170万 の対比(ヘアライン+白・数字だけ大きく) */
/* 主役は左右の金額: 赤と緑、それぞれの濃い枠で別々のカードにする(7/15ユーザー指定) */
.vs-box {
  display: flex;
  align-items: stretch;
  max-width: 620px;
  margin: 0 auto;
}
.vs-item {
  flex: 1;
  padding: 26px 10px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(13, 24, 48, 0.08);
}
.vs-item.high { background: #f7ebe6; border: 2px solid #b0532f; }
.vs-item.low  { background: #e9f3ec; border: 2px solid #2e7d4f; }
.vs-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 4px;
}
.vs-price {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.3rem, 8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
}
.vs-item.high .vs-price { color: #a63c26; }
.vs-item.low  .vs-price { color: var(--green); }
.vs-price small { font-size: 0.42em; font-weight: 700; margin-left: 2px; }
.vs-divider {
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 0 12px;
}
.vs-caption { font-size: 0.78rem; color: var(--ink-light); margin-top: 16px; letter-spacing: 0.03em; }

/* 信頼ストリップ(実測できる事実だけを書く) */
.pull-up { margin-top: 44px; position: relative; z-index: 2; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--box-border);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  overflow: hidden;
}
.trust-strip > div {
  padding: 18px 12px;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-light);
}
.trust-strip > div + div { border-left: 1px solid var(--box-border); }
.trust-strip b {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

/* ── 枠・ボックス ── */
.box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 30px 16px;
  margin: 0 0 32px;
}
.box-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.14rem;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.6;
}
.box-title::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}
.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  padding: 28px 30px 14px;
  margin: 0 0 32px;
}
.warn-box .box-title::before { background: #c98a3d; }

h1 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.6; color: var(--navy); margin: 48px 0 22px; font-weight: 600; letter-spacing: 0.03em; }

/* LPの章見出し(01/02の章番号=レポート様式) */
main.lp { counter-reset: lpsec; }
main.lp h2 {
  counter-increment: lpsec;
  font-family: var(--serif);
  font-size: 1.44rem;
  color: var(--navy);
  margin: 88px 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}
main.lp h2::before {
  content: "0" counter(lpsec);
  font-family: var(--serif);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
main.lp h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 2px;
  background: var(--gold);
}

/* 記事ページの見出し */
main.article h2 {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin: 60px 0 18px;
  line-height: 1.6;
  font-weight: 600;
}

h3 { font-size: 1.05rem; margin: 30px 0 12px; }
/* 行末に「ん。」等の1文字だけが落ちるのを防ぐ(対応ブラウザのみ・非対応でも害なし) */
p, li, .lead, .note, figcaption, .trust-strip > div, .quiz-result { text-wrap: pretty; }
/* 文節を塊で折り返す(行末に語の断片が落ちる箇所にだけ使う。文章は変えない) */
.nobr { white-space: nowrap; }
/* 目立つ段落は文節単位でのみ折り返す: HTML側の<wbr>が折り返し可能位置。
   overflow-wrap:anywhereは「文節が長すぎて収まらない時だけ」の非常口 */
.lead, .trust-strip > div, .vs-caption, .vs-label { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 1.5em; }
li { margin-bottom: 8px; }
.note { font-size: 0.84rem; color: var(--ink-light); margin-bottom: 26px; line-height: 1.8; }

/* ── 診断(押せるチェック・ホバーで浮く) ── */
.quiz-q { font-weight: 700; color: var(--navy); margin: 20px 0 12px; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { margin-bottom: 10px; }
.checklist label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 13px 16px;
  min-height: 48px;             /* タップ領域の下限 */
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
  line-height: 1.7;
  font-size: 1rem;
}
.checklist label:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #d8c58f; }
.checklist input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.checklist label:has(input:checked) { background: #fdf4ea; border-color: var(--accent); }
.quiz-result {
  display: none;
  background: var(--green-bg);
  border: 1px solid #c4dccd;
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.9;
}
.quiz-result.show { display: block; }
.quiz-note-calm { font-weight: 400; color: var(--ink); font-size: 0.92rem; margin: 8px 0 0; }

/* ── 比較表 ── */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
  border-radius: 8px;
  border: 1px solid var(--box-border);
  box-shadow: var(--shadow);
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
th, td { border-bottom: 1px solid #eceff2; padding: 15px 18px; text-align: left; vertical-align: top; line-height: 1.8; }
td + td, th + th, tbody th + td { border-left: 1px solid #eceff2; }
thead th {
  background: var(--navy);
  color: #fff;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}
tbody th { background: var(--cream); font-weight: 700; width: 9.5em; color: var(--navy); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* ── CTA(色は成約実績準拠のオレンジ・形だけ上品に) ── */
.cta-block {
  margin: 40px 0 48px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--box-border);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  padding: 30px 22px 22px;
  box-shadow: var(--shadow);
}
.cta-heading {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.cta-btn {
  position: relative;
  display: block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 17px 46px 17px 24px;
  border-radius: 10px;
  margin: 0 auto 14px;
  max-width: 560px;
  min-height: 52px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), var(--shadow);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.cta-btn::after {
  content: "→";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), 0 12px 26px rgba(233, 110, 15, 0.30);
  filter: brightness(1.04);
}
.cta-note { font-size: 0.8rem; color: var(--ink-light); margin: 8px 0 0; }

/* ── ビフォー/アフター ── */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 32px; }
.ba > div { border-radius: 8px; padding: 20px 22px 10px; font-size: 0.96rem; border: 1px solid var(--box-border); }
.ba .before { background: var(--red-soft); border-color: #e6d2c8; }
.ba .after  { background: var(--green-bg); border-color: #c4dccd; }
.ba .ba-label {
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.6;
}
.ba .before .ba-label { color: #a04a32; }
.ba .after  .ba-label { color: var(--green); }
.ba ul { padding-left: 1.3em; }

/* ── 記事一覧カード(ホバーで浮く) ── */
.article-list { list-style: none; padding-left: 0; display: grid; gap: 14px; }
.article-list li {
  border: 1px solid var(--box-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.article-list li:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.article-list a {
  display: block;
  padding: 20px 52px 20px 22px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.75;
  position: relative;
  font-size: 1rem;
}
.article-list a::after {
  content: "→";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-weight: 700;
}
.article-list .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-deep);
  border: 1px solid #d8c58f;
  border-radius: 999px;
  padding: 1px 12px;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

/* ── 資料写真の様式(実家の記録用) ──
   方針: 写真は画面いっぱいに使わず「調査報告書の図版」として額装する。
   細い枠+撮影日つきキャプション。素人写真が「本物の記録」として読まれる形 ── */
figure.photo {
  margin: 0 0 28px;
  background: #fff;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow);
}
figure.photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
figure.photo figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-light);
  padding: 0 4px;
}
figure.photo figcaption .photo-date {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  margin-right: 10px;
  letter-spacing: 0.04em;
}
/* 2枚並べる時(ビフォー/アフター等) */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 28px; }
.photo-grid figure.photo { margin: 0; }

/* ── 公開前確認マーカー(公開時にこのクラスが残っていたら公開不可) ── */
mark.check { background: var(--check-bg); padding: 1px 4px; }

/* ── フッター(広告表記の詳細はここに全文) ── */
.site-footer {
  background: var(--navy-deep);
  color: #a9b6c4;
  margin-top: 48px;
  padding: 40px 20px 108px;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: #e8eef4; margin: 0 10px; }
.footer-disclosure {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 0.78rem;
  line-height: 1.9;
  color: #8494a5;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

blockquote { border-left: 3px solid var(--gold); padding-left: 14px; color: var(--ink-light); margin: 0 0 18px; }

/* ── 追従CTA(下部・白の帯に統一) ── */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  text-align: center;
}
.sticky-cta a {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 16px;
  min-height: 48px;
  border-radius: 10px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }  /* 17px */
  .ba { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 18px 64px; }
  .hero::before { background-size: 440px auto; background-position: right -80px bottom -10px; opacity: 0.045; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { display: flex; align-items: baseline; gap: 10px; text-align: left; padding: 12px 16px; }
  .trust-strip > div + div { border-left: none; border-top: 1px solid var(--box-border); }
  .trust-strip b { margin-bottom: 0; white-space: nowrap; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
