/* ============================================================
   BASE — Reset + Global Styles
   ============================================================ */

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

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

body {
  font-family: var(--f-body);
  color: var(--c-text);
  line-height: 1.8;
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ---- Container ---- */
.container {
  max-width: var(--s-container);
  margin: 0 auto;
  padding: 0 var(--s-gutter);
}

/* ---- Global Background ---- */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}

.global-bg__gradient {
  position: absolute;
  inset: 0;
  background: var(--g-page);
}

.global-bg__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 55%, rgba(0,0,0,0.3) 75%, rgba(0,0,0,1) 90%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 55%, rgba(0,0,0,0.3) 75%, rgba(0,0,0,1) 90%);
}

.global-bg__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.04;
  filter: saturate(0.3);
}

/* ---- Noise Texture Overlay — disabled for clean white ---- */

/* ---- Button System ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base);
  position: relative;
  overflow: hidden;
}

.btn i {
  font-size: 12px;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover i {
  transform: translateX(4px);
}

/* Primary — warm orange solid */
.btn--primary {
  background: var(--c-orange);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--c-orange-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232, 103, 42, 0.3);
}

/* Ghost — transparent with border */
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}

.btn--ghost:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Gold — special CTA */
.btn--gold {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light));
  color: var(--c-text, #1A1A1A);
  font-weight: 700;
}

.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.3);
}

/* ---- Scroll Reveal — 全セクション共通（各セクションCSSからの重複定義を廃止） ---- */
/* セクション固有のスコープ版（.section .rv {}）は各CSSで上書き可能 */
.rv {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
              transform 0.7s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.rv.rv-left  { transform: translateX(-32px); }
.rv.rv-right { transform: translateX( 32px); }
.rv.rv-up    { transform: translateY( 32px); }
.rv.rv-scale { transform: scale(0.92); }

.rv.is-visible {
  opacity: 1;
  transform: none;
}

.rv.d1 { transition-delay: 0.12s; }
.rv.d2 { transition-delay: 0.24s; }
.rv.d3 { transition-delay: 0.36s; }
.rv.d4 { transition-delay: 0.48s; }
.rv.d5 { transition-delay: 0.60s; }
.rv.d6 { transition-delay: 0.72s; }
.rv.d7 { transition-delay: 0.84s; }
.rv.d8 { transition-delay: 0.96s; }

/* ---- Reduced motion / noscript fallback ---- */
/* アニメーション無効環境では .rv 要素を即時表示 */
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
