/* =========================================================
   いくならNAU — 公式LP v0.1
   規律：夜の紺・黒＋金。アクセント（青ネオン）は夜景の1〜2点のみ。
   ========================================================= */

:root {
  --night-950: #04060c;
  --night-900: #0a1124;
  --navy-800: #0f1a36;
  --navy-700: #16264f;
  --gold-100: #fff1c9;
  --gold-300: #e9c977;
  --gold-500: #b8913f;
  --gold-700: #7a5a1f;
  --silver: #d8dce4;
  --ink: #ece8de;
  --ink-dim: rgba(236, 232, 222, .68);
  --ink-faint: rgba(236, 232, 222, .42);
  --neon: #5cc8ff;
  --window: #ffcf7a;

  --gold-grad: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-300) 30%, var(--gold-500) 58%, var(--gold-700) 80%, var(--gold-300) 100%);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --gutter: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night-950);
  color: var(--ink);
  font-family: var(--f-gothic);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--gold-300); color: var(--night-950); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 8px 14px; background: var(--gold-300); color: var(--night-950); text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }

.br-sp { display: inline; }
.sep-pc { display: none; }
@media (min-width: 720px) { .br-sp { display: none; } .sep-pc { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
}
.site-header__mark { color: var(--neon); display: block; line-height: 0; border-radius: 4px; }
.site-header__age {
  margin: 0; font-family: var(--f-display); font-size: 12px; letter-spacing: .12em;
  color: var(--ink-dim); border: 1px solid rgba(236,232,222,.28); border-radius: 999px;
  padding: 3px 10px 2px;
}

/* ---------- 01 First view ---------- */
.fv {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

/* 空：時間帯で深さが変わる */
.fv__sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 55% at 50% 100%, rgba(40, 70, 140, .55) 0%, rgba(22, 38, 79, .25) 45%, transparent 75%),
    radial-gradient(60% 30% at 50% 96%, rgba(233, 201, 119, .16) 0%, transparent 70%),
    linear-gradient(180deg, var(--night-950) 0%, var(--night-900) 48%, var(--navy-800) 78%, var(--navy-700) 100%);
  transition: opacity 1.2s ease;
}
.fv[data-phase="day"] .fv__sky {
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(120, 90, 140, .45) 0%, rgba(40, 50, 100, .3) 45%, transparent 78%),
    radial-gradient(70% 35% at 50% 98%, rgba(233, 201, 119, .28) 0%, transparent 70%),
    linear-gradient(180deg, #070b18 0%, #121c3a 50%, #23305a 80%, #3a3d66 100%);
}
.fv[data-phase="late"] .fv__sky {
  background:
    radial-gradient(110% 45% at 50% 100%, rgba(30, 55, 120, .5) 0%, transparent 72%),
    radial-gradient(55% 25% at 50% 97%, rgba(233, 201, 119, .12) 0%, transparent 70%),
    linear-gradient(180deg, #020309 0%, #060b1a 55%, #0c1530 85%, #122042 100%);
}

.fv__city {
  position: absolute; inset: auto 0 0 0; z-index: -2;
  height: 52%;
  pointer-events: none;
}
.fv__skyline { display: block; width: 100%; height: 100%; }
.fv__skyline .bldg { fill: #060a16; }
.fv__skyline .bldg--far { fill: #0c1430; }
.fv__skyline .win {
  fill: var(--window);
  opacity: 0;
  transition: opacity .9s ease;
}
.fv__skyline .win.is-lit { opacity: var(--o, .8); }
.fv__skyline .sign {
  fill: none; stroke: var(--neon); stroke-width: 2.4; stroke-linecap: round;
  opacity: 0; transition: opacity 1.4s ease;
  filter: drop-shadow(0 0 4px var(--neon)) drop-shadow(0 0 12px rgba(92, 200, 255, .6));
}
.fv__skyline .sign.is-lit { opacity: .9; }

/* 地面付近の霞（夜景と文字の間に階調を作る） */
.fv__city::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,6,12,0) 0%, rgba(4,6,12,0) 55%, rgba(4,6,12,.55) 80%, rgba(4,6,12,.94) 100%);
}

.fv__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fv__inner {
  align-self: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 96px var(--gutter) 40px;
  /* 夜景の上で文字が読めるよう、上寄せ */
  margin-top: -6vh;
}

/* ロゴ：基本は銀の画像。?logo=gold で書体の金版に切り替え（★D-02 判断待ちの比較用） */
.logo-slot { display: flex; justify-content: center; }
.logo-basic { display: block; line-height: 0; }
.logo-basic img {
  display: block;
  width: clamp(250px, 80vw, 500px);
  height: auto;
  mix-blend-mode: screen; /* 支給画像の黒地を夜空に溶かす */
}
.logo-slot .logo { display: none; }
.logo-gold .logo-slot .logo { display: flex; }
.logo-gold .logo-basic { display: none; }

/* ロゴ（書体による金の版） */
.logo {
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1;
}
.logo__sub {
  font-family: var(--f-mincho); font-weight: 500;
  font-size: clamp(15px, 4.2vw, 24px);
  letter-spacing: .62em; margin-right: -.62em; /* 字間分の右余りを相殺して中心を合わせる */
  color: var(--silver);
  background: linear-gradient(180deg, #ffffff 0%, var(--silver) 45%, #8b92a3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo__main {
  position: relative;
  font-family: var(--f-display); font-weight: 600;
  font-variation-settings: "opsz" 28; /* 細線が消えない光学サイズ */
  font-size: clamp(104px, 34vw, 280px);
  letter-spacing: .02em;
  line-height: .86;
  margin-top: .06em;
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(255, 252, 238, .95) 50%, transparent 62%),
    var(--gold-grad);
  background-size: 260% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(233, 201, 119, .22));
}
.is-ready .logo__main { animation: sheen 2.4s var(--ease-out) .5s 1 both; }
@keyframes sheen {
  from { background-position: 160% 0, 0 0; }
  to   { background-position: -60% 0, 0 0; }
}

.fv__title {
  margin: clamp(22px, 5vw, 36px) 0 0;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(34px, 9.6vw, 64px);
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(4, 6, 12, .8);
}
.fv__lead {
  margin: 14px 0 0;
  font-size: clamp(14px, 3.7vw, 16px);
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--ink-dim);
  text-shadow: 0 1px 12px rgba(4, 6, 12, .9);
}

.fv__now {
  margin: 22px 0 0;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mincho); font-weight: 500;
  font-size: clamp(14px, 3.8vw, 17px);
  letter-spacing: .1em;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
  min-height: 1.8em;
}
.fv__now-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 0 rgba(233, 201, 119, .6);
}
/* 時刻表示の点は、時刻が更新された瞬間にだけ一度灯る */
.fv__now-dot.is-tick { animation: tick 1.6s ease-out 1; }
@keyframes tick {
  from { box-shadow: 0 0 0 0 rgba(233, 201, 119, .7); }
  to   { box-shadow: 0 0 0 10px rgba(233, 201, 119, 0); }
}

.fv__cta {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  width: min(100%, 340px);
}
@media (min-width: 720px) {
  .fv__cta { flex-direction: row; width: auto; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-gothic); font-weight: 500; font-size: 15px; letter-spacing: .08em;
  text-decoration: none; border-radius: 999px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s ease, border-color .3s ease;
}
.btn--gold {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-300) 45%, var(--gold-500) 100%);
  box-shadow: 0 0 0 1px rgba(255, 241, 201, .5) inset, 0 10px 30px -10px rgba(233, 201, 119, .55);
}
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 241, 201, .7) inset, 0 14px 36px -10px rgba(233, 201, 119, .75); }
.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(236, 232, 222, .32);
  background: rgba(4, 6, 12, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold-300); color: var(--gold-100); }

.fv__status {
  margin: 0; padding: 0 var(--gutter) max(20px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px; line-height: 1.8; letter-spacing: .08em;
  color: var(--ink-faint);
}

/* 入場：文字は静かに立ち上がるだけ */
.js .fv__inner > * { opacity: 0; transform: translateY(10px); }
.js.is-ready .fv__inner > * {
  opacity: 1; transform: none;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.js.is-ready .fv__inner > :nth-child(2) { transition-delay: .25s; }
.js.is-ready .fv__inner > :nth-child(3) { transition-delay: .4s; }
.js.is-ready .fv__inner > :nth-child(4) { transition-delay: .7s; }
.js.is-ready .fv__inner > :nth-child(5) { transition-delay: .85s; }

/* ---------- 01 First view：B案（?fv=b） ----------
   実写の夜の繁華街。動きは「ごく緩やかな寄り」1つだけで、文字が出揃ってから始まる。 */
.fv__photo { display: none; }
.fv-b .fv__sky,
.fv-b .fv__city { display: none; }
.fv-b .fv__photo {
  display: block;
  position: absolute; inset: 0; z-index: -3;
  overflow: hidden;
  background: var(--night-950);
}
.fv-b .fv__photo-img {
  position: absolute; inset: 0;
  background: url("../fv_b_night_portrait.webp") 50% 62% / cover no-repeat;
  transform-origin: 50% 70%;
  will-change: transform;
}
@media (min-aspect-ratio: 1/1) {
  .fv-b .fv__photo-img {
    background-image: url("../fv_b_night_landscape.webp");
    background-position: 50% 60%;
    transform-origin: 50% 66%;
  }
}
/* 可読性の層：上は空を深く、文字の帯を落とし、足元は注記のために締める */
.fv-b .fv__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 36% at 50% 54%, rgba(4, 6, 12, .66) 0%, rgba(4, 6, 12, .36) 62%, rgba(4, 6, 12, 0) 100%),
    linear-gradient(180deg, rgba(4, 6, 12, .55) 0%, rgba(4, 6, 12, .28) 30%, rgba(4, 6, 12, .34) 62%, rgba(4, 6, 12, .9) 100%);
}
@media (min-aspect-ratio: 1/1) {
  .fv-b .fv__photo::after {
    background:
      radial-gradient(46% 50% at 50% 54%, rgba(4, 6, 12, .7) 0%, rgba(4, 6, 12, .38) 62%, rgba(4, 6, 12, 0) 100%),
      linear-gradient(180deg, rgba(4, 6, 12, .5) 0%, rgba(4, 6, 12, .22) 34%, rgba(4, 6, 12, .3) 64%, rgba(4, 6, 12, .9) 100%),
      linear-gradient(90deg, rgba(4, 6, 12, .45) 0%, rgba(4, 6, 12, 0) 22%, rgba(4, 6, 12, 0) 78%, rgba(4, 6, 12, .45) 100%);
  }
}
.fv-b .fv__grain { opacity: .09; }
.fv-b .fv__lead { color: rgba(236, 232, 222, .82); text-shadow: 0 1px 14px rgba(4, 6, 12, 1), 0 0 2px rgba(4, 6, 12, .9); }
.fv-b .fv__now { text-shadow: 0 1px 12px rgba(4, 6, 12, 1); }
.fv-b .fv__status { color: rgba(236, 232, 222, .55); }

.fv-b.is-ready .fv__photo-img { animation: kenburns 30s cubic-bezier(.33, 0, .25, 1) 2.2s 1 both; }
.fv-b .fv__photo-img.is-paused { animation-play-state: paused; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
/* B案では時刻の点の脈動を出さない（同時に動くものは寄りの1つだけ） */
.fv-b .fv__now-dot.is-tick { animation: none; }

/* ---------- 09 Notify（仮置き） ---------- */
.notify {
  padding: 120px var(--gutter) 112px;
  text-align: center;
  background: linear-gradient(180deg, var(--night-950) 0%, var(--night-900) 100%);
}
.notify__eyebrow {
  margin: 0; font-family: var(--f-display); font-style: italic; font-size: 14px; letter-spacing: .16em;
  color: var(--gold-300);
}
.notify__title {
  margin: 18px 0 0;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(24px, 6.4vw, 40px); line-height: 1.6; letter-spacing: .08em;
}
.notify__text {
  margin: 22px auto 0; max-width: 34em;
  font-size: 14px; line-height: 2; color: var(--ink-dim);
}

/* ---------- 10 Footer ---------- */
.site-footer {
  padding: 40px var(--gutter) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(236, 232, 222, .08);
  text-align: center;
  background: var(--night-900);
}
.site-footer__age { margin: 0; font-size: 12px; line-height: 1.9; color: var(--ink-dim); }
.site-footer__copy { margin: 16px 0 0; font-family: var(--f-display); font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); }

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .site-header { padding-top: 28px; }
  .fv__city { height: 58%; }
  .fv__inner { margin-top: -10vh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fv__inner > * { opacity: 1; transform: none; }
  .logo__main { background-position: -60% 0, 0 0; }
}
