/* ==========================================================
   base.css  -  CSS変数 / リセット / タイポグラフィ
   StoryCrafters テーマ 基盤スタイル
========================================================== */

/* ----------------------------------------------------------
   CSS カスタムプロパティ（デザイントークン）
---------------------------------------------------------- */
:root {
  /* 背景色 */
  --bg-main:   #040b18;  /* ページ基本背景（極深ネイビー） */
  --bg-deep:   #020814;  /* さらに深い背景（フッター等） */
  --bg-card:   #071426;  /* カード・サイドバー等の要素背景 */
  --bg-glass:  rgba(7, 20, 38, 0.85); /* 半透明ガラスパネル */

  /* テキスト色 */
  --text-main:  #f4efe7; /* メインテキスト（生成り白） */
  --text-sub:   #c7b9a3; /* サブテキスト */
  --text-muted: #8d8374; /* ミュートテキスト */

  /* アクセント */
  --line-gold:  #b78a43; /* ゴールドアクセント */
  --line-soft:  #7a5b2a; /* 柔らかいゴールドボーダー */
  --accent-blue:#2b4ea2; /* 宇宙系アクセントブルー */

  /* エフェクト */
  --shadow-gold: 0 0 24px rgba(183,138,67,.15);
  --shadow-card:  0 4px 32px rgba(0,0,0,.4);
  --glow-gold:    0 0 60px rgba(183,138,67,.2);

  /* ボーダー */
  --border-gold: 1px solid var(--line-soft);
  --border-card: 1px solid rgba(183,138,67,.2);

  /* 角丸 */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* レイアウト */
  --content-width: 1200px;
  --header-height: 72px;

  /* フォント */
  --font-logo:    'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Noto Serif JP', 'Hiragino Mincho ProN', Georgia, serif;
  --font-body:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;

  /* トランジション */
  --transition:      0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ----------------------------------------------------------
   ボックスモデル / リセット
---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----------------------------------------------------------
   基本要素
---------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--line-gold);
}

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* フォーカスリング（アクセシビリティ） */
:focus-visible {
  outline: 2px solid var(--line-gold);
  outline-offset: 3px;
}

/* スクリーンリーダー専用テキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------------------------
   タイポグラフィ
---------------------------------------------------------- */

/* 見出し共通 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem,  3vw, 2rem); }
h3 { font-size: clamp(1.1rem,  2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

/* 本文内のstrong */
strong, b {
  font-weight: 700;
  color: var(--text-main);
}

/* 本文内のリンク */
.entry-content a {
  color: var(--line-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------
   ユーティリティクラス
---------------------------------------------------------- */
.text-center  { text-align: center; }
.text-gold    { color: var(--line-gold); }
.text-sub     { color: var(--text-sub); }
.text-muted   { color: var(--text-muted); }

.font-logo    { font-family: var(--font-logo); }
.font-heading { font-family: var(--font-heading); }

/* 区切り線 */
.divider {
  width: 60px;
  height: 1px;
  background: var(--line-gold);
  margin: 16px auto;
}

/* セクション共通ヘッダー */
.section-eyebrow {
  font-family: var(--font-logo);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--line-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* 「— CONCEPT —」のように両端に線を表示するバリアント */
.section-eyebrow--deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-eyebrow--deco::before,
.section-eyebrow--deco::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--line-soft);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 48px;
}

.section-header {
  margin-bottom: 48px;
}

.section-more-link {
  font-size: 0.875rem;
  color: var(--line-gold);
  letter-spacing: 0.05em;
}

.section-more-link:hover {
  opacity: 0.7;
}

/* WordPress が生成する alignnone / aligncenter / alignwide 等 */
.wp-block-image img,
.aligncenter { display: block; margin: 0 auto; }
.alignright   { float: right; margin-left: 1.5rem; }
.alignleft    { float: left;  margin-right: 1.5rem; }

/* clearfix */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}
