/* =====================================================
   base.css
   グローバル変数・リセット・タイポグラフィ・
   アニメーション・ユーティリティ
   ===================================================== */

/* ─── CSS Variables ─── */
:root {
  --primary:      #0B0B0F;
  --surface:      #FAF8F4;
  --accent:       #C8A24B;
  --accent-dim:   #9E7D34;
  --midnight:     #1F2A44;
  --text:         #1A1A1A;
  --muted:        #5A5A5A;
  --light:        #8A8A8A;
  --border:       rgba(200,162,75,.18);
  --border-light: rgba(200,162,75,.10);
  --white:        #FFFFFF;
  --max-w:        1280px;
  --header-h:     72px;
  --ease-out:     cubic-bezier(.16,1,.3,1);
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ─── Typography helpers ─── */
.font-serif { font-family: 'Cormorant Garamond', 'Shippori Mincho B1', serif; }
.font-ja    { font-family: 'Shippori Mincho B1', serif; }

/* ─── Keyframe Animations ─── */
@keyframes kenburns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1)    translate(-.5%, .3%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,162,75,.35); }
  50%       { box-shadow: 0 0 0 12px rgba(200,162,75,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Motion preference ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible       { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 2px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .3s var(--ease-out);
  white-space: nowrap;
}
.btn-gold {
  background: var(--accent);
  color: var(--primary);
}
.btn-gold:hover {
  background: #d4ae5c;
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(200,162,75,.35);
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,.55);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.02);
}
.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.02);
}

/* ─── Section commons ─── */
section {
  padding: clamp(80px, 12vw, 160px) 0;
}
.section-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: .75rem;
}
.section-title-ja {
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.section-desc {
  font-size: .95rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}
.gold-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}
