/* ==========================================================
   迷判 - めいはん
   和の生成り色を土台に、藍をアクセントにした親しみのある UI
   ========================================================== */

:root {
  /* 面 */
  --paper:      #FBF9F5;   /* 生成り */
  --surface:    #FFFFFF;
  --surface-2:  #F5F2EC;
  --line:       #E9E3D8;
  --line-soft:  #F1ECE3;

  /* 文字 */
  --ink:        #23272F;   /* 墨 */
  --ink-2:      #5C6572;
  --ink-3:      #98A0AD;

  /* 色 */
  --ai:         #2F5FD9;   /* 藍 */
  --ai-deep:    #1E42A0;
  --ai-wash:    #EDF2FE;
  --ok:         #2E9A6D;   /* 若竹 */
  --ok-wash:    #E9F6F0;
  --note:       #2F5FD9;
  --note-wash:  #EDF2FE;
  --warn:       #D9932B;   /* 山吹 */
  --warn-wash:  #FCF3E3;
  --danger:     #D24B45;   /* 朱 */
  --danger-wash:#FCEDEC;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --sh-1: 0 1px 2px rgba(35,39,47,.05), 0 2px 8px rgba(35,39,47,.05);
  --sh-2: 0 2px 4px rgba(35,39,47,.05), 0 12px 28px rgba(35,39,47,.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #14161B;
    --surface:    #1B1F27;
    --surface-2:  #222732;
    --line:       #2B313D;
    --line-soft:  #232935;
    --ink:        #E9ECF2;
    --ink-2:      #A7B0BF;
    --ink-3:      #737D8C;
    --ai:         #6B95FF;
    --ai-deep:    #9DB8FF;
    --ai-wash:    #1C2740;
    --ok:         #4FBF8E;
    --ok-wash:    #163026;
    --note:       #6B95FF;
    --note-wash:  #1C2740;
    --warn:       #E9AE4C;
    --warn-wash:  #33290F;
    --danger:     #E96A63;
    --danger-wash:#341A19;
    --sh-1: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.25);
    --sh-2: 0 2px 4px rgba(0,0,0,.3), 0 12px 28px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-feature-settings: "palt" 1;   /* 和文を詰めて読みやすく */
  letter-spacing: .02em;
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* 和紙のようなごく淡いテクスチャ */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(47,95,217,.05), transparent 42%),
    radial-gradient(circle at 88% 4%,  rgba(217,147,43,.05), transparent 38%);
}

.wrap { width: min(920px, 100% - 2rem); margin-inline: auto; }

a { color: var(--ai); text-underline-offset: 3px; }
a:hover { color: var(--ai-deep); }

h1, h2, h3 { letter-spacing: .01em; line-height: 1.5; }

/* ---------- ヘッダ ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; padding: .7rem 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand:hover .mascot { transform: translateY(-2px) rotate(-4deg); }
.mascot { width: 38px; height: 38px; flex: none; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-mark {
  font-size: 1.3rem; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(100deg, var(--ai), #7A5CF0 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- フッタ ---------- */
.site-foot {
  margin-top: 4rem; padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--line); background: var(--surface-2);
  font-size: .82rem; color: var(--ink-2); line-height: 1.9;
}
.disclaimer {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--r-md); padding: 1rem 1.1rem; margin: 0;
}
.foot-links { margin-top: 1.1rem; }

/* ---------- ヒーロー ---------- */
.hero { padding: 3.2rem 0 2rem; text-align: center; }
.hero-mascot { width: 76px; height: 76px; margin-bottom: .6rem; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

.hero h1 {
  font-size: clamp(1.7rem, 5.4vw, 2.6rem);
  line-height: 1.45; margin: 0 0 .9rem; font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--warn) 42%, transparent) 0);
}
.hero-lead { color: var(--ink-2); margin: 0 auto 1.8rem; max-width: 34em; }
.hero-note { font-size: .8rem; color: var(--ink-3); margin-top: 1rem; }
.sp-only { display: none; }
@media (max-width: 540px) { .sp-only { display: inline; } }

/* ---------- 検索 ---------- */
.search {
  display: flex; gap: .5rem; max-width: 580px; margin-inline: auto;
  background: var(--surface); padding: .4rem;
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-2);
  transition: box-shadow .2s, border-color .2s;
}
.search:focus-within { border-color: var(--ai); box-shadow: 0 0 0 4px var(--ai-wash), var(--sh-2); }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  padding: .7rem 1.1rem; font-size: 1rem; font-family: inherit;
  font-variant-numeric: tabular-nums; letter-spacing: .05em;
}
.search input::placeholder { color: var(--ink-3); letter-spacing: .02em; }
.search input:focus { outline: none; }
.search button {
  flex: none; padding: .7rem 1.5rem; font-size: .95rem; font-weight: 700;
  font-family: inherit; white-space: nowrap; cursor: pointer;
  border: 0; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--ai), #6B5CF0);
  transition: transform .15s, filter .15s;
}
.search button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.search button:active { transform: translateY(0); }
.search-lg input { padding: .9rem 1.2rem; font-size: 1.08rem; }

/* ---------- 特徴カード ---------- */
.features {
  display: grid; gap: .9rem; margin: 2.6rem 0;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.3rem 1.2rem; box-shadow: var(--sh-1);
  transition: transform .25s cubic-bezier(.34,1.3,.64,1), box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.feature-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--ai-wash); font-size: 1.3rem; margin-bottom: .7rem;
}
.feature h2 { font-size: .98rem; margin: 0 0 .35rem; font-weight: 700; }
.feature p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.8; }

/* ---------- パネル ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem; margin: 1.2rem 0;
  box-shadow: var(--sh-1);
}
.panel-slim { padding: 1.1rem; }
.panel-h {
  font-size: 1.05rem; font-weight: 700; margin: 0 0 1.1rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
}
.panel-note { font-size: .74rem; font-weight: 400; color: var(--ink-3); }
.sub-h {
  font-size: .95rem; font-weight: 700; margin: 1.6rem 0 .7rem;
  display: flex; align-items: center; gap: .5rem;
}
.sub-h::before {
  content: ""; width: 4px; height: 1em; border-radius: 2px;
  background: linear-gradient(var(--ai), #7A5CF0);
}
.muted { color: var(--ink-3); }

/* ---------- 判定ヘッダ ---------- */
.verdict {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem; margin: 1.6rem 0;
  box-shadow: var(--sh-2); position: relative; overflow: hidden;
}
.verdict::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--ai), #7A5CF0, var(--warn));
}
.verdict-head { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between; }
.verdict-no h1 {
  font-size: clamp(1.5rem, 5.4vw, 2.1rem); margin: 0; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.verdict-sub { margin: .35rem 0 0; color: var(--ink-2); font-size: .85rem; }
.verdict-counts { margin: .15rem 0 0; color: var(--ink-3); font-size: .8rem; }
.verdict-cat {
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
}
.verdict-cat-lead, .tally-lead { font-size: .78rem; color: var(--ink-3); }
.tally { margin-top: .8rem; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }

/* ---------- 危険度ゲージ ---------- */
.gauge { text-align: center; flex: none; }
.gauge-ring {
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--g-color) var(--deg, 0deg), var(--line-soft) 0);
  transition: background .7s ease;
}
.gauge-inner {
  width: 94px; height: 94px; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center; align-content: center;
  box-shadow: inset 0 1px 3px rgba(35,39,47,.06);
}
.gauge-num {
  font-size: 2.15rem; font-weight: 900; line-height: 1;
  color: var(--g-color); font-variant-numeric: tabular-nums;
}
.gauge-den { font-size: .68rem; color: var(--ink-3); margin-top: .1rem; }
.gauge-label {
  margin-top: .55rem; font-weight: 800; font-size: .88rem;
  color: var(--g-color); letter-spacing: .08em;
}
.gauge-ok     { --g-color: var(--ok); }
.gauge-note   { --g-color: var(--note); }
.gauge-warn   { --g-color: var(--warn); }
.gauge-danger { --g-color: var(--danger); }

/* ---------- バッジ ---------- */
.badge, .pill {
  display: inline-flex; align-items: center; gap: .32rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .79rem; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent; line-height: 1.6;
}
.badge-ico { font-size: .92rem; }
.badge-n {
  margin-left: .15rem; padding: 0 .42rem; border-radius: 999px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-size: .72rem; font-variant-numeric: tabular-nums;
}
.badge-ok,     .pill-ok     { background: var(--ok-wash);     color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 26%, transparent); }
.badge-note,   .pill-note   { background: var(--note-wash);   color: var(--note);   border-color: color-mix(in srgb, var(--note) 26%, transparent); }
.badge-warn,   .pill-warn   { background: var(--warn-wash);   color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge-danger, .pill-danger { background: var(--danger-wash); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* ---------- AI 判定 ---------- */
.ai-summary {
  margin: 0; font-size: 1rem; line-height: 1.95;
  padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: var(--ai-wash);
}
.clusters, .harms, .tactics, .reviews, .numlist { list-style: none; padding: 0; margin: 0; }

.cluster {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .85rem 1rem; margin-bottom: .6rem; background: var(--surface-2);
}
.cluster-head { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.cluster-title { font-weight: 700; }
.cluster-n {
  font-size: .74rem; color: var(--ink-2); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line);
  padding: .05rem .55rem; border-radius: 999px;
}
.cluster-gist { margin: .35rem 0 0; font-size: .87rem; color: var(--ink-2); }

.harm {
  border-left: 3px solid var(--danger); padding: .15rem 0 .15rem .85rem;
  margin-bottom: .9rem;
}
.harm-title { font-weight: 700; }
.harm-detail { margin: .15rem 0 0; font-size: .87rem; color: var(--ink-2); }

.overseas {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.05rem;
}
.overseas-country { margin: 0 0 .5rem; font-size: .95rem; }
.overseas-ico { margin-right: .35rem; }
.overseas-lead { margin: .8rem 0 .4rem; font-size: .83rem; color: var(--ink-3); }
.tactics li { padding-left: 1.4rem; position: relative; font-size: .89rem; margin-bottom: .35rem; }
.tactics li::before { content: "⚠"; position: absolute; left: 0; color: var(--warn); }
.overseas-note {
  margin: .9rem 0 0; font-size: .82rem; color: var(--warn);
  background: var(--warn-wash); padding: .6rem .8rem; border-radius: var(--r-sm);
}

.advice {
  margin-top: 1.4rem; padding: 1rem 1.1rem;
  border-radius: var(--r-md); background: var(--ai-wash);
  border: 1px solid color-mix(in srgb, var(--ai) 22%, transparent);
}
.advice-lead {
  font-size: .74rem; font-weight: 800; color: var(--ai);
  letter-spacing: .1em; text-transform: uppercase;
}
.advice p { margin: .25rem 0 0; }

/* ---------- 折り返し回答 ---------- */
.cb-result { border-radius: var(--r-md); padding: 1.1rem 1.2rem; border: 1px solid var(--line); }
.cb-head { font-size: 1.08rem; font-weight: 800; margin: 0 0 .5rem; display: flex; align-items: center; gap: .45rem; }
.cb-ok     { background: var(--ok-wash);     border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.cb-ok     .cb-head { color: var(--ok); }
.cb-warn   { background: var(--warn-wash);   border-color: color-mix(in srgb, var(--warn) 34%, transparent); }
.cb-warn   .cb-head { color: var(--warn); }
.cb-danger { background: var(--danger-wash); border-color: color-mix(in srgb, var(--danger) 34%, transparent); }
.cb-danger .cb-head { color: var(--danger); }
.cb-result p { margin: 0; }

/* ---------- 口コミ ---------- */
.review { border-top: 1px solid var(--line-soft); padding: 1rem 0; }
.review:first-child { border-top: 0; padding-top: 0; }
.review-head { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.review-meta { font-size: .76rem; color: var(--ink-3); }
.review-body { margin: .5rem 0 0; line-height: 1.9; }

/* ---------- 番号リスト ---------- */
.numlist li { border-top: 1px solid var(--line-soft); }
.numlist li:first-child { border-top: 0; }
.numlist a {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: center; justify-content: space-between;
  padding: .85rem .6rem; text-decoration: none; color: inherit;
  border-radius: var(--r-sm); transition: background .15s;
}
.numlist a:hover { background: var(--surface-2); }
.numlist-no { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.numlist-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.numlist-cnt { font-size: .76rem; color: var(--ink-3); }

/* ---------- フォーム ---------- */
.postform { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field-label { font-size: .84rem; font-weight: 700; }
.field select, .field input[type=text], .field input[type=tel],
.field input[type=email], .field textarea {
  width: 100%; padding: .75rem .9rem; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink); line-height: 1.7;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ai); background: var(--surface);
  box-shadow: 0 0 0 3px var(--ai-wash);
}
.field textarea { resize: vertical; }
.form-caution {
  font-size: .8rem; color: var(--warn); margin: 0;
  background: var(--warn-wash); padding: .7rem .85rem; border-radius: var(--r-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .8rem 1.7rem; font-size: .95rem; font-weight: 700; font-family: inherit;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ai), #6B5CF0); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ai) 32%, transparent);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-2px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- 通知 ---------- */
.alert {
  padding: .8rem 1rem; border-radius: var(--r-md); font-size: .9rem;
  margin: 0 0 1.1rem; border: 1px solid transparent;
}
.alert-ok   { background: var(--ok-wash);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-warn { background: var(--warn-wash); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }

/* ---------- 口コミ投稿の入口 ---------- */
.feature-link {
  display: block; text-decoration: none; color: inherit;
  border-color: color-mix(in srgb, var(--ai) 30%, var(--line));
}
.feature-link:hover { color: inherit; }
.feature-cta {
  display: inline-block; margin-top: .6rem;
  font-size: .84rem; font-weight: 700; color: var(--ai);
}
.feature-link:hover .feature-cta { text-decoration: underline; }

.post-entry { border: 1px solid color-mix(in srgb, var(--ai) 28%, var(--line)); }
.post-entry-lead { margin: 0 0 1rem; color: var(--ink-2); }
.post-entry .search { margin: 0 auto 1rem; }

/* 投稿目的で来たときにフォームを目立たせる */
.post-highlight {
  border: 2px solid var(--ai);
  box-shadow: 0 0 0 5px var(--ai-wash), var(--sh-2);
  animation: pulse-once 1.6s ease-out 1;
}
@keyframes pulse-once {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ai) 45%, transparent), var(--sh-2); }
  100% { box-shadow: 0 0 0 5px var(--ai-wash), var(--sh-2); }
}

/* ---------- 他サイトでの報告状況 ---------- */
.exsource { display: grid; gap: .6rem; }
.exsource-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem;
  padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface-2);
}
.exsource-name { font-weight: 700; font-size: .9rem; }
.exsource-stat { font-size: .84rem; color: var(--ink-2); }
.exsource-link { margin-left: auto; font-size: .82rem; white-space: nowrap; }
.exsource-note { font-size: .78rem; color: var(--ink-3); margin: .6rem 0 0; }

/* ---------- 広告枠 ---------- */
.ad-wrap { width: min(920px, 100% - 2rem); margin: 1.2rem auto; }
.ad-slot {
  display: grid; place-items: center; overflow: hidden;
  border-radius: var(--r-md); background: var(--surface-2);
  border: 1px dashed var(--line);
}
.ad-banner { min-height: 92px; }
.ad-inline { min-height: 260px; }
.ad-ph {
  display: grid; place-items: center; gap: .2rem;
  color: var(--ink-3); padding: 1rem; text-align: center;
}
.ad-ph-label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.ad-ph-slot  { font-size: .7rem; opacity: .75; }
/* 実広告が入ったら枠線を消す */
.ad-slot:not(:has(.ad-ph)) { border-style: solid; border-color: transparent; background: transparent; }

/* ---------- 管理画面 ---------- */
.admin-head { background: var(--ink); color: #fff; border-bottom: 0; }
.admin-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-title { font-weight: 800; letter-spacing: .1em; font-size: 1.05rem; }
.admin-nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.admin-nav a {
  color: #fff; text-decoration: none; font-size: .84rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: 999px; opacity: .72;
  transition: background .15s, opacity .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.admin-nav a.on { background: rgba(255,255,255,.2); opacity: 1; }

.kpis { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1.2rem; }
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--sh-1);
}
.kpi-label { font-size: .76rem; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; }
.kpi-value {
  font-size: 2rem; font-weight: 900; line-height: 1.25;
  font-variant-numeric: tabular-nums; margin-top: .15rem;
}
.kpi-sub { font-size: .75rem; color: var(--ink-3); }

/* 棒グラフ（CSS のみ） */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 168px; padding-top: .5rem; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.chart-bar { border-radius: 3px 3px 0 0; background: var(--ai); min-height: 2px; transition: height .4s; }
.chart-bar.uu { background: color-mix(in srgb, var(--ai) 38%, transparent); }
.chart-x { display: flex; gap: 3px; margin-top: .4rem; }
.chart-x span {
  flex: 1; text-align: center; font-size: .62rem; color: var(--ink-3);
  white-space: nowrap; overflow: hidden;
}
.legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--ink-2); margin-top: .6rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.data th, table.data td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data th { font-size: .76rem; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:hover td { background: var(--surface-2); }

.login-card { max-width: 400px; margin: 4rem auto; }
.login-card .mascot-lg { width: 64px; height: 64px; display: block; margin: 0 auto .8rem; }

/* ---------- ローディング ---------- */
.skeleton { display: flex; align-items: center; gap: 1rem; color: var(--ink-2); }
.spinner {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--ai);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* フェードイン */
.fade-in { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .panel, .verdict { padding: 1.2rem; border-radius: var(--r-md); }
  .verdict-head { flex-direction: column-reverse; align-items: flex-start; }
  .verdict-score { align-self: center; }
  .search { flex-wrap: nowrap; }
  .search button { padding: .7rem 1.1rem; }
}
