/* ===== 在宅デスク研究室 — 共通スタイル ===== */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2733;
  --muted: #66707d;
  --border: #e4e8ee;
  --brand: #2f6f4f;
  --brand-dark: #245840;
  --brand-soft: #e8f3ec;
  --accent: #e8902f;
  --shadow: 0 1px 3px rgba(20,30,40,.06), 0 6px 24px rgba(20,30,40,.06);
  --radius: 14px;
  --maxw: 920px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ----- Header ----- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--brand); }
.nav a { margin-left: 20px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand); }

/* ----- Disclosure banner (景表法/ステマ規制対応) ----- */
.disclosure {
  background: #fff8ec; color: #7a5a1e; font-size: .8rem;
  text-align: center; padding: 6px 12px; border-bottom: 1px solid #f0e2c4;
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(160deg, var(--brand-soft), #fff);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 2rem; margin: 0 0 12px; line-height: 1.35; }
.hero p { color: var(--muted); font-size: 1.05rem; margin: 0 0 24px; max-width: 640px; }

/* ----- Buttons ----- */
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  text-decoration: none; font-weight: 700; padding: 12px 22px;
  border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #cf7d1f; }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }

/* ----- Card grid ----- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 32px 0; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; display: block;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(20,30,40,.10); }
.card .tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ----- Sections ----- */
section { padding: 36px 0; }
section h2 { font-size: 1.4rem; margin: 0 0 4px; }
.section-lead { color: var(--muted); margin: 0 0 8px; }

/* ----- Article ----- */
.article { background: var(--surface); }
.article-body { padding: 40px 0 56px; }
.article-body h1 { font-size: 1.8rem; line-height: 1.4; margin: 0 0 8px; }
.article-meta { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.article-body h2 { font-size: 1.35rem; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--brand-soft); }
.article-body h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.article-body p { margin: 0 0 16px; }

/* ----- CTA box (差別化ツールへの常設導線) ----- */
.tool-cta {
  background: var(--brand-soft); border: 1px solid #cfe6d8;
  border-radius: var(--radius); padding: 22px; margin: 28px 0; text-align: center;
}
.tool-cta h3 { margin: 0 0 6px; color: var(--brand-dark); }
.tool-cta p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }

/* ----- Comparison table ----- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
table.compare th, table.compare td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
table.compare thead th { background: var(--brand); color: #fff; font-weight: 700; }
table.compare tbody tr:nth-child(even) { background: #fafbfc; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill-best { background: var(--accent); color: #fff; }

/* ----- Calculator tool ----- */
.tool-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 28px 0;
}
.tool-panel label { font-weight: 700; display: block; margin-bottom: 8px; }
.input-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-panel input[type=number] {
  font-size: 1.4rem; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; width: 140px; text-align: right;
}
.tool-panel input[type=range] { width: 100%; margin-top: 14px; accent-color: var(--brand); }
.unit { color: var(--muted); font-weight: 600; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-top: 24px; }
.result {
  background: var(--brand-soft); border-radius: 12px; padding: 16px; text-align: center;
}
.result .label { font-size: .85rem; color: var(--brand-dark); font-weight: 700; }
.result .value { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-top: 4px; }
.result .value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ----- Footer ----- */
.site-footer { background: #1f2733; color: #c4ccd6; padding: 32px 0; margin-top: 48px; font-size: .88rem; }
.site-footer a { color: #9fd3b6; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.55rem; }
  .nav a { margin-left: 14px; font-size: .85rem; }
}
