/* ==========================================================
   新しい見た目（攻めた見た目）
   ・ふつうに開くとこの見た目が出る（html[data-skin="bold"]）。?skin=normal を付けると、もとの見た目
   ・もとの見た目（style.css）の上にかぶせているだけ
   ・やめるとき: このファイルと skin-bold.js を消し、index.html の2行を消す
   方針: 色は今のまま（白・濃紺・青・オレンジ）。形（斜め）と大きな数字で攻める。数字は斜めにしない（平田さんの希望。細い文字は試して不採用）。
         画面の切り替えは帯を走らせない（うるさいため。選んだタブへ帯がすべるだけ）。グラフと表は読みやすさ優先でそのまま。
   ========================================================== */

/* 切り替えボタン（どちらの見た目でも出す） */
.skin-switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.skin-switch span { font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.skin-switch button {
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px;
}
.skin-switch button[aria-pressed="true"] { background: var(--slab); color: #fff; border-color: transparent; }

html[data-skin="bold"] {
  --radius: 0px;
  --cobalt: #2a78d6;
  --numf: "Avenir Next Condensed", "Futura", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --skew: -12deg;
}
html[data-skin="bold"] body { overflow-x: clip; }
html[data-skin="bold"] #bg { display: none; }

/* 背景: 斜めの帯と細い線 */
html[data-skin="bold"] body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 57%, rgba(42, 120, 214, 0.075) 57% 70%, transparent 70%),
    linear-gradient(112deg, transparent 0 72.5%, rgba(23, 42, 82, 0.09) 72.5% 73.1%, transparent 73.1%),
    linear-gradient(112deg, transparent 0 21%, rgba(255, 255, 255, 0.55) 21% 30%, transparent 30%);
}
/* ---------- 上の帯 ---------- */
html[data-skin="bold"] .top { align-items: flex-end; padding-top: 6px; }
/* 左上のロゴ（少し大きめ） */
html[data-skin="bold"] .brand-logo { display: block; height: 54px; width: auto; margin: 0 0 4px -2px; }
html[data-skin="bold"] h1 {
  display: block; width: fit-content; position: relative; margin-top: 8px;
  font-size: clamp(26px, 3.1vw, 38px); font-weight: 900; letter-spacing: 0; line-height: 1.15;
  transform: skewX(-7deg); transform-origin: 0 100%;
}
html[data-skin="bold"] h1::after {
  content: ""; display: block; height: 5px; width: 62%; margin-top: 4px; background: var(--cobalt);
  transform: skewX(-30deg); transform-origin: 0 0;
}
html[data-skin="bold"] .dummy-chip {
  border-radius: 0; padding: 6px 18px 6px 12px;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
html[data-skin="bold"] .stepper {
  border-radius: 0; border: 0; padding: 4px 6px; background: linear-gradient(100deg, var(--slab), var(--slab-2));
  transform: skewX(var(--skew)); box-shadow: 6px 6px 0 var(--cobalt);
}
html[data-skin="bold"] .stepper > * { transform: skewX(12deg); }
html[data-skin="bold"] .stepper button { color: #fff; border-radius: 0; font-weight: 800; }
html[data-skin="bold"] .stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
html[data-skin="bold"] .stepper button:disabled { color: rgba(255, 255, 255, 0.3); }
html[data-skin="bold"] .stepper .month span { color: rgba(255, 255, 255, 0.72); letter-spacing: 0.08em; }
html[data-skin="bold"] .stepper .month strong { color: #fff; font-size: 22px; font-weight: 900; display: inline-block; }
html[data-skin="bold"] .stepper.tick .month strong { animation: bold-tick 0.18s ease-out; }
@keyframes bold-tick { from { transform: translateY(4px); opacity: 0.3; } to { transform: none; opacity: 1; } }
html[data-skin="bold"] :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ---------- タブ（選んだ所に斜めの帯がすべっていく） ---------- */
html[data-skin="bold"] .tabs {
  position: relative; gap: 2px; margin: 26px 0 20px; padding: 7px 10px 12px 6px; counter-reset: tab;
  border-bottom: 2px solid rgba(23, 42, 82, 0.14);
}
html[data-skin="bold"] .tab {
  position: relative; z-index: 1; counter-increment: tab; border: 0; border-radius: 0; background: none;
  padding: 9px 20px; font-size: 16px; font-weight: 900; color: var(--ink);
  transition: color 0.2s, transform 0.2s ease-out;
}
html[data-skin="bold"] .tab::before {
  content: counter(tab, decimal-leading-zero); font-family: var(--numf); font-weight: 800;
  font-size: 13px; color: var(--cobalt); margin-right: 1px; transition: color 0.2s;
}
html[data-skin="bold"] .tab:hover { background: none; transform: translateX(3px); }
html[data-skin="bold"] .tab[aria-selected="true"] { background: none; color: #fff; transform: scale(1.06); }
html[data-skin="bold"] .tab[aria-selected="true"]::before { color: #a9cbff; }
html[data-skin="bold"] .tab small { border-radius: 0; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); padding: 1px 9px; }
/* 帯が置かれるまで（読み込み直後）は選んだタブ自体を紺にしておく */
html[data-skin="bold"] .tabs:not(.has-band) .tab[aria-selected="true"] { background: var(--slab); }
html[data-skin="bold"] .tab-band {
  position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 15px); width: var(--w, 0px);
  transform: translateX(var(--x, 0px)) skewX(-14deg);
  background: linear-gradient(100deg, var(--slab), var(--slab-2)); box-shadow: 6px 5px 0 var(--cobalt);
  transition: transform 0.3s cubic-bezier(0.25, 1.08, 0.4, 1), width 0.3s cubic-bezier(0.25, 1.08, 0.4, 1);
}

/* ---------- カード ---------- */
html[data-skin="bold"] .grid { gap: 18px; }
html[data-skin="bold"] .card {
  position: relative; border: 0; border-radius: 0; padding: 20px 22px 18px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
html[data-skin="bold"] .card h2 {
  display: block; width: fit-content; max-width: 100%; margin: 0 0 8px -22px; padding: 4px 20px 4px 22px;
  background: var(--slab); color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
html[data-skin="bold"] .card .sub { margin-top: 0; }
html[data-skin="bold"] .card .caption strong { background: linear-gradient(transparent 62%, rgba(42, 120, 214, 0.26) 62%); }

/* 入るときの動き: 気にならない程度に、少しだけ下からふわっと（0.3秒ほどで全部そろう） */
html[data-skin="bold"] .enter > .grid > * { animation: bold-in 0.24s ease-out both; }
html[data-skin="bold"] .enter > .grid > *:nth-child(1) { animation-delay: 0s; }
html[data-skin="bold"] .enter > .grid > *:nth-child(2) { animation-delay: 0.02s; }
html[data-skin="bold"] .enter > .grid > *:nth-child(3) { animation-delay: 0.04s; }
html[data-skin="bold"] .enter > .grid > *:nth-child(4) { animation-delay: 0.06s; }
html[data-skin="bold"] .enter > .grid > *:nth-child(n+5) { animation-delay: 0.08s; }
@keyframes bold-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 主役の数字 ---------- */
html[data-skin="bold"] .hero {
  padding: 24px 28px 22px; min-height: 320px;
  background: linear-gradient(112deg, #13234f 0 60%, var(--cobalt) 60% 60.7%, #1c3572 60.7% 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
html[data-skin="bold"] .hero::after {
  inset: 0; right: 0; top: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none;
  background: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 13px);
  -webkit-mask-image: linear-gradient(90deg, transparent 52%, #000 100%); mask-image: linear-gradient(90deg, transparent 52%, #000 100%);
}
html[data-skin="bold"] .hero > * { position: relative; z-index: 1; }
html[data-skin="bold"] .hero .eyebrow { color: #a9cbff; font-weight: 800; }
html[data-skin="bold"] .hero h2 {
  margin: 6px 0 0 -28px; padding: 4px 22px 4px 28px; background: #fff; color: var(--slab); font-size: 15px;
}
html[data-skin="bold"] .hero-num {
  font-family: var(--numf); font-weight: 800; letter-spacing: 0;
  font-size: clamp(76px, 9vw, 122px); line-height: 1; margin: 14px 0 12px;
  text-shadow: 5px 5px 0 rgba(42, 120, 214, 0.75);
}
html[data-skin="bold"] .hero-num .unit {
  font-family: var(--font); font-weight: 900; font-size: 0.2em; margin-left: 12px;
  color: #fff; text-shadow: none; letter-spacing: 0.04em;
}
html[data-skin="bold"] .hero-say { font-weight: 700; font-size: 13.5px; max-width: none; text-wrap: pretty; padding-right: 8px; }
html[data-skin="bold"] .hero-facts { border-top: 2px solid rgba(255, 255, 255, 0.28); gap: 26px; padding-right: 20px; }
html[data-skin="bold"] .hero-facts b { font-family: var(--numf); font-weight: 800; font-size: 27px; line-height: 1.15; }
html[data-skin="bold"] .hero-facts b small { font-family: var(--font); font-weight: 800; }

/* ---------- 増減の印・札 ---------- */
html[data-skin="bold"] .delta {
  border-radius: 0; font-weight: 900; padding: 3px 15px 3px 12px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
html[data-skin="bold"] .st, html[data-skin="bold"] .soon .tag {
  border-radius: 0; padding: 3px 14px 3px 9px; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
html[data-skin="bold"] .st i { border-radius: 0; transform: skewX(-12deg); }

/* ---------- 数字のタイル ---------- */
html[data-skin="bold"] .tile { padding-left: 26px; }
html[data-skin="bold"] .tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--slab);
}
html[data-skin="bold"] .tile .label { font-weight: 900; color: var(--ink); }
html[data-skin="bold"] .tile .value { font-family: var(--numf); font-weight: 800; font-size: 42px; line-height: 1.05; }
html[data-skin="bold"] .tile .value .unit { font-family: var(--font); font-weight: 900; font-size: 13px; margin-left: 6px; }

/* ---------- 一覧の棒・凡例 ---------- */
html[data-skin="bold"] .r .track, html[data-skin="bold"] .r .hbar { height: 12px; }
html[data-skin="bold"] .r .hbar { border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); min-width: 7px; }
html[data-skin="bold"] .r .val { font-family: var(--numf); font-weight: 800; font-size: 17px; }
html[data-skin="bold"] .r .val small { font-family: var(--font); font-style: normal; }
html[data-skin="bold"] .r.head .val { font-family: var(--font); font-style: normal; font-size: 11.5px; font-weight: 600; }
html[data-skin="bold"] .r.total, html[data-skin="bold"] .r.sep { border-top: 2px solid var(--slab); }
html[data-skin="bold"] .legend i.box { border-radius: 0; transform: skewX(-14deg); }
html[data-skin="bold"] table.nums tr.sel td { background: var(--slab); color: #fff; }
html[data-skin="bold"] table.nums tr.sel td.neg { color: #ffb4b4; }

/* 吹き出し */
html[data-skin="bold"] .tip {
  border-radius: 0; background: var(--slab); box-shadow: 5px 5px 0 var(--cobalt); padding: 10px 14px;
}
html[data-skin="bold"] .tip-r strong { font-family: var(--numf); font-weight: 800; font-size: 16px; }

html[data-skin="bold"] .foot { position: relative; }

/* ---------- 数字の書体（2026-11-21 平田さん決定: 明朝・ふつうの太さ・斜め） ----------
   太いゴシックの数字は圧が強いため。見出し・タブ・札は太いゴシックのまま。
   元に戻すときは、このかたまりを消す */
html[data-skin="bold"] { --minf: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
html[data-skin="bold"] .hero-num,
html[data-skin="bold"] .hero-facts b,
html[data-skin="bold"] .tile .value,
html[data-skin="bold"] .r .val,
html[data-skin="bold"] .tip-r strong {
  font-family: var(--minf); font-weight: 400; font-style: italic; letter-spacing: 0; text-shadow: none;
}
html[data-skin="bold"] .stepper .month strong { font-family: var(--minf); font-weight: 400; }
html[data-skin="bold"] .tile .value { font-size: 36px; line-height: 1.15; }
html[data-skin="bold"] .tile .row { flex-wrap: nowrap; }
/* 単位（万円・円・%）と表の見出しは、まっすぐなゴシックのまま */
html[data-skin="bold"] .hero-num .unit,
html[data-skin="bold"] .hero-facts b small,
html[data-skin="bold"] .tile .value .unit,
html[data-skin="bold"] .r .val small { font-family: var(--font); font-style: normal; }
html[data-skin="bold"] .hero-num .unit { margin-left: 18px; }
html[data-skin="bold"] .tile .value .unit { margin-left: 10px; }
html[data-skin="bold"] .r .val small { margin-left: 4px; }
html[data-skin="bold"] .r.head .val { font-family: var(--font); font-style: normal; font-weight: 600; }

/* ---------- 文字の太さ（2026-11-21 平田さん: 明朝の数字に対してゴシックが太すぎる → 一段細く） ----------
   元の太さに戻すときは、このかたまりを消す */
html[data-skin="bold"] h1,
html[data-skin="bold"] .tab,
html[data-skin="bold"] .card h2,
html[data-skin="bold"] .tile .label,
html[data-skin="bold"] .delta { font-weight: 700; }
html[data-skin="bold"] .tab::before { font-weight: 600; }
html[data-skin="bold"] .hero-num .unit,
html[data-skin="bold"] .hero-facts b small,
html[data-skin="bold"] .tile .value .unit,
html[data-skin="bold"] .hero-say,
html[data-skin="bold"] .hero .eyebrow,
html[data-skin="bold"] .stepper button,
html[data-skin="bold"] .tab small,
html[data-skin="bold"] .dummy-chip,
html[data-skin="bold"] .st,
html[data-skin="bold"] .soon .tag { font-weight: 600; }
html[data-skin="bold"] .r.total,
html[data-skin="bold"] .r .pct,
html[data-skin="bold"] .src-row b,
html[data-skin="bold"] .card .caption strong,
html[data-skin="bold"] table.nums tr.sel td,
html[data-skin="bold"] .chart .tick.sel,
html[data-skin="bold"] .chart .endvalue,
html[data-skin="bold"] .chart .vlabel { font-weight: 700; }
html[data-skin="bold"] .chart .endlabel { font-weight: 600; }

/* ---------- 拡大ボタンと拡大表示 ---------- */
html[data-skin="bold"] .zoom-btn { border-radius: 0; top: 14px; right: 16px; }
html[data-skin="bold"] .card h2 { max-width: calc(100% - 30px); }
html[data-skin="bold"] .card:not(.tile):not(.soon):not(.hero) > h2 { padding-right: 20px; }
html[data-skin="bold"] .zoom-bar { border-bottom: 2px solid var(--slab); }
html[data-skin="bold"] .zoom-nav button, html[data-skin="bold"] .z-pdf, html[data-skin="bold"] .z-full, html[data-skin="bold"] .z-close, html[data-skin="bold"] .pdf-btn { border-radius: 0; }
html[data-skin="bold"] .pdf-btn { padding: 10px 20px; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); border: 0; background: var(--surface); color: var(--ink); }
html[data-skin="bold"] .pdf-btn:hover:not(:disabled) { background: var(--slab); color: #fff; }
html[data-skin="bold"] .z-month { font-family: var(--minf); font-weight: 400; font-size: 22px; }
html[data-skin="bold"] .z-close { box-shadow: 4px 4px 0 var(--cobalt); }

/* ---------- 画面が狭いとき ---------- */
@media screen and (max-width: 640px) { html[data-skin="bold"] .tile .value { font-size: 32px; } }
@media screen and (max-width: 1020px) {
  html[data-skin="bold"] .hero { min-height: 0; }
}
@media screen and (max-width: 640px) {
  html[data-skin="bold"] .tabs { margin: 20px 0 16px; }
  html[data-skin="bold"] .brand-logo { height: 44px; }
  html[data-skin="bold"] .tab { padding: 8px 15px; font-size: 15px; }
  html[data-skin="bold"] .card { padding: 18px 16px 16px; }
  html[data-skin="bold"] .card h2 { margin-left: -16px; padding-left: 16px; }
  html[data-skin="bold"] .hero { padding: 20px 18px 20px; }
  html[data-skin="bold"] .hero h2 { margin-left: -18px; padding-left: 18px; }
  html[data-skin="bold"] .hero-num { font-size: clamp(64px, 21vw, 96px); }
  html[data-skin="bold"] .hero-facts { gap: 16px; padding-right: 16px; }
  html[data-skin="bold"] .hero-facts b { font-size: 22px; }
  html[data-skin="bold"] .tile { padding-left: 22px; }
  html[data-skin="bold"] .stepper { box-shadow: 4px 4px 0 var(--cobalt); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-skin="bold"] .tab, html[data-skin="bold"] .tab-band { transition: none; }
  html[data-skin="bold"] .stepper.tick .month strong { animation: none; }
}

/* ---------- FJのサイト ---------- */
html[data-skin="bold"] .sec-h { font-weight: 700; color: var(--ink); padding-left: 12px; border-left: 5px solid var(--cobalt); margin-top: 14px; }
html[data-skin="bold"] .site-kind { border-radius: 0; padding: 2px 12px 2px 9px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); margin-bottom: 10px; }
html[data-skin="bold"] .site h2 { font-size: 15.5px; }
html[data-skin="bold"] .site-open { border-radius: 0; padding: 9px 22px 9px 18px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
html[data-skin="bold"] .site-num small { border-radius: 0; }

/* ---------- 保存の前に確かめる小さな窓 ---------- */
html[data-skin="bold"] .ask-box { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); box-shadow: none; border-top: 4px solid var(--slab); }
html[data-skin="bold"] .ask-box h3 { font-weight: 700; }
html[data-skin="bold"] .ask-btns button { border-radius: 0; }
html[data-skin="bold"] .ask-kinds label { border-radius: 0; }
html[data-skin="bold"] .ask-kinds b { font-weight: 700; }

/* ---------- PDF・印刷 ---------- */
html.printing[data-skin="bold"] .tab-band { display: none !important; }
html.printing[data-skin="bold"] .top { padding-top: 0; }
html.printing[data-skin="bold"] h1::after { display: none; }
html.printing[data-skin="bold"] .tabs { border-bottom: 0; padding: 0; margin: 8px 0 10px; }
html.printing[data-skin="bold"] .tab[aria-selected="true"] { background: var(--slab) !important; transform: none; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 30px; }
html.printing[data-skin="bold"] .tab::before { display: none; } /* ほかのタブを隠すと番号が全部 01 になるため */
html.printing[data-skin="bold"] .stepper { box-shadow: none; }
html.printing[data-skin="bold"] .hero-num { font-size: 112px; }
html.printing[data-skin="bold"] .zoom-print-head { border-bottom: 2px solid var(--slab); }
html.printing[data-skin="bold"] .zoom-print-head .zp-note { border-radius: 0; }
@media print {
  html[data-skin="bold"] body::before { display: none !important; }
}
