/* ==============================================
   base.css — リセット・CSS変数・ベーススタイル
   ============================================== */

/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

/* CSS カスタムプロパティ（デザイントークン） */
:root {
  /* ベースカラー */
  --color-bg:            #000000;
  --color-bg-card:       #111111;
  --color-bg-card-hover: #1a1a1a;
  --color-bg-surface:    #151515;
  --color-bg-overlay:    rgba(0, 0, 0, 0.85);

  /* テキスト */
  --color-text:          #c6c6c6;
  --color-text-strong:   #ffffff;
  --color-text-muted:    #777777;

  /* アクセント：ピンク（メイン） */
  --color-pink:          #e91e8c;
  --color-pink-dark:     #c2185b;
  --color-pink-light:    #f06292;
  --color-pink-glow:     rgba(233, 30, 140, 0.35);

  /* アクセント：オレンジ（サブ） */
  --color-orange:        #ff9900;
  --color-orange-dark:   #e68900;
  --color-orange-glow:   rgba(255, 153, 0, 0.3);

  /* ボーダー */
  --color-border:        #2a2a2a;
  --color-border-hover:  #444444;

  /* タイポグラフィ */
  --font-family:         'Noto Sans JP', 'Inter', Arial, sans-serif;
  --font-size-xs:        11px;
  --font-size-sm:        13px;
  --font-size-base:      15px;
  --font-size-lg:        18px;
  --font-size-xl:        24px;
  --font-size-2xl:       32px;
  --font-weight-normal:  400;
  --font-weight-medium:  500;
  --font-weight-bold:    700;

  /* スペーシング */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ボーダー半径 */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* シャドウ */
  --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 8px 32px rgba(233, 30, 140, 0.2);
  --shadow-glow:  0 0 20px rgba(233, 30, 140, 0.4);

  /* トランジション */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;

  /* レイアウト */
  --container-max:  1280px;
  --header-height:  60px;
}

/* ===== リセット ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ===== ユーティリティ ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== スマホ表示の最適化 (変数の調整) ===== */
@media (max-width: 767px) {
  :root {
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;

    --space-4: 12px;
    --space-5: 16px;
    --space-6: 20px;
    --space-8: 24px;
    --space-10: 32px;
    --space-12: 36px;
  }
  
  .container {
    padding: 0 var(--space-4);
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .main-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

