/* ほしまど LP
   考え方：ページを下へ送るほど、夕方の部屋から夜の部屋へ。申し込みの色は「一番星」の真鍮色ひとつだけ。 */
:root {
  --paper: #E7EAEE;      /* 夕方の灰青の地 */
  --paper-2: #DCE1E7;
  --card: #F3F5F7;
  --ink: #131722;
  --muted: #586072;
  --line: #C6CDD6;
  --navy: #1B2333;       /* 夜藍：製品の色 */
  --night: #0A0E17;
  --night-2: #111727;
  --night-ink: #E9ECF2;
  --night-muted: #98A2B6;
  --night-line: #263045;
  --brass: #C29A5B;      /* 申し込みの色（一番星） */
  --brass-ink: #1A1408;
  --brass-hover: #D4AE6E;
  --display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.85; font-feature-settings: "palt" 1; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.wrap--narrow { max-width: 820px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }
sup { font-size: 0.62em; vertical-align: super; line-height: 0; color: var(--muted); font-family: var(--body); margin-left: 1px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 18px; }

/* 見出し */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.h2 { font-family: var(--display); font-size: clamp(28px, 4.2vw, 46px); line-height: 1.4; letter-spacing: 0.02em; }
.h3 { font-family: var(--display); font-size: 22px; margin-top: 64px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 15.5px/1 var(--body); letter-spacing: 0.04em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn--buy { background: var(--brass); color: var(--brass-ink); }
.btn--buy:hover { background: var(--brass-hover); }
.btn__price { font-family: var(--mono); font-size: 13px; padding-left: 12px; border-left: 1px solid rgba(26, 20, 8, 0.28); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(127, 140, 160, 0.12); }
.btn--light { background: var(--night-ink); color: var(--navy); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* 上の帯 */
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(231, 234, 238, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.head.is-scrolled { border-bottom-color: var(--line); }
.head__in { display: flex; align-items: center; gap: 28px; height: var(--head-h); max-width: 1160px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.6; }
.logo__lens { fill: var(--brass); stroke: none; }
.logo__ja { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: 0.08em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } .head .btn { margin-left: auto; } }

/* 1画面目 */
.hero { padding-block: 40px 56px; background: radial-gradient(60% 70% at 72% 42%, #F4F6F9 0%, rgba(244, 246, 249, 0) 70%), var(--paper); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6.2vw, 78px); line-height: 1.28; letter-spacing: 0.02em; margin-top: 18px; }
.hero__sub { margin-top: 22px; font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero__fig { margin: 0; justify-self: center; width: min(100%, 560px); }
.hero__img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.proof { list-style: none; margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.proof__item { display: flex; flex-direction: column; gap: 4px; padding: 20px 4px 0; border-top: 1px solid var(--line); }
.proof__item + .proof__item { padding-left: 24px; }
.proof__num { font-family: var(--display); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof__num small { font-family: var(--body); font-size: 0.36em; margin-left: 4px; color: var(--muted); }
.proof__label { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__fig { order: -1; width: min(78%, 420px); margin-bottom: -12px; }
  .hero__title { margin-top: 10px; }
}
@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .proof__item { padding-top: 14px; }
  .proof__item + .proof__item { padding-left: 14px; }
  .proof__label { font-size: 12px; line-height: 1.5; }
}

/* 悩み */
.worry { padding-block: 104px 120px; background: linear-gradient(var(--paper), var(--paper-2)); }
.worry__list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.worry__list li { padding: 28px 26px 30px; background: var(--card); border-radius: 4px; }
.worry__no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.worry__head { font-family: var(--display); font-size: 21px; line-height: 1.55; margin: 10px 0 12px; }
.worry__list p:not(.worry__head) { font-size: 14.5px; color: var(--muted); }
.worry__bridge { margin-top: 72px; font-family: var(--display); font-size: clamp(22px, 3vw, 32px); line-height: 1.6; text-align: center; }
@media (max-width: 860px) { .worry { padding-block: 72px 88px; } .worry__list { grid-template-columns: 1fr; } }

/* 夜の3章 */
.night { background: var(--night); color: var(--night-ink); position: relative; }
.night::before { content: ""; display: block; height: 140px; background: linear-gradient(var(--paper-2), var(--night)); }
.night sup { color: var(--night-muted); }
.feat { padding-block: 72px 112px; }
.feat__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.feat__in--rev { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.feat__fig { margin: 0; min-width: 0; }
.feat__fig > img { border-radius: 4px; }
.feat__text { min-width: 0; }
.feat__text > p:not(.feat__no) { margin-top: 22px; color: var(--night-muted); }
.feat__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--brass); margin-bottom: 12px; }
.feat__lead { margin-top: 18px; color: var(--night-muted); max-width: 40em; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 32px 0 0; border-top: 1px solid var(--night-line); }
.chips div { padding: 14px 10px 0 0; }
.chips dt { font-size: 12px; color: var(--night-muted); }
.chips dd { margin: 2px 0 0; font-family: var(--display); font-size: 18px; }
@media (max-width: 860px) {
  .feat { padding-block: 48px 72px; }
  .feat__in, .feat__in--rev { grid-template-columns: 1fr; gap: 28px; }
  .feat__in--rev .feat__text { order: 2; }
}

/* 星図 */
.sky { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; margin-top: 40px; align-items: start; }
.sky__stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: center; padding: 26px; }
.sky__canvas { width: 100%; height: 100%; display: block; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #131B2E 0%, #0C1220 70%, #0A0F1B 100%); box-shadow: 0 0 0 1px var(--night-line); touch-action: none; }
.sky__dir { position: absolute; font-size: 12px; color: var(--night-muted); line-height: 1; }
.sky__dir--n { top: 4px; left: 50%; transform: translateX(-50%); }
.sky__dir--s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.sky__dir--e { left: 2px; top: 50%; transform: translateY(-50%); }
.sky__dir--w { right: 2px; top: 50%; transform: translateY(-50%); }
.sky__ctrl { display: grid; gap: 18px; padding: 26px; background: var(--night-2); border-radius: 6px; }
.sky__note { font-size: 12.5px; color: var(--night-muted); line-height: 1.7; }
.sky__now { font-size: 13px; color: var(--night-ink); min-height: 1.7em; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 12.5px; color: inherit; opacity: 0.78; display: flex; justify-content: space-between; }
.field__help { font-size: 12px; color: var(--night-muted); margin-top: -12px; }
.input { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 16px; color: inherit; background: transparent; border: 1px solid var(--night-line); border-radius: 6px; color-scheme: dark; }
select.input option { background: var(--night-2); color: var(--night-ink); }
input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--brass); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brass); }
@media (max-width: 860px) { .sky { grid-template-columns: 1fr; gap: 24px; } .sky__stage { padding: 22px; } }

/* 昼と夜の部屋 */
.room { display: grid; gap: 16px; justify-items: start; }
.room__frame { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #1a1f2a; }
.room__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease; }
.room__img--night { opacity: 0; }
.room.is-dark .room__img--night { opacity: 1; }
.room__cap { font-size: 12.5px; color: var(--night-muted); }

/* 声 */
.voice { padding-block: 112px 96px; background: linear-gradient(var(--night) 0, var(--paper-2) 120px, var(--paper) 100%); }
.voice .h2 { padding-top: 40px; }
.voice__list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.voice__card { background: var(--card); padding: 30px 28px; border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.voice__card blockquote { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.9; }
.voice__who { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .voice__list { grid-template-columns: 1fr; } }

/* 色 */
.colors { padding-block: 72px 96px; }
.colors__fig { margin: 32px 0 0; }
.colors__names { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.colors__names li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.colors__names b { font-family: var(--display); font-weight: 500; font-size: 19px; }
.reading { font-size: 12px; color: var(--muted); }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
.colors__note { margin-top: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* 比べる */
.compare { padding-block: 96px; background: var(--paper-2); }
.table-wrap { margin-top: 36px; overflow-x: auto; border-radius: 4px; }
.table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--card); font-size: 14.5px; }
.table th, .table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 13px; color: var(--muted); font-weight: 500; }
.table tbody th { font-weight: 500; white-space: nowrap; }
.table .is-us { background: var(--navy); color: var(--night-ink); }
.table thead .is-us { color: var(--brass); font-family: var(--display); font-size: 17px; }
.spec { margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.spec div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
@media (max-width: 760px) { .spec { grid-template-columns: 1fr; } }

/* 流れと保証 */
.flow { padding-block: 96px; }
.flow__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.flow__list li { padding: 0 22px 0 0; position: relative; }
.flow__step { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); font-family: var(--mono); font-size: 14px; }
.flow__list li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 46px; right: 10px; height: 1px; background: var(--line); }
.flow__head { font-family: var(--display); font-size: 19px; margin: 14px 0 6px; }
.flow__list p:not(.flow__head) { font-size: 14px; color: var(--muted); }
.promise { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise__item { background: var(--card); padding: 24px 24px 26px; border-radius: 4px; font-size: 14px; color: var(--muted); }
.promise__item b { display: block; font-family: var(--display); font-weight: 500; font-size: 34px; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
@media (max-width: 860px) {
  .flow__list { grid-template-columns: 1fr; gap: 22px; }
  .flow__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; padding: 0; }
  .flow__list li::after { display: none; }
  .flow__head { margin: 4px 0 2px; }
  .flow__list p:not(.flow__head) { grid-column: 2; }
  .promise { grid-template-columns: 1fr; }
}

/* よくある質問 */
.faq { padding-block: 72px 112px; }
.faq__list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 15px; }

/* 最後の呼びかけ */
.order { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding-block: 120px; }
.order__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.order__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: center; }
.order__title { font-family: var(--display); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.35; }
.order__text p { margin-top: 20px; color: var(--night-muted); }
.buy { display: grid; gap: 20px; padding: 28px; background: rgba(17, 23, 39, 0.88); border: 1px solid var(--night-line); border-radius: 8px; backdrop-filter: blur(6px); }
.buy__colors { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.buy__colors legend { margin-bottom: 8px; width: 100%; }
.pick { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--night-line); border-radius: 999px; cursor: pointer; font-size: 14.5px; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--brass); background: rgba(194, 154, 91, 0.12); }
.pick:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.buy__total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--night-muted); }
.buy__total output { font-size: 26px; color: var(--night-ink); }
.buy__total span { font-size: 12px; }
.buy__done { font-size: 14px; line-height: 1.8; padding: 16px; border-radius: 6px; background: rgba(194, 154, 91, 0.12); border: 1px solid rgba(194, 154, 91, 0.4); }
.buy__done b { color: var(--brass); }
@media (max-width: 860px) { .order { padding-block: 88px 96px; } .order__in { grid-template-columns: 1fr; gap: 32px; } }

/* 下の注記 */
.foot { background: var(--night); color: var(--night-muted); padding-block: 56px calc(56px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--night-line); font-size: 12.5px; }
.foot__name { font-family: var(--display); font-size: 20px; color: var(--night-ink); }
.foot__name span { font-family: var(--mono); font-size: 11px; margin-left: 12px; color: var(--night-muted); letter-spacing: 0.1em; }
.foot__notes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.foot__fiction { margin-top: 20px; max-width: 46em; }

/* スマートフォンの下の帯 */
.dock { display: none; }
@media (max-width: 860px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut); background: rgba(10, 14, 23, 0.92); color: var(--night-ink);
    backdrop-filter: blur(10px); transform: translateY(110%); transition: transform .3s ease; }
  .dock.is-on { transform: none; }
  .dock__price { font-family: var(--mono); font-size: 16px; display: flex; flex-direction: column; line-height: 1.3; }
  .dock__price span { font-family: var(--body); font-size: 11px; color: var(--night-muted); }
}
