/* ひとり暮らし家電えらび 共通スタイル */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #22252a;
  --muted: #5d636b;
  --line: #e3e0d8;
  --accent: #2f6f5e;
  --accent-soft: #e6f0ec;
  --note-bg: #fff7e6;
  --note-line: #e9c97a;
  --radius: 10px;
  --wrap: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav { display: flex; gap: 16px; font-size: 0.95rem; }
.site-nav a { text-decoration: none; }

/* 本文 */
main { padding: 28px 0 48px; }

h1 { font-size: 1.6rem; line-height: 1.45; margin: 0.2em 0 0.5em; }
h2 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 2.2em 0 0.7em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--accent-soft);
}
h3 { font-size: 1.05rem; margin: 1.6em 0 0.5em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.3em; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.breadcrumb a { color: var(--muted); }

.meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4em; }

.lead { font-size: 1.05rem; }

/* 要点 */
.summary {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 1.4em 0;
}
.summary-title { font-weight: 700; margin: 0 0 0.4em; }
.summary ul { margin: 0; padding-left: 1.2em; }

/* 注意書き */
.note {
  background: var(--note-bg);
  border-left: 4px solid var(--note-line);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  margin: 1.2em 0;
}

/* 広告表記（アフィリエイトリンクがあるページで使う） */
.ad-notice {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 1.2em;
}

/* 計算式 */
.formula {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 700;
  text-align: center;
  margin: 1.2em 0;
}

/* 表 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th { background: #f3f1ec; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
.compare-table th[scope="row"] { white-space: nowrap; background: #faf9f6; }
.compare-table td { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-caption { font-size: 0.85rem; color: var(--muted); margin-top: -0.6em; }

/* カード（トップ・一覧） */
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0;
}
.card a { font-weight: 700; text-decoration: none; }
.card p { margin: 0.3em 0 0; font-size: 0.92rem; color: var(--muted); }
.card .date { font-size: 0.8rem; color: var(--muted); }

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  margin-bottom: 1.6em;
}
.hero h1 { margin-top: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: 0.8em;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7em;
}

/* 出典 */
.sources {
  margin-top: 2.6em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.sources h2 { font-size: 1rem; border: none; margin: 0 0 0.5em; padding: 0; }
.sources ol { padding-left: 1.4em; }
.sources li { word-break: break-all; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer .wrap { padding-top: 18px; padding-bottom: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; }

@media (max-width: 520px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
}
