/* ============================================
   共通スタイル（全テーマで読み込まれる）
   - CSS 変数（カラー・サイズ・フォント）
   - 基本リセット
   - テーマ切替バー（4 テーマ共通）
   - .container（中央寄せ最大幅）

   2026-05-19 fix/theme-css-scope で抽出
   ベース：studio-h.css L1-115（同等内容）
   ============================================ */

:root {
  --color-bg:        #ffffff;
  --color-bg-alt:    #f7f9fc;
  --color-text:      #1a2b4a;
  --color-text-soft: #5a6b85;
  --color-text-mute: #94a3b8;
  --color-accent:    #2563eb;
  --color-accent-dk: #1d4ed8;
  --color-accent-lt: #eff6ff;
  --color-success:   #10b981;
  --color-warning:   #ea580c;
  --color-border:    #e2e7ee;
  --color-border-lt: #f0f3f8;

  --container-max: 1140px;
  --space-section: 96px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(26, 43, 74, 0.06);
  --shadow:    0 8px 24px rgba(26, 43, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 43, 74, 0.14);

  --font-base: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, "Roboto Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   テーマ切替バー（4 テーマ共通）
   ============================================ */
.theme-switcher {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.theme-switcher-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.theme-switcher-label {
  opacity: 0.85;
  font-weight: 500;
}
.theme-switcher-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.theme-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  transition: all 0.15s ease;
}
.theme-link small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}
.theme-link:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}
.theme-link.is-active {
  background: #2563eb;
  border-color: #2563eb;
}
@media (max-width: 700px) {
  .theme-switcher-label { font-size: 11px; flex: 1 1 100%; text-align: center; }
  .theme-switcher-nav { justify-content: center; flex: 1 1 100%; }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
