/* =========================================================
   ツキアワセ 公式サイト — 夜空 × シネマティック
   official ページ専用スタイル（support / privacy とは分離）
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@500;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=DM+Mono:wght@400;500&display=swap");

:root {
  --ink: #f4f1ea;          /* 月白に近い文字色 */
  --ink-dim: #a9b0bf;      /* 弱めの文字 */
  --ink-faint: #6c7486;    /* さらに弱い */
  --night: #05060c;        /* 最暗部 */
  --night-2: #0a0e1a;      /* 背景 */
  --night-3: #111729;      /* パネル */
  --line: rgba(180, 192, 220, 0.14);
  --line-strong: rgba(180, 192, 220, 0.28);
  --gold: #e8c87a;         /* 塔のライトアップ色 = アクセント */
  --gold-soft: rgba(232, 200, 122, 0.16);
  --moon: #eef1f6;
  --halo: rgba(120, 150, 220, 0.35);

  --shell: 1180px;
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.official-v2 {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* 星屑のかすかなテクスチャを全体背景に */
body.official-v2::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 18% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 72% 14%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.4px 1.4px at 42% 64%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 88% 52%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 30% 84%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 62% 92%, rgba(255, 255, 255, 0.35), transparent),
    var(--night-2);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--gold); color: #161003; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #161003;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0.02em;
  margin: 0;
}

/* =====================  ナビ  ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(5, 6, 12, 0.72), rgba(5, 6, 12, 0));
  backdrop-filter: blur(2px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 9, 16, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px rgba(0, 0, 0, 0.5);
}
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 0.86rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.nav__links a { position: relative; padding: 4px 0; transition: color 0.25s; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: #161003; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* =====================  ヒーロー  ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  animation: slowZoom 22s ease-out forwards;
}
@keyframes slowZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--night) 4%, rgba(5, 6, 12, 0.2) 42%, rgba(5, 6, 12, 0.55) 100%),
    radial-gradient(120% 80% at 70% 16%, transparent 40%, rgba(5, 6, 12, 0.5) 100%);
}

/* 撮影フレームのトンボ */
.frame-mark {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(244, 241, 234, 0.5);
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.8s;
}
.frame-mark--tl { top: 92px; left: clamp(20px, 5vw, 56px); border-right: 0; border-bottom: 0; }
.frame-mark--tr { top: 92px; right: clamp(20px, 5vw, 56px); border-left: 0; border-bottom: 0; }
.frame-mark--bl { bottom: 132px; left: clamp(20px, 5vw, 56px); border-right: 0; border-top: 0; }
.frame-mark--br { bottom: 132px; right: clamp(20px, 5vw, 56px); border-left: 0; border-top: 0; }

.hero__inner {
  position: relative;
  z-index: 4;
  padding-bottom: clamp(40px, 8vh, 96px);
  padding-top: 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}
.hero__copy { max-width: clamp(320px, 46vw, 540px); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.12;
  margin: 18px 0 22px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: inline-block;
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-dim);
  max-width: 38ch;
  margin: 0 0 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* スタガー登場 */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.30s; }
.d3 { animation-delay: 0.45s; }
.d4 { animation-delay: 0.60s; }
.d5 { animation-delay: 0.75s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.btn--primary {
  background: var(--gold);
  color: #18120300;
  color: #1a1304;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(232, 200, 122, 0.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(232, 200, 122, 0.6); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* EXIF風データレール */
.exif {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(8, 11, 20, 0.55);
  backdrop-filter: blur(10px);
  padding: 20px 22px;
  min-width: 240px;
}
.exif__top {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.exif dl { margin: 0; }
.exif dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.exif dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.exif dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.exif dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ストアドック */
.store-dock {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.store-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 14, 26, 0.5);
  min-width: 188px;
}
.store-line span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.store-line strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-dim);
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .exif { width: 100%; }
}

/* =====================  セクション共通  ===================== */
.section { position: relative; padding: clamp(88px, 14vh, 150px) 0; }
.section__head { max-width: 60ch; margin-bottom: 56px; }
.section__head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 16px 0 0;
}
.section__head p { color: var(--ink-dim); margin: 18px 0 0; max-width: 50ch; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* on-scroll reveal */
[data-io] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-io].in { opacity: 1; transform: none; }

/* =====================  コンセプト（三日月の縦写真）  ===================== */
.concept { background: var(--night); }
.concept__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.concept__figure {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.concept__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 1.2s ease;
}
.concept__figure:hover img { transform: scale(1.04); }
.concept__figure figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  background: rgba(5, 6, 12, 0.6);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.concept h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 22px; }
.concept p { color: var(--ink-dim); max-width: 46ch; }

/* 月相インジケーター */
.phases {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.phase { text-align: center; }
.phase__disc {
  --p: 50%;
  width: 38px; height: 38px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background:
    linear-gradient(90deg, var(--moon) var(--p), #161b2b var(--p));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 14px rgba(140, 170, 230, 0.18);
}
.phase:nth-child(1) .phase__disc { background: #131826; box-shadow: inset 0 0 0 1px var(--line-strong); }
.phase:nth-child(2) .phase__disc { --p: 50%; }
.phase:nth-child(3) .phase__disc { background: var(--moon); box-shadow: 0 0 18px rgba(180, 200, 245, 0.4), inset 0 0 0 1px var(--line); }
.phase:nth-child(4) .phase__disc { background: linear-gradient(270deg, var(--moon) 50%, #161b2b 50%); }
.phase span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* =====================  使い方 3ステップ  ===================== */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 40px 32px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s ease;
}
.step:last-child { border-right: 0; }
.step:hover { background: linear-gradient(180deg, var(--gold-soft), transparent 70%); }
.step__index {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.step__glyph {
  width: 52px; height: 52px;
  margin: 22px 0 18px;
  color: var(--gold);
}
.step h3 { font-size: 1.32rem; margin-bottom: 12px; }
.step p { color: var(--ink-dim); margin: 0; font-size: 0.96rem; }

@media (max-width: 820px) {
  .concept__grid { grid-template-columns: 1fr; }
  .concept__figure { max-width: 360px; }
  .steps__grid { grid-template-columns: 1fr; }
  .step { border-right: 0; }
}

/* =====================  情報を一枚に（計測リスト）  ===================== */
.proof { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.proof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.proof h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.proof p { color: var(--ink-dim); margin-top: 18px; max-width: 42ch; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.specs dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.04rem;
  text-align: right;
  color: var(--ink);
}
@media (max-width: 820px) { .proof__grid { grid-template-columns: 1fr; } }

/* =====================  料金  ===================== */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
.plan {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 34px 32px 38px;
  background: rgba(10, 14, 26, 0.5);
  position: relative;
  overflow: hidden;
}
.plan--accent {
  border-color: var(--gold);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--gold-soft), transparent 55%),
    rgba(14, 13, 9, 0.6);
}
.plan__tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.plan--accent .plan__tag { color: var(--gold); }
.plan__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  margin: 14px 0 6px;
}
.plan__price small { font-size: 0.9rem; color: var(--ink-faint); font-weight: 500; }
.plan p { color: var(--ink-dim); margin: 8px 0 0; font-size: 0.96rem; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; }
.plan li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.94rem;
  color: var(--ink-dim);
  border-top: 1px dashed var(--line);
}
.plan li::before { content: "✶"; color: var(--gold); }
@media (max-width: 720px) { .pricing__grid { grid-template-columns: 1fr; } }

/* =====================  最終CTA  ===================== */
.final {
  position: relative;
  text-align: center;
  padding: clamp(96px, 16vh, 168px) 0;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  left: 50%; top: -10%;
  width: 540px; height: 540px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--halo), transparent 62%);
  filter: blur(8px);
  z-index: -1;
}
.final .moon-orb {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 36px;
  background: radial-gradient(circle at 38% 34%, #ffffff, #d7ddea 55%, #aab2c6 100%);
  box-shadow: 0 0 60px rgba(190, 205, 245, 0.45), inset -8px -8px 22px rgba(80, 95, 130, 0.5);
}
.final h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.final p { color: var(--ink-dim); margin: 18px auto 36px; max-width: 40ch; }
.final__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================  フッター  ===================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--night);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-dim); }
.footer__links a { transition: color 0.25s; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-faint); width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .hero__media img { animation: none; }
}
