/* ============================================================
   ウラヘキ16 — Bento Grid Design
   ダークグラス × ネオンパープル × 角丸タイル
   ============================================================ */
:root {
  --bg: #0a0712;
  --tile: rgba(255, 255, 255, 0.035);
  --tile-solid: #171025;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(192, 132, 252, 0.5);
  --text: #efe9fb;
  --muted: #a89cc8;
  --faint: #6f6492;
  --accent: #c084fc;
  --accent2: #f472b6;
  --gold: #fbbf24;
  --danger: #fb7185;
  --grad: linear-gradient(120deg, #a855f7, #ec4899);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Shippori Mincho B1", "Yu Mincho", serif;
  --font-en: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景グロー + ノイズ */
.bg-glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5;
}
.bg-glow::before {
  width: 620px; height: 620px; top: -220px; right: -160px;
  background: radial-gradient(circle, #4c1d95 0%, transparent 65%);
}
.bg-glow::after {
  width: 540px; height: 540px; bottom: -260px; left: -180px;
  background: radial-gradient(circle, #831843 0%, transparent 65%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hidden { display: none !important; }
.center { text-align: center; }
.serif { font-family: var(--font-serif); }

/* ---------- ヘッダー ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 7, 18, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.3rem; font-weight: 900; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.logo-16 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-tag { font-family: var(--font-en); font-size: 0.62rem; letter-spacing: 0.32em; color: var(--faint); }

main { max-width: 1060px; margin: 0 auto; padding: 34px 20px 80px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 700; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  padding: 13px 24px; border-radius: 999px;
  transition: transform 0.15s, filter 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn:hover { filter: brightness(1.2); border-color: var(--line-strong); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad); border: none; color: #fff;
  box-shadow: 0 6px 30px rgba(216, 76, 190, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(216, 76, 190, 0.55); }
.btn-big { font-size: 1.05rem; padding: 16px 34px; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-share { background: #000; border: 1px solid #3a3a3a; color: #fff; }

/* ---------- 18禁ゲート ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 4, 12, 0.92);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate-box {
  max-width: 430px; text-align: center;
  background: var(--tile-solid); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.gate-emoji { font-size: 3rem; margin-bottom: 12px; }
.gate-box h2 { font-family: var(--font-serif); margin-bottom: 12px; font-size: 1.25rem; }
.gate-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.gate-buttons { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento { display: grid; gap: 14px; }

.tile {
  position: relative;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 44px rgba(168, 85, 247, 0.16);
}

/* スクロール出現 */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in.tile:hover { transition-delay: 0s; }

/* マイクロラベル / セクションラベル */
.micro-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.3em; color: var(--faint); text-transform: uppercase;
  margin-bottom: 16px;
}
.micro-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; color: var(--muted); text-transform: uppercase;
  margin: 0 0 18px 4px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.sec-num {
  font-size: 1.15rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-section { margin-top: 56px; }

/* ---------- ヒーローベントー ---------- */
.hero-bento { grid-template-columns: repeat(4, 1fr); }
.t-hero {
  grid-column: span 2; grid-row: span 2;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-height: 430px;
  background-image:
    linear-gradient(200deg, rgba(10, 7, 18, 0.1) 0%, rgba(10, 7, 18, 0.72) 58%, rgba(10, 7, 18, 0.92) 100%),
    url("/img/hero.jpg");
  background-size: cover; background-position: center;
  border-color: rgba(192, 132, 252, 0.22);
}
.t-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.45;
  margin-bottom: 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
}
.t-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #d8b4fe, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: #cdc3e6; font-size: 0.92rem; margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.last-result { margin-top: 14px; font-size: 0.85rem; }
.last-result a { color: var(--accent); }

.t-stat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; min-height: 130px; }
.stat-num {
  font-family: var(--font-en); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; line-height: 1;
  background: linear-gradient(160deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-free .stat-num { background: linear-gradient(120deg, #fbbf24, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-family: var(--font-en); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.26em; color: var(--faint); text-transform: uppercase; }
.stat-label span { display: block; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--muted); margin-top: 3px; }

.t-privacy { display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.7; }
.t-privacy b { color: var(--text); }
.privacy-icon { font-size: 1.5rem; }

/* ---------- 軸ベントー ---------- */
.axes-bento { grid-template-columns: repeat(4, 1fr); }
.t-axis { min-height: 190px; display: flex; flex-direction: column; }
.axis-letters {
  font-family: var(--font-en); font-size: 1.7rem; font-weight: 800; letter-spacing: 0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.axis-letters i { font-style: normal; opacity: 0.45; font-weight: 600; }
.axis-name { font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.axis-desc { color: var(--muted); font-size: 0.8rem; line-height: 1.7; }

/* ---------- 16タイプ図鑑 ---------- */
.types-bento { grid-template-columns: repeat(4, 1fr); }
.t-type {
  padding: 0; aspect-ratio: 1 / 1.06; display: block; text-decoration: none; color: var(--text);
}
.t-type img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
  filter: saturate(0.92) brightness(0.94);
}
.t-type:hover img { transform: scale(1.07); filter: saturate(1.1) brightness(1.05); }
.t-type::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, transparent 42%, rgba(8, 5, 15, 0.88) 82%);
}
.type-tile-txt { position: absolute; left: 16px; right: 12px; bottom: 12px; z-index: 2; }
.type-tile-code { font-family: var(--font-en); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.3em; color: var(--accent); }
.type-tile-name { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; line-height: 1.4; }

/* ---------- 結果でわかること ---------- */
.get-bento { grid-template-columns: repeat(3, 1fr); }
.t-get { min-height: 150px; }
.get-emoji { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.t-get b { display: block; font-size: 1rem; margin-bottom: 4px; }
.t-get p { color: var(--muted); font-size: 0.8rem; line-height: 1.7; }

/* ---------- CTAバンド ---------- */
.cta-band {
  margin-top: 56px; text-align: center; padding: 52px 26px;
  background:
    radial-gradient(500px 220px at 85% 20%, rgba(168, 85, 247, 0.16), transparent),
    radial-gradient(420px 200px at 12% 85%, rgba(236, 72, 153, 0.12), transparent),
    var(--tile);
}
.cta-band p { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 600; margin-bottom: 22px; letter-spacing: 0.06em; }

/* ============================================================
   クイズ
   ============================================================ */
#view-quiz { max-width: 580px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.btn-back {
  background: var(--tile); color: var(--muted); border: 1px solid var(--line);
  border-radius: 50%; width: 40px; height: 40px; font-size: 1.05rem; cursor: pointer; flex-shrink: 0;
  transition: border-color 0.2s;
}
.btn-back:hover { border-color: var(--line-strong); }
.progress { flex: 1; height: 7px; background: rgba(255, 255, 255, 0.06); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--grad); transition: width 0.3s; border-radius: 99px; }
.progress-text { font-family: var(--font-en); color: var(--faint); font-size: 0.8rem; min-width: 52px; text-align: right; }

.quiz-card { padding: 34px 28px; animation: fadein 0.3s; }
.quiz-card:hover { transform: none; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
.q-number { font-family: var(--font-en); color: var(--accent); font-weight: 800; letter-spacing: 0.2em; margin-bottom: 10px; }
.q-text { font-size: 1.22rem; font-weight: 600; min-height: 3.4em; margin-bottom: 24px; line-height: 1.75; }
.q-choices { display: flex; flex-direction: column; gap: 10px; }
.choice { width: 100%; border-radius: var(--r-md); text-align: left; padding-left: 22px; }
.choice:hover { transform: translateX(4px); background: rgba(192, 132, 252, 0.08); }
.choice[data-v="2"] { border-color: rgba(244, 114, 182, 0.5); }
.choice[data-v="-2"] { color: var(--muted); }
.quiz-hint { text-align: center; color: var(--faint); font-size: 0.8rem; margin-top: 18px; }

/* ============================================================
   結果ページ（ベントー）
   ============================================================ */
.result-bento { grid-template-columns: repeat(6, 1fr); }
.rt-hero { grid-column: span 6; padding: 0; display: grid; grid-template-columns: 42% 58%; min-height: 320px; }
.rt-hero-img { position: relative; overflow: hidden; }
.rt-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(13, 9, 22, 0.95) 100%);
}
.rt-hero-body { padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.rt-label { font-family: var(--font-en); font-size: 0.62rem; letter-spacing: 0.34em; color: var(--faint); text-transform: uppercase; margin-bottom: 12px; }
.rt-code { font-family: var(--font-en); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.4em; color: var(--type-color, var(--accent)); margin-bottom: 4px; }
.rt-name { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.rt-catch { color: var(--accent2); font-size: 0.95rem; }

.rt-half { grid-column: span 3; }
.rt-full { grid-column: span 6; }

.tile-heading {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.02rem; font-weight: 700; margin-bottom: 16px;
}
.tile-heading::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--grad); }

/* 軸バー */
.axis-bar { margin-bottom: 16px; }
.axis-bar:last-child { margin-bottom: 0; }
.axis-bar-labels { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 5px; }
.axis-bar-labels .active { color: var(--accent2); font-weight: 700; }
.axis-bar-labels .inactive { color: var(--faint); }
.axis-track { position: relative; height: 9px; background: rgba(255, 255, 255, 0.06); border-radius: 99px; overflow: hidden; }
.axis-fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--grad); }
.axis-pct { text-align: center; font-size: 0.72rem; color: var(--faint); margin-top: 4px; }

.summary-text { font-size: 0.94rem; color: #d9d0ee; }

/* 詳細解説 */
.detail-text { font-size: 0.95rem; margin-bottom: 18px; color: #d9d0ee; }
.detail-sub { font-size: 0.86rem; color: var(--accent); font-weight: 700; margin: 16px 0 8px; }
.detail-card ul { list-style: none; }
.detail-card ul li { padding: 5px 0 5px 1.5em; text-indent: -1.5em; font-size: 0.88rem; color: var(--muted); }
.detail-card ul li::before { content: "🌙 "; }
.detail-card ul.hints li::before { content: "🔑 "; }
.ng-text { color: var(--danger); font-size: 0.88rem; }

/* TOP5 */
.kink-item { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.kink-item:last-of-type { border-bottom: none; }
.kink-rank { font-family: var(--font-en); font-size: 1.15rem; font-weight: 800; color: var(--gold); min-width: 1.6em; text-align: center; }
.kink-body { flex: 1; }
.kink-label { font-weight: 700; font-size: 0.92rem; }
.kink-desc { color: var(--faint); font-size: 0.75rem; }
.kink-pct { font-family: var(--font-en); font-weight: 800; font-size: 1.05rem; color: var(--accent2); }
.kink-note { font-size: 0.72rem; color: var(--faint); margin-top: 12px; }

/* 相性 */
.compat-picker { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.compat-pick {
  font-family: var(--font-en); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted);
  border-radius: 9px; padding: 6px 9px; font-size: 0.72rem; cursor: pointer; font-weight: 700; letter-spacing: 0.06em;
  transition: all 0.2s;
}
.compat-pick:hover { border-color: var(--line-strong); color: var(--text); }
.compat-pick.active { background: var(--grad); color: #fff; border-color: transparent; }
.compat-detail {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px; margin-bottom: 16px; font-size: 0.88rem;
}
.compat-score { font-family: var(--font-en); font-size: 2.1rem; font-weight: 800; color: var(--accent2); }
.compat-tier { color: var(--gold); font-weight: 700; margin-left: 10px; }
.compat-rank-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px dashed var(--line);
  font-size: 0.85rem; cursor: pointer; border-radius: 10px;
  transition: background 0.2s;
}
.compat-rank-item:hover { background: rgba(255, 255, 255, 0.05); }
.compat-rank-num { font-family: var(--font-en); color: var(--faint); min-width: 1.6em; text-align: right; font-size: 0.8rem; }
.compat-rank-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.compat-rank-name { flex: 1; line-height: 1.4; }
.compat-rank-name b { font-family: var(--font-en); letter-spacing: 0.08em; margin-right: 4px; }
.compat-rank-tier { display: block; font-style: normal; font-size: 0.7rem; color: var(--faint); }
.compat-rank-score {
  font-family: var(--font-en); font-weight: 800; color: #fff; font-size: 0.85rem;
  padding: 4px 9px; border-radius: 8px; min-width: 42px; text-align: center;
}

/* ---------- 16×16 相性マトリクス ---------- */
.m-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.m-note b { color: var(--text); }

.matrix-wrap {
  overflow: auto; max-height: 78vh; margin: 0 -6px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  -webkit-overflow-scrolling: touch;
}
.matrix { border-collapse: separate; border-spacing: 3px; font-family: var(--font-en); }

.matrix th { font-weight: 700; background: #140e22; }
.m-corner {
  position: sticky; left: 0; top: 0; z-index: 4;
  font-size: 0.56rem; color: var(--faint); line-height: 1.25;
  padding: 4px 6px; border-radius: 8px; white-space: nowrap;
}
.m-corner span { display: block; }
.m-corner .m-slash { color: var(--accent); }

.m-colhead {
  position: sticky; top: 0; z-index: 3;
  font-size: 0.58rem; letter-spacing: 0.04em; color: var(--muted);
  padding: 5px 2px; border-radius: 8px; min-width: 42px;
}
.m-colhead .m-emoji { display: block; font-size: 0.85rem; line-height: 1.2; }

.m-rowhead {
  position: sticky; left: 0; z-index: 2;
  text-align: left; padding: 4px 8px 4px 6px; border-radius: 8px;
  white-space: nowrap; font-size: 0.62rem;
}
.m-rowhead .m-emoji { margin-right: 4px; }
.m-rowcode { color: var(--muted); letter-spacing: 0.06em; }
.m-rowname {
  display: block; font-family: var(--font-sans); font-size: 0.6rem;
  color: var(--faint); margin-left: 18px; font-weight: 400;
}
.m-mine { box-shadow: inset 0 0 0 1px var(--accent2); }
.m-myrow .m-cell { box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.35); }

.m-cell {
  width: 42px; height: 34px; text-align: center; vertical-align: middle;
  font-size: 0.72rem; font-weight: 700; color: #fff; cursor: pointer;
  border-radius: 7px; transition: transform 0.12s, filter 0.15s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.m-cell:hover { transform: scale(1.14); filter: brightness(1.3); position: relative; z-index: 1; }
.m-diag { outline: 1px dashed rgba(255, 255, 255, 0.3); outline-offset: -3px; }
.m-cell.m-sel { transform: scale(1.14); box-shadow: 0 0 0 2px #fff, 0 4px 16px rgba(0, 0, 0, 0.6); position: relative; z-index: 1; }

.m-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 0.7rem; color: var(--muted); }
.m-legend-item { display: flex; align-items: center; gap: 5px; }
.m-legend-item i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.m-legend-item b { font-family: var(--font-en); color: var(--faint); font-weight: 600; }

.m-link { margin-top: 16px; font-size: 0.85rem; }

/* マトリクス詳細パネル */
.mx-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.mx-head img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; }
.mx-x { font-size: 1.1rem; color: var(--accent2); font-weight: 800; }
.mx-pair { font-size: 0.82rem; color: var(--muted); margin-bottom: 2px; }

.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* /t/ タイプ紹介 */
#view-type { max-width: 760px; margin: 0 auto; }
#view-type .center { margin-top: 24px; }

/* レア度表示 */
.rt-rarity { margin-top: 12px; font-size: 0.78rem; color: var(--faint); min-height: 1em; }
.rt-rarity:not(:empty)::before { content: "👥 "; }

/* /stats 統計ページ */
.stats-nums { display: flex; gap: 34px; margin-bottom: 18px; }
.srow {
  display: flex; justify-content: space-between; padding: 6px 2px;
  border-bottom: 1px dashed var(--line); font-size: 0.82rem;
}
.srow-day { font-family: var(--font-en); color: var(--muted); }
.srow-val { color: var(--text); }
.dist-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.dist-code { font-family: var(--font-en); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); min-width: 74px; }
.dist-track { flex: 1; }
.dist-val { font-size: 0.75rem; color: var(--muted); min-width: 86px; text-align: right; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 30px 24px 46px;
  max-width: 1060px; margin: 40px auto 0; color: var(--faint); font-size: 0.76rem;
}
.site-footer p { margin-bottom: 8px; }
.site-footer b { color: var(--muted); }
.foot-copy { margin-top: 16px; font-family: var(--font-en); letter-spacing: 0.1em; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (min-width: 561px) {
  .result-actions { flex-direction: row; }
  .result-actions .btn { flex: 1; }
}

@media (max-width: 900px) {
  .hero-bento { grid-template-columns: repeat(2, 1fr); }
  .t-hero { grid-column: span 2; min-height: 380px; }
  .t-privacy { grid-column: span 2; }
  .axes-bento { grid-template-columns: repeat(2, 1fr); }
  .types-bento { grid-template-columns: repeat(3, 1fr); }
  .get-bento { grid-template-columns: 1fr; }
  .t-get { min-height: 0; }
  .rt-half { grid-column: span 6; }
}

@media (max-width: 900px) {
  .m-rowname { display: none; }
}

@media (max-width: 640px) {
  main { padding: 22px 14px 60px; }
  .tile { padding: 22px 18px; border-radius: 22px; }
  .matrix-wrap { margin: 0 -12px; max-height: 70vh; }
  .matrix { border-spacing: 2px; }
  .m-cell { width: 34px; height: 30px; font-size: 0.65rem; }
  .m-colhead { min-width: 34px; font-size: 0.5rem; }
  .m-colhead .m-emoji { font-size: 0.72rem; }
  .m-rowhead { font-size: 0.55rem; padding: 3px 5px; }
  .mx-head img { width: 50px; height: 50px; }
  .types-bento { grid-template-columns: repeat(2, 1fr); }
  .t-stat { min-height: 104px; }
  .rt-hero { grid-template-columns: 1fr; }
  .rt-hero-img { min-height: 230px; }
  .rt-hero-img::after { background: linear-gradient(180deg, transparent 55%, rgba(13, 9, 22, 0.95) 100%); }
  .rt-hero-body { padding: 24px 20px 28px; }
  .lp-section { margin-top: 40px; }
}
