@charset "utf-8";
/*
Theme Name: FX検証ノート
Theme URI: https://fx-kensho.com/
Author: 検証さん
Description: FX検証ノートの自作テーマ。トレードノート（カスタム投稿タイプ trade_note）と計算ツールを表示する。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fxkn
*/
/* このファイルは wordpress/build.mjs が docs/design-mock/fxkn.css から作る。直接は直さない。 */

/* =========================================================
   FX検証ノート 共通スタイル
   全ページでこの 1 ファイルだけを読み込む（WordPress テーマの style.css）。
   ページごとの CSS・インラインスタイルは使わない。
   「ds-」で始まるクラスはデザインシステムの見本ページ専用。
   「mock-」で始まるクラスはモック専用（テーマには移さない）。
   ========================================================= */

/* ---------- 1. デザインの値 ---------- */
:root {
  /* 色 */
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #202C3C;
  --text-sub: #5F6B7B;
  --primary: #29466B;
  --primary-hover: #1E3552;
  --link: #44709C;
  --tint: #EAF0F6;
  --border: #E1E6EB;
  --border-strong: #8995A3;
  --profit: #1F7A53;
  --loss: #B54545;
  --note-bg: #F0F2F5;
  --overlay: #141C28;
  --overlay-line: #3A4658;
  --overlay-text: #FFFFFF;
  --overlay-sub: #C3CBD6;

  /* 書体と文字 */
  --font-sans: "Inter", "Noto Sans JP", sans-serif;
  --fs-hero: 36px;
  --fs-page-title: 30px;
  --fs-section: 22px;
  --fs-sub: 18px;
  --fs-body: 16px;
  --fs-ui: 15px;
  --fs-small: 13px;
  --fs-num-xl: 40px;
  --fs-num-l: 32px;
  --fs-num-m: 20px;
  --lh-heading: 1.5;
  --lh-body: 1.9;
  --lh-num: 1.4;

  /* 余白（8px 単位） */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-section: 64px;
  --gutter: 32px;

  /* 形と寸法 */
  --radius-control: 4px;
  --radius-card: 6px;
  --control-h: 44px;
  --header-h: 64px;
  --width-content: 1160px;
  --width-note: 960px;
  --width-text: 760px;
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 28px;
    --fs-page-title: 24px;
    --fs-section: 20px;
    --fs-sub: 17px;
    --fs-num-xl: 34px;
    --fs-num-l: 28px;
    --fs-num-m: 18px;
    --space-section: 48px;
    --gutter: 16px;
    --header-h: 56px;
  }
}

/* ---------- 2. 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: var(--lh-heading); }
p, ul, ol, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: -2px; }
.icon--s { width: 12px; height: 12px; vertical-align: 0; }

/* ---------- 3. レイアウト ---------- */
.container { width: 100%; max-width: calc(var(--width-content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--note { max-width: calc(var(--width-note) + var(--gutter) * 2); }
.container--text { max-width: calc(var(--width-text) + var(--gutter) * 2); }
.site-main { padding: var(--space-4) 0 var(--space-section); }
.section { margin-top: var(--space-section); }
.section-title {
  font-size: var(--fs-section);
  padding-bottom: 12px;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.page-head { margin-bottom: var(--space-4); }
.page-title { font-size: var(--fs-page-title); line-height: 1.45; }
.page-lead { margin-top: var(--space-2); color: var(--text-sub); max-width: var(--width-text); }

/* ---------- 4. ヘッダー ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); min-height: var(--header-h);
}
.site-logo {
  font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: .02em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.site-logo:hover { color: var(--primary); }
.global-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.global-nav__link {
  display: flex; align-items: center; gap: 6px;
  min-height: var(--header-h); padding: 0 12px;
  font-size: var(--fs-ui); line-height: 1.4; color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent; border-top: 2px solid transparent;
}
.global-nav__link:hover { color: var(--primary); background: var(--tint); }
.global-nav__link[aria-current="page"] { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.global-nav__link .icon { color: var(--text-sub); }
.nav-toggle { display: none; }

@media (max-width: 768px) {
  .site-header__inner { flex-wrap: wrap; gap: 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    height: var(--control-h); padding: 0 12px; margin-right: -4px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius-control);
    font-size: 14px; cursor: pointer;
  }
  .nav-toggle__close { display: none; }
  .site-header.is-menu-open .nav-toggle__open { display: none; }
  .site-header.is-menu-open .nav-toggle__close { display: inline; }
  .global-nav { display: none; width: 100%; }
  .site-header.is-menu-open .global-nav { display: block; }
  .global-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 var(--space-2); border-top: 1px solid var(--border); }
  .global-nav__link { min-height: 48px; padding: 0 8px; border: 0; border-bottom: 1px solid var(--border); }
  .global-nav__link[aria-current="page"] { background: var(--tint); border-bottom-color: var(--border); }
}

/* ---------- 5. フッター ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-6) 0 var(--space-4); font-size: 14px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; }
.site-footer__name { font-size: 18px; font-weight: 700; line-height: 1.4; }
.site-footer__catch { margin-top: 4px; color: var(--text-sub); font-size: 14px; line-height: 1.7; }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); list-style: none; margin: 0; padding: 0; }
.footer-nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--control-h); color: var(--text); text-decoration: none; }
.footer-nav__link:hover { color: var(--primary); text-decoration: underline; }
.footer-nav__link .icon { color: var(--text-sub); }
.site-footer__risk {
  margin-top: var(--space-4); padding: 12px 16px;
  background: var(--note-bg); border-radius: var(--radius-control);
  font-size: var(--fs-small); line-height: 1.7; color: var(--text);
}
.site-footer__bottom { margin-top: var(--space-3); display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; font-size: var(--fs-small); color: var(--text-sub); }

/* 将来の広告枠（一覧とツールのページのフッターの上に 1 枠）。今回は出さない */
.ad-slot { margin: var(--space-section) auto 0; max-width: var(--width-content); }

/* ---------- 6. パンくずリスト ---------- */
.breadcrumb { margin-bottom: var(--space-3); }
.breadcrumb__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-sub); }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin: 0 8px; color: var(--border-strong); }
.breadcrumb__link { color: var(--link); }

/* ---------- 7. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-h); padding: 0 20px;
  border: 1px solid var(--primary); border-radius: var(--radius-control);
  font-size: var(--fs-ui); font-weight: 700; line-height: 1.4;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #FFFFFF; }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #FFFFFF; }
.btn--secondary { background: var(--surface); color: var(--primary); }
.btn--secondary:hover { background: var(--tint); color: var(--primary); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--note-bg); border-color: var(--border); color: var(--text-sub); cursor: not-allowed; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* 外部リンクの小さなリンク（X の投稿を見る など） */
.ext-link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--control-h); font-size: 14px; line-height: 1.4; }

/* ---------- 8. カード ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-3); }

/* ---------- 9. ラベル ---------- */
.label-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.label {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--radius-control);
  background: var(--surface); color: var(--text);
  font-size: var(--fs-small); font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.pair-label { font-size: var(--fs-ui); font-weight: 700; line-height: 1.4; letter-spacing: .02em; padding-right: 4px; }
/* 状態：保有中・勝ち・負け・引き分け（色だけで区別せず、文字を必ず入れる） */
.status-label--open { color: var(--link); border-color: var(--link); }
.status-label--win { color: var(--profit); border-color: var(--profit); }
.status-label--loss { color: var(--loss); border-color: var(--loss); }
.status-label--draw { color: var(--text-sub); border-color: var(--border-strong); }
/* 売買の方向：緑と赤は使わない */
.side-label { color: var(--text); border-color: var(--text); letter-spacing: .08em; }
/* 口座の種類 */
.account-label { color: var(--text-sub); background: var(--note-bg); border-color: var(--note-bg); font-weight: 400; }
/* 動画あり */
.media-label { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); color: var(--text-sub); line-height: 1.4; }


/* ---------- 10. 数値の一覧（ラベルが左、数値が右） ---------- */
.data-list { margin: 0; }
.data-list__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2);
  padding: 12px 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.data-list__row:first-child { border-top: 1px solid var(--border); }
.data-list__term { color: var(--text-sub); font-size: 14px; flex: none; }
.data-list__value { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.data-list__note { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--text-sub); }
.data-list--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
.data-list--2col .data-list__row:nth-child(2) { border-top: 1px solid var(--border); }
@media (max-width: 768px) {
  .data-list--2col { grid-template-columns: minmax(0, 1fr); }
  .data-list--2col .data-list__row:nth-child(2) { border-top: 0; }
}

/* ---------- 11. 計算過程 ---------- */
.calc-steps { list-style: none; margin: 0; padding: 0; counter-reset: calc-step; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.calc-steps__item {
  counter-increment: calc-step;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums; line-height: 1.7;
}
.calc-steps__item::before { content: counter(calc-step); font-weight: 700; color: var(--text-sub); }
.calc-steps__item:last-child { border-bottom: 0; }
.calc-steps__item--result { background: var(--tint); font-weight: 700; font-size: 17px; border-radius: 0 0 var(--radius-card) var(--radius-card); }
.calc-steps__item--result::before { color: var(--primary); }
.calc-steps__name { color: var(--text-sub); }
.calc-steps__item--result .calc-steps__name { color: var(--text); }

/* ---------- 12. 表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); line-height: 1.5; font-variant-numeric: tabular-nums; }
.data-table caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-size: var(--fs-small); color: var(--text-sub); }
.data-table th, .data-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.data-table thead th { background: var(--note-bg); font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { font-weight: 400; }
.data-table .is-num { text-align: right; }

/* ---------- 13. フォーム ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); border: 0; padding: 0; min-width: 0; }
.form-field__label { font-size: var(--fs-ui); font-weight: 700; line-height: 1.5; padding: 0; }
.form-field__control { display: flex; align-items: center; gap: 8px; }
.input, .select {
  flex: 1; min-width: 0; width: 100%; height: var(--control-h); padding: 0 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-control);
  font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.input--num { text-align: right; }
.select-wrap { position: relative; flex: 1; min-width: 0; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--text-sub); border-bottom: 2px solid var(--text-sub);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.form-field__unit { flex: none; min-width: 3em; font-size: var(--fs-ui); color: var(--text-sub); }
.form-field__help { font-size: var(--fs-small); line-height: 1.7; color: var(--text-sub); }
.form-field__status { font-size: var(--fs-small); line-height: 1.7; color: var(--text-sub); padding: 4px 8px; background: var(--note-bg); border-radius: var(--radius-control); }
.form-field__error { display: flex; gap: 4px; font-size: var(--fs-small); font-weight: 700; line-height: 1.7; color: var(--loss); }
.form-field.has-error .input, .form-field.has-error .select { border: 2px solid var(--loss); padding: 0 11px; }

/* ---------- 14. 選択ボタン（ラジオボタンの見た目を変えたもの） ---------- */
.choice { border: 0; margin: 0 0 var(--space-3); padding: 0; min-width: 0; }
.choice__legend { padding: 0; margin-bottom: 6px; font-size: var(--fs-ui); font-weight: 700; line-height: 1.5; }
.choice__options { display: flex; }
.choice__item { position: relative; flex: 1 1 0; min-width: 0; }
.choice__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__text {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--control-h); height: 100%; padding: 6px 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-left-width: 0;
  font-size: var(--fs-ui); line-height: 1.4;
}
.choice__item:first-child .choice__text { border-left-width: 1px; border-radius: var(--radius-control) 0 0 var(--radius-control); }
.choice__item:last-child .choice__text { border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.choice__input:hover + .choice__text { background: var(--tint); }
.choice__input:checked + .choice__text { background: var(--primary); border-color: var(--primary); color: #FFFFFF; font-weight: 700; }
.choice__input:focus-visible + .choice__text { outline: 2px solid var(--link); outline-offset: 2px; position: relative; z-index: 1; }
.choice--inline .choice__options { display: inline-flex; }
.choice--inline .choice__item { flex: 0 0 auto; }

/* ---------- 15. 注意書きの枠 ---------- */
.notice { padding: 12px 16px; background: var(--note-bg); border-radius: var(--radius-control); font-size: var(--fs-small); line-height: 1.8; color: var(--text); }
.notice__title { font-weight: 700; margin-bottom: 4px; }
.notice ul { padding-left: 1.4em; }
.notice li + li { margin-top: 2px; }
.notice--warning { background: var(--surface); border: 1px solid var(--border-strong); }

/* ---------- 16. ページ送り ---------- */
.pagination { margin-top: var(--space-6); }
.pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--control-h); height: var(--control-h); padding: 0 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-control);
  font-size: var(--fs-ui); font-variant-numeric: tabular-nums; text-decoration: none;
}
.pagination__link:hover { background: var(--tint); color: var(--primary); }
.pagination__link[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #FFFFFF; font-weight: 700; }
.pagination__gap { display: inline-flex; align-items: center; height: var(--control-h); padding: 0 4px; color: var(--text-sub); }

/* ---------- 17. 本文（WordPress の標準エディタで書いた中身） ---------- */
.entry-content { font-size: var(--fs-body); line-height: var(--lh-body); }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 { font-size: var(--fs-section); margin: 2.2em 0 .8em; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.entry-content h3 { font-size: var(--fs-sub); margin: 1.8em 0 .6em; }
.entry-content h4 { font-size: var(--fs-body); margin: 1.6em 0 .4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { margin: 0 0 1.2em; padding: 16px 20px; background: var(--note-bg); border-radius: var(--radius-control); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: var(--fs-small); font-style: normal; color: var(--text-sub); }
.entry-content figure { margin: 2em 0; }
.entry-content figure img { border: 1px solid var(--border); border-radius: var(--radius-control); }
.entry-content figcaption { margin-top: 8px; font-size: var(--fs-small); line-height: 1.7; color: var(--text-sub); }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); font-variant-numeric: tabular-nums; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.entry-content thead th { background: var(--note-bg); font-size: var(--fs-small); }
.entry-content .wp-block-table { overflow-x: auto; margin: 0 0 1.2em; }
.entry-content strong { font-weight: 700; }

/* =========================================================
   トレードノートの詳細
   ========================================================= */
.trade-note { padding-bottom: var(--space-section); }

/* ① ページの上部 */
.trade-head { margin-bottom: var(--space-4); }
.trade-head__labels { margin-bottom: 12px; }
.trade-head__title { font-size: var(--fs-page-title); line-height: 1.45; }
.trade-head__posted { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: var(--space-2); font-size: var(--fs-small); color: var(--text-sub); font-variant-numeric: tabular-nums; }
.trade-head__notice { margin-top: var(--space-2); }

.trade-summary {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-4);
  margin-top: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.trade-summary__times { padding-left: var(--space-4); border-left: 1px solid var(--border); }
.trade-summary__times .data-list__row:first-child { border-top: 0; }
.trade-summary__times .data-list__row:last-child { border-bottom: 0; }
@media (max-width: 768px) {
  .trade-summary { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-2); }
  .trade-summary__times { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* 損益のまとまり（勝ち・負け・引き分けで、大きさも配置も同じ。色と記号と文字だけが変わる） */
.pl-panel { display: flex; flex-direction: column; gap: 4px; }
.pl-panel__head { display: flex; align-items: center; gap: 8px; }
.pl-panel__caption { font-size: var(--fs-small); color: var(--text-sub); }
.pl-value { font-size: var(--fs-num-xl); font-weight: 700; line-height: var(--lh-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pl-value__unit { font-size: .45em; margin-left: 4px; letter-spacing: 0; }
.pl-panel__metrics { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); margin: 0; }
.pl-metric { display: flex; align-items: baseline; gap: 8px; }
.pl-metric__term { font-size: var(--fs-small); color: var(--text-sub); }
.pl-metric__value { margin: 0; font-size: var(--fs-num-m); font-weight: 700; line-height: var(--lh-num); font-variant-numeric: tabular-nums; }
.pl-panel--profit .pl-value, .pl-panel--profit .pl-metric__value { color: var(--profit); }
.pl-panel--loss .pl-value, .pl-panel--loss .pl-metric__value { color: var(--loss); }
.pl-panel--draw .pl-value, .pl-panel--draw .pl-metric__value { color: var(--text); }

/* ② ページ内の移動 */
.trade-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: var(--space-4); }
.trade-toc__title { font-size: var(--fs-small); color: var(--text-sub); margin-right: 4px; }
.trade-toc__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.trade-toc__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--control-h); padding: 0 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control);
  color: var(--primary); font-size: var(--fs-ui); font-weight: 700; line-height: 1.4; text-decoration: none;
}
.trade-toc__link:hover { background: var(--tint); }
.trade-toc__num { font-size: var(--fs-small); color: var(--text-sub); font-variant-numeric: tabular-nums; }

/* 区切り：エントリー／決済／振り返り */
.trade-section {
  margin-top: var(--space-3); padding: var(--space-5) var(--space-6) var(--space-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.trade-section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px var(--space-2);
  padding-bottom: 12px; margin-bottom: var(--space-4); border-bottom: 2px solid var(--primary);
}
.trade-section__step { display: block; font-size: var(--fs-small); font-weight: 700; letter-spacing: .08em; color: var(--text-sub); line-height: 1.4; font-variant-numeric: tabular-nums; }
.trade-section__title { font-size: var(--fs-section); }
.trade-section__head .ext-link { min-height: 32px; }
.trade-block + .trade-block { margin-top: var(--space-6); }
.trade-block__title { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-sub); margin-bottom: var(--space-2); }
.trade-block__count { font-size: var(--fs-small); font-weight: 400; color: var(--text-sub); }
@media (max-width: 768px) {
  .trade-section { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: var(--space-4) var(--gutter) var(--space-5); border-left: 0; border-right: 0; border-radius: 0; }
  .trade-section__head { margin-bottom: var(--space-3); }
  .trade-block + .trade-block { margin-top: var(--space-5); }
}

/* ③⑦ 動画 */
.video-embed { margin-bottom: var(--space-5); }
.video-embed__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--overlay); border-radius: var(--radius-control); overflow: hidden; }
.video-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__caption { margin-top: 8px; font-size: var(--fs-small); color: var(--text-sub); line-height: 1.7; }

/* ③⑦ チャート画像 */
.chart-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
/* 案 B：PC では 2 列。1 枚だけのときは幅いっぱい */
.chart-gallery--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3); row-gap: var(--space-4); align-items: start; }
.chart-gallery--grid > .chart-figure:only-child { grid-column: 1 / -1; }
@media (max-width: 1023px) {
  .chart-gallery--grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .chart-gallery { gap: var(--space-4); }
}
.chart-figure { margin: 0; min-width: 0; }
.chart-figure__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin-bottom: 8px; line-height: 1.6; }
.chart-figure__tf { font-size: var(--fs-ui); font-weight: 700; }
.chart-figure__desc { font-size: var(--fs-small); color: var(--text-sub); }
.chart-figure__link { position: relative; display: block; border: 1px solid var(--border); border-radius: var(--radius-control); overflow: hidden; background: var(--surface); cursor: zoom-in; color: inherit; text-decoration: none; }
.chart-figure__link:hover { border-color: var(--border-strong); }
.chart-figure__link img { width: 100%; height: auto; }
.chart-figure__zoom {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control);
  font-size: var(--fs-small); line-height: 1.6; color: var(--text);
}


/* ⑤⑧ 記録の小見出しと本文 */
.record-item + .record-item { margin-top: var(--space-4); }
.record-item__title { font-size: var(--fs-body); font-weight: 700; line-height: 1.5; margin-bottom: 8px; color: var(--text); }
.record-item__body { padding: 16px 20px; background: var(--bg); border-radius: var(--radius-control); }
@media (max-width: 768px) {
  .record-item__body { padding: 12px 16px; }
}

/* ⑥ 決済結果 */
.trade-result { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-4); align-items: start; }
.trade-result__main { padding: var(--space-3); background: var(--bg); border-radius: var(--radius-card); }
@media (max-width: 768px) {
  .trade-result { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .trade-result__main { padding: var(--space-2); }
}
.trade-open-note { padding: var(--space-3); background: var(--tint); border-radius: var(--radius-card); color: var(--text); }

/* 決済の内訳（一括決済は 1 行、部分決済は回ごとに 1 行。合計の行は全部決済したときだけ） */
.exit-breakdown { grid-column: 1 / -1; }
.exit-breakdown__title { font-size: var(--fs-body); font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.exit-breakdown__note { margin-top: 8px; font-size: var(--fs-small); color: var(--text-sub); line-height: 1.7; }
.pl-text--profit { color: var(--profit); font-weight: 700; }
.pl-text--loss { color: var(--loss); font-weight: 700; }
.data-table tfoot th, .data-table tfoot td { background: var(--tint); font-weight: 700; border-top: 1px solid var(--border); border-bottom: 0; }
@media (max-width: 768px) {
  .data-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table--stack, .data-table--stack tbody, .data-table--stack tfoot, .data-table--stack tr, .data-table--stack th, .data-table--stack td { display: block; width: 100%; }
  .data-table--stack tr { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .data-table--stack tbody tr:last-child { border-bottom: 0; }
  .data-table--stack tfoot tr { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 0; }
  .data-table--stack th, .data-table--stack td, .data-table--stack tfoot th, .data-table--stack tfoot td { padding: 4px 16px; border: 0; background: transparent; }
  .data-table--stack th { font-weight: 700; }
  .data-table--stack td { display: flex; justify-content: space-between; gap: var(--space-2); white-space: normal; }
  .data-table--stack td::before { content: attr(data-label); color: var(--text-sub); font-size: var(--fs-small); font-weight: 400; }
}

/* ⑨ ほかの記録 */
.trade-more { margin-top: var(--space-section); }
.trade-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.trade-pager__item--next { grid-column: 2; }
.trade-pager__link {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: var(--space-2) var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  color: var(--text); text-decoration: none; line-height: 1.5;
}
.trade-pager__link:hover { border-color: var(--border-strong); }
.trade-pager__item--next .trade-pager__link { text-align: right; }
.trade-pager__dir { font-size: var(--fs-small); color: var(--link); font-weight: 700; }
.trade-pager__title { font-size: var(--fs-ui); font-weight: 700; }
.trade-pager__date { font-size: var(--fs-small); color: var(--text-sub); font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
  .trade-pager { grid-template-columns: minmax(0, 1fr); }
  .trade-pager__item--next { grid-column: auto; }
}

/* トレードノートのカード（一覧・トップ・ほかの記録で共通） */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.trade-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: var(--space-2) var(--space-3) var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.trade-card:hover { border-color: var(--border-strong); }
.trade-card:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.trade-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.trade-card__body { display: flex; gap: var(--space-2); align-items: flex-start; }
.trade-card__title { flex: 1; min-width: 0; font-size: 17px; line-height: 1.55; }
.trade-card__link { color: var(--text); text-decoration: none; }
.trade-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.trade-card__link:hover { color: var(--primary); text-decoration: underline; }
.trade-card__link:focus-visible { outline: 0; }
.trade-card__thumb { flex: none; width: 112px; border: 1px solid var(--border); border-radius: var(--radius-control); overflow: hidden; }
.trade-card__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.trade-card__dates { margin: 0; font-size: var(--fs-small); line-height: 1.7; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.trade-card__date { display: flex; gap: 8px; }
.trade-card__date dd { margin: 0; color: var(--text); }
.trade-card__pl { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.trade-card__pl-yen { font-size: var(--fs-num-m); font-weight: 700; }
.trade-card__pl-pips { font-size: var(--fs-ui); font-weight: 700; }
.trade-card__pl--profit { color: var(--profit); }
.trade-card__pl--loss { color: var(--loss); }
.trade-card__pl--open { color: var(--text-sub); font-size: 14px; }

/* =========================================================
   画像の拡大（ライトボックス）
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--overlay); color: var(--overlay-text);
}
.lightbox--mock { position: relative; height: 100vh; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 12px var(--space-3); border-bottom: 1px solid var(--overlay-line); }
.lightbox__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-width: 0; line-height: 1.5; }
.lightbox__context { font-size: var(--fs-small); color: var(--overlay-sub); }
.lightbox__tf { font-size: var(--fs-sub); font-weight: 700; }
.lightbox__count { font-size: var(--fs-small); color: var(--overlay-sub); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-h); padding: 0 16px; flex: none;
  background: transparent; color: var(--overlay-text);
  border: 1px solid var(--overlay-sub); border-radius: var(--radius-control);
  font-size: var(--fs-ui); font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer;
}
.lightbox__btn:hover { background: var(--overlay-line); color: var(--overlay-text); }
.lightbox__btn:disabled { color: var(--overlay-sub); border-color: var(--overlay-line); cursor: default; background: transparent; }
.lightbox__btn:focus-visible { outline-color: var(--overlay-text); }
.lightbox__stage { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 0; padding: var(--space-3); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; min-width: 0; flex: 1; justify-content: center; }
.lightbox__image { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; }
.lightbox__caption { font-size: 14px; color: var(--overlay-sub); line-height: 1.6; text-align: center; }
.lightbox__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 12px var(--space-3) var(--space-2); border-top: 1px solid var(--overlay-line); }
.lightbox__hint { font-size: var(--fs-small); color: var(--overlay-sub); line-height: 1.6; text-align: center; }
.lightbox__side { flex: none; }
.lightbox__foot-nav { display: none; }
@media (max-width: 768px) {
  .lightbox__bar { padding: 8px var(--gutter); }
  .lightbox__stage { padding: var(--space-2) 0; }
  .lightbox__side { display: none; }
  .lightbox__caption { padding: 0 var(--gutter); }
  .lightbox__foot { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) var(--space-3); }
  .lightbox__foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lightbox__foot-nav .lightbox__btn { min-height: 52px; }
}

/* 保有中の要約（損益の代わりに出す） */
.pl-open { display: flex; flex-direction: column; gap: 8px; }
.pl-open__text { font-size: var(--fs-sub); font-weight: 700; line-height: 1.5; }
.pl-open__note { font-size: var(--fs-small); color: var(--text-sub); line-height: 1.7; }

/* セクションの見出しと「もっと見る」 */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px var(--space-2); padding-bottom: 12px; margin-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.section-head__title { font-size: var(--fs-section); }
.section-head__more { font-size: 14px; display: inline-flex; align-items: center; min-height: var(--control-h); }
.section-foot { display: flex; justify-content: center; margin-top: var(--space-4); }
.section-lead { margin: -8px 0 var(--space-3); color: var(--text-sub); font-size: 15px; line-height: 1.8; }

/* =========================================================
   トップページ
   ========================================================= */
.home-main { padding-bottom: var(--space-section); }
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-8) 0; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; }
.hero__catch { font-size: var(--fs-hero); line-height: 1.5; letter-spacing: .01em; }
.hero__lead { margin-top: var(--space-3); max-width: 34em; line-height: 1.9; }
.hero__latest-title { font-size: var(--fs-small); font-weight: 700; color: var(--text-sub); margin-bottom: 8px; letter-spacing: .04em; }
@media (max-width: 1023px) {
  .hero { padding: var(--space-5) 0; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}

.tool-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.tool-card:hover { border-color: var(--border-strong); }
.tool-card:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.tool-card__title { font-size: var(--fs-sub); line-height: 1.5; }
.tool-card__link { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tool-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.tool-card__link:hover { color: var(--primary); text-decoration: underline; }
.tool-card__link:focus-visible { outline: 0; }
.tool-card__link .icon { color: var(--link); }
.tool-card__desc { font-size: 15px; line-height: 1.8; color: var(--text); }
.tool-card--wide { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tool-card--wide .tool-card__text { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 768px) {
  .tool-card--wide { flex-direction: column; align-items: flex-start; }
}

.about { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.avatar { width: 112px; height: 112px; border-radius: 50%; background: var(--note-bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-sub); text-align: center; line-height: 1.4; flex: none; }
.about__name { font-size: var(--fs-sub); }
.about__text { margin-top: 8px; max-width: var(--width-text); }
.about .btn-row { margin-top: var(--space-3); }
@media (max-width: 768px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-3) var(--space-2); }
  .avatar { width: 80px; height: 80px; }
  .about .btn-row .btn { flex: 1 1 100%; }
}

/* =========================================================
   トレードノートの一覧
   ========================================================= */
/* 将来の集計（勝率・合計損益）は .page-head と .filter のあいだに入れる */
.filter { margin-bottom: var(--space-4); }
.filter__toggle { display: none; }
.filter__panel { padding: var(--space-3) var(--space-3) 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.filter-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-3); align-items: end; }
.filter-form__wide { grid-column: span 2; }
.filter-form__actions { display: flex; gap: var(--space-2); justify-content: flex-end; align-items: center; margin-bottom: var(--space-3); }
@media (max-width: 1023px) {
  .filter-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form__actions { grid-column: span 2; justify-content: flex-start; }
}
@media (max-width: 768px) {
  .filter__toggle { display: flex; width: 100%; justify-content: space-between; }
  .filter__toggle-count { font-weight: 400; font-size: var(--fs-small); color: var(--text-sub); }
  .filter__panel { display: none; margin-top: 8px; padding: var(--space-2) var(--space-2) 0; }
  .filter.is-open .filter__panel { display: block; }
  .filter-form__grid { grid-template-columns: minmax(0, 1fr); }
  .filter-form__wide, .filter-form__actions { grid-column: auto; }
  .filter-form__actions .btn { flex: 1; }
  .choice__text { padding: 6px 4px; font-size: 14px; }
}
.list-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--space-2); margin-bottom: var(--space-2); font-size: 14px; color: var(--text-sub); line-height: 1.6; }
.list-status__count strong { color: var(--text); font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.list-status__conditions { color: var(--text); }
.empty-state { padding: var(--space-6) var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); text-align: center; }
.empty-state__title { font-size: var(--fs-sub); }
.empty-state__text { margin-top: 8px; color: var(--text-sub); font-size: 15px; line-height: 1.8; }
.empty-state .btn-row { justify-content: center; margin-top: var(--space-3); }

/* =========================================================
   計算ツール（共通レイアウト：PC は入力 4 : 結果 6、800px 以下は縦）
   ========================================================= */
.tool-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-4); align-items: start; }
@media (max-width: 800px) { .tool-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } }
.tool-panel { padding: var(--space-4) var(--space-4) var(--space-1); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.tool-result { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.tool-panel__title, .tool-result__title { font-size: var(--fs-sub); margin-bottom: var(--space-3); }
.tool-result__title { margin-bottom: 0; }
.tool-result__sub { font-size: var(--fs-body); font-weight: 700; margin-bottom: 8px; }
@media (max-width: 768px) {
  .tool-panel { padding: var(--space-3) var(--space-2) var(--space-1); }
  .tool-result { padding: var(--space-3) var(--space-2); }
}
.tool-form-note { margin: -8px 0 var(--space-3); font-size: var(--fs-small); line-height: 1.7; color: var(--text-sub); }
.tool-section { margin-top: var(--space-6); }
.result-main { display: flex; flex-direction: column; gap: 4px; padding: var(--space-3); background: var(--tint); border-radius: var(--radius-card); }
.result-main__label { font-size: 14px; color: var(--text); }
.result-main__value { font-size: var(--fs-num-xl); font-weight: 700; line-height: var(--lh-num); font-variant-numeric: tabular-nums; }
.result-main__unit { font-size: .45em; margin-left: 4px; }
.result-main__sub { font-size: 15px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.result-main__error { font-size: 14px; font-weight: 700; color: var(--loss); }
.result-main--error .result-main__value { color: var(--text-sub); }
/* リスクとリワードの比の横棒（幅は計算結果から JS で入れる） */
.rr-bar { display: flex; gap: 2px; height: 24px; border-radius: var(--radius-control); overflow: hidden; }
.rr-bar__risk { background: var(--loss); }
.rr-bar__reward { background: var(--profit); }
.rr-bar-legend { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: 8px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rr-bar-legend__risk { color: var(--loss); }
.rr-bar-legend__reward { color: var(--profit); }

/* =========================================================
   通貨強弱の判定
   ========================================================= */
.saved-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.saved-item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: 12px 0; border-bottom: 1px solid var(--border); }
.saved-item__title { font-size: 15px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.saved-item__order { font-size: var(--fs-small); color: var(--text-sub); line-height: 1.6; }
.saved-item .btn { min-width: 72px; padding: 0 12px; }
.quiz { text-align: center; }
.quiz__progress { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.progress { height: 6px; margin: 8px 0 var(--space-5); background: var(--note-bg); border-radius: 3px; overflow: hidden; display: flex; }
.progress__bar { height: 100%; background: var(--primary); }
.quiz__question { font-size: 15px; color: var(--text-sub); }
.quiz__pair { margin-top: 4px; font-size: 52px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.quiz__chart-link { justify-content: center; margin-bottom: var(--space-3); }
.choice--quiz { text-align: left; }
.choice--quiz .choice__text { min-height: 56px; font-size: 16px; }
.quiz__hint { font-size: var(--fs-small); color: var(--text-sub); margin-top: -8px; }
.quiz__actions { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-5); }
@media (max-width: 768px) {
  .quiz__pair { font-size: 40px; }
  .choice--quiz .choice__options { flex-direction: column; gap: 8px; }
  .choice--quiz .choice__item .choice__text { border-left-width: 1px; border-radius: var(--radius-control); min-height: 56px; }
  .quiz__actions .btn { flex: 1; }
}
.strength-main { padding: var(--space-4) var(--space-3); background: var(--tint); border-radius: var(--radius-card); text-align: center; }
.strength-main__label { font-size: 14px; }
.strength-main__pair { font-size: 48px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.strength-main__desc { font-size: var(--fs-sub); font-weight: 700; }
@media (max-width: 768px) { .strength-main__pair { font-size: 40px; } }
.candidate-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.candidate-list .label { font-size: 15px; min-height: 36px; padding: 0 12px; }
.strong-weak { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.strong-weak__box { padding: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-card); }
.strong-weak__title { font-size: 14px; font-weight: 700; color: var(--text-sub); margin-bottom: 4px; }
.strong-weak__list { margin: 0; padding-left: 1.4em; line-height: 1.9; }

/* =========================================================
   ドル円の値幅（グラフは HTML と CSS。棒の色は 1 色）
   ========================================================= */
.chart-card { padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
@media (max-width: 768px) { .chart-card { padding: var(--space-3) var(--space-2); } }
.chart-card .choice { margin-bottom: var(--space-3); }
.bar-chart__body { display: grid; grid-template-columns: 36px minmax(0, 1fr); height: 260px; }
.bar-chart__y { position: relative; font-size: 12px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.bar-chart__y span { position: absolute; right: 8px; transform: translateY(50%); line-height: 1; }
.bar-chart__y .y-0 { bottom: 0; }
.bar-chart__y .y-1 { bottom: 25%; }
.bar-chart__y .y-2 { bottom: 50%; }
.bar-chart__y .y-3 { bottom: 75%; }
.bar-chart__y .y-4 { bottom: 100%; }
.bar-chart__plot {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; align-items: end;
  padding: 0 4px; border-bottom: 1px solid var(--text-sub);
  background-image: linear-gradient(to bottom, var(--border) 1px, transparent 1px); background-size: 100% 25%;
}
.bar-chart__bar { background: var(--link); border-radius: 2px 2px 0 0; min-height: 1px; }
.bar-chart__x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 4px 0 0 36px; padding: 0 4px; font-size: 12px; color: var(--text-sub); text-align: center; font-variant-numeric: tabular-nums; }
.bar-chart__foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-small); color: var(--text-sub); }
@media (max-width: 768px) {
  .bar-chart__body { height: 200px; }
  .bar-chart__plot, .bar-chart__x { gap: 2px; padding: 0 2px; }
  .bar-chart__x .is-minor { visibility: hidden; }
}
.disclosure { margin-top: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.disclosure > summary { display: flex; align-items: center; min-height: var(--control-h); padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--primary); cursor: pointer; }
.disclosure[open] > summary { border-bottom: 1px solid var(--border); }
.disclosure .table-wrap { border: 0; border-radius: 0; }
.bullet-list { margin: 0; padding-left: 1.4em; }
.bullet-list li + li { margin-top: 6px; }

/* =========================================================
   404
   ========================================================= */
.notfound { padding: var(--space-8) 0; text-align: center; }
.notfound__code { font-size: var(--fs-small); font-weight: 700; letter-spacing: .12em; color: var(--text-sub); }
.notfound__text { margin-top: var(--space-2); color: var(--text); }
.notfound .btn-row { justify-content: center; margin-top: var(--space-4); }

/* 見本ページから残したもの（本番の画面でも使う） */
.ds-rule { margin-top: var(--space-3); }
.ds-caption { margin-top: 8px; font-size: var(--fs-small); color: var(--text-sub); line-height: 1.7; }

/* =========================================================
   テーマで足したもの（モックは仮の画像の枠だったので、本物の画像と WordPress の出力に合わせる）
   ========================================================= */
[hidden] { display: none !important; }

/* チャート画像：縦横比を固定せず、切り抜かない */
.chart-figure__link img { width: 100%; height: auto; }

/* カードのサムネイル：112px、4:3 で切り抜く */
.trade-card__thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* 動画の埋め込み */
.video-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 画像の拡大：画像は縦横どちらも画面に収める */
.lightbox__image { object-fit: contain; }
@media (max-width: 768px) {
  .lightbox__image { width: 100%; max-height: calc(100% - 40px); }
}

/* 検証さんのアイコン（画像を置いたとき） */
img.avatar { object-fit: cover; padding: 0; }

/* 結果の段の間隔（モックの .tool-result の中と同じにそろえる） */
.tool-result > .notice--warning { margin: 0; }

/* WordPress が出す画像の配置のクラス（本文で画像を使ったとき） */
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .wp-caption-text { font-size: var(--fs-small); color: var(--text-sub); }

/* リスクリワード計算機：結果の詳しい部分を、結果の段（.tool-result の間隔）にそのまま並べる */
#rr-detail { display: contents; }

/* 値幅のグラフ：狭い画面でも横軸の数字（12、15 など）を折り返さない（間引いた目盛りの場所まではみ出してよい） */
.bar-chart__x span { white-space: nowrap; overflow: visible; }

/* トップの冒頭：右側（最新のトレードノート）を外したので 1 列にする（2026-11-28）。
   キャッチコピーは PC で 1 行、リード文は文ごとに改行。狭い画面では文節の切れ目で折り返す（Chrome・Edge） */
.hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero__catch, .hero__lead { word-break: auto-phrase; }
.hero__lead { max-width: none; }
