/* ========================================
   BASE.CSS - リセット・CSS変数・基本スタイル
   ======================================== */

/* CSS変数定義 */
:root {
  --bg: #FFFFFF;
  --fg: #0A0A0A;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --accent: #111111;
  --maxw: 1200px;
  --space: 8px;
  
  /* タイポグラフィスケール */
  --text-90: clamp(48px, 8vw, 90px);
  --text-60: clamp(32px, 5vw, 60px);
  --text-36: clamp(24px, 3vw, 36px);
  --text-24: clamp(18px, 2vw, 24px);
  --text-18: 18px;
  --text-14: 14px;
  
  /* スペーシング */
  --gap-xl: calc(var(--space) * 12);
  --gap-lg: calc(var(--space) * 8);
  --gap-md: calc(var(--space) * 4);
  --gap-sm: calc(var(--space) * 2);
  
  /* トランジション */
  --trans-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* リセット */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  color: var(--fg);
  background: var(--bg);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: var(--text-18);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 英語フォント専用 */
h1, h2, h3, h4, h5, h6,
.logo, .nav, .btn, .kicker,
[lang="en"] {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: var(--text-90);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-60);
  font-weight: 800;
  line-height: 1.15;
}

h3 {
  font-size: var(--text-36);
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: var(--text-24);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: var(--gap-md);
  font-size: var(--text-18);
  line-height: 1.8;
}

p:last-child {
  margin-bottom: 0;
}

/* リンク */
a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity var(--trans-fast);
}

a:hover {
  opacity: 0.7;
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* 水平線 */
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--gap-lg) 0;
}

/* ユーティリティクラス */
.u-center {
  text-align: center;
}

.u-maxw-1200 {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.u-maxw-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.u-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.u-hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .u-hidden-mobile {
    display: inline;
  }
}

.u-muted {
  color: var(--muted);
}

/* reduced motionのグローバル設定 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

