/* 扶養の滝 共通スタイル */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: #fff;
  color: #22262c;
  font-size: 16px;
  line-height: 1.8;
}
a { color: #b02a2a; }
a:hover { text-decoration: none; }
img, canvas { max-width: 100%; }

/* ヘッダー */
.site-header { background: #22262c; }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
}
.site-logo { color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; line-height: 1.35; }
.site-subtitle { display: block; font-size: 12px; font-weight: 400; color: #cfc8bc; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.site-nav a { color: #f0e9e2; text-decoration: none; font-size: 15px; padding: 8px 2px; }
.site-nav a:hover { color: #ff9d9d; }

/* レイアウト：スマホは1カラム */
.layout { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.main { min-width: 0; }
.sidebar { margin-top: 32px; }

/* PC：2カラム */
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 28px; }
  .sidebar { margin-top: 0; }
  .site-logo { font-size: 20px; }
}

/* 見出し・本文 */
h1 { font-size: 26px; line-height: 1.45; margin: 8px 0 14px; }
h2 { font-size: 21px; line-height: 1.5; margin: 28px 0 12px; padding-left: 10px; border-left: 5px solid #d84545; }
h3 { font-size: 17px; margin: 20px 0 8px; }
p { margin: 0 0 14px; }
.lead { color: #555c66; font-size: 16px; margin-bottom: 18px; }
.note { font-size: 13px; color: #7a8089; margin-top: 8px; }
strong.num { color: #d84545; }

/* 広告枠プレースホルダ */
.adslot {
  border: 2px dashed #d8cfc0; background: #fffdf6; color: #a39a83;
  text-align: center; padding: 20px 8px; font-size: 13px; margin: 20px 0; border-radius: 8px;
}

/* 記事カード */
.card-list { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-list { grid-template-columns: 1fr 1fr; } }
.article-card {
  display: block; background: #fff; border: 1px solid #e6e0d4; border-radius: 12px;
  padding: 18px; text-decoration: none; color: #22262c;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.article-card:hover { border-color: #d84545; }
.article-card .tag { display: inline-block; background: #fdeeee; color: #a02c2c; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 8px; margin-bottom: 8px; }
.article-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; }
.article-card p { font-size: 14px; color: #555c66; margin: 0; }

/* 記事本文 */
.article-body h2:first-child { margin-top: 8px; }
.article-body ul, .article-body ol { margin: 0 0 14px 1.4em; }
.article-body li { margin-bottom: 6px; }
.point-box { background: #faf6ef; border: 1px solid #e6e0d4; border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.point-box p:last-child { margin-bottom: 0; }
.cat-nav { font-size: 14px; color: #555c66; margin-bottom: 16px; }
.cat-label { display: inline-block; background: #fdeeee; color: #a02c2c; font-size: 13px; font-weight: 700; border-radius: 4px; padding: 3px 10px; margin-bottom: 10px; }
.cta { background: #22262c; color: #fff; border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.cta a { color: #ffd166; font-weight: 700; }
.cta p:last-child { margin-bottom: 0; }

/* サイドバー */
.side-box { background: #faf6ef; border: 1px solid #e6e0d4; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.side-box h3 { margin: 0 0 8px; font-size: 16px; padding-bottom: 6px; border-bottom: 2px solid #d84545; }
.side-box p { font-size: 14px; margin-bottom: 10px; }
.side-box p:last-child { margin-bottom: 0; }
.side-list { list-style: none; }
.side-list li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.btn {
  display: inline-block; background: #d84545; color: #fff !important; font-weight: 700;
  text-decoration: none; border-radius: 8px; padding: 12px 18px; font-size: 16px; min-height: 48px;
}
.btn:hover { background: #b93535; }

/* フッター */
.site-footer { background: #f6f4ef; border-top: 1px solid #e6e0d4; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px 36px; font-size: 13px; color: #555c66; }
.footer-copy { margin-top: 16px; color: #7a8089; }

/* ===== シミュレーター ===== */
.sim-title { border-left: none; padding-left: 0; }
.sim .card { background: #fff; border: 1px solid #e6e0d4; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 16px; }
.sim .card h3 { margin: 0 0 12px; font-size: 16px; }
.sim label { display: block; font-size: 15px; font-weight: 700; margin: 16px 0 4px; }
.sim label:first-of-type { margin-top: 0; }
.sim .row { display: flex; gap: 10px; align-items: center; }
.sim input[type=range] { flex: 1; accent-color: #d84545; height: 36px; min-width: 0; }
.sim input[type=number] { width: 110px; padding: 10px 8px; font-size: 17px; border: 1px solid #ccc; border-radius: 6px; text-align: right; min-height: 48px; }
.sim .unit { font-size: 14px; color: #555c66; white-space: nowrap; }
.sim .big { font-size: 36px; font-weight: 800; color: #d84545; line-height: 1.3; }
.sim .result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sim .result-grid .cell { background: #faf8f3; border-radius: 8px; padding: 10px 12px; }
.sim .cell .k { font-size: 12px; color: #555c66; }
.sim .cell .v { font-size: 19px; font-weight: 700; }
.sim .warn { background: #fdeeee; border: 1px solid #f2b8b8; color: #a02c2c; border-radius: 8px; padding: 12px; font-size: 15px; margin-top: 12px; display: none; }
.sim .good { background: #eef7ee; border: 1px solid #b8dcb8; color: #2c6e2c; border-radius: 8px; padding: 12px; font-size: 15px; margin-top: 12px; display: none; }
.sim canvas { width: 100%; height: auto; display: block; }
@media (max-width: 480px) {
  .sim .big { font-size: 30px; }
  .sim input[type=number] { width: 92px; }
}
