/* ZenDisk LP — 闇の中でサンバーストだけが光る。アプリ本体と同じ世界観。 */

:root {
  --void: #0b0d13;
  --raised: #141720;
  --ink: #e9ebf1;
  --ink2: #9298a8;
  --ink3: #5c6272;
  --hair: rgba(255, 255, 255, 0.07);
  --serif: "Iowan Old Style", "Palatino", Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 700px at 50% -8%, rgba(40, 52, 88, 0.32), transparent 70%),
    var(--void);
  color: var(--ink);
  font: 16px/1.95 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(126, 166, 224, 0.3); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

main { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
section { padding: 65px 0; }

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

/* ---- header(スクロールで磨りガラス化) ---- */
header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
header.scrolled {
  background: rgba(11, 13, 19, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--hair);
}
.head-in {
  max-width: 1120px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 27px; height: 27px; border-radius: 7px; }
.brand span { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.head-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.head-right .lang { color: var(--ink3); text-decoration: none; transition: color 0.25s; }
.head-right .lang:hover { color: var(--ink); }

/* CTA — 月光の白。スペクトラムと競わせない */
.cta {
  display: inline-block; background: var(--ink); color: #0c0e13;
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(233, 235, 241, 0.18); }
.cta.small { padding: 7px 16px; font-size: 13px; }
.cta-note { font-size: 12.5px; color: var(--ink3); margin-top: 14px; }

/* ---- hero ---- */
.hero { text-align: center; padding-top: 44px; position: relative; }
.hero-eyebrow { font-size: 13px; letter-spacing: 0.22em; color: var(--ink3); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 6.6vw, 66px); line-height: 1.3;
  letter-spacing: 0.05em; font-feature-settings: "palt" 1;
  margin-top: 14px;
}
.hero .sub {
  color: var(--ink2); font-size: clamp(15px, 2vw, 17.5px);
  max-width: 36em; margin: 18px auto 0;
}
.hero .cta { margin-top: 28px; padding: 13px 30px; font-size: 15px; }

/* 星屑 — 起動画面と同じ、ごく淡く */
.stars { position: absolute; inset: -60px 0 0; pointer-events: none; z-index: -1; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(233, 235, 241, 0.35);
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.5; } }

/* ---- sunburst ---- */
.burst-wrap {
  position: relative; width: min(640px, 90vw); margin: 40px auto 0;
  aspect-ratio: 1;
}
/* 背後の星雲 — チャートと同じスペクトラムがぼんやり滲む(静的なので描画コストは一度きり) */
.burst-glow {
  position: absolute; inset: 6%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from -90deg,
    hsl(25 70% 52%), hsl(75 65% 50%), hsl(130 60% 50%), hsl(185 65% 52%),
    hsl(240 60% 58%), hsl(300 60% 56%), hsl(350 65% 55%), hsl(25 70% 52%));
  filter: blur(90px); opacity: 0.22;
}
/* 中心のほのかな灯り(起動画面の中心光) */
.burst-core {
  position: absolute; top: 50%; left: 50%; width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(126, 166, 224, 0.13), rgba(126, 166, 224, 0.04) 55%, transparent 72%);
}
.burst-wrap svg { width: 100%; height: 100%; display: block; }
#burst-spin { transform-origin: 360px 360px; animation: ambient 240s linear infinite; }
@keyframes ambient { to { transform: rotate(360deg); } }

#burst path {
  stroke: var(--void); stroke-width: 2; cursor: default;
  transform-origin: 360px 360px;
  opacity: 0; transform: scale(0.985);
  animation: sweep 0.7s var(--ease) forwards;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
@keyframes sweep { to { opacity: 1; transform: scale(1); } }
/* スイープ完了後の定常状態(dimmed 系より前に置く — 後勝ちで dimmed が優先される) */
#burst path.done { opacity: 1; transform: none; animation: none; }
#burst.dimmed path { opacity: 0.22; }
#burst.dimmed path.lit { opacity: 1; transform: scale(1.018); }

.burst-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none; width: 30%;
}
.burst-center .name {
  font-size: 14px; color: var(--ink2); letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.burst-center .size { font-family: var(--mono); font-size: clamp(20px, 3.6vw, 30px); font-weight: 600; margin-top: 2px; }
.burst-caption { text-align: center; font-size: 13px; color: var(--ink3); margin-top: 28px; }

/* ---- セクションの環境光 ----
   サンバーストの色相環をページの縦方向に降りていく。
   ごく淡い放射光 + アイブロウの文字色だけで示す(彩度は上げない) */
.tint-warm   { --tint-bg: hsla(30, 60%, 55%, 0.05);  --tint-accent: hsla(30, 45%, 66%, 0.9); }
.tint-teal   { --tint-bg: hsla(178, 60%, 50%, 0.05); --tint-accent: hsla(178, 42%, 60%, 0.9); }
.tint-green  { --tint-bg: hsla(140, 55%, 50%, 0.05); --tint-accent: hsla(140, 38%, 62%, 0.9); }
.tint-indigo { --tint-bg: hsla(222, 65%, 58%, 0.065); --tint-accent: hsla(222, 50%, 70%, 0.9); }
.tint-pink   { --tint-bg: hsla(330, 55%, 58%, 0.05); --tint-accent: hsla(330, 40%, 68%, 0.9); }
.tint-violet { --tint-bg: hsla(268, 55%, 60%, 0.055); --tint-accent: hsla(268, 42%, 70%, 0.9); }
.tint-gold   { --tint-bg: hsla(45, 65%, 55%, 0.05);  --tint-accent: hsla(45, 45%, 64%, 0.9); }
/* 環境光はカラムに閉じず、ビューポート全幅にストレッチ */
[class*="tint-"] { position: relative; }
[class*="tint-"]::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background: radial-gradient(ellipse 62% 55% at 50% 18%, var(--tint-bg), transparent 74%);
  pointer-events: none; z-index: -1;
}
.zen[class*="tint-"]::before {
  background: radial-gradient(ellipse 62% 58% at 50% 48%, var(--tint-bg), transparent 74%);
}
[class*="tint-"] .eyebrow { color: var(--tint-accent); }

/* ---- 章見出し ---- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink3); text-align: center;
}
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 4vw, 38px); line-height: 1.5; letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  text-align: center; margin-top: 14px;
}
.lede { color: var(--ink2); text-align: center; max-width: 36em; margin: 18px auto 0; }

/* ---- 三つの動詞 ---- */
.verse { display: flex; align-items: center; gap: 60px; margin-top: 100px; }
.verse:nth-of-type(even) { flex-direction: row-reverse; }
.verse .txt { flex: 0 0 320px; }
.verse .txt .no {
  font-family: var(--serif); font-size: 15px; color: var(--ink3); letter-spacing: 0.2em;
}
.verse .txt .no::after {
  content: ""; display: block; width: 44px; height: 1px;
  background: var(--hair); margin-top: 14px;
}
.verse .txt h3 {
  font-family: var(--serif); font-weight: 500; font-size: 29px;
  letter-spacing: 0.07em; font-feature-settings: "palt" 1; margin-top: 16px;
}
.verse .txt p { color: var(--ink2); font-size: 15px; margin-top: 16px; }
.verse .pic { flex: 1; min-width: 0; }
.verse .pic .frame {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 90px rgba(0, 0, 0, 0.6);
}
.verse .pic .frame img { transform: scale(1.045); }

/* ---- 数字(速さ) ---- */
.numbers {
  display: flex; justify-content: center; margin-top: 70px; text-align: center;
}
.numbers > div { padding: 0 clamp(28px, 5vw, 64px); }
.numbers > div + div { border-left: 1px solid var(--hair); }
.numbers .n { font-family: var(--mono); font-size: clamp(34px, 5.5vw, 56px); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.numbers .l { color: var(--ink3); font-size: 13px; margin-top: 10px; }

/* ---- 安全(三段階) ---- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.level {
  position: relative; border-radius: 16px; padding: 30px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--hair);
}
.level .dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 14px 2px var(--halo, transparent);
}
.level h3 { font-size: 15.5px; font-weight: 600; margin-top: 16px; }
.level p { color: var(--ink2); font-size: 13.5px; margin-top: 8px; line-height: 1.85; }
.safety-notes { display: flex; justify-content: center; gap: 12px 34px; flex-wrap: wrap; margin-top: 44px; color: var(--ink2); font-size: 14px; }

/* ---- 静かな一文(プライバシー等) ---- */
.zen { text-align: center; padding: 100px 0; }
.mark { width: 46px; height: 46px; margin: 0 auto 46px; display: block; }
.zen blockquote {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(23px, 3.5vw, 34px); line-height: 1.95; letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
}
.zen .note { color: var(--ink3); font-size: 13.5px; margin-top: 28px; }

/* ---- AI ---- */
.ai-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 780px; margin: 52px auto 0; }
.ai-rules .rule {
  border-radius: 16px; padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--hair);
}
.ai-rules h3 { font-size: 15px; font-weight: 600; }
.ai-rules p { color: var(--ink2); font-size: 13.5px; margin-top: 8px; line-height: 1.85; }

/* ---- 価格 ---- */
.price-card {
  max-width: 470px; margin: 60px auto 0; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
  padding: 48px 42px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.price-card .amount { font-family: var(--mono); font-size: 54px; font-weight: 600; }
.price-card .term { color: var(--ink2); font-size: 14px; margin-top: 4px; }
.price-card ul { list-style: none; margin: 28px 0 0; color: var(--ink2); font-size: 14px; line-height: 2.35; }
.price-card .cta { margin-top: 32px; }
.pro-note { text-align: center; color: var(--ink3); font-size: 13px; max-width: 40em; margin: 32px auto 0; }
.pro-note a { color: var(--ink2); }

/* ---- footer ---- */
footer {
  margin-top: 60px; border-top: 1px solid var(--hair);
  padding: 52px 24px 64px; text-align: center; font-size: 13px; color: var(--ink3);
}
footer .f-brand { width: 30px; height: 30px; border-radius: 8px; margin: 0 auto 22px; opacity: 0.9; }
footer nav { display: flex; justify-content: center; gap: 28px; margin-bottom: 18px; flex-wrap: wrap; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---- スクロール出現(JS が .reveal を付与 → 交差で .in) ---- */
.reveal { opacity: 0; transform: translateY(16px) scale(0.995); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive / motion ---- */
@media (max-width: 760px) {
  section { padding: 46px 0; }
  .verse, .verse:nth-of-type(even) { flex-direction: column; gap: 28px; margin-top: 76px; }
  .verse .txt { flex: none; text-align: center; }
  .verse .txt .no::after { margin-left: auto; margin-right: auto; }
  .levels { grid-template-columns: 1fr; }
  .ai-rules { grid-template-columns: 1fr; }
  .numbers { flex-direction: column; gap: 30px; }
  .numbers > div + div { border-left: none; }
  .zen { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  #burst-spin { animation: none; }
  #burst path { animation: none; opacity: 1; transform: none; }
  .stars i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
a:focus-visible, .cta:focus-visible { outline: 2px solid #7ea6e0; outline-offset: 3px; }
