/* 最強1Day リアルタイム視聴特典 共通スタイル
   パールホワイト × シャンパンゴールド × ロイヤル深紅 × ディープネイビー */
:root {
  --pearl: #faf8f4;
  --white: #ffffff;
  --gold: #c8a04b;
  --gold-light: #dfc178;
  --gold-deep: #b5892e;
  --gold-ink: #8a6a22;
  --gold-grad: linear-gradient(135deg, #dfc178 0%, #c8a04b 50%, #b5892e 100%);
  --gold-soft: #f6efdf;
  --crimson: #9e1b32;
  --crimson-deep: #7d1428;
  --crimson-soft: #fbf1f2;
  --navy: #14213d;
  --slate: #334155;
  --muted: #5b6474;
  --line: rgba(200, 160, 75, 0.42);
  --line-soft: rgba(20, 33, 61, 0.09);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(20, 33, 61, 0.08), 0 2px 6px rgba(20, 33, 61, 0.05);
  --shadow-lift: 0 16px 36px rgba(158, 27, 50, 0.22);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--pearl);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(223, 193, 120, 0.22), rgba(250, 248, 244, 0) 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(223, 193, 120, 0.12), rgba(250, 248, 244, 0) 70%);
  background-repeat: no-repeat;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--crimson);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.nb {
  display: inline-block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- レイアウト ---------- */
.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 40px;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-ink);
  letter-spacing: 0.08em;
}

.stack > * + * {
  margin-top: 20px;
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: 22px 0 8px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(26px, 7.4vw, 34px);
  line-height: 1.5;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(223, 193, 120, 0.45) 62%);
}

.hero__kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero__lead {
  margin: 16px auto 0;
  max-width: 30em;
  color: var(--slate);
  font-size: 16px;
}

.date-badge {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 14px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- カード ---------- */
.card {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card--gold {
  border: 0;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--gold-grad) border-box;
  border: 2px solid transparent;
}

.card--pearl {
  background: #fdfbf6;
  box-shadow: none;
}

.card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card__label .num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}

.card__title {
  font-size: 22px;
}

.card__text {
  margin-top: 10px;
  font-size: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 16px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 160, 75, 0));
}

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--primary {
  min-height: 64px;
  background: linear-gradient(180deg, #b32540 0%, var(--crimson) 55%, var(--crimson-deep) 100%);
  color: var(--white);
  font-size: 18px;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(223, 193, 120, 0.55);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(223, 193, 120, 0.45);
  border-radius: 10px;
  pointer-events: none;
}

.btn--gold {
  background: var(--gold-grad);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(181, 137, 46, 0.28);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.22);
}

.btn--ghost {
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
}

.btn--text {
  min-height: 48px;
  padding: 8px 12px;
  background: transparent;
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn .arrow {
  font-family: var(--serif);
}

.btn__sub {
  display: block;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.note--center {
  text-align: center;
}

/* ---------- LINE ガイド ---------- */
.line-guide {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f6f9;
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.7;
}

.line-guide::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
}

.is-line .line-guide {
  background: #fff7e6;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 500;
}

/* ---------- ハブ：特典カード ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.flow li span {
  display: block;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.gift {
  overflow: hidden;
  padding: 0;
}

.gift__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #fbf6ea, var(--white));
  border-bottom: 1px solid var(--line);
}

.gift__no {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--white);
  font-family: var(--serif);
  line-height: 1.1;
  text-align: center;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.gift__no small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.gift__no b {
  font-size: 22px;
}

.gift__title {
  font-size: 20px;
  line-height: 1.5;
}

.gift__tag {
  display: block;
  margin-bottom: 2px;
  color: var(--crimson);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.gift__body {
  padding: 16px 20px 22px;
}

.check-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 16px;
  line-height: 1.7;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 4px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--gold-deep);
  border-bottom: 2.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}

.book {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.book__cover {
  display: grid;
  place-items: center;
  flex: none;
  width: 86px;
  height: 120px;
  padding: 10px 8px;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0) 8px),
    linear-gradient(160deg, #fffdf8, #f3ead6);
  border: 1px solid var(--line);
  box-shadow: 4px 6px 14px rgba(20, 33, 61, 0.16);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.book__cover::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin: 6px auto 0;
  background: var(--gold);
}

/* ---------- 診断：スクリーン ---------- */
.screen[hidden] {
  display: none !important;
}

.screen {
  animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.know-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.know-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.55;
}

.know-list .num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--white);
  font-family: var(--serif);
  font-size: 17px;
}

.know-list small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 500;
}

/* 進捗 */
.progress {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -16px;
  padding: 12px 16px 12px;
  background: rgba(250, 248, 244, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.progress__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress__count {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.progress__count small {
  color: var(--muted);
  font-size: 15px;
}

.progress__cat {
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.progress__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece5d6;
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gold-grad);
  transition: width 0.4s ease;
}

.q-text {
  margin: 18px 0 18px;
  font-size: clamp(20px, 5.6vw, 23px);
  line-height: 1.65;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 33, 61, 0.05);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
  touch-action: manipulation;
}

.option__key {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.15s ease;
}

@media (hover: hover) {
  .option:hover {
    border-color: var(--gold-deep);
    background: #fffcf4;
  }
}

.option:active {
  transform: scale(0.985);
}

.option.is-selected {
  border-color: var(--crimson);
  background: var(--crimson-soft);
}

.option.is-selected .option__key {
  border-color: var(--crimson);
  background: var(--crimson);
  color: var(--white);
}

.q-nav {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* 解析中 */
.analyzing {
  display: grid;
  place-items: center;
  min-height: 70vh;
  min-height: 70dvh;
  text-align: center;
}

.analyzing__ring {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
}

.analyzing__ring::before,
.analyzing__ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.analyzing__ring::before {
  border: 3px solid #eee4cf;
}

.analyzing__ring::after {
  border: 3px solid transparent;
  border-top-color: var(--gold-deep);
  border-right-color: var(--gold-light);
  animation: spin 0.9s linear infinite;
}

.analyzing__ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.analyzing__text {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.analyzing__bar {
  width: 220px;
  height: 6px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #ece5d6;
}

.analyzing__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-grad);
  animation: fill 1.2s ease-out forwards;
}

@keyframes fill {
  to {
    width: 100%;
  }
}

/* ---------- 結果 ---------- */
.result-head {
  padding: 18px 0 4px;
  text-align: center;
}

.route-card {
  text-align: center;
  padding-top: 30px;
}

.route-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  box-shadow: 0 6px 14px rgba(181, 137, 46, 0.3);
}

.route-title {
  margin: 14px 0 10px;
  font-size: clamp(25px, 7vw, 31px);
}

.route-catch {
  margin: 0 0 16px;
  color: var(--crimson);
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.7;
}

.route-summary {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 16px;
  text-align: left;
}

/* ゲージ */
.gauge {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 4px auto 14px;
}

.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge__track {
  fill: none;
  stroke: #efe7d6;
  stroke-width: 14;
}

.gauge__value {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.gauge__num {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.gauge__num small {
  font-size: 22px;
}

.gauge__cap {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.rank {
  text-align: center;
}

.rank__name {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.rank__headline {
  margin: 12px 0 8px;
  font-size: 19px;
}

.rank__comment {
  margin: 0;
  font-size: 15.5px;
  text-align: left;
}

/* 3軸 */
.axes {
  display: grid;
  gap: 18px;
}

.axis__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.axis__name {
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 700;
}

.axis__name small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.axis__pct {
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
}

.axis__pct small {
  font-size: 14px;
}

.axis__bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe7d6;
}

.axis__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gold-grad);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 警告カード */
.warn {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--crimson);
  box-shadow: 0 14px 30px rgba(158, 27, 50, 0.14);
}

.warn__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--crimson);
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.warn__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--crimson);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
}

.warn__body {
  padding: 18px 18px 20px;
}

.warn__rank {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--crimson);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.warn__title {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.55;
}

.escape {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold-deep);
}

.escape b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-ink);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.escape p {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

/* 引用カード */
.quote {
  padding: 30px 22px 22px;
  background:
    linear-gradient(180deg, #fffdf8, #fbf5e7);
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 14px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 84px;
  line-height: 1;
}

.quote blockquote {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 2;
}

.quote figcaption {
  margin-top: 14px;
  color: var(--gold-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* ステップ */
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 60px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.75;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.steps li small {
  display: block;
  color: var(--gold-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* キラー連携 */
.handoff {
  padding: 24px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, #1f2f55 100%);
  color: #e8ecf5;
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.25);
}

.handoff__label {
  margin: 0 0 6px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.handoff__title {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 21px;
  text-align: center;
}

.btn--handoff {
  padding: 14px 12px;
  font-size: 16.5px;
  line-height: 1.6;
}

.handoff .note {
  color: #c9d1e2;
  text-align: center;
}

/* e-book 章ガイド */
.chapter {
  margin: 14px 0 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fdfbf6;
  border: 1px solid var(--line);
}

.chapter__title {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.chapter__pages {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 14px;
  font-weight: 700;
}

.chapter p {
  margin: 0;
  font-size: 15.5px;
}

.chapter .chapter__title {
  margin-bottom: 8px;
  font-size: 17px;
}

.disclaimer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------- AI ページ ---------- */
.import {
  padding: 16px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf0, #fdf4df);
}

.import__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.import__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.import__title {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
}

.import dl {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  gap: 6px 8px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.import dt {
  color: var(--gold-ink);
  font-weight: 700;
  white-space: nowrap;
}

.import dd {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.field label .num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 13px;
}

.input,
.textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d9cfb8;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px; /* iOS のズーム防止 */
  line-height: 1.7;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #8f96a3;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(223, 193, 120, 0.3);
}

.textarea--input {
  min-height: 104px;
  resize: vertical;
}

.textarea--tpl {
  min-height: 300px;
  resize: vertical;
  background: #fffdf8;
  font-size: 16px;
}

.tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 8px;
}

.tpl-head b {
  color: var(--navy);
  font-size: 15.5px;
}

.tpl-sync {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f6f9;
  font-size: 13.5px;
}

.tpl-sync[hidden] {
  display: none;
}

.tpl-sync button {
  min-height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--crimson);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.method {
  padding: 22px 18px;
}

.method__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.method__no {
  flex: none;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.method__title {
  font-size: 19px;
  line-height: 1.5;
}

.method__rec {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 3px;
}

.method--best {
  border: 2px solid var(--gold);
}

.btn--chatgpt {
  background: #08785e;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(16, 163, 127, 0.25);
}

.btn--gemini {
  background: linear-gradient(135deg, #3b6fe0, #7b5cd6);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(75, 100, 220, 0.25);
}

@media (max-width: 359px) {
  .btn--chatgpt, .btn--gemini {
    padding-inline: 10px;
    letter-spacing: normal;
  }
  .btn--chatgpt .arrow, .btn--gemini .arrow {
    display: none;
  }
}

.how {
  margin: 12px 0 0;
  padding: 0 0 0 1.4em;
  font-size: 15px;
  line-height: 1.8;
}

.how li + li {
  margin-top: 2px;
}

details.peek {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfc;
}

details.peek summary {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

details.peek summary::-webkit-details-marker {
  display: none;
}

details.peek summary::after {
  content: "＋";
  float: right;
  color: var(--gold-ink);
}

details.peek[open] summary::after {
  content: "－";
}

details.peek > .note,
details.peek > .line-guide {
  margin: 0 14px 12px;
}

details.peek pre {
  max-height: 320px;
  margin: 0;
  padding: 0 14px 14px;
  overflow: auto;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}

/* タブ（見本） */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 14px;
  background: #efe8da;
}

.tab {
  min-height: 52px;
  padding: 6px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
}

.tab[aria-selected="true"] {
  background: var(--white);
  color: var(--crimson);
  box-shadow: 0 3px 10px rgba(20, 33, 61, 0.1);
}

.tab small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.ba {
  display: grid;
  gap: 0;
}

.ba__before,
.ba__after {
  padding: 18px 18px;
  border-radius: 16px;
}

.ba__before {
  border: 1px dashed #b9c0cc;
  background: #f6f7f9;
}

.ba__after {
  border: 2px solid var(--gold);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ba__label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ba__before .ba__label {
  background: #e3e7ee;
  color: var(--slate);
}

.ba__after .ba__label {
  background: var(--gold-grad);
  color: var(--white);
}

.ba__before p {
  margin: 0;
  font-size: 15px;
  white-space: pre-line;
}

.ba__arrow {
  display: grid;
  place-items: center;
  height: 44px;
  color: var(--gold-deep);
  font-size: 22px;
}

.ba__sec + .ba__sec {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.ba__sec h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 700;
}

.ba__sec p,
.ba__sec li {
  font-size: 15px;
  line-height: 1.8;
}

.ba__sec p {
  margin: 0;
}

.ba__sec ul,
.ba__sec ol {
  margin: 0;
  padding-left: 1.3em;
}

.ba__ng {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(158, 27, 50, 0.6);
}

.ba__strong {
  color: var(--crimson);
  font-weight: 700;
}

/* ---------- トースト・モーダル ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 30px rgba(20, 33, 61, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast::before {
  content: "✓ ";
  color: var(--gold-light);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 33, 61, 0.55);
}

.modal__panel {
  max-height: 100%;
  overflow-y: auto;
  width: 100%;
  max-width: 520px;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--white);
}

.modal__title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.modal__text {
  font-size: 15px;
}

.modal__area {
  display: block;
  width: 100%;
  height: 40vh;
  height: 40dvh;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
}

/* ---------- フッター ---------- */
.footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin-bottom: 10px;
}

.footer__nav button {
  border: 0;
  background: none;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer__nav a,
.footer__nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 600px) {
  .wrap {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .card {
    padding: 28px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .analyzing__bar i {
    width: 100%;
  }
}
