/* =====================================================
   TERAWHAT リデザイン 2026.06
   style.css の後に読み込み、配色・ヘッダー・フッターを
   新デザインに上書きする。トップページの新セクション
   （tw- プレフィックス）のスタイルもここに置く。
   ===================================================== */

/* ===== デザイントークン上書き ===== */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #EAF1FE;
  --accent:        #F97316;
  --accent-light:  #FFF3E8;
  --bg:            #F6F9FC;
  --surface:       #FFFFFF;
  --text:          #16243A;
  --text-mid:      #4A5B70;
  --text-light:    #8C9DB0;
  --border:        #D8E2EC;
  --border-light:  #E8EFF6;
  --navy:          #0F1E33;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow-sm:     0 1px 3px rgba(22,36,58,0.06), 0 2px 12px rgba(22,36,58,0.05);
  --shadow-md:     0 4px 16px rgba(22,36,58,0.09), 0 1px 4px rgba(22,36,58,0.05);
  --shadow-hover:  0 12px 30px rgba(37,99,235,0.14), 0 2px 8px rgba(22,36,58,0.08);
}

body { background-color: var(--bg); }
body.page-home { background-color: #FFFFFF; }

/* ===== コンテンツ幅の統一 =====
   どのセクション・どのページでも同じ最大幅と左右余白にする。
   （画面が狭くても padding ぶんの余白は必ず残る） */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
  box-sizing: border-box;
}

/* style.css にはページ別に max-width: 1560px !important などの指定があるため、
   同じ強さ（!important）で後から上書きして全ページ 1120px に揃える */
body .container,
body.glossary-page .container,
body.cross-search-page .container,
body.press-release-page .container,
body.links-page .container,
body.sitemap-page .container,
body.utility-page .container,
.utility-page .container {
  max-width: 1120px !important;
}

/* トップページの .home-main は style.css 側で width:100%・padding:0 に
   されているので、ここで幅と余白を統一する */
.page-home .home-main {
  width: auto;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 36px;
}

/* ===== ヘッダー ===== */
header {
  background: #FFFFFF;
  box-shadow: none;
  border-bottom: 1px solid var(--border-light);
  padding: 0 28px;
}
header::after { display: none; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 0;
}

/* style.css にあるページ別の .site-title img 非表示ルールや
   span の文字サイズ指定よりも優先させるため、body から書く */
body .site-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.site-title a { text-decoration: none; }
body .site-title img.site-logo-bolt {
  display: block;
  height: 34px;
  width: 30px;
}
body .site-title .site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  position: static;
  margin: 0;
}
body .site-title .site-logo-text strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
}
body .site-title .site-logo-text small {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.06em;
}

.home-logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-logo-mark:hover { text-decoration: none; opacity: 0.85; }

.site-logo-bolt {
  width: 30px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.site-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo-text strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
}
.site-logo-text small {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.06em;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-header-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.site-header-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
}
.site-header-nav a.site-header-nav-current {
  color: var(--primary);
  background: var(--primary-light);
}

/* ----- style.css のページ別ヘッダー調整を打ち消す（全ページ統一） ----- */
body .site-header-nav { display: flex !important; width: auto; }
body header::after { display: none !important; }
body .site-header-nav a { border-bottom: none !important; text-decoration: none !important; }
body .site-header-nav a::after, body .site-header-nav a::before { display: none !important; content: none !important; }
body .site-header-nav a.site-header-nav-current {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

/* 旧CSSの「Readability Floor」(font-size 16px !important) と同じ強さで上書き */
.site-header-nav a,
.page-home .site-header-nav a,
.news-list-page .site-header-nav a,
.news-detail-page .site-header-nav a,
body.theme-detail-page .site-header-nav a,
body.utility-page .site-header-nav a,
.sitemap-page .site-header-nav a,
.glossary-page .site-header-nav a,
.cross-search-page .site-header-nav a,
.press-release-page .site-header-nav a,
.links-page .site-header-nav a {
  font-size: 14px !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 11px !important;
  display: inline-block !important;
}

.page-home .site-header-nav a {
  width: auto;
  min-height: 0;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
}
.page-home .site-header-nav a:hover,
.page-home .site-header-nav a:focus-visible {
  background: var(--primary-light);
  color: var(--primary);
}
.page-home .site-header-nav a[href="cross-search.html"] { display: inline-block; }

.news-list-page .header-inner {
  width: auto;
  max-width: 1120px;
  min-height: 0;
  padding: 14px 0;
}

/* ページ別の背景色指定（青緑など）をすべて共通トーンに戻す */
body[class] { background-color: var(--bg); }
body.page-home { background-color: #FFFFFF; }

/* ===== フッター ===== */
footer, .site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  margin-top: 64px;
  padding: 44px 28px 36px;
  text-align: center;
}
.site-footer-inner { max-width: 1120px; margin: 0 auto; }

.site-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.site-footer-brand img { width: 22px; height: 26px; object-fit: contain; }
.site-footer-brand strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}
.site-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin-bottom: 22px;
}
.site-footer-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-decoration: none;
}
.site-footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }

.site-footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.site-footer-copy { font-size: 13px; color: rgba(255,255,255,0.6); }

/* =====================================================
   トップページ（tw- プレフィックス）
   ===================================================== */

/* style.css の .home-main は grid のため、中身の最小幅で
   全セクションが広がってしまう。block に戻す */
main.home-main { display: block; }

.tw-section { padding: 26px 0 30px; }
.tw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tw-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
}
.tw-section-title img { width: 22px; height: 26px; object-fit: contain; }
.tw-section-title .tw-title-red { color: var(--primary); }
.tw-see-all {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.tw-see-all:hover { text-decoration: underline; }

.tw-soon {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-light);
  background: #F0F4F9;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
}

/* ===== ヒーロー ===== */
.tw-hero {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  align-items: center;
  gap: 28px;
  padding: 40px 0 26px;
}
.tw-hero-visual img {
  max-width: 560px;
  margin: 0 auto;
}
.tw-hero-eyebrow {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.tw-hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.tw-hero-title .tw-accent { color: var(--accent); }
.tw-hero-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--text-mid);
  margin-bottom: 26px;
  max-width: 30em;
}
.tw-hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,99,235,0.3);
}
.tw-hero-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.tw-hero-visual img { width: 100%; height: auto; display: block; }

/* ===== 特集 ===== */
.tw-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tw-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 18px 52px;
  min-height: 240px;
  box-shadow: var(--shadow-sm);
  cursor: default;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tw-feature-card[href] {
  cursor: pointer;
}
.tw-feature-card[href]:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.tw-feature-num {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.tw-feature-grid > :nth-child(4n+1) .tw-feature-num { color: var(--accent); }
.tw-feature-grid > :nth-child(4n+2) .tw-feature-num { color: #0EA5A4; }
.tw-feature-grid > :nth-child(4n+3) .tw-feature-num { color: var(--primary); }
.tw-feature-grid > :nth-child(4n+4) .tw-feature-num { color: #16A34A; }
.tw-feature-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}
.tw-feature-card img {
  width: 72%;
  max-height: 120px;
  object-fit: contain;
  margin: auto auto 0;
  display: block;
}
.tw-feature-card .tw-soon {
  position: absolute;
  left: 16px;
  bottom: 14px;
}
.tw-feature-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
}
.tw-feature-card[href] .tw-feature-arrow {
  border-color: var(--primary-light);
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== コラム ===== */
.tw-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tw-column-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tw-column-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.tw-column-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.tw-column-card small {
  display: block;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 5px;
}
.tw-column-card strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
}
.tw-column-card > span:not(.tw-column-arrow) {
  display: block;
  color: var(--text-mid);
  font-size: 13.5px;
  line-height: 1.75;
  margin-top: 6px;
}
.tw-column-arrow {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

/* ===== 市場を理解する ===== */
.tw-market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 12px;
}
.tw-market-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 14px 42px;
  min-height: 0;
  height: 100%;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tw-market-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tw-market-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.tw-market-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
  padding-top: 1px;
}
.tw-market-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
}
.tw-market-card img {
  height: 56px;
  object-fit: contain;
  margin: auto auto 0;
  display: block;
  max-width: 80%;
}
.tw-market-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--primary-light);
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary);
}

/* ===== 週刊AIニュース ===== */
.tw-weekly {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #EAF2FE 0%, #F4F9FF 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tw-weekly-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tw-weekly:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.tw-weekly-chip {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 2px;
  width: fit-content;
}
.tw-weekly-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}
.tw-weekly-meta {
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}
.tw-weekly-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0;
}
.tw-weekly-visual img {
  width: 100%;
  max-width: 118px;
  max-height: 116px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ===== 今日のエネルギーニュース（箇条書きリスト） ===== */
.home-news-board {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 24px;
  box-shadow: var(--shadow-sm);
}
/* style.css 側のカード型グリッド定義をリセットする */
.home-news-feature,
.home-news-grid {
  display: block;
  min-height: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
/* サムネイル画像は使わない（旧形式のマークアップが混ざっても表示しない） */
.home-news-board img { display: none; }
.home-news-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.home-news-board > div > .home-news-row:last-child,
.home-news-board > .home-news-row:last-child { border-bottom: none; }
#homeNewsGrid .home-news-row:last-child { border-bottom: none; }
.home-news-row:hover { text-decoration: none; background: #F8FBFF; }
.home-news-row:hover .home-news-row-title { color: var(--primary); }
.home-news-row-date {
  font-size: 13.5px;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}
.home-news-row-tags { display: flex; gap: 4px; flex-shrink: 0; }
.home-news-card-tag,
.home-badge-category {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 8px;
  white-space: nowrap;
}
.home-news-row-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.home-news-row-arrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ===== 審議会資料解説 ===== */
.tw-council-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tw-council-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tw-council-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tw-council-card img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.tw-council-copy { min-width: 0; }
.tw-council-round { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-mid); }
.tw-council-name {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
  margin: 2px 0 6px;
}
.tw-council-date { display: block; font-size: 13px; color: var(--text-light); }
.tw-new {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 9px;
  letter-spacing: 0.05em;
}

/* ===== 決算を読む ===== */
.tw-earnings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tw-earnings-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tw-earnings-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tw-earnings-card img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.tw-earnings-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}
.tw-earnings-term { display: block; font-size: 13px; color: var(--text-light); margin-top: 2px; }
.tw-earnings-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  background: var(--primary-light);
  border: 1px solid #D8E6FB;
  border-radius: var(--radius);
  padding: 15px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.18s ease;
}
.tw-earnings-compare:hover { background: #DEEAFD; text-decoration: none; }

/* ===== プレスリリース（日付＋バッジ＋タイトルの2列リスト） ===== */
.home-press-shell { display: block; }
.home-press-panel {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 24px;
  box-shadow: var(--shadow-sm);
}
.home-press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
}
.home-press-item { border-bottom: 1px solid var(--border-light); border-top: none; }
.home-press-item + .home-press-item { margin-top: 0; }
.home-press-list .home-press-item:nth-last-child(-n+1) { border-bottom: none; }
.home-press-item a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 4px;
  min-height: 0;
  text-decoration: none;
}
.home-press-item a:hover { text-decoration: none; background: #F8FBFF; }
.home-press-item a:hover .home-press-item-text { color: var(--primary); }
.home-press-item-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  flex-shrink: 0;
}
.home-press-item-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-press-item-text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.home-press-item-arrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1100px) {
  .tw-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tw-council-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-earnings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-press-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .tw-hero { grid-template-columns: 1fr; padding-top: 28px; gap: 20px; }
  .tw-hero-title { font-size: 30px; }
  .tw-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tw-feature-card { min-height: 200px; }
  .tw-column-grid { grid-template-columns: 1fr; }
  .tw-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 178px;
  }
  .tw-council-grid { grid-template-columns: 1fr; }
  .tw-earnings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-weekly { grid-template-columns: 1fr; padding: 16px; }
  .tw-weekly-visual { display: none; }
  .council-material-detail summary { flex-wrap: wrap; align-items: flex-start; }
  .council-material-summary-text { flex: 1 1 220px; }
  .council-material-toggle { margin-left: 0 !important; }
  .council-material-body { padding: 0 16px 18px !important; }
  .home-news-board { padding: 4px 14px; }
  .home-news-row { flex-wrap: wrap; gap: 8px; row-gap: 2px; }
  .home-news-row-title { flex-basis: 100%; }

  /* プレスリリース：1行目に電力名バッジ＋日付、2行目にタイトル（2行まで）。矢印は出さない */
  .home-press-panel { padding: 4px 14px; }
  .home-press-item a {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
    padding: 10px 2px;
  }
  .home-press-item-badge { order: -2; }
  .home-press-item-date { order: -1; align-self: center; }
  .home-press-item-text {
    flex-basis: 100%;
    white-space: normal;
    -webkit-line-clamp: 2;
  }
  .home-press-item-arrow { display: none; }

  .tw-section-title { font-size: 20px; }

  /* ヘッダー：1段目ロゴ、2段目ナビ（横スクロール・項目は改行させない）の2段構成 */
  header { padding: 0 14px; }
  .header-inner { padding: 10px 0 0; gap: 2px 12px; }
  body .site-title .site-logo-text strong { font-size: 17px; }
  body .site-title .site-logo-text small { font-size: 9px; }
  body .site-title img.site-logo-bolt { height: 28px; width: 24px; }
  body .site-header-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(7, 126, 143, 0.45) transparent;
    gap: 2px;
    padding: 2px 0 12px;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  body .site-header-nav::after {
    content: "→";
    position: sticky;
    right: 0;
    flex: 0 0 28px;
    margin-left: -28px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
    background: linear-gradient(90deg, rgba(255,255,255,0), #FFFFFF 68%);
    pointer-events: none;
  }
  .site-header-nav::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
  .site-header-nav::-webkit-scrollbar-track { background: transparent; }
  .site-header-nav::-webkit-scrollbar-thumb {
    background: rgba(7, 126, 143, 0.45);
    border-radius: 999px;
  }
  .site-header-nav a,
  .page-home .site-header-nav a,
  .news-list-page .site-header-nav a,
  .news-detail-page .site-header-nav a,
  body.theme-detail-page .site-header-nav a,
  body.utility-page .site-header-nav a,
  .sitemap-page .site-header-nav a,
  .glossary-page .site-header-nav a,
  .cross-search-page .site-header-nav a,
  .press-release-page .site-header-nav a,
  .links-page .site-header-nav a {
    font-size: 12.5px !important;
    padding: 5px 8px;
    flex-shrink: 0;
  }
}

/* =====================================================
   下層ページ共通（2026.06 リデザイン第2弾）
   ===================================================== */

/* ----- 新ヒーロー（ハブページ用） ----- */
.tw-page-hero {
  background: linear-gradient(135deg, #EAF2FE 0%, #F8FBFF 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 22px;
}
.tw-page-hero-inner {
  max-width: 1076px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: center;
}
.tw-page-hero-kicker {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.tw-page-hero h1 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.tw-page-hero-lead {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-mid);
  max-width: 46em;
}
.tw-page-hero-visual img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ----- 旧ヒーロー（記事・解説・一覧ページ）をフラットに統一 ----- */
.news-list-hero, .news-detail-hero, .theme-detail-hero,
.page-hero, .page-tone-hero, .press-release-hero, .links-hero,
.utility-page .page-hero, .earnings-page .page-hero {
  background: linear-gradient(135deg, #EAF2FE 0%, #F8FBFF 100%) !important;
  min-height: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border-light) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 28px 22px !important;
  margin: 0 !important;
}
.news-list-hero::before, .news-list-hero::after,
.news-detail-hero::before, .news-detail-hero::after,
.theme-detail-hero::before, .theme-detail-hero::after,
.page-hero::before, .page-hero::after,
.page-tone-hero::before, .page-tone-hero::after,
.press-release-hero::before, .press-release-hero::after,
.links-hero::before, .links-hero::after {
  display: none !important;
  content: none !important;
}
.news-list-hero-inner, .news-detail-hero-inner, .theme-detail-hero-inner,
.page-hero-inner, .page-tone-hero-inner, .press-release-hero-inner, .links-hero-inner {
  max-width: 1076px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: none !important;
}
.news-list-hero-title, .news-detail-hero-title, .theme-detail-title,
.theme-detail-page .theme-detail-title, .utility-page .page-hero h1,
.page-hero-inner h1, .page-tone-hero-copy h1, .press-release-hero-title,
.page-hero h1, .links-hero h1 {
  color: var(--text) !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  line-height: 1.4 !important;
}
.news-list-hero-copy, .theme-detail-hero-copy p, .theme-detail-lead,
.page-hero-inner p, .page-tone-hero-copy p, .press-release-hero-copy,
.theme-updated-at, .page-hero-lead {
  color: var(--text-mid) !important;
  text-shadow: none !important;
}
.page-tone-kicker { color: var(--primary) !important; font-weight: 800 !important; }
.news-list-hero-icon, .news-detail-hero-icon, .theme-detail-hero-icon,
.press-release-hero-icon, .page-tone-hero-icon {
  background: #FFFFFF !important;
  color: var(--primary) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-sm) !important;
}
.news-detail-chip {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: none !important;
  font-weight: 700;
}
.news-detail-hero-date { color: var(--text-light) !important; }

/* ----- 本文の読みやすさ（記事・解説共通） ----- */
.explain-body {
  font-size: 16px !important;
  line-height: 2 !important;
  color: var(--text);
}
.news-article-summary { font-size: 16.5px !important; }
.explain-h2 {
  color: var(--text) !important;
  border-color: var(--primary) !important;
}
.explain-source {
  background: var(--primary-light) !important;
  border: 1px solid #D8E6FB !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
}
.explain-callout {
  background: var(--accent-light) !important;
  border: 1px solid #FBDCC0 !important;
  border-radius: var(--radius) !important;
}

/* ----- 審議会資料解説（一覧カード） ----- */
.council-shell { padding-top: 28px !important; }
.council-meeting-list { display: grid !important; gap: 12px !important; }
.council-meeting-card {
  display: grid !important;
  grid-template-columns: 110px 80px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 16px 22px !important;
  text-decoration: none !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.council-meeting-card:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-2px);
}
.council-meeting-card small {
  display: block;
  font-size: 11.5px !important;
  color: var(--text-light) !important;
  font-weight: 600;
  margin-bottom: 2px;
}
.council-meeting-card strong {
  font-size: 15px !important;
  color: var(--text) !important;
  font-weight: 800 !important;
}
.council-meeting-body strong { font-size: 16.5px !important; }
.council-meeting-arrow {
  color: var(--primary) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* ----- 決算スライド（一覧カード） ----- */
.earnings-shell { padding-top: 28px !important; }
.earnings-company-list { display: grid !important; gap: 12px !important; }
.earnings-company-card {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 16px 22px !important;
  text-decoration: none !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.earnings-company-card:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-2px);
}
.earnings-company-number {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.earnings-company-label {
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.earnings-company-body strong {
  color: var(--text) !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
}
.earnings-company-body span:last-child {
  color: var(--text-mid) !important;
  font-size: 13.5px !important;
}
.earnings-company-arrow {
  color: var(--primary) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* ----- プレスリリースページ ----- */
.press-release-filter-button {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  color: var(--text) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
.press-release-filter-button.is-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}
.press-release-source {
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
}
.press-release-source-title { color: var(--text) !important; }
.press-release-meta-chip {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700;
}
.press-release-group-title { color: var(--text) !important; font-weight: 800 !important; }
.press-release-link { color: var(--primary) !important; }
.press-release-date { color: var(--text-light) !important; }
.press-release-text { color: var(--text) !important; font-size: 14px !important; }
.press-release-item a:hover .press-release-text { color: var(--primary) !important; }
.press-release-new-badge {
  background: var(--accent) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

/* ----- ニュース一覧ページ ----- */
.news-list-page { background: var(--bg) !important; }
.news-list-page header::after { display: none !important; }
.news-list-search-shell {
  background: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-sm) !important;
}
.news-list-search-shell i { color: var(--primary) !important; }
.news-list-panel {
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
}
.news-list-panel-head { color: var(--text) !important; }
.news-list-panel-head i { color: var(--primary) !important; }
.news-list-filter-btn {
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  color: var(--text) !important;
  font-weight: 700 !important;
}
.news-list-filter-btn.is-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}
.news-list-tag {
  background: var(--primary-light) !important;
  border: none !important;
  border-radius: 999px !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}
.news-list-card {
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.news-list-card:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-2px);
}
.news-list-date-badge {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
}
.news-list-date-badge-month { color: var(--primary) !important; }
.news-list-date-badge-day { color: var(--primary) !important; }
.news-list-card-badge {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: none !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
}
.news-list-card-title a { color: var(--text) !important; font-size: 16.5px !important; }
.news-list-card-title a:hover { color: var(--primary) !important; }
.news-list-card-summary { color: var(--text-mid) !important; font-size: 14px !important; }
.news-list-card-time { color: var(--text-light) !important; }
.news-list-load-more {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

/* ----- 長文記事・コラム ----- */
body.tw-longform-page { background: var(--bg); }
.tw-longform-hero {
  background: linear-gradient(135deg, #EAF2FE 0%, #F8FBFF 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 30px 22px;
}
.tw-longform-hero-inner {
  max-width: 1076px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: center;
}
.tw-longform-kicker {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.tw-longform-hero h1 {
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: 12px;
}
.tw-longform-lead {
  color: var(--text-mid);
  font-size: 15.5px;
  line-height: 1.95;
  max-width: 44em;
}
.tw-longform-date {
  color: var(--text-light);
  font-size: 12.5px;
  margin-top: 10px;
}
.tw-longform-visual {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.tw-longform-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.tw-longform-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 22px 8px;
}
.tw-longform-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 18px;
}
.tw-longform-card h2 {
  color: var(--text);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 900;
  margin: 0 0 14px;
}
.tw-longform-card h3 {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 900;
  margin: 18px 0 8px;
}
.tw-longform-card p,
.tw-longform-card li {
  color: var(--text-mid);
  font-size: 15.5px;
  line-height: 2;
}
.tw-longform-card p + p { margin-top: 12px; }
.tw-longform-card ul { margin: 10px 0 0; padding-left: 1.2em; }
.tw-readable-prose p.tw-prose-page-title {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 20px;
}
.tw-readable-prose p.tw-prose-lead,
.council-document-text p.tw-prose-lead {
  color: var(--text);
  background: #F4FAFD;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.tw-readable-prose p.tw-prose-heading {
  color: var(--text);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.6;
  margin-top: 32px;
  padding-top: 4px;
}
.tw-readable-prose p.tw-prose-subheading,
.council-document-text p.tw-prose-subheading {
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
  margin-top: 20px;
}
.tw-readable-prose p.tw-prose-point,
.council-document-text p.tw-prose-point {
  color: var(--text);
  background: #F8FBFF;
  border: 1px solid #DCEEF5;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.8;
  padding: 10px 12px;
}
.tw-longform-summary {
  border-left: 5px solid var(--primary);
}
.tw-formula {
  display: block;
  background: var(--primary-light);
  border: 1px solid #D8E6FB;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.8;
  padding: 18px 20px;
  margin: 16px 0;
  overflow-x: auto;
}
.tw-fact-table-wrap {
  overflow-x: auto;
  margin: 16px 0 8px;
}
.tw-fact-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.tw-fact-table caption {
  caption-side: top;
  text-align: left;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}
.tw-fact-table th,
.tw-fact-table td {
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.tw-fact-table th {
  background: var(--primary-light);
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}
.tw-fact-table td {
  background: #FFFFFF;
  color: var(--text-mid);
  line-height: 1.8;
}
.tw-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tw-source-list a {
  color: var(--primary);
  font-weight: 700;
}
.tw-article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}
.tw-article-nav a {
  color: var(--primary);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.tw-article-nav a:hover {
  background: var(--primary-light);
  text-decoration: none;
}

/* ----- 審議会詳細ページの見出し整理 ----- */
.council-hero .page-hero-inner h1 span {
  display: block;
}
.council-hero-title-sub {
  font-size: 0.72em;
  color: var(--primary);
  margin-top: 2px;
}
.council-hero-title-main {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}
.page-hero.council-hero h1,
.page-hero.earnings-hero h1 {
  width: auto !important;
  max-width: none !important;
}
.council-card-kicker {
  color: var(--primary) !important;
  font-weight: 900 !important;
}

/* ----- 用語解説の検索 ----- */
.glossary-search-shell {
  background: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ----- スマホ対応 ----- */
@media (max-width: 760px) {
  .tw-page-hero-inner { grid-template-columns: 1fr; }
  .tw-page-hero-visual { display: none; }
  .tw-longform-hero-inner { grid-template-columns: 1fr; }
  .tw-longform-visual { display: none; }
  .council-meeting-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 14px !important;
  }
  .council-meeting-date, .council-meeting-round { display: inline-block; }
  .council-meeting-body { grid-column: 1 / -1; }
  .council-meeting-arrow { grid-column: 2; grid-row: 1; }
  .earnings-company-card { grid-template-columns: 44px minmax(0, 1fr) !important; }
  .earnings-company-arrow { display: none !important; }
}

/* =====================================================
   ヘッダーの大きさ・挙動を全ページで完全統一
   ===================================================== */
body header {
  position: static !important;
  min-height: 0 !important;
  padding: 0 22px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid var(--border-light) !important;
}
body .header-inner {
  min-height: 0 !important;
  width: auto !important;
  max-width: 1120px !important;
  padding: 12px 0 !important;
  flex-direction: row !important;
}
body .site-title .site-logo-text strong { font-size: 22px !important; }
body .site-title .site-logo-text small { font-size: 10px !important; }
@media (max-width: 760px) {
  body header { padding: 0 14px !important; }
  body .header-inner { padding: 10px 0 0 !important; }
  body .site-title .site-logo-text strong { font-size: 17px !important; }
  body .site-title .site-logo-text small { font-size: 9px !important; }
}

/* パンくず */
body .breadcrumb {
  background: none !important;
  border: none !important;
  max-width: 1120px;
  margin: 0 auto !important;
  padding: 12px 22px 0 !important;
}
body .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--text-light);
}
body .breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--border); }
body .breadcrumb li:last-child::after { content: none; }
body .breadcrumb a { color: var(--text-mid); text-decoration: none; }
body .breadcrumb a:hover { color: var(--primary); }

/* =====================================================
   解説ページ（tw-explainer）テンプレート
   ===================================================== */
body.tw-explainer-page { background: #FFFFFF; }

.tw-ex-hero {
  background: linear-gradient(135deg, #EAF2FE 0%, #F8FBFF 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 30px 22px 0;
  margin-top: 10px;
}
.tw-ex-hero-inner {
  max-width: 1076px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 28px;
  align-items: center;
}
.tw-ex-chip {
  display: inline-block;
  background: #FFFFFF;
  color: var(--text);
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.tw-ex-hero h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
}
.tw-ex-hero-lead {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-mid);
  max-width: 36em;
}
.tw-ex-hero-updated {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
}
.tw-ex-hero-copy { padding-bottom: 30px; }
.tw-ex-hero-copy { min-width: 0; }
.tw-ex-hero-lead { overflow-wrap: anywhere; }
.tw-ex-hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  align-self: end;
}
.tw-ex-hero-visual img { width: auto; display: block; }
.tw-ex-hero-visual .h-sm { height: 64px; }
.tw-ex-hero-visual .h-md { height: 96px; }
.tw-ex-hero-visual .h-lg { height: 140px; }

.tw-ex-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 22px 30px;
}
.tw-ex-section { padding: 28px 0 4px; }
.tw-ex-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tw-ex-num {
  background: #FFFFFF;
  color: var(--text);
  border: 1px solid var(--border-light);
  font-weight: 900;
  font-size: 13.5px;
  border-radius: 8px;
  padding: 3px 11px;
  letter-spacing: 0.04em;
}
.tw-ex-head h2 {
  font-size: 21px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  border: none;
  padding: 0;
  background: none;
}
.tw-ex-head .tw-ex-sub { font-size: 12.5px; color: var(--text-light); }

/* 一言でいうと */
.tw-ex-summary {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
}
.tw-ex-summary img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.tw-ex-summary strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tw-ex-summary p { font-size: 14.5px; color: var(--text-mid); line-height: 1.9; margin: 0; overflow-wrap: anywhere; }

/* アイコンカードのグリッド */
.tw-ex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tw-ex-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tw-ex-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-ex-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tw-ex-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
a.tw-ex-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
a.tw-ex-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tw-ex-card img { height: 56px; object-fit: contain; margin: 0 auto 4px; max-width: 80%; }
.tw-ex-card strong { font-size: 14.5px; font-weight: 800; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.tw-ex-card span { font-size: 12.5px; color: var(--text-mid); line-height: 1.75; overflow-wrap: anywhere; }
.tw-ex-card .tw-ex-more { color: var(--primary); font-size: 12.5px; font-weight: 700; margin-top: auto; }

/* 市場の全体像（供給側 → 市場 → 需要側） */
.tw-ex-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.4fr) 44px minmax(0, 1fr);
  align-items: stretch;
}
.tw-ex-flow-node {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tw-ex-flow-node img { height: 56px; object-fit: contain; margin: 0 auto 10px; display: block; }
.tw-ex-flow-node strong { display: block; font-size: 15px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.tw-ex-flow-node small { font-size: 12px; color: var(--text-mid); line-height: 1.7; }
.tw-ex-flow-main {
  background: var(--surface);
  border: 1px solid var(--border-light);
}
.tw-ex-flow-main strong { color: var(--text); font-size: 17px; }
.tw-ex-flow-main small { color: var(--text-mid); }
.tw-ex-flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.tw-ex-flow-chips span {
  background: var(--primary-light);
  border: 1px solid #D8E6FB;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.tw-ex-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}
.tw-ex-flow-note { text-align: center; margin-top: 16px; }
.tw-ex-flow-note span {
  display: inline-block;
  background: var(--primary-light);
  border: 1px solid #D8E6FB;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 22px;
}

/* 比較表 */
.tw-ex-table-wrap { overflow-x: auto; max-width: 100%; }
table.tw-ex-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.tw-ex-table thead th {
  background: #FFFFFF;
  color: var(--text);
  font-weight: 800;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.tw-ex-table thead th:first-child { background: #FFFFFF; }
.tw-ex-table tbody th {
  background: #F3F7FC;
  font-weight: 800;
  color: var(--text);
  width: 170px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.tw-ex-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  line-height: 1.8;
}
.tw-ex-table tbody tr:last-child th,
.tw-ex-table tbody tr:last-child td { border-bottom: none; }

/* 関連用語チップ */
.tw-ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tw-ex-chips a, .tw-ex-chips span {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 15px;
  text-decoration: none;
}
.tw-ex-chips a:hover { background: #DEEAFD; text-decoration: none; }

/* 資料リンクカード */
.tw-ex-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tw-ex-link-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tw-ex-link-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tw-ex-link-card img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.tw-ex-link-card strong { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); line-height: 1.55; margin-bottom: 4px; }
.tw-ex-link-card span { display: block; font-size: 12.5px; color: var(--text-mid); line-height: 1.7; }
.tw-ex-link-card .tw-ex-more { color: var(--primary); font-weight: 700; margin-top: 6px; }

/* ----- 審議会資料解説の詳細ページ ----- */
.council-back-link {
  display: inline-block;
  margin: 16px 0 4px;
  color: var(--primary) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.council-back-link:hover { text-decoration: underline; }
.council-card,
.council-meeting-summary,
.council-explain-block {
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 22px 26px !important;
  margin: 0 0 16px !important;
}
.council-card-kicker {
  color: var(--primary) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  margin-bottom: 4px;
}
.council-card h2,
.council-meeting-summary h2 {
  color: var(--text) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}
.council-source { color: var(--text-mid) !important; font-size: 13px !important; }
.council-source a { color: var(--primary) !important; }
.council-explain-block p {
  color: var(--text) !important;
  font-size: 15px !important;
  line-height: 2 !important;
}
.council-materials-panel {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.council-section-head h2 {
  color: var(--text) !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  border: none !important;
  background: none !important;
}
.council-material-detail {
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  margin: 0 0 12px !important;
  overflow: hidden;
}
.council-material-detail summary {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 16px 20px !important;
  cursor: pointer;
  list-style: none;
  background: none !important;
}
.council-material-detail summary::-webkit-details-marker { display: none; }
.council-material-detail summary:hover { background: #F8FBFF !important; }
.council-material-number {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  padding: 4px 12px !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.council-material-summary-text strong {
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.6;
}
.council-material-toggle {
  margin-left: auto !important;
  color: var(--primary) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.council-material-detail[open] .council-material-toggle {
  font-size: 0 !important;
}
.council-material-detail[open] .council-material-toggle::before {
  content: "閉じる";
  color: var(--primary);
  font-size: 12.5px !important;
  font-weight: 700;
}
.council-material-body { padding: 0 24px 22px !important; background: none !important; }
.council-document-text {
  color: var(--text) !important;
  font-size: 15px !important;
  line-height: 2 !important;
}
.council-document-text p { margin-bottom: 12px; }
.council-document-text p.tw-prose-heading {
  color: var(--text) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.7 !important;
  margin-top: 24px;
}
.council-document-text p.tw-prose-point {
  font-size: 15px !important;
}

/* 用語ハブ（glossary）のコンパクトカード */
.tw-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tw-term-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.tw-term-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tw-term-card strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tw-term-card strong::after {
  content: "→";
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
}
.tw-term-card span {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.75;
}
.tw-glossary-search {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 0 22px;
}
.tw-glossary-search .glossary-search-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 8px 4px 22px;
}
.tw-glossary-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 12px 0;
  background: none;
  color: var(--text);
}
.tw-glossary-search .glossary-search-count {
  font-size: 12.5px;
  color: var(--text-light);
  white-space: nowrap;
  padding-right: 12px;
  margin: 0;
}
@media (max-width: 1100px) {
  .tw-term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tw-term-grid { grid-template-columns: 1fr; }
}

/* 自動変換ページ用：本文プロース */
.tw-ex-prose {
  max-width: 820px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--text);
}
.tw-ex-prose p { margin-bottom: 14px; }

/* レスポンシブ */
@media (max-width: 1100px) {
  .tw-ex-grid, .tw-ex-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tw-ex-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tw-ex-hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .tw-ex-hero-visual { display: none; }
  .tw-ex-grid, .tw-ex-grid-5, .tw-ex-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-ex-grid-2 { grid-template-columns: 1fr; }
  .tw-ex-mobile-stack { grid-template-columns: 1fr; }
  .tw-ex-links { grid-template-columns: 1fr; }
  .tw-ex-summary { flex-direction: column; text-align: center; }
  .tw-ex-summary > div { min-width: 0; }
  .tw-ex-flow { grid-template-columns: 1fr; }
  .tw-ex-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* =====================================================
   260615 更新指示の再確認対応：ヘッダー・旧ヒーロー統一
   ===================================================== */
body .header-inner {
  flex-wrap: nowrap !important;
  align-items: center !important;
}
body .site-title {
  flex: 0 0 auto !important;
}
body .site-header-nav {
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
body .site-header-nav a {
  flex: 0 0 auto !important;
}

@media (min-width: 761px) {
  body header {
    height: 64px !important;
  }
  body .header-inner {
    height: 64px !important;
    padding: 0 !important;
  }
}

/* =====================================================
   プライバシーポリシー
   ===================================================== */
.privacy-page .tw-page-hero-inner {
  max-width: 860px;
  grid-template-columns: minmax(0, 1fr);
}

.privacy-main {
  max-width: 860px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.privacy-card {
  padding: clamp(24px, 4vw, 44px);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.privacy-card h2 {
  margin: 2em 0 0.7em;
  color: var(--text);
  font-size: 20px;
  line-height: 1.5;
}

.privacy-card h2:first-child { margin-top: 0; }

.privacy-card p,
.privacy-card li,
.privacy-card dd {
  color: var(--text-mid);
  line-height: 1.9;
}

.privacy-card ul { padding-left: 1.5em; }

.privacy-card dt {
  margin-top: 16px;
  color: var(--text);
  font-weight: 800;
}

.privacy-card dd { margin: 4px 0 0; }

.privacy-updated {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .privacy-main { padding-top: 24px; }
  .privacy-card { border-radius: 16px; }
}

.tw-longform-visual {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.news-list-hero,
.news-detail-hero,
.page-hero.council-hero,
.page-hero.earnings-hero {
  position: relative !important;
  overflow: hidden !important;
}
.news-list-hero-inner,
.news-detail-hero-inner,
.news-detail-hero > .container,
.page-hero.council-hero .page-hero-inner,
.page-hero.earnings-hero .page-hero-inner {
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box;
}
.news-list-hero::after,
.news-detail-hero::after,
.page-hero.council-hero::after,
.page-hero.earnings-hero::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: auto !important;
  right: max(22px, calc((100vw - 1076px) / 2));
  bottom: -18px;
  width: 210px;
  height: 180px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  opacity: 0.92;
  pointer-events: none;
}
.news-list-hero::after {
  background-image: url("../images/ui/s8-43.png");
}
.news-detail-hero::after {
  background-image: url("../images/ui/s9-23.png");
}
.page-hero.council-hero::after {
  background-image: url("../images/ui/council-doc.png");
}
.page-hero.earnings-hero::after {
  background-image: url("../images/ui/s9-44.png");
}
.news-list-hero-head {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  align-items: center !important;
}
.news-list-hero-title {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}
.news-list-hero-copy {
  max-width: 34em !important;
}
.news-list-hero-icon {
  background: #FFFFFF url("../images/ui/icon-press.png") center / 48px auto no-repeat !important;
}
.news-list-hero-icon i {
  display: none !important;
}

@media (min-width: 761px) {
  .news-list-hero-inner,
  .news-detail-hero-inner,
  .news-detail-hero > .container,
  .page-hero.council-hero .page-hero-inner,
  .page-hero.earnings-hero .page-hero-inner {
    padding-right: 230px !important;
  }
}

@media (max-width: 760px) {
  body .header-inner {
    flex-wrap: wrap !important;
  }
  body .site-header-nav {
    width: calc(100% + 28px) !important;
    margin: 0 -14px !important;
    padding: 2px 14px 12px !important;
    justify-content: flex-start !important;
  }
  .news-list-hero::after,
  .news-detail-hero::after,
  .page-hero.council-hero::after,
  .page-hero.earnings-hero::after {
    display: none !important;
    content: none !important;
  }
}
