/* ==========================================================================
   Design Tokens — Apple Design System (Human Interface Guidelines) 準拠
   ロゴ画像と筆記体フォント（Parisienne）はブランド資産としてそのまま使用
   ========================================================================== */
:root {
  /* --- Color: Label --- */
  --color-text-primary: #1D1D1F;   /* label */
  --color-text-secondary: #6E6E73; /* secondaryLabel */
  --color-text-tertiary: #86868B;  /* tertiaryLabel */

  /* --- Color: Background --- */
  --color-bg: #FFFFFF;             /* systemBackground */
  --color-bg-subtle: #F5F5F7;      /* secondarySystemBackground */
  --color-bg-grouped: #FBFBFD;     /* groupedBackground */

  /* --- Color: Separator --- */
  --color-border: #D2D2D7;         /* separator */
  --color-border-subtle: #E8E8ED;

  /* --- Color: Accent (brand tint) --- */
  --color-accent: #64BCC7;
  --color-accent-hover: #4FA9B4;
  --color-accent-soft: #EAF7F8;

  /* --- Typography --- */
  --font-base: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-script: "Parisienne", "Snell Roundhand", cursive;

  /* Type scale (HIG: Large Title → Caption) */
  --text-hero: clamp(40px, 6vw, 80px);
  --text-title1: clamp(32px, 4.2vw, 56px);
  --text-title2: clamp(24px, 2.6vw, 32px);
  --text-title3: 21px;
  --text-body: 17px;      /* HIG body */
  --text-callout: 16px;
  --text-subhead: 15px;
  --text-footnote: 13px;
  --text-caption: 12px;

  --tracking-tight: -0.022em;  /* Apple の見出しは負のトラッキング */
  --tracking-normal: 0;
  --tracking-wide: 0.06em;

  --leading-tight: 1.08;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* --- Corner Radius (HIG: continuous corners) --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 980px;

  /* --- Spacing (8pt grid) --- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;

  /* --- Elevation --- */
  --shadow-low: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-high: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* --- Layout --- */
  --container-max: 1024px;   /* Apple の本文コンテナ幅 */
  --container-wide: 1280px;
  --header-height: 94px;

  /* --- Layer order --- */
  --z-sticky: 100;
  --z-overlay: 200;

  /* --- Motion (HIG standard easing) --- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.28, 0.11, 0.32, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.34s;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a { color: inherit; }

section[id] { scroll-margin-top: calc(var(--header-height) + var(--space-2)); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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