/* スマホ依存度診断 共通スタイル */

:root {
  font-synthesis-weight: none;
  --ink: #14161f;
  --ink-2: #1e2130;
  --ink-3: #292d40;
  --paper: #f4efe6;
  --paper-2: #d9d4ca;
  --muted: #a8a69e;
  --amber: #e8a640;
  --amber-2: #f2c67a;
  --line: rgba(244, 239, 230, .14);
  --line-strong: rgba(244, 239, 230, .38);
  --ok: #8fbfa3;
  --error: #eb9580;

  --ink-0: rgba(20, 22, 31, 0);
  --ink-veil: rgba(20, 22, 31, .72);
  --amber-soft: rgba(232, 166, 64, .1);
  --amber-edge: rgba(232, 166, 64, .6);
  --glow-1: rgba(242, 198, 122, .42);
  --glow-2: rgba(232, 166, 64, .2);
  --glow-3: rgba(232, 166, 64, .07);
  --amber-0: rgba(232, 166, 64, 0);
  --amber-2-0: rgba(242, 198, 122, 0);
  --amber-glow: rgba(232, 166, 64, .5);

  /* 5段階の「そう思わない」側 */
  --indigo: #8fa3d9;
  --indigo-glow: rgba(143, 163, 217, .45);

  /* 住人の灯り（画像が無いときの代わり）。夜型は藍の頭に琥珀、朝型はクリームから桃、下に空色 */
  --night-head: #3a3f78;
  --night-core: #f2b24c;
  --night-core-2: #ffd98f;
  --night-core-0: rgba(242, 178, 76, 0);
  --night-glow: rgba(242, 178, 76, .28);
  --dawn-head: #fff1d6;
  --dawn-peach: #f4a58a;
  --dawn-sky: #b9d6ec;
  --dawn-glow: rgba(244, 165, 138, .26);
  --lilac: #b89cf0;
  --lilac-0: rgba(184, 156, 240, 0);

  --font-serif: "Shippori Antique B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;

  --gutter: 24px;
  --maxw: 640px;
  --radius: 12px;
  --radius-lg: 18px;
  --dur: 150ms;
  --sticky-space: 104px;

  --resident-xs: 40px;
  --resident-sm: 72px;
  --resident-pv: 96px;
  --resident-md: 150px;
  --resident-lg: 240px;
  --scale-lg: 46px;
  --scale-md: 36px;
  --scale-sm: 28px;
  --scale-hit: 56px;
}

@media (max-width: 359px) {
  :root { --gutter: 20px; }
}

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

[hidden] { display: none !important; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 720px) {
  body { font-size: 16px; }
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  word-break: auto-phrase;
  text-wrap: balance;
}

p, dd, li { text-wrap: pretty; }

.nowrap { white-space: nowrap; }

p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

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

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

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 句のまとまりで改行させる */
.phrase { display: inline-block; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logotype {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: .28em;
  color: var(--paper);
  text-decoration: none;
}

.note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* ボタン */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) ease-out, border-color var(--dur) ease-out, color var(--dur) ease-out;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

@media (hover: hover) {
  .btn-primary:hover { background: var(--amber-2); }
}
.btn-primary:active { background: var(--amber-2); }

.btn-sub {
  font-size: .82em;
  font-weight: 500;
  white-space: nowrap;
}

/* ヒーローの CTA は文言が長いので、狭い画面でも1行に収める */
.btn-hero { font-size: min(16px, 4vw); }

@media (max-width: 379px) {
  .btn-hero .icon { display: none; }
}

@media (min-width: 720px) {
  .btn {
    display: inline-flex;
    width: auto;
    min-width: 340px;
    padding: 14px 32px;
  }
}

/* ===== LP ===== */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 26px;
  padding-bottom: 56px;
}

.hero-glow {
  position: absolute;
  z-index: 1;
  top: -250px;
  right: -270px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-1), var(--glow-2) 30%, var(--glow-3) 62%, var(--ink-0));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  z-index: 0;
  top: 0;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  height: 62%;
  pointer-events: none;
}

.hero-media picture {
  display: block;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
}

/* 画像があるときは、画像のランプを灯りにする */
.hero-media ~ .hero-glow { display: none; }

.hero .logotype {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 12px var(--ink), 0 0 24px var(--ink-veil);
}

.hero-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 120px;
}

/* utm_content に合う案だけを見せる（data-hero は head のスクリプトが描画前に決める） */
html[data-hero="b"] .hero-copy:not([data-hero-copy="b"]),
html[data-hero="d"] .hero-copy:not([data-hero-copy="d"]),
html:not([data-hero="b"]):not([data-hero="d"]) .hero-copy:not([data-hero-copy="a"]) { display: none; }

.hero h1 {
  font-size: clamp(26px, 8.2vw, 34px);
  line-height: 1.5;
  letter-spacing: .03em;
  text-shadow: 0 0 18px var(--ink), 0 0 36px var(--ink-veil);
}

/* モバイルでは句ごとに改行を固定し、明朝の読み込み前後で行数が変わらないようにする */
@media (max-width: 719px) {
  .hero h1 .phrase { display: block; }
}

.hero-lead {
  margin-top: 28px;
  color: var(--paper-2);
  text-shadow: 0 0 14px var(--ink);
}

.hero .btn { margin-top: 40px; }

.hero-note {
  margin-top: 12px;
  text-align: center;
}

@media (min-width: 720px) {
  .hero { min-height: 92vh; }
  .hero-inner { padding-top: 40px; padding-bottom: 96px; }
  .hero h1 { font-size: 42px; }
  .hero-note { text-align: left; }

  /* 1カラムの左右の切れ目を夜の色へ溶かす */
  .hero-media { height: 74%; }

  .hero-media img {
    object-position: 50% 12%;
    -webkit-mask-image:
      linear-gradient(to bottom, black 40%, transparent 100%),
      linear-gradient(to right, transparent 0%, black 16%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, black 40%, transparent 100%),
      linear-gradient(to right, transparent 0%, black 16%, black 90%, transparent 100%);
    mask-composite: intersect;
  }
}

.section { padding: 64px 0; }

@media (min-width: 720px) {
  .section { padding: 88px 0; }
}

/* LP: セルフチェックで分かること */

.preview h2 {
  font-size: 24px;
  line-height: 1.6;
}

.preview-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.preview-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pv-text h3 {
  font-size: 17px;
  line-height: 1.6;
}

.pv-text p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--paper-2);
}

.pv-visual { width: var(--resident-pv); }
.pv-resident { display: flex; justify-content: center; }

.pv-nights {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
}

.pv-nights span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 4px var(--glow-2);
}

.pv-week {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.pv-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
}

.pv-day .icon {
  width: 13px;
  height: 13px;
  color: var(--amber-2);
}

.pv-day.is-tonight { border-color: var(--amber); }

@media (min-width: 720px) {
  .preview h2 { font-size: 30px; }
}

.nights { border-top: 1px solid var(--line); }

.nights li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}

@media (min-width: 720px) {
  .nights li { font-size: 22px; padding: 26px 0; }
}

.prose h2 {
  font-size: 24px;
  line-height: 1.6;
}

.prose p {
  color: var(--paper-2);
}

.prose h2 + p { margin-top: 28px; }
.prose p + p { margin-top: 1.3em; }

@media (min-width: 720px) {
  .prose h2 { font-size: 30px; }
}

.interlude { margin: 0 auto; }

.interlude picture { display: block; }

.interlude img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

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

.stage {
  padding: 24px 22px 26px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.stage-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.stage-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--amber);
}

.stage h3 {
  font-size: 22px;
  line-height: 1.5;
}

.stage p {
  margin-top: 10px;
  color: var(--paper-2);
}

@media (min-width: 720px) {
  .stage { padding: 28px 30px 30px; }
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tab {
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--dur) ease-out, color var(--dur) ease-out;
}

@media (hover: hover) {
  .tab:hover { color: var(--paper); }
}

.tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
}

.tabpanel { padding-top: 32px; }
.tabpanel[hidden] { display: none; }

.courses .note { margin-top: 28px; }

/* 時刻つきの行動リスト（LP のコース・パッケージ画面で共用） */
.timeline li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 12px;
}

.timeline .when {
  font-size: 13px;
  line-height: 1.7;
  padding-top: .15em;
  color: var(--muted);
  letter-spacing: .04em;
}

.timeline .what {
  position: relative;
  padding: 0 0 20px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper);
}

.timeline .what::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.timeline li:not(:last-child) .what::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(.62em + 13px);
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child .what { padding-bottom: 0; }

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

.fit-block {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.fit-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  line-height: 1.5;
}

.fit-title .icon { color: var(--ok); }

.fit-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.fit-list li {
  position: relative;
  padding-left: 18px;
  color: var(--paper-2);
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.price-card {
  padding: 36px 24px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

@media (min-width: 720px) {
  .price-card { padding: 48px 44px; }
}

/* 料金カードの内側でも CTA を1行に収める */
@media (max-width: 719px) {
  .price-card { padding-left: 18px; padding-right: 18px; }
  .price-card .btn-hero { font-size: min(15px, 3.7vw); padding-left: 12px; padding-right: 12px; }
}

.price-card-title {
  font-size: 24px;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .price-card-title { font-size: 30px; }
}

.price-plan {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--paper-2);
}

.price-head {
  line-height: 1.3;
}

.price-term {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  color: var(--paper-2);
}

.price-amount {
  font-size: 36px;
  letter-spacing: .02em;
}

.price-amount:empty { display: none; }

.price-tax {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
}

.price-body {
  margin-top: 24px;
  color: var(--paper-2);
}

.price-card .price-body { margin-top: 20px; }
.price-card .note { margin-top: 12px; }
.price-card .btn { margin-top: 32px; }

.faq { border-top: 1px solid var(--line); }

.faq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq dt {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}

.faq dd {
  margin-top: 8px;
  color: var(--paper-2);
}

.footer {
  padding: 48px 0 calc(48px + var(--sticky-space));
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .footer a:hover { color: var(--paper); }
}

@media (min-width: 720px) {
  .footer { padding-bottom: 64px; }
}

.sticky-cta {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ink) 62%, var(--ink-0));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s linear 200ms;
}

.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.sticky-cta .btn { pointer-events: auto; }

@media (min-width: 720px) {
  .sticky-cta { display: none; }
}

/* ===== 住人と案内役（画像。読めないときはコードで描いた灯り） ===== */

.resident {
  --s: var(--resident-md);
  --halo: var(--night-glow);
  position: relative;
  flex: none;
  width: var(--s);
  height: var(--s);
}

.resident.is-xs { --s: var(--resident-xs); }
.resident.is-sm { --s: var(--resident-sm); }
.resident.is-pv { --s: var(--resident-pv); }
.resident.is-md { --s: var(--resident-md); }
.resident.is-lg { --s: var(--resident-lg); }
.resident.is-dawn { --halo: var(--dawn-glow); }
.resident.is-guide { --halo: var(--glow-2); }

.resident-halo {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--halo), var(--ink-0));
  animation: dp-breathe 5.6s ease-in-out infinite;
}

.resident-lamp {
  position: absolute;
  top: 14%;
  right: 27%;
  bottom: 12%;
  left: 27%;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  filter: blur(calc(var(--s) * .02));
}

.resident.is-night .resident-lamp {
  background:
    radial-gradient(52% 34% at 50% 61%, var(--night-core-2), var(--night-core) 45%, var(--night-core-0)),
    var(--night-head);
}

.resident.is-dawn .resident-lamp {
  background: linear-gradient(to bottom, var(--dawn-head) 8%, var(--dawn-peach) 58%, var(--dawn-sky));
}

.resident.is-guide .resident-lamp {
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, var(--amber-2) 0 18%, var(--amber-2-0) 52%),
    radial-gradient(circle at 66% 62%, var(--lilac) 0 16%, var(--lilac-0) 56%),
    radial-gradient(circle at 50% 50%, var(--amber) 0 30%, var(--amber-0) 70%);
  filter: blur(calc(var(--s) * .06));
  animation: dp-breathe 4.8s ease-in-out infinite;
}

.resident-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resident-face {
  stroke: var(--paper);
  stroke-width: 2.4;
}

.resident.is-dawn .resident-face,
.resident.is-guide .resident-face { stroke: var(--ink); }
.resident.is-guide .resident-face { transform: translateY(20px); }

.resident-doodle {
  stroke: var(--paper-2);
  stroke-width: 2;
}

.resident.is-xs .resident-face { stroke-width: 9; }
.resident.is-sm .resident-face,
.resident.is-pv .resident-face { stroke-width: 4; }
.resident.is-sm .resident-doodle,
.resident.is-pv .resident-doodle { stroke-width: 3; }

.resident-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, black 80%, transparent);
  mask-image: radial-gradient(closest-side, black 80%, transparent);
  transition: opacity 400ms ease-out;
}

.resident.has-image .resident-img { opacity: 1; }

/* 小さく出すときは、灯りの体が枠いっぱいに見えるよう絵を寄せる */
.resident.is-xs.has-image,
.resident.is-sm.has-image {
  overflow: hidden;
  border-radius: 50%;
}

.resident.is-xs .resident-img,
.resident.is-sm .resident-img { transform: scale(1.5); }
.resident.has-image .resident-lamp,
.resident.has-image .resident-lines { visibility: hidden; }

@keyframes dp-breathe {
  0%, 100% { opacity: .6; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* 案内役の吹き出し */
.bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.bubble .resident { margin-top: 2px; }

.bubble-text {
  padding: 10px 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper-2);
}

.intro-guide {
  display: flex;
  justify-content: center;
}

.bubble-text.is-lead {
  max-width: 340px;
  margin: 8px auto 28px;
  border-radius: 16px;
  text-align: center;
}

/* ===== セルフチェック ===== */

.check-top {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--ink);
}

.progress {
  height: 3px;
  background: var(--line);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 300ms ease-out;
}

.check-head {
  --maxw: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-left: -6px;
  padding: 0 10px 0 2px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) ease-out;
}

@media (hover: hover) {
  .back:hover { color: var(--paper); }
}
.back[hidden] { display: none; }

.check-head .logotype {
  font-size: 14px;
  color: var(--muted);
}

.check-main {
  --maxw: 560px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.screen-title {
  font-size: 24px;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .check-main { padding-top: 56px; }
  .screen-title { font-size: 28px; }
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.option {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) ease-out, background-color var(--dur) ease-out;
}

@media (hover: hover) {
  .option:hover { border-color: var(--amber-edge); }
}

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

.question-note { margin-top: 16px; }
.question-note + .options { margin-top: 20px; }

.option-sub {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.is-entering { animation: dp-fade var(--dur) ease-out; }

@keyframes dp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .is-entering { animation: none; }
  .sticky-cta, .progress-bar { transition: none; }
}

.result-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: var(--paper-2);
}

/* 複数選択のタイル */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 34px 12px 14px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) ease-out, background-color var(--dur) ease-out, opacity var(--dur) ease-out;
}

.tile-wide { grid-column: 1 / -1; }

.tiles-icon .tile {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 84px;
  padding: 14px;
}

.tile > .icon {
  width: 20px;
  height: 20px;
  color: var(--amber-2);
  flex: none;
}

.tile-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--dur) ease-out, border-color var(--dur) ease-out;
}

.tile-mark .icon {
  width: 12px;
  height: 12px;
  color: var(--ink);
  opacity: 0;
}

@media (hover: hover) {
  .tile:hover { border-color: var(--amber-edge); }
}

.tile.is-selected {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.tile.is-selected .tile-mark {
  background: var(--amber);
  border-color: var(--amber);
}

.tile.is-selected .tile-mark .icon { opacity: 1; }
.tile.is-muted { opacity: .42; }

/* 換算の画面 */

.mirror-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
}

.mirror-pre {
  font-size: 16px;
  color: var(--paper-2);
}

.mirror-num {
  font-size: 72px;
  color: var(--amber-2);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}

.mirror-unit { font-size: 22px; }

.nights45 {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  max-width: 360px;
}

.night-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--glow-2);
}

.nights45.is-filling .night-dot {
  opacity: .12;
  box-shadow: none;
  animation: dp-lamp 400ms ease-out forwards;
  animation-delay: calc(200ms + var(--i) * 24ms);
}

@keyframes dp-lamp {
  from { opacity: .12; box-shadow: none; transform: scale(.7); }
}

.mirror-films {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.7;
}

.mirror-basis { margin-top: 8px; }

/* 結果 */

.result-kicker {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .08em;
}

.result-type {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.5;
  text-align: center;
}

.result-line {
  margin-top: 12px;
  color: var(--paper-2);
  text-align: center;
  text-wrap: balance;
  word-break: auto-phrase;
}

.meters {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.meter {
  padding: 18px 18px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meter-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.meter-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
}

.meter-level {
  font-size: 12px;
  color: var(--muted);
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.meter-level.is-strong {
  color: var(--amber-2);
  border-color: var(--amber-edge);
}

.meter-score {
  margin-left: auto;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meter-num {
  font-size: 30px;
  line-height: 1;
  color: var(--amber-2);
}

.meter-max {
  font-size: 14px;
  color: var(--muted);
}

.meter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
}

.seg {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.seg.is-on { background: var(--amber); }

.meter.is-animating .seg.is-on {
  animation: dp-seg 260ms ease-out both;
  animation-delay: calc(var(--d) + var(--i) * 110ms);
}

@keyframes dp-seg {
  from { background: var(--line); }
  to { background: var(--amber); }
}

.meter-items {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.meter-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.meter-q { color: var(--paper-2); }
.meter-a { color: var(--paper); white-space: nowrap; }

.pips {
  display: inline-flex;
  gap: 3px;
}

.pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.pip.is-on {
  background: var(--amber);
  border-color: var(--amber);
}

.reading {
  margin-top: 28px;
  padding: 20px;
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, var(--amber-soft), var(--ink-0));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.reading-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}

.reading-quote {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
}

.reading-text {
  margin-top: 8px;
  line-height: 1.85;
}

.rise {
  animation: dp-rise 520ms ease-out both;
  animation-delay: var(--d, 0ms);
}

@keyframes dp-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 5段階（横一列の大小の丸。左が「そう思う」） */

.screen-title.is-statement { font-size: 22px; }

.scale { margin-top: 40px; }

.scale-dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scale-dot {
  display: grid;
  place-items: center;
  width: var(--scale-hit);
  height: var(--scale-hit);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.scale-mark {
  display: block;
  width: var(--scale-md);
  height: var(--scale-md);
  border: 2px solid var(--amber);
  border-radius: 50%;
  transition: background-color var(--dur) ease-out, box-shadow var(--dur) ease-out, transform var(--dur) ease-out;
}

.scale-dot[data-key="yes2"] .scale-mark,
.scale-dot[data-key="no2"] .scale-mark { width: var(--scale-lg); height: var(--scale-lg); }
.scale-dot[data-key="mid"] .scale-mark { width: var(--scale-sm); height: var(--scale-sm); border-color: var(--muted); }
.scale-dot[data-key="no1"] .scale-mark,
.scale-dot[data-key="no2"] .scale-mark { border-color: var(--indigo); }

@media (hover: hover) {
  .scale-dot:hover .scale-mark { transform: scale(1.08); }
}

.scale-dot.is-selected .scale-mark {
  background: var(--amber);
  box-shadow: 0 0 16px var(--amber-glow);
}

.scale-dot.is-selected[data-key="mid"] .scale-mark {
  background: var(--muted);
  box-shadow: none;
}

.scale-dot.is-selected[data-key="no1"] .scale-mark,
.scale-dot.is-selected[data-key="no2"] .scale-mark {
  background: var(--indigo);
  box-shadow: 0 0 16px var(--indigo-glow);
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.mirror-after { margin-top: 28px; }
.mirror-after .bubble { margin-bottom: 0; }

/* 結果の手前（案内役の灯りと台詞） */

.reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 60vh;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: center;
  cursor: pointer;
  animation: dp-fade 400ms ease-out;
}

.reveal-text {
  display: grid;
  gap: 4px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: .04em;
}

.reveal-line + .reveal-line {
  opacity: 0;
  animation: dp-show 500ms ease-out 450ms forwards;
}

@keyframes dp-show {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 結果 */

.result-hero {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.result-hero .resident-halo { inset: -12%; }

.result-kicker { margin-top: 12px; }

.traits {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trait-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.trait-end.is-mine {
  color: var(--amber-2);
  font-weight: 700;
}

.trait-track {
  position: relative;
  height: 14px;
  margin-top: 6px;
}

.trait-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.trait-track::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 1px;
  background: var(--line-strong);
}

.trait-dot {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--amber-2);
  box-shadow: 0 0 10px var(--glow-1);
}

.result-block { margin-top: 28px; }

.block-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--muted);
}

.block-text { margin-top: 6px; }

.result-block.is-move {
  padding: 20px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-edge);
  border-radius: var(--radius);
}

.result-block.is-move .screen-action { margin-top: 20px; }

.mate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 8px 16px 8px 8px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--dur) ease-out;
}

@media (hover: hover) {
  .mate:hover { border-color: var(--amber-edge); }
}

.mate-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.mate-label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.mate-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
}

.mate > .icon { color: var(--muted); }

.share {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
  font-weight: 500;
}

@media (hover: hover) {
  .btn-ghost:hover { border-color: var(--amber-edge); }
}

.btn[aria-busy="true"] {
  opacity: .6;
  cursor: progress;
}

.share-url { font-size: 14px; }

/* プラン */

.package-kicker {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .06em;
}

.package-kicker + .screen-title { margin-top: 4px; }


.reason {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}




@media (prefers-reduced-motion: reduce) {
  .rise, .nights45.is-filling .night-dot, .meter.is-animating .seg.is-on,
  .resident-halo, .reveal, .reveal-line { animation: none; opacity: 1; }
  .scale-mark, .resident-img { transition: none; }
}

.screen-action { margin-top: 40px; }

@media (min-width: 720px) {
  .screen-action { text-align: center; }
}

.package-steps { margin-top: 28px; }

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 32px;
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 2px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.day-num {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

.day .icon {
  width: 18px;
  height: 18px;
  color: var(--amber-2);
}

.day-label {
  writing-mode: vertical-rl;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--paper);
}

.day.is-tonight { border-color: var(--amber); }
.day.is-tonight .day-num { color: var(--amber-2); }

@media (min-width: 720px) {
  .week { gap: 8px; }
  .day-num { font-size: 12px; }
  .day-label { font-size: 14px; }
}

.check-price .price-head { margin-top: 6px; }
.check-price .price-per { margin-top: 6px; }

.price-includes {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.price-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-2);
}

.price-includes .icon {
  width: 18px;
  height: 18px;
  margin-top: .2em;
  color: var(--ok);
}

.check-price .price-body { margin-top: 24px; }
.check-price .btn { margin-top: 36px; }

.screen-subaction {
  margin-top: 8px;
  text-align: center;
}

/* ボタンの下に置く控えめなリンク（button 要素でも使う） */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.screen-subaction .text-link { margin-top: 0; }

@media (hover: hover) {
  .text-link:hover { color: var(--paper); }
}

/* ===== 先行登録フォーム ===== */

.register-price {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-2);
}

.register-price-amount {
  font-weight: 500;
  color: var(--paper);
}

.register {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--paper);
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.input:focus { border-color: var(--amber-edge); }
.input[aria-invalid="true"] { border-color: var(--error); }

.input-unit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-unit .input { max-width: 200px; }
.unit { color: var(--paper-2); }

.choices {
  display: grid;
  gap: 8px;
}

.choices-1 { grid-template-columns: minmax(0, 1fr); }
.choices-1 .choice span { justify-content: flex-start; padding-left: 18px; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice {
  position: relative;
  display: block;
  min-width: 0;
}

.choice input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 6px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  transition: border-color var(--dur) ease-out, background-color var(--dur) ease-out;
}

.choice input:checked + span {
  border-color: var(--amber);
  background: var(--amber-soft);
}

fieldset[aria-invalid="true"] .choice span { border-color: var(--error); }

.choice input:focus-visible + span {
  outline: 2px solid var(--amber-2);
  outline-offset: 2px;
}

/* チェックボックスは自前で描く（未チェックでも枠が 3:1 で見える） */
.check input,
.choice-check input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  margin: 0;
  background: var(--ink-2) center / 78% no-repeat;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}

.check input:checked,
.choice-check input:checked {
  background-color: var(--amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  border-color: var(--amber);
}

.check input:focus-visible,
.choice-check input:focus-visible {
  outline: 2px solid var(--amber-2);
  outline-offset: 2px;
}

.choice-check input {
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  opacity: 1;
  pointer-events: none;
}

.choice-check span {
  justify-content: flex-start;
  padding-left: 40px;
  text-align: left;
}

.choice-check input:focus-visible + span { outline: none; }

.interview-slots { margin-top: -12px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.check input[aria-invalid="true"] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.check a {
  color: var(--paper);
  text-underline-offset: 3px;
}

.field-error,
.form-error {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--error);
}

.field-error:empty,
.form-error:empty { display: none; }

.submit-note { margin-bottom: 14px; }

/* 人には見せない入力欄（自動投稿よけ） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions .form-error {
  margin-top: 12px;
  font-size: 14px;
}

.btn:disabled {
  opacity: .6;
  cursor: default;
}

.done-body {
  margin-top: 16px;
  color: var(--paper-2);
}

.done-body + .done-body { margin-top: 8px; }

/* ===== ストーリー用の画像（共有できない環境で画面に出す） ===== */

.has-sheet,
.has-sheet body { overflow: hidden; }

.sheet {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--ink-veil);
  overflow-y: auto;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 52px 16px 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.sheet-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--paper-2);
  cursor: pointer;
}

.sheet-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 62vh;
  margin: 0 auto;
  border-radius: var(--radius);
  -webkit-touch-callout: default;
}

.sheet-note {
  margin-top: 12px;
  text-align: center;
}

.sheet-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sheet-actions .btn { min-width: 0; }

/* ===== タイプページ ===== */

.type-main {
  --maxw: 560px;
  padding-top: 26px;
  padding-bottom: 64px;
}

.type-hero {
  margin-top: 28px;
  text-align: center;
}

.type-hero .resident { margin: 0 auto; }

.type-main .btn-primary { margin-top: 32px; }

/* ===== 集計（チーム向け） ===== */

.stats-main {
  --maxw: 960px;
  padding-bottom: 80px;
}

.stats-main h1 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.5;
}

.stats-main .note { margin-top: 4px; }

.stats-section { margin-top: 40px; }

.stats-section h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.table th,
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.table tbody th { font-weight: 500; }

.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 0; }

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.token-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.token-form .field { flex: 1 1 240px; }
.token-form .btn { width: auto; min-width: 120px; }

/* ===== プライバシーポリシー ===== */

.page-head {
  padding-top: 26px;
  padding-bottom: 26px;
}

.policy-main { padding-bottom: 96px; }

.policy-main h1 {
  margin-top: 24px;
  font-size: 26px;
  line-height: 1.5;
}

.policy {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.policy > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.policy dt {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.policy dd {
  margin-top: 4px;
  color: var(--paper);
}

.policy dd p + p { margin-top: .6em; }

/* ===== 広告クリエイティブ（1080×1920） ===== */

.ad-root,
.ad-root body {
  width: 1080px;
  height: 1920px;
  overflow: hidden;
}

.ad {
  position: relative;
  margin: 0;
  background: var(--ink);
}

/* 画像は下半分。上端を夜の色へ溶かし、見出しは色面の上に置く */
.ad-media {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1000px;
}

.ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 26%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 26%, black 100%);
}

.ad-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, var(--ink-0) 0%, var(--ink-veil) 45%, var(--ink) 100%);
}

.ad-glow {
  position: absolute;
  width: 1500px;
  height: 1500px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-1), var(--glow-2) 30%, var(--glow-3) 62%, var(--ink-0));
  pointer-events: none;
}

.ad-glow.is-right { top: -700px; right: -640px; }
.ad-glow.is-left { top: -660px; left: -680px; }
.ad-glow.is-small { top: -520px; right: -560px; width: 1180px; height: 1180px; }

/* 画像があるときは、画像のランプを灯りにする */
.ad-media ~ .ad-glow { display: none; }

.ad-copy {
  position: absolute;
  left: 100px;
  right: 100px;
  top: 430px;
}

.ad-title {
  font-size: 84px;
  line-height: 1.5;
  letter-spacing: .03em;
}

/* 固定サイズの1枚絵なので、句ごとに改行を固定する */
.ad-title .phrase { display: block; }

.ad-title.is-large { font-size: 96px; }

.ad-rule {
  width: 80px;
  height: 3px;
  margin: 64px 0 40px;
  background: var(--amber);
}

.ad-sub {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--paper-2);
}

.ad-logo {
  position: absolute;
  z-index: 2;
  left: 100px;
  bottom: 300px;
  font-size: 52px;
  letter-spacing: .32em;
  text-shadow: 0 0 28px var(--ink);
}

/* ===== 結果の詳しい解説（v4.1） ===== */

/* 案内役の読み解き */
.insight { margin-top: 32px; }

.insight-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-body {
  margin-top: 8px;
  padding: 16px 18px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
}

.insight-name {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--amber-2);
}

.insight-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.95;
  color: var(--paper);
  animation: dp-insight-in 600ms ease-out both;
}

.insight-text.is-loading { animation: none; }

.insight-dots {
  display: inline-flex;
  gap: 6px;
  padding: 8px 0;
}

.insight-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-2);
  animation: dp-blink 1.2s ease-in-out infinite;
}

.insight-dots span:nth-child(2) { animation-delay: .2s; }
.insight-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes dp-blink {
  0%, 100% { opacity: .2; }
  50% { opacity: 1; }
}

@keyframes dp-insight-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 過ごし方のくせ */
.kuse {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.kuse-item {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.85;
}

.kuse-item:last-child { border-bottom: 0; }

.kuse-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
}

/* 試せること */
.hints {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.hint {
  padding: 14px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hint.is-first { border-color: var(--amber-edge); }

.hint-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}

.hint.is-first .hint-title { color: var(--amber-2); }

.hint-body {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--paper-2);
}

.block-text.is-reset {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  color: var(--paper-2);
}

/* 相性 */
.mate-block { margin-top: 28px; }
.mate-block .mate { margin-top: 0; }

.mate-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--paper-2);
}

/* タイプページの「続き」 */
.type-next {
  margin-top: 36px;
  padding: 24px 20px;
  text-align: center;
  background: var(--amber-soft);
  border: 1px solid var(--amber-edge);
  border-radius: var(--radius-lg);
}

.type-next-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
}

.type-next .btn { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .insight-text, .insight-dots span { animation: none; }
  .insight-dots span { opacity: .6; }
}

.cite {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* 結果画面の下に浮かぶ誘い */
.float-invite {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ink) 58%, var(--ink-0));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 240ms ease-out, transform 240ms ease-out, visibility 0s linear 240ms;
}

.float-invite.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.float-invite-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.float-invite-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-2);
}

.float-invite .btn {
  width: 100%;
  pointer-events: auto;
  box-shadow: 0 0 28px var(--glow-2);
}

@media (prefers-reduced-motion: reduce) {
  .float-invite { transition: none; }
}

/* ===== プラン画面（v5） ===== */

.plan-hero {
  position: relative;
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
  padding: 36px var(--gutter) 28px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(58, 63, 120, .55), var(--ink-0) 70%),
    radial-gradient(60% 40% at 50% 46%, var(--glow-3), var(--amber-0) 70%),
    linear-gradient(to bottom, var(--ink-2), var(--ink));
  border-bottom: 1px solid var(--line);
}

/* 星。小さな点を box-shadow でちらす */
.plan-stars {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--paper);
  opacity: .7;
  box-shadow:
    -150px 12px 0 0 rgba(244, 239, 230, .5), -112px 64px 0 0 rgba(244, 239, 230, .35),
    -64px 6px 0 0 rgba(244, 239, 230, .6), -20px 90px 0 0 rgba(244, 239, 230, .25),
    36px 30px 0 0 rgba(244, 239, 230, .55), 84px 4px 0 0 rgba(244, 239, 230, .4),
    128px 58px 0 0 rgba(244, 239, 230, .5), 160px 20px 0 0 rgba(244, 239, 230, .3),
    -170px 120px 0 0 rgba(244, 239, 230, .3), 150px 132px 0 0 rgba(244, 239, 230, .35);
  animation: dp-twinkle 5s ease-in-out infinite;
}

@keyframes dp-twinkle {
  0%, 100% { opacity: .7; }
  50% { opacity: .35; }
}

.plan-hero-figure {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.plan-hero .package-kicker { color: var(--amber-2); letter-spacing: .1em; }

.plan-scene {
  max-width: 340px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--paper-2);
}

.plan-section { margin-top: 36px; }
.plan-section > .block-label + * { margin-top: 14px; }

/* 45日の道のり */
.road-dots {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 7px;
  max-width: 380px;
}

.road-dot {
  aspect-ratio: 1;
  border-radius: 50%;
}













@media (prefers-reduced-motion: reduce) {
  .plan-stars { animation: none; }
}

/* 画像の暗い地（#14161f）を夜空になじませる */
.plan-hero .resident-img { mix-blend-mode: screen; }
.plan-hero .resident.has-image { background: none; box-shadow: none; }

.register-lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--paper-2);
}

/* 回答に合わせて書き直した文。届いたら静かに入れ替え、見出しの横に小さな灯りを点ける */
[data-personal].is-personal { animation: dp-insight-in 700ms ease-out both; }

.result-block.is-personal > .block-label::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--amber-2);
  box-shadow: 0 0 8px var(--glow-1);
}

@media (prefers-reduced-motion: reduce) {
  [data-personal].is-personal { animation: none; }
}

/* やってみたいこと（グループ見出しつきのタイル） */
.tile-groups {
  display: grid;
  gap: 18px;
}

.tile-group-label {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--muted);
}
.tile-group .tiles { margin-top: 0; }
.tile-groups { margin-top: 24px; }

/* 価格画面の無料の7夜 */
.price-trial {
  margin-top: 20px;
  padding: 14px 16px;
  text-align: left;
  background: var(--amber-soft);
  border: 1px solid var(--amber-edge);
  border-radius: var(--radius);
}

.price-trial-head {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--amber-2);
}

.price-trial-body {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper-2);
}

/* LP の住人の並び */
.lp-residents {
  display: flex;
  gap: 6px;
  margin: 18px 0 6px;
}
[data-sec="nights"] h2 + .nights { margin-top: 20px; }
.ad-sub .phrase { display: block; }

/* 価格画面（無料の7夜を見出しに） */
.price-trial-title {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.5;
  color: var(--amber-2);
}

.check-price .price-trial-body { margin-top: 10px; }

.price-cost {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-cost-label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.price-cost .price-head { margin-top: 2px; }
.price-cost .price-per { margin-top: 4px; }

.plan-offer {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.plan-offer .price-trial-title { margin-top: 0; }

/* ===== プラン画面: LINE で届く夜（v5） ===== */

:root {
  --line-green: #06c755;
  --line-green-ink: #04140a;
  --line-bubble: #2f3344;
  --line-talk: #1a1d29;
}


.line-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.line-step { display: flex; align-items: center; gap: 16px; }

.line-step-img {
  flex: none;
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 18px;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.line-step-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
}

.line-step-text .phrase { display: block; }




.line-talk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 18px 14px 20px;
  list-style: none;
}

.line-row { display: flex; align-items: flex-start; gap: 8px; }
.line-row.is-me { justify-content: flex-end; align-items: flex-end; }

.line-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.line-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.line-pair { display: flex; align-items: flex-end; gap: 6px; }

.line-bubble {
  margin: 0;
  max-width: 230px;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--line-bubble);
}

.line-row.is-me .line-bubble {
  color: var(--line-green-ink);
  background: var(--line-green);
  font-weight: 500;
}

.line-meta {
  display: flex;
  flex-direction: column;
  flex: none;
  font-size: 10px;
  line-height: 1.3;
  color: var(--muted);
}

.line-row.is-me .line-meta { text-align: right; }




/* ===== 結果画面の右上のシェア ===== */

.head-share-wrap {
  position: relative;
  margin-left: auto;
}

.head-share-wrap[hidden] { display: none; }

.head-share {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--paper-2);
  cursor: pointer;
}

.head-share .icon { width: 20px; height: 20px; }

.head-share[aria-expanded="true"] {
  border-color: var(--line-strong);
  color: var(--paper);
}

@media (hover: hover) {
  .head-share:hover { color: var(--paper); border-color: var(--line-strong); }
}

.share-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 8px;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}

.share-menu[hidden] { display: none; }

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.share-menu-item .icon { width: 18px; height: 18px; color: var(--amber-2); }

@media (hover: hover) {
  .share-menu-item:hover { background: var(--ink-3); }
}

.share-menu .share-url { margin: 0; font-size: 13px; }

/* ===== LP 二幕の構成（診断 → 45日のトレーニング） ===== */

.section-lead {
  margin-top: 16px;
  line-height: 1.9;
  color: var(--paper-2);
}

.lp-residents + .section-lead { margin-top: 12px; }

[data-sec="bridge"] .line-steps {
  max-width: none;
  margin: 28px 0 0;
}

[data-sec="bridge"] .line-step-img { width: 112px; height: 112px; }
[data-sec="bridge"] .line-step-text { font-size: 15px; }

.promise {
  margin-top: 32px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.6;
  color: var(--amber-2);
}

.type-examples {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.type-example {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.type-example-figure { flex: none; }

.type-example-text { min-width: 0; }

.type-example-text h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
}

.type-example-habit {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.type-example-plan {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--amber-edge);
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper);
}

[data-sec="stages"] .stages { margin-top: 24px; }

.stage-range {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}

/* 一夜ぶんのお題のカード（プラン画面の上と LP）。「別の夜を見る」で中身が替わる */
.night-deck {
  max-width: 360px;
  margin: 24px auto 0;
  text-align: left;
}

.night-card {
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  transition: opacity 160ms ease-out;
}

.night-card.is-swapping { opacity: 0; }

.night-card-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink);
}

.night-card-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.night-card-media.is-noimg .night-card-img { visibility: hidden; }

.night-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--amber-2);
  background: radial-gradient(circle at 50% 50%, var(--glow-2), var(--amber-0) 60%);
}

.night-card-fallback .icon { width: 56px; height: 56px; }

.night-card-body { padding: 18px 20px 20px; }

.night-card-meta {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--amber-2);
}

.night-card-title {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper);
}

.night-card-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--paper);
}

.night-card-needs {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.night-card-next {
  width: 100%;
  margin-top: 12px;
  background: none;
  border: 1px solid var(--amber-edge);
  color: var(--amber-2);
  font-size: 15px;
}

@media (hover: hover) {
  .night-card-next:hover { background: var(--amber-soft); }
}

.night-card-next:active { background: var(--amber-soft); }

@media (prefers-reduced-motion: reduce) {
  .night-card { transition: none; }
}

.section .night-deck { margin-top: 28px; }



.plan-h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: var(--paper);
}

.plan-h2 .phrase { display: inline-block; }


/* プラン画面の上: 診断からの組み立てと、はじめの7夜の列 */




.week-strip {
  display: flex;
  gap: 8px;
  margin: 10px calc(var(--gutter) * -1) 0;
  padding: 2px var(--gutter) 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}

.week-strip::-webkit-scrollbar { display: none; }
.week-strip li { display: flex; flex: none; scroll-snap-align: start; }

.week-pick {
  display: block;
  width: 96px;
  height: 100%;
  padding: 0 0 8px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) ease-out, background-color var(--dur) ease-out;
}

.week-pick.is-on {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.week-pick-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--ink);
}

.week-pick-day {
  display: block;
  margin: 6px 8px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.week-pick.is-on .week-pick-day { color: var(--amber-2); }

.week-pick-title {
  display: block;
  margin: 0 8px;
  font-size: 12px;
  line-height: 1.5;
  word-break: auto-phrase;
}

.night-card-alt {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-2);
}

/* やってみたいことの、絵つきのタイル */
.tiles-pic .tile {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.tile-pic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  color: var(--amber-2);
}

.tile-pic img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-pic .icon { width: 28px; height: 28px; }

.tiles-pic .tile-label {
  padding: 10px 12px 12px;
  font-size: 14px;
}

.tiles-pic .tile-mark {
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: var(--ink-veil);
  border-color: var(--paper-2);
}

.tiles-pic .tile.is-selected .tile-mark {
  background: var(--amber);
  border-color: var(--amber);
}

.tiles-pic .tile-mark .icon { width: 14px; height: 14px; }

/* プラン画面の節の見出しと、上の説明 */
.plan-hero .plan-h2 { margin-top: 0; }

.plan-section > .plan-h2 + * { margin-top: 20px; }





/* プラン画面のカードは、列と同じ画面に本文まで収まるよう絵を横長に切る */


/* プラン画面の LINE の届き方は、3枚を横一列に */
.plan-section .line-steps {
  flex-direction: row;
  gap: 10px;
  max-width: 360px;
}

.plan-section .line-step {
  flex: 1 1 0;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.plan-section .line-step-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.plan-section .line-step-text {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--paper-2);
}


/* 結果画面の「診断の続き」の予告 */
.invite-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--paper);
}

.invite-title .phrase { display: inline-block; }

.invite-nights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.invite-night {
  padding-bottom: 8px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}


/* ===== プラン画面: めざす夜の絵 → 一夜の流れ → 45日の道のり（2026-10-02） ===== */

.plan-hero.is-goal {
  padding-bottom: 0;
  border-bottom: 0;
}

.plan-hero.is-goal .plan-scene { margin-top: 14px; }
/* 一文ずつ行を分ける。1行目はめざす夜 */
.plan-hero.is-goal .plan-scene .phrase {
  display: block;
  word-break: auto-phrase;
}

.plan-hero.is-goal .plan-scene .phrase:first-child { color: var(--paper); }

/* めざす夜の絵。上の端を背景へ溶かす */
.plan-goal-art {
  margin: 8px calc(var(--gutter) * -1) 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%);
}

.plan-goal-art img {
  display: block;
  width: 100%;
  height: auto;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.flow-step {
  position: relative;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.flow-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
}

.flow-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.flow-time {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--amber-2);
}

.flow-label {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--paper);
}

/* 押せない札。押せる丸い札と見分けがつくよう、枠を付けない */
.flow-tag {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--amber-2);
}

.flow-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin-top: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink);
}

.flow-talk {
  padding: 0;
  margin-top: 12px;
}

.flow-talk:empty { display: none; }
.flow-talk .line-row.is-me .line-meta { align-self: flex-end; }

.flow-kinds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.flow-kinds-label {
  flex-basis: 100%;
  color: var(--muted);
}

.flow-kind,
.flow-reply {
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
  background: var(--ink-2);
  cursor: pointer;
}

.flow-kind.is-on,
.flow-reply.is-on {
  border-color: var(--amber);
  color: var(--amber-2);
  background: var(--amber-soft);
}

.flow-step .night-deck {
  max-width: none;
  margin-top: 12px;
}

.flow-step .night-card-media { aspect-ratio: 4 / 3; }

.flow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.flow-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--paper-2);
  background: none;
  cursor: pointer;
}

.flow-dot.is-on {
  border-color: var(--amber);
  color: var(--ink);
  background: var(--amber);
}

.flow-replies {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.flow-reply {
  border-color: var(--line-green);
  color: var(--paper);
}

/* 押した返事は、下に吹き出しで出るので薄くする */
.flow-reply.is-on {
  border-color: var(--line);
  color: var(--muted);
  background: none;
}

.flow-next {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-items: start;
  margin-left: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.flow-next-img {
  grid-row: 1 / 4;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.flow-next-label {
  align-self: end;
  font-size: 12px;
  color: var(--amber-2);
}

.flow-next-title {
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper);
}

.flow-next-text {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-2);
  word-break: auto-phrase;
}

.flow-step .line-bubble,
.flow-step .night-card-text,
.plan-offer .price-trial-body { word-break: auto-phrase; }

.flow-step .line-bubble { max-width: 250px; }
.flow-step .night-card-needs { font-size: 13px; }
.flow-kinds-label { font-size: 13px; }
.plan-offer .price-per { color: var(--paper-2); }

/* 45日の道のり。時間の行き先が、スマホ（藍）から自分の夜（琥珀）へ替わる */
.goal-fig { text-align: center; }

.goal-lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--paper-2);
}

.goal-number {
  margin-top: 2px;
  line-height: 1.2;
  color: var(--indigo);
  transition: color 900ms ease-out;
}

.goal-fig.is-after .goal-number { color: var(--amber-2); }

.goal-num {
  font-family: var(--font-serif);
  font-size: 64px;
  font-variant-numeric: tabular-nums;
}

.goal-unit {
  margin-left: 4px;
  font-size: 18px;
}

.goal-where {
  min-height: 1.9em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--indigo);
  transition: color 900ms ease-out;
}

.goal-fig.is-after .goal-where { color: var(--paper); }

.goal-road { margin-top: 20px; }
.goal-road .road-dots { margin: 0 auto; }

.goal-road .road-dot {
  background: var(--indigo);
  opacity: .4;
  transition: background-color 320ms ease-out, opacity 320ms ease-out, transform 320ms ease-out, box-shadow 320ms ease-out;
}

.goal-road .road-dot.is-lit {
  background: var(--amber);
  opacity: 1;
  box-shadow: 0 0 8px var(--glow-1);
}

.goal-fig.is-playing .road-dot.is-lit { animation: dp-goal-pop 320ms ease-out; }

@keyframes dp-goal-pop {
  40% { transform: scale(1.45); }
}

/* 最初の無料の夜は、輪で囲む */
.goal-road .road-dot.is-free { outline: 1.5px solid var(--amber-2); outline-offset: 2px; }

.goal-free {
  max-width: 380px;
  margin: 0 auto 10px;
  text-align: left;
  font-size: 13px;
  color: var(--amber-2);
}

.goal-ends {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 380px;
  margin: 10px auto 0;
  font-size: 12px;
  color: var(--muted);
}

/* 行き先の内訳。点が替わりきってから、ひとつずつ出る */
.goal-dests {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.goal-dest {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  max-width: 84px;
  min-width: 0;
}

.goal-dest-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.goal-dest-label {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--paper-2);
}

.goal-dest-nights {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--amber-2);
}

.goal-last {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
}

.goal-last-label {
  font-size: 13px;
  color: var(--amber-2);
}

.goal-last-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--paper);
}

.goal-last-text .phrase { display: inline-block; }

.goal-dest,
.goal-last,
.goal-replay {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.goal-fig.is-done .goal-dest,
.goal-fig.is-done .goal-last,
.goal-fig.is-done .goal-replay {
  opacity: 1;
  transform: none;
}

.goal-fig.is-done .goal-dest { transition-delay: calc(var(--i) * 140ms); }
.goal-fig.is-done .goal-last { transition-delay: 700ms; }
.goal-fig.is-done .goal-replay { transition-delay: 1100ms; }

.goal-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
}

.goal-replay .icon { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .goal-number,
  .goal-where,
  .goal-road .road-dot,
  .goal-dest,
  .goal-last,
  .goal-replay { transition: none; }
}

.plan-offer .price-includes + .price-trial-body { margin-top: 18px; }
.plan-offer .price-trial-body + .btn { margin-top: 20px; }

/* 続ける場合の金額。主役にしない */
.price-after {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  word-break: auto-phrase;
}

.plan-offer .price-after + .btn { margin-top: 20px; }

/* 選択肢と約束の一文は、語の途中で折らない */
.option,
.tile-label,
.promise { word-break: auto-phrase; }

/* ---------- 道具のページ（tools.html） ---------- */

.tools-main { padding-bottom: 96px; }

.tools-main h1 {
  margin-top: 40px;
  font-size: 26px;
  line-height: 1.5;
}

.tools-lead {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.9;
  word-break: auto-phrase;
}

.tools-section { margin-top: 56px; }

.tools-section-title {
  font-size: 20px;
  color: var(--amber-2);
}

.tool-kind { margin-top: 32px; }

.tool-kind-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-kind-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
}

.tool-kind-name { font-size: 18px; }

.tool-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tool {
  padding: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tool-tier {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--amber-2);
}

.tool-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.6;
}

.tool-reason {
  margin: 8px 0 0;
  line-height: 1.9;
  word-break: auto-phrase;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--amber-2);
  font-weight: 700;
  text-decoration: none;
}

.tool-link .icon { width: 16px; height: 16px; }

@media (hover: hover) {
  .tool-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
}

.tools-empty { margin-top: 32px; color: var(--muted); }

.tools-note { margin-top: 56px; }
