/* ==========================================================================
   01. DESIGN TOKENS (DESIGN SYSTEM)
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: #fbfbfa;          /* オフホワイト */
  --bg-secondary: #e5ecee;        /* ミストグレー */
  --bg-dark: #0f141c;
  --bg-dark-card: #202a3a;

  --text-dark: #0f172a;
  --text-dark-muted: #687680;     /* ミストグレー調和ミューテッド */
  --text-light: #f1f5f9;
  --text-light-muted: #94a3b8;

  --accent-gold: #dfca9f;         /* シアーゴールド (透明感のある金) */
  --accent-gold-hover: #cfb683;
  --accent-gold-glow: rgba(223, 202, 159, 0.3);

  --accent-gold-heavy: #b5924a;   /* 重厚感のあるブラスゴールド */
  --accent-gold-heavy-hover: #9c7c3c;
  --accent-gold-heavy-glow: rgba(181, 146, 74, 0.3);

  --line-light: rgba(104, 118, 128, 0.12); /* ミストグレー調和ボーダー */
  --line-dark: rgba(226, 232, 240, 0.08);

  /* Typography */
  --font-serif: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-num: 'Montserrat', sans-serif;

  /* Typography Scale Tokens */
  --fs-hero-title: clamp(32px, 4.4vw, 58px);
  --fs-hero-sub: clamp(20px, 2.3vw, 28px);
  --fs-section-title: clamp(26px, 3.8vw, 42px);
  --fs-h2: clamp(24px, 3.2vw, 36px);
  --fs-h3: clamp(18px, 2.2vw, 24px);
  --fs-subtitle: clamp(16px, 2.2vw, 20px);
  --fs-lead: clamp(15px, 1.8vw, 17px);
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 11.5px;
  --fs-eyebrow: 12px;
  --fs-num-lg: clamp(40px, 5.5vw, 64px);

  /* Gradients */
  --grad-gold-btn: linear-gradient(135deg, #dfa852 0%, #ca8f38 100%);
  --grad-gold-btn-hover: linear-gradient(135deg, #e8b35f 0%, #d89b42 100%);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Card Common Tokens */
  --card-bg: #ffffff;
  --card-bg-dark: var(--bg-dark-card);
  --card-border: rgba(226, 232, 240, 0.9);
  --card-border-hover: rgba(181, 146, 74, 0.55);
  --card-border-dark: var(--line-dark);
  --card-border-dark-hover: rgba(223, 202, 159, 0.4);
  --card-radius: 16px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 16px 36px rgba(181, 146, 74, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  --card-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.35);
  --card-shadow-dark-hover: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(223, 202, 159, 0.15);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-dark-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold-btn: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(223, 168, 82, 0.25);
  --shadow-gold-btn-hover: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 22px rgba(223, 168, 82, 0.45);

  /* Transitions */
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Section Spacing */
  --section-py: 90px;
  --section-grad-h: 180px;
}

@media (max-width: 768px) {
  :root {
    --section-py: 63px;
    --section-grad-h: 120px;
    --card-radius: 14px;
  }
}

/* ==========================================================================
   02. BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-dark);
  background-color: var(--bg-primary);
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

h1 { font-size: var(--fs-hero-title); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 16px; }

p {
  font-size: inherit;
}

small {
  font-size: var(--fs-sm);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ==========================================================================
   03. SECTION BASE & UTILITIES (セクション共通レイアウト・背景・タイポグラフィ)
   ========================================================================== */
.section {
  padding: var(--section-py) 0;
  position: relative;
  box-sizing: border-box;
}

/* セクション背景バリエーション */
.section.bg-primary {
  background-color: var(--bg-primary);
  color: var(--text-dark);
}

.section.bg-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-dark);
}

.section.bg-secondary p,
.section.bg-secondary .section-desc,
.section.bg-secondary .concept-text,
.section.bg-secondary .lead-text {
  color: var(--text-dark);
}

.section.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* 表示制御ユーティリティ */
.sp-only,
.sp-br {
  display: none;
}

.pc-only {
  display: block;
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
  .sp-br {
    display: block;
    content: "";
  }
  .pc-only {
    display: none;
  }
}

/* セクションヘッダー・テキスト */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background-color: var(--accent-gold);
}

.section-title,
.diversity-title {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--fs-section-title);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.section-title::before,
.diversity-title::before {
  content: '';
  display: inline-block;
  width: 3.5px;
  height: 0.82em;
  background: linear-gradient(180deg, var(--accent-gold-heavy), var(--accent-gold));
  border-radius: 2px;
  margin-right: 0.45em;
  margin-top: calc((1.35em - 0.82em) / 2);
  flex-shrink: 0;
}

.section-title.is-left,
.diversity-title.is-left {
  justify-content: flex-start;
  text-align: left;
}

.section-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-dark);
  max-width: 680px;
  margin: 0 auto 50px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.section-desc.is-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-subtitle,
.section-desc.is-serif {
  font-family: var(--font-serif);
  font-size: var(--fs-subtitle);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.bg-dark .section-title,
.section.bg-dark .section-title,
.diversity-title {
  color: var(--text-light);
}

.bg-dark .section-desc {
  color: var(--text-light-muted);
}

.bg-dark .section-subtitle,
.bg-dark .section-desc.is-serif {
  color: var(--accent-gold);
}

.align-center {
  text-align: center;
}

.align-left {
  text-align: left;
}

/* ==========================================================================
   03-2. GOLD TEXT HIGHLIGHT (文字の下の金色の帯 共通定義)
   ========================================================================== */
.text-underline-gold,
.monolith-underline-gold,
.env-gold-highlight,
.criteria-bottom-text,
.solution-hero-lead-highlight,
.subcommittee-intro-body b {
  position: relative;
  display: inline;
  background: linear-gradient(
    transparent 54%,
    rgba(223, 202, 159, 0.65) 54%,
    rgba(181, 146, 74, 0.65) 94%,
    transparent 94%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 4px;
}

/* ==========================================================================
   04. SCROLL REVEAL EFFECT
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
   05. SECTION BACKGROUND GRADIENT TRANSITIONS (滑らかな背景色切り替え演出)
   ========================================================================== */

/* bg-primary(default) -> bg-secondary */
.section:not(.bg-secondary):not(.bg-dark)+.section.bg-secondary {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) var(--section-grad-h), var(--bg-secondary) 100%);
}

/* bg-secondary -> bg-primary(default) */
.section.bg-secondary+.section:not(.bg-secondary):not(.bg-dark) {
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) var(--section-grad-h), var(--bg-primary) 100%);
}

/* bg-primary(default) -> bg-dark */
.section:not(.bg-secondary):not(.bg-dark)+.section.bg-dark {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-dark) var(--section-grad-h), var(--bg-dark) 100%);
}

/* bg-dark -> bg-primary(default) */
.section.bg-dark+.section:not(.bg-secondary):not(.bg-dark) {
  background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-primary) var(--section-grad-h), var(--bg-primary) 100%);
}

/* bg-secondary -> bg-dark */
.section.bg-secondary+.section.bg-dark {
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-dark) var(--section-grad-h), var(--bg-dark) 100%);
}

/* bg-dark -> bg-secondary */
.section.bg-dark+.section.bg-secondary {
  background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-secondary) var(--section-grad-h), var(--bg-secondary) 100%);
}

/* ヒーローセクションからの接続 */
header.hero-wrapper+.section.bg-secondary {
  background: var(--bg-secondary);
}

header.hero-wrapper.split-hero+.section:not(.bg-secondary):not(.bg-dark) {
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) var(--section-grad-h), var(--bg-primary) 100%);
}

/* フッターへの接続 */
.section.bg-secondary+.footer {
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-dark) 80px, var(--bg-dark) 100%);
  border-top: none;
}

/* ==========================================================================
   06. COMMON KEYFRAMES (COMMON ANIMATIONS)
   ========================================================================== */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ken-burns-meetup {
  0% { transform: scale(1.08) translate(0%, 0.5%); }
  50% { transform: scale(1.15) translate(-0.5%, -0.5%); }
  100% { transform: scale(1.1) translate(0.5%, 1%); }
}

@keyframes scrollHintPulse {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50% { transform: translateX(4px); opacity: 1; }
}
