/* 光熱費ラボ 専用デザイン（2026-08-01）
   参考：エネチェンジ（enechange.jp/articles/calculation-electricity_cost）を実測
   実測値＝本文カラム780px＋サイドバー324px の2カラム（全体1200px）
          body 14px・行間1.9／h2 18px・weight600・背景#f6f7f7・左10px solid #ff8600・padding 22px 12px
          h3 18px・weight600・下罫 4px solid #dbdbdb／CTA 20px・700・#e76f00・角丸20px・高さ56px
   ※h2の下marginだけ実測64px→32pxに詰めた（見出しと本文が離れすぎるため） */
:root {
  --primary: #ff8600;
  --primary-dark: #e76f00;
  --primary-deep: #c25c00;
  --primary-light: #fff6ec;
  --bg: #ffffff;
  --panel: #f6f7f7;
  --text: #222222;
  --muted: #6b7280;
  --border: #dbdbdb;
  --line: #e9e9e9;
  --save: #d9480f;
  --radius: 10px;
  --col-main: 780px;
  --col-side: 324px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

/* ヘッダー */
body::before { content: ""; display: block; height: 4px; background: var(--primary); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.05rem;
}
.brand .brand-name { font-weight: 700; font-size: 1.05rem; }
.brand .brand-sub { display: block; font-size: .62rem; font-weight: 400; color: var(--muted); }
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  text-decoration: none; color: var(--text); font-size: .82rem; font-weight: 700;
  padding: 8px 12px; border-bottom: 3px solid transparent; white-space: nowrap; transition: border-color .15s;
}
.header-nav a:hover { border-bottom-color: var(--primary); }

/* ── 2カラム（本文780＋サイド324）─────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px 64px; display: flex; gap: 44px; align-items: flex-start; }
main.col-main { width: var(--col-main); max-width: 100%; flex-shrink: 0; }
.col-side { width: var(--col-side); flex-shrink: 0; position: sticky; top: 72px; }
/* 1カラムのページ（about・privacy・contactなど） */
main:not(.col-main) { max-width: var(--col-main); margin: 0 auto; padding: 0 24px 64px; }

/* サイドバー */
.side-box { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.side-box .sb-title {
  font-size: .86rem; font-weight: 700; color: #fff; background: var(--primary);
  padding: 10px 14px;
}
.side-box ul { list-style: none; margin: 0; }
.side-box li { border-bottom: 1px solid var(--line); }
.side-box li:last-child { border-bottom: none; }
.side-box a { display: block; padding: 11px 14px; font-size: .82rem; color: var(--text); text-decoration: none; line-height: 1.6; }
.side-box a:hover { background: var(--primary-light); }
.side-box .sb-num {
  display: inline-flex; width: 19px; height: 19px; border-radius: 4px; background: var(--panel);
  color: var(--muted); font-size: .68rem; font-weight: 700; align-items: center; justify-content: center;
  margin-right: 8px; vertical-align: 1px;
}
.side-box li:nth-child(-n+3) .sb-num { background: var(--primary); color: #fff; }
.side-cta {
  border: 2px solid var(--primary); border-radius: var(--radius); padding: 16px; text-align: center; background: var(--primary-light);
}
.side-cta .sc-lead { font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.side-cta .sc-num { font-size: 1.7rem; font-weight: 700; color: var(--save); line-height: 1.2; font-variant-numeric: tabular-nums; }
.side-cta .sc-note { font-size: .7rem; color: var(--muted); margin: 6px 0 10px; }

/* 見出し */
.breadcrumb { font-size: .75rem; color: var(--muted); margin: 18px 0 6px; }
.breadcrumb a { color: var(--primary-deep); text-decoration: none; }
h1 { font-size: 1.5rem; line-height: 1.5; font-weight: 700; margin-bottom: 10px; }
h1 .hl { background: linear-gradient(transparent 66%, #ffe0b8 66%); padding: 0 2px; }
main > .breadcrumb + h1 { font-size: 1.5rem; margin-top: 0; }
.lead { color: var(--text); font-size: .92rem; margin-bottom: 18px; }
.pr-note { font-size: .69rem; color: #98a4b5; margin-bottom: 0; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.trust-badges span {
  font-size: .72rem; font-weight: 700; color: var(--primary-deep);
  background: var(--primary-light); border: 1px solid #ffd9b0; border-radius: 4px;
  padding: 5px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.trust-badges span::before { content: "✓"; }
.badge-update {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); color: var(--muted); border: 1px solid var(--border);
  font-size: .73rem; font-weight: 700; padding: 5px 12px; border-radius: 4px; margin-bottom: 12px;
}
.badge-update::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero { margin: 0; padding: 20px 0 0; background: none; }
.hero::after { display: none; }

h2 {
  font-size: 1.16rem; font-weight: 700; line-height: 1.5;
  background: var(--panel); border-left: 10px solid var(--primary);
  padding: 18px 14px; margin: 72px 0 32px;
}
h2::before { display: none; }
h2 + p, h2 + .lead { margin-top: 0; }
h2 + .table-scroll, h2 + .calc-card, h2 + .tool-grid, h2 + .appliance-grid { margin-top: 18px; }
h3 {
  font-size: 1.06rem; font-weight: 700; margin: 34px 0 12px;
  padding-bottom: 10px; border-bottom: 4px solid var(--border);
}
p { margin-bottom: 18px; }
ul, ol { margin: 0 0 18px 1.4em; }
li { margin-bottom: 7px; }
a { color: var(--primary-deep); }

/* ── 家電をアイコンで選ぶ（selectより押しやすく）───── */
.appliance-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 12px 0 20px;
}
.app-btn {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 12px 6px 10px; cursor: pointer; text-align: center; font-family: inherit;
  transition: all .15s;
}
.app-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.app-btn.is-active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px rgba(255,134,0,.18); }
.app-btn .ap-ico { font-size: 1.5rem; line-height: 1.2; display: block; }
.app-btn .ap-name { font-size: .74rem; font-weight: 700; display: block; margin-top: 3px; }
.app-btn .ap-w { font-size: .68rem; color: var(--muted); display: block; }

/* フォーム */
.calc-card, .content-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 22px;
}
.panel-title {
  font-size: 1.05rem; font-weight: 700; color: var(--primary-deep);
  border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 16px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field .note { font-weight: 400; color: var(--muted); font-size: .74rem; }
.field input[type="number"], .field select {
  width: 100%; max-width: 320px; padding: 12px 14px; font-size: 1rem;
  border: 1px solid #c9c9c9; border-radius: 6px; background: #fff; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,134,0,.15); }
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group label {
  font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 7px;
  border: 1px solid #c9c9c9; border-radius: 6px; padding: 10px 15px; cursor: pointer; background: #fff;
}
.radio-group label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.calc-btn, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary-dark); color: #fff !important; font-size: 1.2rem; font-weight: 700;
  text-decoration: none; border: none; border-radius: 20px; padding: 15px 24px; min-height: 56px;
  cursor: pointer; width: 100%; transition: background .15s;
}
.calc-btn::before, .btn-cta::before { display: none; }
.calc-btn:hover, .btn-cta:hover { background: var(--primary-deep); transform: none; }
.btn-cta::after { content: "›"; font-weight: 700; }
.btn-sm { font-size: .9rem; min-height: 44px; padding: 10px 20px; width: auto; border-radius: 22px; }

/* ── 結果：節約額・年額を大きく見せる（エネチェンジの型）── */
.result {
  display: none; border: 2px solid var(--primary); border-radius: var(--radius);
  padding: 0; margin-bottom: 22px; overflow: hidden; background: #fff;
}
.result.show { display: block; }
.result-head { background: var(--primary-light); padding: 20px 22px 18px; text-align: center; border-bottom: 1px solid #ffd9b0; }
.result-main { font-size: .86rem; font-weight: 700; color: var(--muted); }
.result-main .big {
  display: block; font-size: 2.6rem; font-weight: 700; color: var(--save);
  line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums;
}
.result-year { font-size: .92rem; font-weight: 700; margin-top: 6px; }
.result-year b { font-size: 1.5rem; color: var(--save); font-variant-numeric: tabular-nums; }
.result table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.result th, .result td { text-align: left; padding: 12px 22px; border-bottom: 1px solid var(--line); font-weight: 400; }
.result td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.result tr.total th, .result tr.total td { font-weight: 700; background: #fffaf4; }
.result tr:last-child th, .result tr:last-child td { border-bottom: none; }
.result-note { font-size: .78rem; color: var(--muted); padding: 12px 22px 16px; }

/* 表 */
.article table, .content-card table, .table-scroll table {
  width: 100%; border-collapse: collapse; margin: 0 0 8px;
  font-size: .85rem; background: #fff; border: 1px solid var(--border);
}
.article th, .article td, .content-card th, .content-card td,
.table-scroll th, .table-scroll td {
  border: 1px solid var(--line); padding: 12px 13px; text-align: left; vertical-align: top;
}

/* 縦ヘッダー型の表（各行の先頭がth）は薄いグレーで */
.article th, .content-card th, .table-scroll th { background: var(--panel); }
.article tr:first-child:has(th + th) th, .table-scroll tr:first-child:has(th + th) th, .content-card tr:first-child:has(th + th) th {
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; border-color: var(--primary-dark);
}
.article tbody tr:nth-child(even) td, .table-scroll tr:nth-child(odd) td { background: #fdfaf6; }
.table-scroll tbody tr:hover td { background: var(--primary-light); }
.table-scroll { overflow-x: auto; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }
.table-scroll .hi { color: var(--save); font-weight: 700; }

/* ツールカード */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; margin: 20px 0; }
.tool-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.tool-card::before { display: none; }
.tool-card:hover { border-color: var(--primary); box-shadow: 0 3px 12px rgba(255,134,0,.15); transform: none; }
.tool-card .tool-icon {
  width: 46px; height: 46px; border-radius: 8px; background: var(--primary-light);
  border: 1px solid #ffd9b0; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.tool-card .tool-name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.tool-card .tool-desc { font-size: .8rem; color: var(--muted); line-height: 1.75; }
.tool-card .tool-more { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--primary-deep); }

/* 目次・注意・FAQ */
.toc { background: var(--panel) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; }
.toc strong { color: var(--primary-deep); }
.toc a { color: var(--text); text-decoration: underline; }
.disclaimer {
  background: #fffaeb; border: 1px solid #fedf89; border-left: 5px solid #f79009; border-radius: var(--radius);
  padding: 16px 20px; font-size: .78rem; color: #7a4d0b; margin: 26px 0; line-height: 1.85;
}
.faq dt { font-weight: 700; margin-top: 20px; padding-left: 30px; position: relative; }
.faq dt::before {
  content: "Q"; position: absolute; left: 0; top: 5px; width: 21px; height: 21px;
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.faq dd { margin: 7px 0 0 30px; color: var(--text); font-size: .9rem; }

/* フッター */
.site-footer { background: #33302c; color: #d6d0c9; margin-top: 44px; }
.site-footer .inner { max-width: 1160px; margin: 0 auto; padding: 40px 24px 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px 64px; margin-bottom: 24px; }
.footer-brand { max-width: 300px; }
.footer-brand .fb-name { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; color: #fff; }
.footer-brand p { font-size: .76rem; color: #a8a099; margin: 0; line-height: 1.8; }
.footer-col .fc-title { font-size: .68rem; font-weight: 700; color: #9b938c; letter-spacing: .1em; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: .82rem; color: #d6d0c9; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-note { font-size: .69rem; color: #9b938c; border-top: 1px solid #4a453f; padding-top: 18px; }
.footer-note p { margin-bottom: 4px; }

@media (max-width: 1060px) {
  .wrap { display: block; padding-bottom: 48px; }
  main.col-main { width: 100%; }
  .col-side { width: 100%; position: static; margin-top: 40px; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.28rem; }
  main > .breadcrumb + h1 { font-size: 1.24rem; }
  h2 { font-size: 1.06rem; margin: 52px 0 24px; padding: 14px 12px; border-left-width: 8px; }
  .header-nav { display: none; }
  .wrap, main:not(.col-main) { padding: 0 16px 44px; }
  .calc-card, .content-card { padding: 16px 14px; }
  .result-main .big { font-size: 2rem; }
  .appliance-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

.tlogo { border-radius: 4px; vertical-align: -4px; margin-right: 7px; background: #fff; }
.tcell { white-space: nowrap; }
