/* ==========================================
   base.css - 基礎設定
   - CSS変数
   - リセットCSS
   - 素のHTML要素のみ
========================================== */

/* ========== CSS変数 ========== */
:root {
  /* Colors */
  --color-primary: #063a74;
  --color-primary-dark: #0a3f7a;
  --color-text: #0b0b0b;
  --color-muted: #4b5563;
  --color-bg: #ffffff;
  --color-bg-light: #eaf4ff;
  --color-bg-card: #eef3f7;
  --color-highlight: #ffe600;
  --color-blue: #083b78;
  --color-blue-dark: #0b2f64;

  /* Container */
  --container-max: 393px;
  --container-padding: 16px;

  /* Shadow */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Spacing (8の倍数) */
  --space-0: 0;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-12: 96px;

  /* Font sizes (8の倍数) */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 48px;

  /* Image sizes - モバイル (8の倍数) */
  --img-feature-icon: 120px;
  --img-profile: 152px;
  --img-step-icon: 160px;
  --img-point: 240px;
  --img-logo-mobile: 40px;
  --img-logo-footer: 48px;
}

@media (min-width: 769px) {
  :root {
    /* Image sizes - PC (8の倍数) */
    --img-feature-icon: 144px;
    --img-profile: 176px;
    --img-step-icon: 192px;
    --img-point: 280px;
    --img-logo-mobile: 72px;
    --img-logo-footer: 56px;
  }
}

/* ========== Reset ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

/* ========== アニメーション定義 ========== */
[data-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim].is-inview {
  opacity: 1;
  transform: none;
}

[data-parallax] {
  will-change: transform;
}

/* アクセシビリティ: モーション軽減 */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-parallax] {
    transform: none !important;
  }
}

/* ========== キーフレームアニメーション ========== */
/* Badge用フロート */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
