/* ============================================================
   #bcw — Editorial Clean Design
   スコープ: 全スタイルを #bcw 配下に限定
   ============================================================ */

/* テーマ側 #l_content li > a の干渉リセット */
#bcw li > a {
  position: static;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
}
.step-body { min-width: 0; }
#bcw {
  --brown: #9D643E;
  --red: #d32f2f;
  --black: #111111;
  --dark: #222222;
  --mid: #555555;
  --muted: #888888;
  --border: #e8e8e8;
  --bg-subtle: #f7f7f7;
  --bg-dark: #1a1a1a;
  --white: #ffffff;

  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--dark);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== 基本テキスト ===== */
#bcw p { margin: 0 0 14px; }
#bcw p:last-child { margin-bottom: 0; }
#bcw strong { font-weight: 700; color: var(--black); }
#bcw a { color: var(--brown); text-decoration: underline; }

/* ===== セクション見出し ===== */
#bcw .sec { margin-bottom: 56px; }

#bcw .sec-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 6px;
}

#bcw .sec-h2 {
  font-size: 1.45em;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--black);
}

#bcw .sec-sub {
  font-size: 0.9em;
  color: var(--muted);
  margin: 0 0 24px;
}

/* ===== リード前バナー ===== */
#bcw .top-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-subtle);
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
#bcw .top-cta-text { flex: 1; min-width: 200px; }
#bcw .top-cta-text strong { color: var(--black); display: block; margin-bottom: 4px; font-size: 0.95em; }
#bcw .top-cta-text p { margin: 0; font-size: 0.9em; color: var(--mid); line-height: 1.6; }
#bcw .top-cta a {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9em;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
#bcw .top-cta a:hover { opacity: 0.85; }

/* ===== リード ===== */
#bcw .lead-box {
  border-left: 3px solid var(--brown);
  padding: 16px 20px;
  background: var(--bg-subtle);
  margin-bottom: 32px;
}
#bcw .lead-box p { font-size: 0.93em; color: var(--dark); }

/* ===== わかることボックス ===== */
#bcw .wakaru-box {
  border: 1.5px solid var(--red);
  padding: 20px 22px;
  margin-bottom: 32px;
  background: var(--white);
}
#bcw .wakaru-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#bcw .wakaru-box ul { margin: 0; padding: 0; list-style: none; }
#bcw .wakaru-box ul li {
  font-size: 0.9em;
  padding: 5px 0 5px 20px;
  position: relative;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}
#bcw .wakaru-box ul li:last-child { border-bottom: none; }
#bcw .wakaru-box ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}

/* ===== 目次 ===== */
#bcw .toc {
  background: var(--bg-subtle);
  padding: 20px 22px;
  margin-bottom: 40px;
}
#bcw .toc-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
#bcw .toc ol { margin: 0; padding-left: 18px; }
#bcw .toc ol li { margin: 5px 0; }
#bcw .toc ol li a {
  font-size: 0.9em;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.15s;
}
#bcw .toc ol li a:hover { color: var(--red); }
#bcw .toc ol li.toc-em a { color: var(--red); font-weight: 700; }

/* ===== 期間サマリーカード ===== */
#bcw .period-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 24px;
  background: var(--border);
}
@media (max-width: 520px) {
  #bcw .period-cards { grid-template-columns: repeat(2, 1fr); }
}
#bcw .period-card {
  background: var(--white);
  padding: 18px 14px;
  text-align: center;
}
#bcw .period-card.highlight { background: var(--white); border-top: 3px solid var(--red); }
#bcw .period-card .p-icon { font-size: 1.6em; margin-bottom: 6px; }
#bcw .period-card .p-label {
  font-size: 0.75em;
  color: var(--muted);
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
}
#bcw .period-card.highlight .p-label { color: var(--muted); }
#bcw .period-card .p-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--black);
}
#bcw .period-card.highlight .p-val { color: var(--red); }

/* ===== 比較テーブル ===== */
#bcw .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; }
#bcw .tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  font-size: 0.9em;
}
#bcw .tbl thead tr { background: var(--black); color: var(--white); }
#bcw .tbl th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
  border: none;
}
#bcw .tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.65;
  color: var(--dark);
}
#bcw .tbl tr:last-child td { border-bottom: none; }
#bcw .tbl tr:nth-child(even) td { background: var(--bg-subtle); }
#bcw .tbl tr:nth-child(odd) td { background: var(--white); }
#bcw .badge {
  display: inline-block;
  font-size: 0.9em;
  font-weight: 700;
  padding: 1px 7px;
  margin-right: 4px;
  font-family: 'DM Sans', sans-serif;
}
#bcw .badge-red { background: var(--red); color: var(--white); }
#bcw .badge-grn { background: #1b5e20; color: var(--white); }

/* ===== ステップタイムライン ===== */
#bcw .timeline { margin-bottom: 8px; }
#bcw .step {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}
#bcw .step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}
#bcw .step-num {
  width: 36px;
  height: 36px;
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
#bcw .step.imp .step-num { background: var(--red); }
#bcw .step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 20px;
}
#bcw .step:last-child .step-line { display: none; }
#bcw .step-body {
  flex: 1;
  margin-left: 12px;
  margin-bottom: 0;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--border);
}
#bcw .step.imp .step-body {
  background: #fff9f9;
  border-left-color: var(--red);
}
#bcw .step-title {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--black);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#bcw .step-period {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
#bcw .step.imp .step-period { color: var(--red); }
#bcw .step-body p { font-size: 0.9em; color: #444; margin: 0 0 8px; }

/* ===== チェックリスト ===== */
#bcw .check-list { list-style: none; padding: 0; margin: 8px 0 0; }
#bcw .check-list li {
  font-size: 0.9em;
  color: #444;
  padding: 3px 0 3px 18px;
  position: relative;
}
#bcw .check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brown);
  font-weight: 700;
  font-size: 0.9em;
}

/* ===== ポイントボックス ===== */
#bcw .point-box {
  background: var(--white);
  border-left: 3px solid var(--brown);
  padding: 14px 18px;
  margin: 20px 0;
}
#bcw .point-box .pt-title {
  font-weight: 700;
  font-size: 0.9em;
  color: var(--black);
  margin: 0 0 6px;
}
#bcw .point-box p { font-size: 0.9em; color: #444; line-height: 1.75; margin: 0; }
#bcw .point-box.red { border-left-color: var(--red); background: #fff9f9; }

/* ===== 警告ボックス ===== */
#bcw .warn-box {
  background: #fffde7;
  border-left: 3px solid #f9a825;
  padding: 14px 18px;
  margin: 20px 0;
}
#bcw .warn-box .wt { font-weight: 700; font-size: 0.9em; color: #e65100; margin: 0 0 6px; }
#bcw .warn-box p { font-size: 0.9em; color: #555; line-height: 1.75; margin: 0; }

/* ===== グリッドカード ===== */
#bcw .grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px;
  margin: 16px 0;
  background: var(--border);
}
#bcw .grid-card {
  background: var(--white);
  padding: 16px 14px;
}
#bcw .grid-card .gc-icon { font-size: 1.6em; margin-bottom: 8px; display: block; }
#bcw .gc-title {
  font-weight: 700;
  font-size: 0.9em;
  color: var(--black);
  margin-bottom: 5px;
  line-height: 1.4;
}
#bcw .grid-card p { font-size: 0.9em; color: var(--mid); line-height: 1.6; margin: 0; }
#bcw .gc-body { flex: 1; }
#bcw .grid-card.must { border-top: 3px solid var(--red); }
#bcw .grid-card.must .gc-title { color: var(--red); }

/* ===== インラインCTA ===== */
#bcw .cta-inline {
  background: var(--bg-subtle);
  border-left: 3px solid var(--brown);
  padding: 16px 20px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#bcw .cta-inline p { margin: 0; font-size: 0.9em; color: var(--dark); flex: 1; min-width: 160px; }
#bcw .cta-inline a {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9em;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
#bcw .cta-inline a:hover { opacity: 0.75; }

/* ===== メインCTA ===== */
#bcw .cta-main {
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  border-left: 4px solid var(--brown);
  padding: 32px 28px;
  margin-bottom: 40px;
  text-align: center;
}
#bcw .cta-main .cta-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 10px;
}
#bcw .cta-main .cta-title {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 14px;
  line-height: 1.5;
}
#bcw .cta-main p {
  font-size: 0.9em;
  color: var(--mid);
  line-height: 1.75;
  margin: 0 0 20px;
  text-align: left;
}
#bcw .cta-btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.93em;
  padding: 13px 28px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}
#bcw .cta-btn-red:hover { opacity: 0.85; }
#bcw .cta-btn-outline {
  display: inline-block;
  border: 1.5px solid var(--border);
  color: var(--mid);
  font-size: 0.9em;
  font-weight: 600;
  padding: 10px 20px;
  text-decoration: none;
  margin-left: 10px;
  transition: border-color 0.2s, color 0.2s;
}
#bcw .cta-btn-outline:hover { border-color: var(--black); color: var(--black); }
#bcw .cta-note { font-size: 0.9em; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ===== FAQアコーディオン ===== */
#bcw .faq-item {
  border-bottom: 1px solid var(--border);
}
#bcw .faq-item:first-child { border-top: 1px solid var(--border); }
#bcw .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
}
#bcw .faq-q:hover { color: var(--red); }
#bcw .faq-q-text {
  font-weight: 700;
  font-size: 0.9em;
  color: var(--black);
  flex: 1;
  line-height: 1.5;
}
#bcw .faq-q:hover .faq-q-text { color: var(--red); }
#bcw .faq-icon {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2em;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}
#bcw .faq-item.open .faq-icon { transform: rotate(45deg); color: var(--red); }
#bcw .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.9em;
  color: var(--mid);
  line-height: 1.8;
  padding: 0 4px;
}
#bcw .faq-item.open .faq-a { max-height: 400px; padding: 0 4px 16px; }

/* ===== 関連記事 ===== */
#bcw .related-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
#bcw .related-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  margin-bottom: 40px;
  background: var(--border);
}
#bcw .related-card {
  display: block;
  background: var(--white);
  padding: 16px;
  text-decoration: none;
  color: var(--dark);
  transition: background 0.15s;
}
#bcw .related-card:hover { background: var(--bg-subtle); }
#bcw .rc-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
#bcw .related-card.featured { border-top: 3px solid var(--red); }
#bcw .related-card.featured .rc-tag { color: var(--red); }
#bcw .related-card p { margin: 0; font-size: 0.9em; line-height: 1.6; color: var(--dark); }
#bcw .rc-text { display: block; font-size: 0.9em; line-height: 1.6; color: var(--dark); margin: 0; }

/* ===== フッター ===== */
#bcw .art-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 48px;
  text-align: center;
}
#bcw .art-footer p { font-size: 0.9em; color: var(--muted); margin: 0 0 3px; }

/* ===== レスポンシブ ===== */
/* ===== レスポンシブ（480px以下） ===== */
@media (max-width: 480px) {
  /* 基本フォント */
  #bcw { font-size: 14px; }

  /* 見出し */
  #bcw .sec-h2 { font-size: 1.15em; }
  #bcw .sec-label { font-size: 0.7em; }

  /* リード前バナー */
  #bcw .top-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  #bcw .top-cta a { width: 100%; text-align: center; box-sizing: border-box; }

  /* 期間サマリーカード：2×2 */
  #bcw .period-cards { grid-template-columns: repeat(2, 1fr); }
  #bcw .period-card { padding: 14px 8px; }
  #bcw .period-card .p-val { font-size: 1.0em; }

  /* テーブル：横スクロール強制 */
  #bcw .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
  }
  #bcw .tbl { min-width: 480px; font-size: 0.9em; }
  #bcw .tbl th, #bcw .tbl td { padding: 8px 10px; }

  /* ステップ */
  #bcw .step-left { width: 36px; }
  #bcw .step-num { width: 30px; height: 30px; font-size: 0.85em; }
  #bcw .step-body { padding: 12px 14px; margin-left: 8px; }
  #bcw .step-title { font-size: 0.95em; }

  /* グリッドカード：スマホは1列 */
  #bcw .grid-cards { grid-template-columns: 1fr; gap: 1px; }
  #bcw .grid-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
  #bcw .grid-card .gc-icon { font-size: 1.4em; flex-shrink: 0; margin-bottom: 0; }
  #bcw .grid-card-body { flex: 1; }
  #bcw .gc-title { margin-bottom: 3px; }

  /* インラインCTA */
  #bcw .cta-inline { flex-direction: column; gap: 10px; }
  #bcw .cta-inline a { width: 100%; text-align: center; box-sizing: border-box; }

  /* メインCTA */
  #bcw .cta-main { padding: 22px 16px; }
  #bcw .cta-main .cta-title { font-size: 1.05em; }
  #bcw .cta-btn-red { display: block; width: 100%; box-sizing: border-box; text-align: center; }
  #bcw .cta-btn-outline { display: block; width: 100%; box-sizing: border-box; text-align: center; margin-left: 0; margin-top: 8px; }

  /* 関連記事：1列 */
  #bcw .related-wrap { grid-template-columns: 1fr; }

  /* ポイント・警告ボックス */
  #bcw .point-box, #bcw .warn-box { padding: 12px 14px; }
}
