/* 診断ツール用CSS。すべて .tm-shindan の内側に限定（WordPressテーマと衝突させない） */
:root {
  --tm-bg: #ffffff; --tm-fg: #1d2330; --tm-muted: #5b6475; --tm-line: #d9dee7; --tm-card: #f6f8fb;
  --tm-accent: #0b6bcb; --tm-accent-fg: #ffffff; --tm-high: #b42318; --tm-std: #8a6a00; --tm-low: #1a7f37;
}
@media (prefers-color-scheme: dark) {
  :root { --tm-bg: #12151b; --tm-fg: #e8ebf1; --tm-muted: #a3acbd; --tm-line: #2d3340; --tm-card: #1a1f28;
    --tm-accent: #4ea1f3; --tm-accent-fg: #0b0e13; --tm-high: #ff7a6e; --tm-std: #e3c04d; --tm-low: #5cd07a; }
}
.tm-shindan { color: var(--tm-fg); font: 16px/1.7 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
.tm-shindan * { box-sizing: border-box; }
.tm-shindan h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.tm-shindan h3 { font-size: 1rem; margin: 8px 0; }
.tm-shindan .tm-hint, .tm-shindan .tm-note { color: var(--tm-muted); }
.tm-shindan .tm-hint { font-size: .85rem; margin: .25rem 0 0; }
.tm-shindan .tm-pr { font-size: .8rem; color: var(--tm-muted); border: 1px solid var(--tm-line); padding: 4px 8px; border-radius: 4px; display: inline-block; }
.tm-shindan fieldset { border: 1px solid var(--tm-line); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.tm-shindan legend { font-weight: 700; padding: 0 4px; }
.tm-shindan .tm-field { margin: 12px 0; }
.tm-shindan .tm-label { display: block; font-weight: 600; margin-bottom: 4px; }
.tm-shindan .tm-choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tm-shindan .tm-choices label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.tm-shindan select, .tm-shindan input[type=text] { width: 100%; font-size: 16px; padding: 10px; border: 1px solid var(--tm-line); border-radius: 6px; background: var(--tm-bg); color: var(--tm-fg); }
.tm-shindan .tm-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .tm-shindan .tm-grid { grid-template-columns: 1fr 1fr; } }
.tm-shindan .tm-unit { display: flex; align-items: center; gap: 6px; }
.tm-shindan .tm-btn { display: inline-block; width: 100%; text-align: center; padding: 14px; font-size: 1rem; font-weight: 700; border: 0; border-radius: 8px; background: var(--tm-accent); color: var(--tm-accent-fg); cursor: pointer; text-decoration: none; }
.tm-shindan .tm-btn.tm-soft { background: transparent; color: var(--tm-accent); border: 2px solid var(--tm-accent); }
.tm-shindan .tm-errors { color: var(--tm-high); }
.tm-shindan .tm-result { background: var(--tm-card); border-radius: 8px; padding: 8px 16px 16px; margin-top: 16px; }
.tm-shindan .tm-badge { font-weight: 700; font-size: 1.1rem; }
.tm-shindan .tm-high { color: var(--tm-high); } .tm-shindan .tm-standard { color: var(--tm-std); } .tm-shindan .tm-low { color: var(--tm-low); }
.tm-shindan .tm-kv { width: 100%; border-collapse: collapse; }
.tm-shindan .tm-kv th, .tm-shindan .tm-kv td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--tm-line); font-weight: normal; }
.tm-shindan .tm-kv th { width: 58%; }
.tm-shindan .tm-kv td { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tm-shindan .tm-cta-area { margin-top: 16px; border-top: 1px solid var(--tm-line); padding-top: 12px; }
.tm-shindan .tm-pr-inline { display: inline-block; font-size: .75rem; border: 1px solid var(--tm-muted); color: var(--tm-muted); padding: 0 6px; border-radius: 3px; margin: 0; }
.tm-shindan .tm-strong { font-weight: 700; }
.tm-shindan .tm-cta-item { margin: 12px 0; }
.tm-shindan .tm-about-result { margin-top: 20px; border-top: 1px solid var(--tm-line); padding-top: 8px; font-size: .9rem; color: var(--tm-muted); }
.tm-shindan .tm-about-result h3 { color: var(--tm-fg); }
.tm-shindan .tm-about-result li { margin: 6px 0; overflow-wrap: anywhere; }
.tm-shindan .tm-source { font-size: .9rem; color: var(--tm-muted); margin-top: 32px; }
.tm-shindan .tm-source li { margin: 4px 0; }

.tm-shindan .tm-center { text-align: center; }
.tm-shindan .tm-headline { font-size: 1.05rem; margin: .25rem 0 .75rem; }
.tm-shindan .tm-warn { color: var(--tm-high); }
.tm-shindan .tm-result.tm-stale > :not(.tm-stale-note) { opacity: .45; }
.tm-shindan .tm-guide { margin-top: 8px; }
.tm-shindan .tm-guide-links { padding-left: 1.2em; }
.tm-shindan .tm-guide-links li { margin: 6px 0; }
.tm-shindan a { color: var(--tm-accent); }
.tm-shindan .tm-btn:focus-visible, .tm-shindan a:focus-visible, .tm-shindan input:focus-visible, .tm-shindan select:focus-visible { outline: 3px solid var(--tm-accent); outline-offset: 2px; }
.tm-shindan .tm-choices input[type=radio] { width: 20px; height: 20px; }
