/* =========================================
   base.css
   変数 / リセット / タイポグラフィ / 共通
   ========================================= */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f8;
  --color-bg-dark: #0a0a0a;
  --color-text: #0a0a0a;
  --color-text-soft: #3a3a3a;
  --color-text-muted: #6b6b6b;
  --color-text-on-dark: #f5f5f5;
  --color-border: #e8e8ea;
  --color-border-strong: #d4d4d6;

  /* Accent (Soar) */
  --color-accent: #ff5a2b;
  --color-accent-soft: #ffe8de;
  --color-accent-hover: #e84a1f;

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --section-padding-y: clamp(80px, 10vw, 140px);
  --gutter: clamp(20px, 4vw, 32px);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Typography */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 1px rgba(10, 10, 10, 0.03);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 10, 10, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.4s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Container & Section ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-lead {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.9;
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 90, 43, 0.28);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 90, 43, 0.32);
}

.btn--dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.btn--dark:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn--ghost:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.btn--arrow::after {
  content: "→";
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ---------- Utility ---------- */
.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--color-border);
  margin: 0;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
