/* =========================================================
   REBOOT CAMP — noir edition / base + globals
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* スムーススクロール層: bodyはネイティブスクロールのまま
   （overflow:hiddenにするとホイール/タッチのスクロールが死ぬ。
   高さは smooth.js が content 実高を body にインラインで設定する） */
body.has-smooth { overscroll-behavior-y: none; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

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

/* 極細スクロールバー（実スクロール上に補間を重ねるので見せる） */
::-webkit-scrollbar { width: 0; height: 0; }

/* フィルムグレインは全画面ブレンドがスクロール毎フレームの負荷になるため撤去
   （明るいリゾート基調ではほぼ視認できず、費用対効果が無い） */

/* ---- Typography primitives ---- */
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: var(--track-tight); line-height: var(--lh-tight); }
.mono    { font-family: var(--f-mono); font-weight: 400; }
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold-dim);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--line-gold); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec-y); position: relative; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---- Reveal 初期状態（JSが data-anim を検出して外す） ---- */
[data-anim-fade] { opacity: 0; transform: translateY(28px); will-change: transform, opacity; }
[data-anim-fade].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }

/* 文字分割: 各グリフの初期状態 */
.char { display: inline-block; will-change: transform, opacity; }
[data-anim-split] .char { opacity: 0; transform: translateY(0.9em) rotate(2deg); }
[data-anim-split].is-in .char {
  opacity: 1; transform: none;
  transition: transform 0.9s var(--ease), opacity 0.7s var(--ease);
  transition-delay: calc(var(--i) * 26ms);
}
.word { display: inline-block; white-space: nowrap; }

/* ---- Reduced motion: すべて即時表示・追従停止 ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-anim-fade], [data-anim-split] .char { opacity: 1 !important; transform: none !important; }
  body.has-smooth { height: auto !important; }
  [data-scroll-container] { transform: none !important; }
  .cursor, .cursor-dot { display: none !important; }
}

/* ---- モバイル: カスタムカーソル無効・実カーソル復帰 ---- */
@media (hover: none), (max-width: 860px) {
  .cursor, .cursor-dot { display: none !important; }
  body, a, button { cursor: auto; }
}
