/* 診断ツールらしい、やわらかい設計
   16Personalities のような「白いカード・丸いボタン・淡い背景・特性バー」に、
   MEDISIAの配色（パステルの面）を合わせている */

:root {
  --bg: #f6f7fa;
  --card: #ffffff;
  --ink: #2c3138;
  --muted: #6d7780;
  --line: #e7eaf0;
  --shadow: 0 2px 14px rgba(36, 47, 66, 0.07);
  --shadow-lift: 0 8px 26px rgba(36, 47, 66, 0.13);
  --tint: #eef1f7;
  --accent: #6b74c9;
  --ui: 'Hiragino Sans', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --latin: 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15.5px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  /* 日本語を文節で折り返す（対応ブラウザのみ。非対応でも見た目は変わらない） */
  word-break: auto-phrase;
}

img { max-width: 100%; }

/* 改行の整え方
   段落は最後の行に1〜2文字だけ落ちないように、見出しや一文は行の長さをそろえる */
p, li, blockquote { text-wrap: pretty; }
h1, h2, h3, .type-name, .type-catch, .cell-name, .cell-catch, .verdict, .modal-title,
.q-title, .si-title, .gear-name, .option { text-wrap: balance; }
/* 2〜4行ほどの短い文も、行の長さをそろえる（「…入りに／くい」のような終わり方を防ぐ） */
.lead, .result-line, .guide-lead, .guide-points li, .reasons li, .key-lead, .modal-lead,
.guide-fit, .modal-fit, .notes li, .advice, .ex-note,
.gear-why, .type-body, .gear .fine { text-wrap: balance; }

/* ── ヘッダー ───────────────────────── */
.site-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wordmark .dots { display: inline-flex; gap: 3px; }
.wordmark .dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  display: block;
}
.site-header .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ── 進み具合 ──────────────────────── */
.progress {
  height: 5px;
  background: var(--line);
  position: sticky;
  top: 58px;
  z-index: 19;
}
.progress > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7f88d6, #58b39c);
  transition: width 0.35s ease;
}

/* ── 共通 ─────────────────────────── */
.wrap { max-width: 640px; margin: 0 auto; padding: 0 18px; }
.wrap.wide { max-width: 780px; }
.screen { display: none; }
.screen[data-active] { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

section.step { padding-block: 34px 60px; }

.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin: 0 0 18px;
}

.chip {
  display: inline-block;
  background: #efeafa;
  color: #6b5aa8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 99px;
  padding: 5px 15px;
  margin: 0 0 16px;
}

h1.display {
  font-size: clamp(25px, 6.6vw, 34px);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 16px;
  letter-spacing: 0.005em;
}
h2.head {
  font-size: clamp(19px, 5vw, 25px);
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
h3::before {
  content: '';
  width: 5px;
  height: 17px;
  border-radius: 99px;
  background: var(--accent);
}

.lead { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.lead strong { color: var(--ink); }
.fine { font-size: 12px; line-height: 1.85; color: var(--muted); }
.center { text-align: center; }
/* 文節の途中で改行させない */
.nb { display: inline-block; max-width: 100%; }

/* ── ヒーロー ──────────────────────── */
.hero { padding: 40px 18px 8px; text-align: center; }
.hero .badge {
  width: 108px;
  height: 108px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: linear-gradient(140deg, #f7e6dc, #e2f0ec 45%, #e6e6f7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero .badge svg { width: 58px; height: 58px; }
.hero h1 {
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 12px;
}
.hero .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }

.steps3 { display: grid; gap: 12px; margin: 26px 0 24px; }
.step-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  border-top: 4px solid var(--c, #7f88d6);
}
.step-card .chip { margin-bottom: 10px; }
.step-card b { display: block; font-size: 16px; margin-bottom: 4px; white-space: nowrap; }
.step-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.85; white-space: nowrap; }

/* ── ボタン ────────────────────────── */
button, .as-link { font-family: inherit; cursor: pointer; }

.primary {
  display: block;
  width: 100%;
  border: none;
  border-radius: 99px;
  background: linear-gradient(120deg, #6f78ce, #5aab97);
  color: #fff;
  padding: 17px 28px;
  font-size: 15.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(93, 112, 190, 0.32);
  margin: 0 0 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(93, 112, 190, 0.38); }
.primary:disabled {
  background: #d6dae3;
  box-shadow: none;
  color: #fff;
  cursor: default;
  transform: none;
}

.ghost {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--muted);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  margin: 0 0 12px;
}
.ghost:hover { border-color: #c9d0dc; color: var(--ink); }

.back-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
  width: auto;
  text-decoration: underline;
}

/* ── 説明リスト ────────────────────── */
.notes { list-style: none; padding: 0; margin: 0 0 22px; }
.notes li {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 15px 18px 15px 46px;
  margin: 0 0 10px;
  position: relative;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}
.notes li::before {
  content: '✓';
  position: absolute;
  left: 17px;
  top: 15px;
  color: #58b39c;
  font-weight: 700;
}
.notes strong { color: var(--ink); }

/* ── メーターなど ─────────────────── */
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 22px 0; }
.meter-bar { height: 100%; width: 0%; background: #7f88d6; border-radius: 99px; transition: width 0.12s linear; }
.meter-bar.live { background: #58b39c; }

.result-line {
  font-size: 13.5px;
  color: var(--muted);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 15px 18px;
  margin: 0 0 18px;
  border-left: 4px solid #7f88d6;
}
.result-line.ok { border-left-color: #58b39c; }
.result-line.warn { border-left-color: #e0a04b; background: #fdf7ee; color: #8a6428; }

/* ── 読み上げ文 ────────────────────── */
.script-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.script-label { margin: 0; font-size: 13.5px; font-weight: 700; color: #3e7d6c; }
.script-switch {
  background: #fff;
  border: 1.5px solid #b9dcd2;
  color: #2f6f5f;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}
.script-switch:hover { border-color: #3e9c86; }
.script.work { line-height: 2.5; }
.script ruby rt { font-size: 0.5em; color: #5d8a7f; font-weight: 500; letter-spacing: 0; }
.script-credit { margin: -4px 0 4px; }
.script-credit a { color: var(--muted); }

.script-list { display: grid; gap: 10px; }
.script-item {
  display: block;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.script-item:hover { border-color: #b9dcd2; }
.script-item.on { border-color: #3e9c86; background: #f1f8f6; }
.si-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.si-mark {
  flex: none;
  font-size: 10.5px;
  color: #fff;
  background: #3e9c86;
  border-radius: 99px;
  padding: 2px 9px;
}
.si-author { display: block; font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.si-preview { display: block; font-size: 12.5px; color: #4b555c; line-height: 1.7; }

.script {
  margin: 0 0 12px;
  padding: 24px 22px;
  background: #eaf4f1;
  border-radius: 16px;
  font-size: 16.5px;
  line-height: 2.1;
  font-weight: 500;
  color: #26423b;
}

.rec-area { margin: 24px 0 10px; text-align: center; }
.record {
  width: 100%;
  border: none;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 17px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}
.record .dot { width: 12px; height: 12px; border-radius: 99px; background: #d2687a; }
.record.on { background: #d2687a; color: #fff; box-shadow: 0 6px 18px rgba(210, 104, 122, 0.35); }
.record.on .dot { background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.timer {
  font-family: var(--latin);
  font-size: 34px;
  font-weight: 700;
  margin: 16px 0 0;
  font-variant-numeric: tabular-nums;
}
.timer span { font-size: 15px; color: var(--muted); }

audio { width: 100%; margin: 0 0 18px; }

/* ── 質問（1問ずつ） ──────────────── */
.q-count { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.q-title { font-size: clamp(19px, 5vw, 23px); font-weight: 800; line-height: 1.6; margin: 0 0 22px; }
.options { display: grid; gap: 10px; }
.option {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s, transform 0.12s;
  box-shadow: var(--shadow);
}
.option:hover { border-color: #a9b1e0; transform: translateX(3px); }
.option.on { border-color: #6f78ce; background: #f2f3fc; font-weight: 700; }

/* ── 結果 ─────────────────────────── */
.type-hero {
  background: linear-gradient(160deg, var(--tint), #ffffff 88%);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 32px 24px 28px;
  margin: 0 0 16px;
  text-align: center;
}
/* タイプのイラスト（Xのカード画像と同じ絵） */
.type-art {
  width: min(100%, 360px);
  aspect-ratio: 520 / 460;
  margin: 0 auto 20px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.type-art svg, .modal-art svg { width: 100%; height: 100%; display: block; }
.modal-art {
  width: 100%;
  aspect-ratio: 520 / 300;
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
}
.type-hero .group-name { font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 8px; letter-spacing: 0.06em; }
.type-hero .type-name { font-size: clamp(27px, 7.5vw, 38px); font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.type-hero .code-pill {
  display: inline-block;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  padding: 5px 16px 5px 18px;
  margin: 0 0 14px;
}
.type-hero .type-catch { margin: 0; color: #4b555c; font-size: 15px; }

/* 特性バー */
.traits { margin: 0 0 20px; }
.trait { margin: 0 0 18px; }
.trait:last-child { margin-bottom: 0; }
.trait-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 7px;
}
.trait-top .name { font-weight: 700; color: var(--ink); }
.trait-top .value { color: var(--c); font-weight: 700; }
.trait-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.trait-bar > div { height: 100%; border-radius: 99px; background: var(--c); transition: width 0.7s ease; }
.trait-poles { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.trait-poles b { color: var(--ink); }

.type-body { margin: 0 0 18px; font-size: 15px; color: #3f474e; }

.block > p { margin: 0; color: #4b555c; font-size: 14.5px; }

.tags span {
  display: inline-block;
  background: var(--tint);
  border-radius: 99px;
  padding: 7px 16px;
  margin: 0 6px 8px 0;
  font-size: 13.5px;
  font-weight: 600;
}

/* マイク */
.verdict {
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 800;
  margin: 0 0 14px !important;
  color: var(--ink) !important;
}
.verdict-sub {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted) !important;
  margin: -8px 0 14px !important;
}

.gear-price { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }

.reasons { padding-left: 0; list-style: none; margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.reasons li { padding-left: 20px; position: relative; margin-bottom: 7px; line-height: 1.8; }
.reasons li::before { content: '•'; position: absolute; left: 6px; color: #a9b1e0; }

.mic-guide { display: grid; gap: 10px; margin: 0 0 20px; }
.guide-card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: #fff;
}
.guide-card.on { border-color: var(--accent); background: var(--tint); }
.guide-title { font-size: 15.5px; font-weight: 800; margin: 0 0 8px !important; color: var(--ink) !important; }
.guide-mark {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  padding: 3px 10px;
  margin-left: 9px;
  vertical-align: 2px;
}
.guide-lead { font-size: 13.5px; margin: 0 0 10px !important; color: #4b555c !important; }
.guide-points { list-style: none; padding: 0; margin: 0 0 10px; }
.guide-points li {
  font-size: 12.5px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.75;
  margin-bottom: 3px;
}
.guide-points li::before { content: '・'; position: absolute; left: 0; }
.guide-fit { font-size: 12.5px; color: var(--ink) !important; margin: 0 0 12px !important; font-weight: 600; }
.guide-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 9px 18px;
  text-decoration: none;
}
.guide-link:hover { border-color: var(--accent); color: var(--accent); }

/* 説明のポップアップ */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(24, 30, 42, 0.5);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fade 0.2s ease;
}
.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px 22px 22px;
  position: relative;
  box-shadow: 0 20px 50px rgba(20, 26, 38, 0.3);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  padding: 4px 8px;
}
.modal-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.modal-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 4px; letter-spacing: 0.04em; }
.modal-code {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  padding: 3px 12px;
  margin-left: 10px;
  vertical-align: 3px;
}
.modal-mine {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 99px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: 3px;
}
.modal-tags { margin: 0 0 16px; }
.modal .primary { margin-top: 8px; }
.modal-lead { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.modal-h {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px;
  padding-left: 11px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}
.modal-p { font-size: 13.5px; color: #4b555c; margin: 0 0 20px; line-height: 1.95; }
.modal-fit {
  font-size: 13px;
  font-weight: 700;
  background: var(--tint);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 18px;
}

/* 機材は最初に1枚だけ見せ、残りは「他の機材もチェックする」で開く */
.gear:not(.show-more) .more-only { display: none; }
.more-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  background: #fff;
  border: 1.5px dashed #c3c9e2;
  border-radius: 14px;
  padding: 13px 14px;
  margin: 0 0 12px;
  color: #4a53a8;
}
.more-toggle:hover { border-color: #6f78ce; }
.mt-label { font-size: 14px; font-weight: 800; }
.mt-label::after { content: ' ▾'; }
.more-toggle[aria-expanded="true"] .mt-label::after { content: ' ▴'; }
.mt-sub { font-size: 11.5px; color: var(--muted); }

.gear-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 12px;
}
.gear-card.pick { border-color: #6f78ce; box-shadow: 0 4px 16px rgba(111, 120, 206, 0.18); }
.band { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.band .pick-mark {
  background: #6f78ce;
  color: #fff;
  border-radius: 99px;
  padding: 3px 11px;
  margin-left: 8px;
  font-size: 11px;
}
.gear-name { font-size: 17px; font-weight: 800; margin: 0 0 6px; line-height: 1.5; }
.gear-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 2px; }
.gear-why { font-size: 13.5px; margin: 0 0 14px; color: #4b555c; }
.store-box {
  background: #f8f9fc;
  border-radius: 14px;
  padding: 14px 16px 16px;
}
.store-label { font-size: 11.5px; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.store-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.store-link {
  display: block;
  white-space: nowrap;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 10px 6px;
  text-decoration: none;
}
.store-link:hover { border-color: #a9b1e0; color: #4a53a8; }

.gear-extra {
  display: grid;
  justify-items: start;
  gap: 3px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.ex-label {
  display: inline-block;
  background: #eef0f6;
  color: #55607a;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  margin-bottom: 2px;
}
.ex-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.ex-item { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.extra-link {
  margin-left: 8px;
  color: #4a53a8;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #c6cbe6;
}

/* コードの読み方 */
.code-key { margin: 0 0 18px; }
.code-key .key-lead { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.key-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.key-row .key-axis { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.key-side { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.key-side .letter {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--c);
  border-radius: 9px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.key-side .letter.off { background: #fff; color: var(--c); border: 1.5px solid var(--c); }
.key-side b { font-weight: 700; white-space: nowrap; }
.key-side small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.4; font-family: var(--latin); }

/* 16タイプ一覧 */
.all-types { margin: 34px 0 26px; }
.group-block { margin: 0 0 22px; }
.group-label { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 14.5px; font-weight: 800; }
.group-label i { width: 10px; height: 10px; border-radius: 99px; background: var(--c); display: block; }
.group-label span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.type-cell {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 15px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  border-top: 3px solid var(--c);
}
.type-cell:hover { box-shadow: var(--shadow-lift); }
.type-cell .cell-code { font-family: var(--latin); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); display: block; }
.type-cell .cell-name { font-size: 13.5px; font-weight: 800; display: block; margin: 2px 0 4px; line-height: 1.4; }
.type-cell .cell-catch { font-size: 11.5px; color: var(--muted); display: block; line-height: 1.65; }
.type-cell.mine { background: var(--c); }
.type-cell.mine .cell-name, .type-cell.mine .cell-code, .type-cell.mine .cell-catch { color: #fff; }
.type-cell.mine .cell-code { opacity: 0.85; }

.share { margin-top: 32px; }
.share .primary { background: linear-gradient(120deg, #2c3138, #4a525c); box-shadow: 0 6px 18px rgba(44, 49, 56, 0.28); }

.debug {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  font-size: 11px;
  color: var(--muted);
  overflow-x: auto;
  margin-top: 22px;
}

/* ── フッター ──────────────────────── */
footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 18px 28px; }
footer .inner { max-width: 640px; margin: 0 auto; text-align: center; }
footer .wordmark { justify-content: center; margin-bottom: 12px; font-size: 16px; }
footer p { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
footer p a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
footer p a:hover { border-color: var(--ink); }
footer .fine { margin-top: 16px; font-size: 11px; color: #9aa2ab; letter-spacing: 0; }

@media (min-width: 520px) {
  .store-row { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 760px) {
  .steps3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 700px) {
  .mic-guide { grid-template-columns: 1fr 1fr; }
  .primary, .ghost { max-width: 420px; margin-left: auto; margin-right: auto; }
}
