/* たなとかご — 共通スタイル */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2f2a24;
  --muted: #6f665b;
  --line: #e6dfd4;
  --accent: #8a6a4a;      /* 木の色 */
  --accent-soft: #f1e9de;
  --green: #5f7a5a;       /* 観葉植物の色 */
  --pr: #9a5b3c;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }

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

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* PR表記バー（全ページ共通） */
.pr-bar { background: var(--accent-soft); color: var(--muted); font-size: .8rem; text-align: center; padding: 6px 16px; }

/* ヒーロー */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.45; margin: 0 0 14px; letter-spacing: .02em; }
.hero p { color: var(--muted); max-width: 40em; margin: 0; }

/* 約束（運営方針の要約） */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 48px; padding: 0; list-style: none; }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.promises strong { display: block; margin-bottom: 4px; }
.promises span { color: var(--muted); font-size: .92rem; }

/* セクション見出し */
.section-title { font-size: 1.15rem; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--accent); }

/* カテゴリ */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 48px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: block; }
.cat:hover { border-color: var(--accent); }
.cat .cat-name { font-weight: 700; }
.cat .cat-desc { color: var(--muted); font-size: .9rem; }
.cat .cat-count { font-size: .8rem; color: var(--green); margin-top: 6px; }

/* 記事カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.card img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.card .card-body { padding: 14px; }
.card .card-cat { font-size: .78rem; color: var(--green); }
.card .card-title { font-weight: 700; line-height: 1.5; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--muted); text-align: center; margin-bottom: 56px; }

/* 記事本文 */
.article { max-width: 720px; margin: 0 auto; padding: 40px 0 64px; }
.article h1 { font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1.5; margin: 6px 0 10px; }
.article h2 { font-size: 1.2rem; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.article h3 { font-size: 1.02rem; margin: 26px 0 8px; }
.meta { color: var(--muted); font-size: .85rem; }
.badge-pr { display: inline-block; background: var(--pr); color: #fff; font-size: .75rem; padding: 1px 8px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.summary p { margin: 0; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fit > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.fit h3 { margin-top: 0; }
.fit ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 600px) { .fit { grid-template-columns: 1fr; } }
figure { margin: 22px 0; }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.photo-placeholder { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #f3eee6, #f3eee6 12px, #ece5da 12px, #ece5da 24px); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 16px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
th { width: 34%; color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.buy .btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 999px; font-weight: 700; margin: 6px 8px 6px 0; }
.buy .btn:hover { background: var(--ink); color: #fff; }
.buy .note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.todo { background: #fff7e0; border: 1px solid #ecd9a6; padding: 2px 6px; border-radius: 4px; font-size: .85em; }

/* 固定ページ */
.page { max-width: 720px; margin: 0 auto; padding: 40px 0 64px; }
.page h1 { font-size: 1.6rem; margin: 0 0 18px; }
.page h2 { font-size: 1.15rem; margin: 34px 0 10px; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--muted); }

/* 計算ツール */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.calc fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.calc legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.calc .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc label { display: block; font-size: .85rem; color: var(--muted); }
.calc input[type=number] { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.calc .opts { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 4px 0 12px; font-size: .92rem; }
.calc .opts input[type=number] { width: 5.5em; }
.calc button { font: inherit; font-weight: 700; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 10px 24px; cursor: pointer; }
.calc button:hover { background: var(--ink); }
.calc-result { margin-top: 16px; padding: 14px 16px; background: var(--accent-soft); border-radius: 10px; min-height: 3.2em; }
.calc-result strong { font-size: 1.15rem; }
.calc-result ul { margin: 8px 0 0; padding-left: 1.2em; font-size: .92rem; }
.calc-result .ng { color: #a23b2a; }
@media (max-width: 480px) { .calc .row { grid-template-columns: 1fr; } }
table.counts th, table.counts td { text-align: center; }
table.counts th:first-child, table.counts td:first-child { text-align: left; width: auto; }

/* 商品比較表・楽天リンク（生成ソースはそのまま置き、見た目は囲みのCSSで整える） */
table.cmp { font-size: .9rem; min-width: 640px; }
table.cmp th, table.cmp td { width: auto; min-width: 7em; }
table.cmp tr > th:first-child { min-width: 7.5em; }
.buy .spec { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }
.buy .buy-link { margin: 10px 0 4px; }
.buy .buy-link a { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; line-height: 1.55; }
.buy .buy-link a:hover { background: var(--ink); color: #fff; }
table.counts th:first-child, table.counts td:first-child { min-width: 8.5em; }
table.mix { min-width: 540px; }
table.mix td { white-space: nowrap; }
figure.pin { max-width: 360px; margin: 24px auto; }
figure.pin img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
figure.pin figcaption { text-align: left; }
