/* =====================================================================
   ベーカリーノートプロ ブログ 共有スタイル
   promo.html のブランド（オレンジ/ブラウン・Noto Sans JP / M PLUS Rounded 1c）を流用
   ===================================================================== */
:root {
  --orange: #F5871F;
  --orange-light: #FFF3E8;
  --orange-mid: #FFAD60;
  --brown: #2C1A0E;
  --brown-mid: #4A2E1A;
  --brown-light: #7A5C3A;
  --white: #FFFFFF;
  --gray-bg: #F8F5F2;
  --line: #EADFD5;
  --green: #2ECC71;
  --green-bg: #E6F7F1;
  --green-text: #22A06B;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--brown);
  background: var(--gray-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== ヘッダー ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 16px;
}
.site-header .brand img { width: 30px; height: 30px; }
.site-header .nav-cta {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== 共通レイアウト ===== */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.breadcrumb {
  font-size: 12px;
  color: var(--brown-light);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--brown-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== 記事 ===== */
.article { background: var(--white); border-radius: var(--radius); padding: 36px 32px 44px; margin: 16px 0 32px; }
.article .eyebrow {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.article .meta { font-size: 12px; color: var(--brown-light); margin-bottom: 28px; }
.article .lead { font-size: 16px; color: var(--brown-mid); margin-bottom: 28px; }

.article h2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 21px;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 5px solid var(--orange);
  line-height: 1.5;
}
.article h3 {
  font-weight: 700;
  font-size: 17px;
  margin: 26px 0 10px;
}
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 1.4em; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--brown); font-weight: 700; }
.article .marker { background: linear-gradient(transparent 60%, var(--orange-mid) 60%); font-weight: 700; }

/* 数式・計算ブロック */
.calc {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 20px;
  overflow-x: auto;
}

/* 注意・ポイントボックス */
.callout {
  background: var(--orange-light);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 22px;
  font-size: 15px;
}
.callout .label { font-weight: 800; color: var(--orange); display: block; margin-bottom: 4px; font-family: 'M PLUS Rounded 1c', sans-serif; }

/* テーブル */
.tbl { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.tbl th { background: var(--orange-light); font-weight: 700; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== 記事内CTA ===== */
.cta-box {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 36px 0 8px;
  text-align: center;
}
.cta-box h3 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 19px; margin-bottom: 8px; color: #fff; }
.cta-box p { font-size: 14px; color: #F0E4D8; margin-bottom: 18px; }
.cta-box strong { color: #fff; }
.cta-box .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  text-decoration: none;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-block;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }

/* ===== 関連記事 ===== */
.related { margin: 32px 0; }
.related h2 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 18px; margin-bottom: 14px; }

/* ===== 一覧（index）===== */
.hero {
  text-align: center;
  padding: 48px 20px 36px;
}
.hero h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin-bottom: 10px;
}
.hero p { color: var(--brown-light); font-size: 15px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-bottom: 48px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--brown);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44,26,14,.10); }
.post-card .tag {
  align-self: flex-start;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.post-card h2 { font-family: 'M PLUS Rounded 1c', sans-serif; font-weight: 800; font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.post-card p { font-size: 13px; color: var(--brown-light); }
.post-card.soon { opacity: .55; pointer-events: none; }
.post-card.soon .tag { background: #eee; color: #999; }

/* ===== フッター ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 28px 20px;
  font-size: 12px;
  color: var(--brown-light);
}
.site-footer a { color: var(--brown-light); margin: 0 8px; }

@media (max-width: 640px) {
  .article { padding: 26px 20px 32px; border-radius: 12px; }
  .article h1 { font-size: 23px; }
  .article h2 { font-size: 19px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}
