/* 情報空間地形。全体と同じ紙色・水彩の色で、重ねた紙の地図として見せる。 */
.ct-shell { min-width: 0; max-width: 100%; color: var(--ink, #1d2433); font-family: inherit; }
.ct-shell * { box-sizing: border-box; }
.ct-lead { margin: 0; font-size: 15.5px; line-height: 1.75; }
.ct-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ct-choice-button { min-height: 48px; padding: 8px 10px; border: 1.5px solid #c9c2b5; border-radius: 999px; background: #fff; color: var(--ink, #1d2433); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.35; cursor: pointer; touch-action: manipulation; }
.ct-choice-button:hover { border-color: var(--navy, #1f3154); }
.ct-choice-button[aria-pressed="true"] { background: var(--navy, #1f3154); border-color: var(--navy, #1f3154); color: #fff; }
.ct-choice-button:focus-visible, .ct-caveat summary:focus-visible, .ct-formula:focus-visible { outline: 3px solid var(--navy, #1f3154); outline-offset: 3px; }
.ct-yours { margin: 8px 2px 0; font-size: 13px; color: var(--muted, #5a6373); }

.ct-figures { display: grid; gap: 16px; margin-top: 14px; }
.ct-figure { margin: 0; padding: 12px 12px 14px; border: 1px solid #e6dcc6; border-radius: 20px; background: #fbf5e6; }
.ct-figure-profile { padding: 12px 0 12px; overflow: hidden; }
.ct-figure-profile .ct-caption, .ct-figure-profile .ct-legend { padding-inline: 12px; }
.ct-caption { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: #7a6a4c; margin-bottom: 6px; }
.ct-profile { display: block; width: 100%; height: auto; font-family: inherit; }
.ct-model { display: block; width: 100%; height: auto; aspect-ratio: 360 / 268; }
.ct-legend { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #7a6a4c; }
.ct-readings { margin: 16px 0 0; display: grid; gap: 14px; }
.ct-readings dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 15.5px; font-weight: 700; }
.ct-readings dd { margin: 0; font-size: 15px; line-height: 1.75; }
.ct-level { padding: 1px 10px; border-radius: 999px; background: var(--soft, #efeae1); color: var(--type, #c2541f); font-size: 13px; font-weight: 700; }
.ct-side { display: grid; gap: 12px; align-content: start; }
.ct-reading { margin: 0; font-size: 15.5px; line-height: 1.75; }
.ct-ai-note { margin: 14px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted, #5a6373); }

.ct-caveat { margin-top: 14px; border-top: 1px solid var(--line, #e3ddd2); font-size: 14px; line-height: 1.7; color: var(--muted, #5a6373); }
.ct-caveat summary { min-height: 46px; display: flex; align-items: center; font-weight: 700; font-size: 15px; color: var(--navy, #1f3154); cursor: pointer; }
.ct-caveat-body p { margin: 10px 0; }
.ct-numbers { font-variant-numeric: tabular-nums; }
.ct-formula { max-width: 100%; overflow-x: auto; margin: 0; padding: 12px; border: 1px solid var(--line, #e3ddd2); border-radius: 10px; background: #fbf8f2; color: var(--ink, #1d2433); font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }

@media (min-width: 760px) {
  .ct-figures { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
  .ct-readings { grid-template-columns: 1fr 1fr; gap: 16px 30px; }
  .ct-choice { max-width: 440px; }
}
@media (forced-colors: active) {
  .ct-choice-button[aria-pressed="true"] { outline: 3px solid Highlight; }
}

.ct-chart { display: block; }
.ct-model-example { max-width: 300px; margin-inline: auto; }

/* 数式から描くグラフ（model-charts.js）。紙色・砂色・青緑でそろえる。 */
.mc { display: block; width: 100%; height: auto; font-family: inherit; }
.mc-water { fill: rgba(111, 179, 196, .62); }
.mc-line { fill: none; stroke: #4a3a22; stroke-opacity: .55; stroke-width: 1.6; stroke-linejoin: round; }
.mc-base { fill: none; stroke: #4a3a22; stroke-opacity: .5; stroke-width: 1.2; stroke-dasharray: 3 4; }
.mc-theta { stroke: #1f6f86; stroke-width: 1.4; stroke-dasharray: 6 4; }
.mc-note { font-size: 11px; font-weight: 700; fill: #5c6f77; }
.mc-note-theta { font-size: 13px; fill: #1f6f86; }
.mc-sheet { stroke: rgba(74, 58, 34, .13); stroke-width: 1; }
.mc-band-key { stroke: #c9d6b8; stroke-width: 1; }
.mc-stone { fill: #fffaf0; stroke: var(--navy, #1f3154); stroke-width: 2; }
.mc-stone-dot { fill: var(--navy, #1f3154); }
.mc-pole { stroke: #4a3a22; stroke-width: 2; stroke-linecap: round; fill: none; }
.mc-pennant { fill: var(--type, #c2541f); stroke: #fffaf0; stroke-width: 1; stroke-linejoin: round; }
.mc-tag rect { fill: #fffaf0; stroke: rgba(110, 86, 48, .5); stroke-width: 1; }
.mc-tag text { font-size: 11px; font-weight: 700; fill: #3a2f20; }
.mc-label { font-size: 12.5px; font-weight: 700; fill: #5a4b33; }
.mc-value { font-size: 12.5px; font-weight: 800; fill: var(--ink, #1d2433); font-variant-numeric: tabular-nums; }
.mc-track { fill: #efe6d2; }
.mc-bar-plus { fill: #5a9b96; }
.mc-bar-minus { fill: #c98a52; }
.mc-bar-in { fill: #6fb3c4; }
.mc-bar-out { fill: #dcc58f; }
.mc-axis { stroke: #7a6a4c; stroke-width: 1.2; }
.mc-grid { stroke: #e3d8c0; stroke-width: 1; }
.mc-grid-dash { stroke-dasharray: 3 4; }
.mc-band { fill: #e9efe0; }
.mc-curve { fill: none; stroke: var(--navy, #1f3154); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.mc-curve-2 { stroke: #c2541f; stroke-dasharray: 7 4; }
.mc-point { fill: #fffaf0; stroke: var(--navy, #1f3154); stroke-width: 2.4; }
.mc-point-2 { stroke: #c2541f; }

.graphs { display: grid; gap: 14px; margin-top: 12px; }
.graph { margin: 0; padding: 12px 12px 14px; border: 1px solid #e6dcc6; border-radius: 20px; background: #fbf5e6; }
.graph figcaption { font-size: 14px; font-weight: 700; color: #5a4b33; margin-bottom: 8px; }
.graph-reading { margin: 10px 0 0; font-size: 15px; line-height: 1.75; }
.graph-formula { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #f3ead4; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: #5a4b33; overflow-wrap: anywhere; }
@media (min-width: 760px) { .graphs { grid-template-columns: 1fr 1fr; align-items: start; } }

.start-terrain-body { display: grid; gap: 8px; margin-top: 6px; padding: 10px 12px 12px; border: 1px solid #e6dcc6; border-radius: 16px; background: #fbf5e6; }
.start-terrain-body p { font-size: 13px; line-height: 1.65; color: var(--muted, #5a6373); }
@media (min-width: 640px) { .start-terrain-body { grid-template-columns: 300px 1fr; align-items: center; gap: 18px; } .start-terrain-body p { font-size: 14.5px; } }

/* 式の文字：V の上の波線と、上つき・下つき。端末の書体に頼らずに出す。 */
.vt { position: relative; display: inline-block; }
.vt::after { content: "~"; position: absolute; left: 0; right: 0; top: -.56em; text-align: center; font-size: .9em; line-height: 1; pointer-events: none; }
.ct-formula sup, .ct-formula sub, .graph-formula sup, .graph-formula sub, .ct-numbers sup, .ct-numbers sub, .ct-legend sub, .ct-caveat-body sup, .ct-caveat-body sub { font-size: .74em; line-height: 0; }

/* はじめてこの理論を見る人のための見方と説明 */
.ct-guide { margin-top: 14px; padding: 14px 16px 12px; border-radius: 18px; background: var(--soft, #efeae1); }
.ct-guide-title { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--navy, #1f3154); }
.ct-guide-list { margin: 0; display: grid; gap: 10px; }
.ct-guide-row { display: grid; gap: 2px; }
.ct-guide-row dt { font-size: 14px; font-weight: 800; color: var(--navy, #1f3154); }
.ct-guide-row dd { margin: 0; font-size: 14.5px; line-height: 1.75; }
.ct-guide-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line, #e3ddd2); font-size: 14.5px; line-height: 1.75; }
@media (min-width: 560px) { .ct-guide-row { grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; align-items: baseline; } }

.ct-why { margin-top: 16px; border: 1px solid #e6dcc6; border-radius: 18px; background: #fffaf0; }
.ct-why > summary { min-height: 52px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 800; line-height: 1.5; color: var(--navy, #1f3154); }
.ct-why > summary::-webkit-details-marker { display: none; }
.ct-why > summary::after { content: "＋"; color: var(--type, #c2541f); font-size: 18px; flex: 0 0 auto; }
.ct-why[open] > summary::after { content: "−"; }
.ct-why > summary:focus-visible, .graph-help > summary:focus-visible { outline: 3px solid var(--navy, #1f3154); outline-offset: 3px; border-radius: 12px; }
.ct-why-body { padding: 0 16px 16px; font-size: 15px; line-height: 1.8; }
.ct-why-body h4 { margin: 18px 0 4px; font-size: 15.5px; color: var(--ink, #1d2433); }
.ct-why-body h4:first-child { margin-top: 2px; }
.ct-why-body p { margin: 6px 0; }
.ct-why-eq { padding: 8px 12px; border-radius: 10px; background: #f3ead4; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.ct-why-key { color: var(--type, #c2541f); border-bottom: 2px solid currentColor; }
.ct-why-example { padding: 8px 12px; border-left: 3px solid var(--type, #c2541f); border-radius: 0 10px 10px 0; background: #fbf5e6; }
.ct-why-yours { margin-top: 18px; padding: 4px 14px 12px; border-radius: 14px; background: var(--soft, #efeae1); }
.ct-why-yours h4 { margin-top: 12px; }
.ct-cmp { display: block; width: 100%; max-width: 480px; height: auto; margin: 6px auto 0; font-family: inherit; }
.ct-cmp-now { fill: none; stroke: #9a8866; stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.ct-cmp-boost { fill: none; stroke: var(--navy, #1f3154); stroke-width: 2.6; stroke-linejoin: round; }
.ct-cmp-theta { stroke: #1f6f86; stroke-width: 1.4; stroke-dasharray: 6 4; }
.ct-cmp-down { stroke: #1f6f86; stroke-width: 2.4; }
.ct-cmp-up { stroke: #b5542a; stroke-width: 2.4; }
.ct-cmp-head-down { fill: #1f6f86; }
.ct-cmp-head-up { fill: #b5542a; }
.ct-cmp-label { font-size: 11.5px; font-weight: 700; fill: #5a4b33; }
.ct-cmp-label-down, .ct-cmp-label-theta { fill: #1f6f86; }
.ct-cmp-label-up { fill: #b5542a; }

.graphs-lead { margin: 0; font-size: 15px; line-height: 1.75; }
.graph-intro { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; }
.graph-help { margin-top: 10px; border-top: 1px solid #e6dcc6; }
.graph-help > summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 800; color: var(--navy, #1f3154); }
.graph-help > summary::-webkit-details-marker { display: none; }
.graph-help > summary::after { content: "＋"; color: var(--type, #c2541f); font-size: 18px; flex: 0 0 auto; }
.graph-help[open] > summary::after { content: "−"; }
.graph-help-body p { margin: 8px 0; font-size: 14.5px; line-height: 1.75; }

/* ボール（あなたの止まっている場所） */
.mc-ball { fill: var(--type, #c2541f); stroke: #fffaf0; stroke-width: 1.6; }
.mc-ball-shine { fill: #fff; fill-opacity: .55; }

/* 「4つの力が強まったら」：いまの地形との比べ */
.mc-before { fill: none; stroke: #6f6a62; stroke-width: 2; stroke-dasharray: 5 4; opacity: .85; }
.mc-change { stroke: #b5542a; stroke-width: 2.4; }
.mc-change-head { fill: #b5542a; }
.mc-change-label { font-size: 12px; font-weight: 800; fill: #b5542a; paint-order: stroke; stroke: #fffaf0; stroke-width: 4px; stroke-linejoin: round; }
.ct-legend-change { color: #b5542a; font-weight: 700; }
.ct-change { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fbf1ea; border: 1.5px solid #ecc9b2; }
.ct-change[hidden] { display: none; }
.ct-change-title { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; color: #a2481b; }
.ct-change-list { margin: 0; display: grid; gap: 4px; }
.ct-change-list > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.6; }
.ct-change-list dt { font-weight: 800; color: var(--ink, #1d2433); }
.ct-change-list dd { margin: 0; font-weight: 700; }
@media (min-width: 760px) { .ct-change-list { grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; } }
