/* ===========================================================
   中古本の販売予測 — モック用スタイル
   スマホ縦長 1 画面（スクロールなし）を前提
   レイアウト： ヘッダー / 検索結果（上・可変） / 操作ドック（下・固定高）
   =========================================================== */

:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --ink: #1b1f27;
  --muted: #6e7480;
  --line: rgba(27, 31, 39, 0.10);
  --accent: #1d4a44;
  --accent-soft: #e8efed;

  --best: #15603f;  --best-bg: #dceee4;
  --ok:   #1c7a52;  --ok-bg:   #e6f4ec;
  --warn: #a76a00;  --warn-bg: #fdf1de;
  --ng:   #b3261e;  --ng-bg:   #fbe9e7;
  --unk:  #6e7480;  --unk-bg:  #eef0f2;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 31, 39, 0.06), 0 8px 24px rgba(27, 31, 39, 0.06);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

/* スマホ幅を基準に、PC で開いたときは中央に寄せる */
.phone {
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  position: relative;
}

/* ---------- ヘッダー ---------- */
.app-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px 13px;
  border-bottom: 1px solid var(--line);
}
.brand { margin: 0; }
.brand .eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.brand .title {
  display: block;
  font-size: clamp(16px, 4.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.countdown .clock { width: 11px; height: 11px; flex: none; }
.countdown.is-urgent { color: var(--ng); background: var(--ng-bg); }

.icon-btn {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn:active { background: rgba(27, 31, 39, 0.06); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- 検索結果（画面上部・残りすべて） ----------
   flex:1 + min-height:0 で、中身が変わっても下のドックを押し下げない */
.result {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 0;
}
.empty { color: var(--muted); font-size: 13px; line-height: 2; }
.empty .sub { font-size: 11px; opacity: 0.8; }

.verdict {
  width: clamp(88px, 27vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(44px, 13vw, 58px);
  font-weight: 600;
  line-height: 1;
  flex: none;
}
.verdict[data-v="best"] { color: var(--best); background: var(--best-bg); }
.verdict[data-v="ok"]   { color: var(--ok);   background: var(--ok-bg); }
.verdict[data-v="warn"] { color: var(--warn); background: var(--warn-bg); }
.verdict[data-v="ng"]   { color: var(--ng);   background: var(--ng-bg); }
.verdict[data-v="unk"]  { color: var(--unk);  background: var(--unk-bg); }

.verdict-note { margin: 9px 0 0; font-size: 12px; color: var(--muted); }

/* 判定マーク＋仕入上限価格を横並びの主役に */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;   /* 判定＋仕入上限価格を画面の左右中央に */
  gap: 16px;
  width: 100%;
  padding: 0 2px;
}
.hero .verdict { width: clamp(78px, 23vw, 96px); font-size: clamp(38px, 11vw, 48px); }
/* 金額の桁数でマークの位置がずれないよう、幅を固定して左揃え */
.hero .cap { flex: none; width: 150px; text-align: left; }
.hero .cap .k {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero .cap .v {
  font-size: clamp(34px, 10.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 2px;
  color: var(--accent);
}
.hero .cap .v .unit { font-size: 15px; font-weight: 600; margin-left: 2px; }
.hero .cap .v.is-none { color: #b9bec5; }
/* 判定コメント：目立たせすぎない補助テキスト */
.comment {
  margin: 13px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 300px;
}

.metrics { display: flex; gap: 10px; width: 100%; margin-top: 15px; }
.metric {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 8px 12px;
  box-shadow: var(--shadow);
}
.metric .k { font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.metric .v {
  font-size: clamp(21px, 6.2vw, 25px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.metric .v .unit { font-size: 12px; font-weight: 500; margin-left: 1px; }

.book {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-link {
  margin-top: 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  cursor: pointer;
}

/* ---------- 操作ドック（画面下部・高さ固定） ---------- */
.dock {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 20px 0 calc(22px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.field-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 11px 2px;
}
.jan-input {
  width: 100%;
  height: 66px;
  font-size: 24px;
  letter-spacing: 0.16em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.jan-input::placeholder { color: #c3c7cd; letter-spacing: 0.1em; }
.jan-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.btn {
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn:active { opacity: 0.75; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { background: #cbd3d1; cursor: not-allowed; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.btn .icon { width: 17px; height: 17px; flex: none; }

/* ---------- 詳細モーダル（ボトムシート） ---------- */
.modal { position: fixed; inset: 0; z-index: 40; visibility: hidden; }
.modal.is-open { visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 28, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }

.modal-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 430px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(20, 23, 28, 0.22);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal.is-open .modal-sheet { transform: translate(-50%, 0); }

.modal-grip {
  width: 38px; height: 4px;
  border-radius: 2px;
  background: rgba(27, 31, 39, 0.18);
  margin: 9px auto 0;
  flex: none;
}
.modal-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head .t { flex: 1; min-width: 0; }
.modal-head .eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 3px;
}
.modal-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.modal-close {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(27, 31, 39, 0.06);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px calc(24px + env(safe-area-inset-bottom));
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 20px 0 10px;
}
.sec-title::before {
  content: "";
  width: 3px; height: 12px;
  border-radius: 2px;
  background: var(--accent);
}

/* 属性：書影 ＋ JAN / ASIN */
.attr { display: flex; gap: 13px; align-items: flex-start; }
.cover {
  flex: none;
  width: 78px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--unk-bg);
  border: 1px solid var(--line);
}
.kv { margin: 0; flex: 1; min-width: 0; }
.kv > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.kv > div:first-child { padding-top: 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 価格・出品者数テーブル */
.table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th, .table td {
  padding: 9px 12px;
  font-size: 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #fbfaf9;
}
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { text-align: left; font-weight: 500; color: var(--muted); }
.table td { font-variant-numeric: tabular-nums; font-weight: 600; }
.table td .unit { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.table td.is-none { color: #b9bec5; font-weight: 500; }

/* 推定販売数 */
.sales { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.sales .cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 4px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
.sales .cell .k { font-size: 9.5px; color: var(--muted); letter-spacing: 0.04em; }
.sales .cell .v {
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.sales .cell .v .unit { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 1px; }

/* 検定結果 */
.test {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.test .krow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.test .krow:first-child { padding-top: 0; }
.test .krow:last-of-type { border-bottom: 0; }
.test .k { font-size: 11.5px; color: var(--muted); flex: none; }
.test .v {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.test .v.is-none { color: #b9bec5; font-weight: 500; }
.test .khint {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.pill {
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.pill[data-level="high"] { color: var(--ok);   background: var(--ok-bg); }
.pill[data-level="mid"]  { color: var(--warn); background: var(--warn-bg); }
.pill[data-level="low"]  { color: var(--ng);   background: var(--ng-bg); }
.pill[data-level="none"] { color: var(--unk);  background: var(--unk-bg); }
.test .detail {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 時系列グラフ（ランキング / 価格） ----------
   配色は dataviz スキルの検証済みカテゴリカル配色 slot1 / slot2。
   ランキングと価格はスケールが違うため、1枚に重ねず 2 つのグラフに分ける。 */
.viz {
  --series-rank:  #2a78d6;  /* blue  : ランキング */
  --series-price: #eb6834;  /* orange: 価格 */
  --series-cycle: #1baf7a;  /* aqua  : 回転日数 */
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: rgba(27, 31, 39, 0.05);
  border-radius: 11px;
  padding: 3px;
  margin: 10px 0 12px;
}
.segmented button {
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(27, 31, 39, 0.12);
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 14px 11px;
  margin-bottom: 10px;
  position: relative;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.chart-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.chart-title .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.chart-title .hint { font-size: 9.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.trend .arrow { font-size: 13px; line-height: 1; }

.spark { display: block; width: 100%; height: auto; margin-top: 4px; touch-action: none; }
.spark .line { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--g); stroke: none; }
.spark .line.is-raw { stroke-width: 1.6; }
/* 「売れた」と判断した時点。系列の色ではなく注記の色にして、データと区別する */
.spark .sale-mk { fill: var(--ink); stroke: var(--surface); stroke-width: 1.6; }
.spark .end-dot { fill: var(--c); stroke: var(--surface); stroke-width: 2.5; }
.spark .base { stroke: rgba(27, 31, 39, 0.10); stroke-width: 1; }
.spark .cross { stroke: rgba(27, 31, 39, 0.28); stroke-width: 1; stroke-dasharray: 3 3; }
.spark .cross-dot { fill: var(--surface); stroke: var(--c); stroke-width: 2.5; }

.chart-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.chart-foot .v { font-weight: 600; color: var(--ink); }

.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 10px 4px;
  font-size: 10px;
  color: var(--muted);
}
.legend .mk {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--surface);
  flex: none;
}

.viz-note {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
}

.tip {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  border-radius: 8px;
  padding: 5px 9px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.tip.is-on { opacity: 1; }
.tip .s { color: #ffd9c7; }

/* ---------- 待ち表示 ---------- */
.spinner {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(27, 31, 39, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 検索結果エリア（未登録 JAN の問い合わせ中） */
.searching { display: flex; flex-direction: column; align-items: center; gap: 0; }
.searching .spinner { margin-bottom: 16px; }
.searching .t { margin: 0; font-size: 14px; font-weight: 600; }
.searching .s { margin: 8px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.searching .j {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

/* 詳細モーダルのグラフ領域 */
.viz-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.viz-loading .t { margin: 14px 0 0; font-size: 12.5px; font-weight: 600; }
.viz-loading .s { margin: 6px 0 0; font-size: 11px; color: var(--muted); }

/* その場で取得した商品の目印 */
.tag-new {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 5px;
  margin-right: 6px;
  vertical-align: 1px;
}

/* ---------- 設定モーダル ---------- */
.formula {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px 14px;
}
.formula .line1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.formula .num {
  width: 84px;
  height: 52px;
  text-align: center;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.formula .num:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.formula .eq {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}
.formula .eq strong { color: var(--accent); font-size: 15px; }

.breakdown { margin: 14px 0 0; padding: 0; list-style: none; }
.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.breakdown li:last-child { border-bottom: 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }
.link-reset {
  display: block;
  margin: 13px auto 0;
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- バーコードスキャナ ---------- */
.scanner {
  position: fixed;
  inset: 0;
  background: #0d0f12;
  z-index: 50;
  display: none;
  flex-direction: column;
}
.scanner.is-open { display: flex; }
.scanner video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.scanner-frame {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(74vw, 300px);
  aspect-ratio: 5 / 3;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55);
}
.scanner-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: 116px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  padding: 0 24px;
  line-height: 1.7;
}
.scanner-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  justify-content: center;
}
.scanner-bar .btn { flex: 1; max-width: 190px; height: 48px; font-size: 15px; }
.btn-dark { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* ---------- 静的ページ（LP / 完了 / 開始 / 期限切れ） ---------- */
.page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 28px;
}
.page .eyebrow-c {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: center;
}
.page h1 {
  font-size: clamp(22px, 6.6vw, 27px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-align: center;
  margin: 12px 0 0;
}
.page .lead {
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}
.page .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-top: 26px;
}
.page .card .form-label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.page input[type="email"] {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.page input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.page .card .btn { width: 100%; margin-top: 12px; }
.page .note { font-size: 11px; line-height: 1.85; color: var(--muted); margin-top: 14px; text-align: center; }
.page .note a { color: var(--accent); }

.badge-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-icon.is-expired { background: var(--ng-bg); color: var(--ng); }
.badge-icon svg { width: 28px; height: 28px; }

.steps { margin: 22px 0 0; padding: 0; list-style: none; }
.steps li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps .n {
  flex: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.page-footer {
  padding: 0 0 18px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #a8adb5;
}

/* モック操作用の目印（本番では削除） */
.mock-tag {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 60;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(27, 31, 39, 0.45);
  border-radius: 999px;
  padding: 3px 8px;
  pointer-events: none;
}
