/* ═══════════════════════════════════════
   common.css  BuPS 共通スタイル
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #FFFFFF;
  --navy:       #0D1B3E;
  --navy-mid:   #1A3A6B;
  --navy-light: #2B5299;
  --gold:       #C8A96E;
  --gray-bg:    #F5F6FA;
  --gray-text:  #4A5568;
  --gray-line:  #D8DDE8;
  --font: 'Hiragino Kaku Gothic ProN','ヒラギノ角ゴシック','Hiragino Sans','Yu Gothic','YuGothic',sans-serif;

  /* ══════════════════════════════════════════
     文字サイズ統一 & 流動的タイポグラフィ
     clamp( 最小サイズ , 推奨変動サイズ , 最大サイズ )
     vw（ビューポート幅）を組み込むことで、画面幅に応じて自動的に倍率が調整されます。
  ══════════════════════════════════════════ */

  /* 本文・キャプション */
  --font-size-sm:   clamp(0.75rem,  0.7rem + 0.25vw,  0.875rem); /* スマホ:約12px 〜 PC:約14px */
  --font-size-base: clamp(0.9375rem, 0.875rem + 0.31vw, 1.0625rem); /* スマホ:約15px 〜 PC:約17px */
  --font-size-lg:   clamp(1.0625rem, 1rem + 0.31vw,    1.25rem);   /* スマホ:約17px 〜 PC:約20px */
  /* 見出し階層 */
  --font-size-h3:   clamp(1.25rem,  1.1rem + 0.75vw,  1.625rem);  /* スマホ:約20px 〜 PC:約26px */
  --font-size-h2:   clamp(1.50rem,  1.25rem + 1.25vw, 2.25rem);   /* スマホ:約24px 〜 PC:約36px */
  --font-size-h1:   clamp(1.875rem, 1.5rem + 1.88vw,  3.00rem);   /* スマホ:約30px 〜 PC:約48px */
  /* 行間の統一（可読性の確保） */
  --line-height-heading: 1.35;
  --line-height-body:    1.7;
}

/* --- 全体基本設定 --- */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%; /* 横向き時の自動拡大を防止 */
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  overflow-x: hidden;
}

/* --- 見出し・本文の文字サイズ基準（各ページのクラス指定があればそちらが優先されます） --- */
h1, .h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-heading);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.6em;
}
h2, .h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-heading);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.6em;
}
h3, .h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-heading);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5em;
}
p, li, div {
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
}
small, .text-sm {
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* ── 画像：どのデバイスでも枠からはみ出さない ── */
img { max-width: 100%; height: auto; display: block; }
img.object-cover, .message-photo-frame img, .strength-card img { object-fit: cover; }
svg { max-width: 100%; height: auto; }

/* ── グリッド/フレックス内の子要素：長いテキストで横はみ出しするのを防止 ── */
.message-layout > *, .zigzag-layout > *, .philo-inner > *,
.case-details > *, .compare-grid > *, .strengths-grid > *,
.core-tech-grid > *, .case-grid > *, .value-grid > *,
.company-two-col > *, .summary-grid > *, .ses-grid > * {
  min-width: 0;
}

/* ── 見出し：日本語タイトルの不自然な改行を防止（短い見出し文言のみ対象） ── */
h1, h2, h3,
.page-hero-title, .section-title, .page-cta-title,
.message-catchphrase, .value-head h2, .summary-tagline,
.hero-text-block, .hero-catch, .ambient-cta-title {
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}
/* 本文・リード文は句読点区切りの自然な折り返しに任せる（keep-allは長文で折り返せず横はみ出しの原因になるため使わない） */
p, .body-text, .page-hero-lead, .section-lead {
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 61px;
  /* 初期状態：バー自体は透明。視認性用の陰影は nav::before（下の擬似要素）で別途敷く */
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* 初期状態（スクロール前）：ロゴ・メニューの視認性確保用に、なだらかに消えていく陰影を
   ヘッダーより広い範囲に敷く。境界のはっきりしたブラーは横線に見えてしまうため使わず、
   グラデーションのみで自然に背景へ溶け込ませる */
nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(13,27,62,.38) 0%,
    rgba(13,27,62,.22) 30%,
    rgba(13,27,62,.10) 60%,
    rgba(13,27,62,0) 100%);
  opacity: 1;
  transition: opacity .35s ease;
  z-index: -1;
}
nav.nav-visible::before { opacity: 0; }
/* スクロール後にバーを表示 */
nav.nav-visible {
  border-bottom: 1px solid var(--gray-line);
  box-shadow: 0 2px 12px rgba(13,27,62,.08);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; height: 45px;
}
.nav-logo-img {
  height: 45px; width: auto;
  object-fit: contain;
  display: block;
  /* バー非表示時（暗いヒーロー上）は白抜きで視認性を確保 */
  filter: brightness(0) invert(1);
  transition: filter .35s ease;
}
nav.nav-visible .nav-logo-img { filter: none; }
.nav-links { display:flex; gap:28px; list-style:none; flex-wrap:wrap; }
.nav-links a { font-size:.78rem; letter-spacing:.08em; text-decoration:none; white-space:nowrap; }

/* フッターロゴ画像 */
.footer-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; margin-bottom: 16px;
}
.footer-logo-img {
  height: 36px; width: auto;
  object-fit: contain;
  /* 白背景のロゴを暗い背景で見やすくするため明度反転 */
  filter: brightness(0) invert(1);
  display: block;
}

/* ── FOOTER ── */
footer { background: #080F1E; padding: 0 0 0; }
.footer-inner { max-width:100%; margin:0; padding:0 5%; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; align-items:start; }
.footer-logo { font-size:1.6rem; font-weight:800; letter-spacing:.1em; color:var(--white); text-decoration:none; display:inline-block; margin-bottom:16px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size:.82rem; color:rgba(255,255,255,.45); line-height:1.8; margin-bottom:24px; max-width:240px; }
.footer-address { font-size:.78rem; color:rgba(255,255,255,.35); line-height:1.9; font-style:normal; }
.footer-col-title { font-size:.7rem; letter-spacing:.25em; color:var(--gold); text-transform:uppercase; font-weight:700; margin-bottom:20px; display:block; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a { font-size:.82rem; color:rgba(255,255,255,.5); text-decoration:none; transition:color .2s; display:flex; align-items:center; gap:6px; }
.footer-links a::before { content:'—'; color:var(--gold); opacity:.5; font-size:.65rem; }
.footer-links a:hover { color: var(--white); }
.footer-divider { max-width:100%; margin:48px 0 0; padding:0 5%; border:none; border-top:1px solid rgba(255,255,255,.08); }
.footer-bottom { max-width:100%; margin:0; padding:20px 5%; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.footer-copy { font-size:.75rem; color:rgba(255,255,255,.28); letter-spacing:.08em; }
.footer-bottom-links { display:flex; gap:24px; }
.footer-bottom-links a { font-size:.75rem; color:rgba(255,255,255,.28); text-decoration:none; transition:color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ── BUTTONS ── */
.btn { display:inline-flex; align-items:center; gap:8px; padding:14px 32px; border-radius:3px; font-family:var(--font); font-size:.88rem; font-weight:600; letter-spacing:.08em; cursor:pointer; text-decoration:none; transition:all .25s; border:none; }
.btn-primary     { background:var(--navy); color:var(--white); }
.btn-primary:hover { background:var(--navy-mid); transform:translateY(-2px); }
.btn-gold        { background:var(--gold); color:var(--navy); }
.btn-gold:hover  { background:#b8924e; transform:translateY(-2px); }
.btn-outline     { background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }
.btn-navy-outline { background:transparent; color:var(--navy); border:1.5px solid var(--navy); }
.btn-navy-outline:hover { background:var(--navy); color:var(--white); transform:translateY(-2px); }
.btn-outline-white { background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }

/* ── READ MORE ── */
.read-more { display:inline-flex; align-items:center; gap:6px; color:var(--navy-light); font-size:.85rem; font-weight:600; text-decoration:none; letter-spacing:.06em; border-bottom:1px solid transparent; transition:border-color .2s,color .2s; margin-top:24px; }
.read-more:hover { border-color:var(--gold); color:var(--gold); }
.read-more::after { content:'→'; transition:transform .2s; }
.read-more:hover::after { transform: translateX(4px); }

/* ── SECTION COMMON ── */
.section { padding: 112px 0; }
.section-inner { max-width:100% !important; margin:0 !important; padding:0 5% !important; box-sizing:border-box; }
.eyebrow { font-size:.72rem; letter-spacing:.3em; color:var(--gold); text-transform:uppercase; margin-bottom:20px; display:block; }
.section-title { font-size:clamp(1.5rem,3.5vw,2.2rem); font-weight:700; line-height:1.55; color:var(--navy); margin-bottom:40px; }
.section-title em { font-style:normal; color:var(--gold); }
.divider { width:48px; height:3px; background:linear-gradient(90deg,var(--gold),var(--navy-light)); margin-bottom:36px; border-radius:2px; }
.body-text { font-size:1rem; line-height:1.9; color:var(--gray-text); max-width: 100%; }

/* ── PAGE HERO (サブページ共通) ── */
.page-hero { position:relative; padding:160px 0 100px; background:var(--navy); overflow:hidden; }
.page-hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(200,169,110,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(200,169,110,.06) 1px,transparent 1px); background-size:60px 60px; animation:gridMove 18s linear infinite; }
@keyframes gridMove { 0% { background-position:0 0; } 100% { background-position:60px 60px; } }
.page-hero-orb { position:absolute; border-radius:50%; filter:blur(80px); opacity:.15; }
.page-hero-orb1 { width:500px; height:500px; background:#2B5299; top:-120px; right:-100px; }
.page-hero-orb2 { width:280px; height:280px; background:#C8A96E; bottom:-60px; left:10%; }
.page-hero-inner { position:relative; max-width:100% !important; margin:0 !important; padding:0 5% !important; box-sizing:border-box; }
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:.75rem; letter-spacing:.1em; color:rgba(255,255,255,.4); margin-bottom:32px; }
.breadcrumb a { color:rgba(255,255,255,.4); text-decoration:none; transition:color .2s; }
.breadcrumb a:hover { color:var(--gold); }
.breadcrumb span { color:var(--gold); }
.breadcrumb-sep { color:rgba(255,255,255,.25); }
.page-eyebrow { font-size:.72rem; letter-spacing:.3em; color:var(--gold); text-transform:uppercase; margin-bottom:20px; display:block; opacity:0; animation:fadeUp .8s .2s forwards; }
.page-hero-title { font-size:clamp(1.8rem,4vw,3rem); font-weight:800; color:var(--white); line-height:1.45; margin-bottom:28px; opacity:0; animation:fadeUp .9s .35s forwards; }
.page-hero-title em { font-style:normal; color:var(--gold); }
.page-hero-lead { font-size:1.05rem; color:rgba(255,255,255,.65); line-height:1.85; max-width: 100%; opacity:0; animation:fadeUp .9s .5s forwards; }

/* ── BACK TO TOP ── */
.back-to-top { display:inline-flex; align-items:center; gap:8px; color:var(--navy-light); font-size:.85rem; font-weight:600; text-decoration:none; letter-spacing:.06em; margin-bottom:48px; transition:color .2s; }
.back-to-top::before { content:'←'; transition:transform .2s; }
.back-to-top:hover { color:var(--gold); }
.back-to-top:hover::before { transform:translateX(-4px); }

/* ── PAGE CTA ── */
.page-cta { background:var(--navy); text-align:center; padding:100px 5%; position:relative; overflow:hidden; }
.page-cta::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 60% 80% at 50% 100%,rgba(200,169,110,.12),transparent); }
.page-cta-inner { position:relative; max-width:100%; margin:0; }
.page-cta-title { font-size:clamp(1.4rem,3vw,2rem); font-weight:700; color:var(--white); line-height:1.6; margin-bottom:14px; }
.page-cta-sub { font-size:.95rem; color:rgba(255,255,255,.6); margin-bottom:40px; }
.cta-btn-group { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ── SCROLL REVEAL ── */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .7s ease,transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { padding:0 5%; }
  .nav-links { display:none; }
  .section { padding:80px 0; }
  .section-inner { padding:0 5%; }
  .page-hero-inner { padding:0 5%; }
  .footer-inner { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1 / -1; }
  .footer-bottom { flex-direction:column; align-items:flex-start; gap:12px; }
}

/* ════════════════════════════════════
   Ambient CTA Section（全ページ共通）
════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Inter:wght@300;400;500&display=swap');

.ambient-cta {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #05080f;
}
.ambient-cta-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #05080f 0%, #0d1b3e 25%, #0a1628 50%, #1a1a2e 75%, #05080f 100%);
  background-size: 400% 400%;
  animation: ambientBgShift 14s ease-in-out infinite;
}
@keyframes ambientBgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.ambient-cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .18; pointer-events: none;
}
.ambient-cta-orb-1 { width: 500px; height: 500px; background: #c8a96e; top: -120px; right: -80px; animation: ambientOrb1 18s ease-in-out infinite; }
.ambient-cta-orb-2 { width: 350px; height: 350px; background: #2b5299; bottom: -60px; left: -60px; animation: ambientOrb2 14s ease-in-out infinite; }
@keyframes ambientOrb1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,30px)} }
@keyframes ambientOrb2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }
.ambient-cta-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,169,110,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.ambient-cta-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 100%;
  padding: 80px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.ambient-cta-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  letter-spacing: .32em;
  color: #c8a96e;
  text-transform: uppercase;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.ambient-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.08;
  color: #f5f5f0;
  letter-spacing: .04em;
  white-space: nowrap;
  margin: 0;
}
.ambient-cta-title em { font-style: italic; color: #c8a96e; }
.ambient-cta-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .14em;
  line-height: 2;
  font-weight: 300;
}
/* ライン一体型ボタン */
.ambient-cta-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 20px 0;
  border: none; background: none;
  outline: none;
  margin-top: 8px;
}
.acta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c8a96e; flex-shrink: 0;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.ambient-cta-btn:hover .acta-dot { transform: scale(1.4); }
.acta-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, #c8a96e, rgba(200,169,110,.4));
  flex-shrink: 0;
  transition: width .5s cubic-bezier(.16,1,.3,1);
}
.ambient-cta-btn:hover .acta-line { width: 80px; }
.acta-text {
  font-size: .82rem;
  letter-spacing: .2em;
  color: #f5f5f0;
  font-weight: 300;
  padding: 0 5%;
  transition: color .35s ease;
  white-space: nowrap;
}
.ambient-cta-btn:hover .acta-text { color: #c8a96e; }
.acta-arrow {
  position: relative; width: 28px; height: 16px;
  overflow: hidden; flex-shrink: 0;
}
.acta-arrow-cur, .acta-arrow-nxt {
  position: absolute; top: 0;
  font-size: 1rem; color: #c8a96e; line-height: 16px;
  transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .5s cubic-bezier(.16,1,.3,1);
}
.acta-arrow-cur { left: 0; opacity: 1; transform: translateX(0); }
.acta-arrow-nxt { left: -28px; opacity: 0; transform: translateX(0); }
.ambient-cta-btn:hover .acta-arrow-cur { transform: translateX(32px); opacity: 0; }
.ambient-cta-btn:hover .acta-arrow-nxt { transform: translateX(28px); opacity: 1; }
.acta-end-line {
  width: 32px; height: 1px;
  background: rgba(200,169,110,.3); flex-shrink: 0;
}
.ambient-cta-divider {
  position: absolute; bottom: 0; left: 60px; right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,110,.2), transparent);
}
@media (max-width: 768px) {
  .ambient-cta-inner { padding: 80px 32px; gap: 28px; }
  .ambient-cta-title { font-size: clamp(1.6rem, 7vw, 2.8rem); white-space: normal; }
  .ambient-cta-divider { left: 32px; right: 32px; }
}

/* ── 共通CTA（全ページ統一：薄い水色・タイトル以外2倍など） ── */
.ambient-cta { background: #CDE7F5; min-height: auto; }
.ambient-cta-bg {
  background: linear-gradient(135deg, #CDE7F5 0%, #DCEFFA 50%, #C2E0F2 100%);
  animation: none;
}
.ambient-cta-grid {
  background-image:
    linear-gradient(rgba(43,82,153,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,82,153,.06) 1px, transparent 1px);
}
/* 上下の余白 */
.ambient-cta-inner { padding: 0.67% 5%; }
/* 明るい背景で読めるよう文字色を濃色に */
.ambient-cta-title { color: var(--navy); }
.ambient-cta-title em { color: #B8923F; }
.ambient-cta-sub { color: rgba(13,27,62,.72); }
.acta-text { color: var(--navy); }
/* 「GO BEYOND WITH US.」以外の文字を2倍に */
.ambient-cta-label { color: #9A7B34; font-size: clamp(0.85rem, 3vw, 1.36rem); letter-spacing: .15em; }
@media (max-width: 480px) {
  .ambient-cta-label { letter-spacing: .08em; }
}
.ambient-cta-sub   { font-size: 1.232rem; }
.acta-text         { font-size: 1.148rem; }

/* ════════════════════════════════════════
   デザインシステム統一CSS (2026-07 改訂)
   - フォント統一
   - タイポグラフィスケール
   - 余白統一
   - ナビ視認性改善
════════════════════════════════════════ */

/* ── フォント統一 ── */
:root {
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  /* タイポグラフィスケール */
  --fs-hero:    clamp(1.8rem, 4.4vw, 3.1rem);
  --fs-h2:      clamp(1.35rem, 3vw, 1.95rem);
  --fs-h3:      clamp(1.1rem, 2.2vw, 1.35rem);
  --fs-lead:    1rem;
  --fs-body:    0.9rem;
  --fs-label:   0.8rem;
  --fs-tag:     0.75rem;
  /* 余白統一 */
  --section-py: 64px;
  --block-gap:  48px;
  --inner-max: 100%;
  --inner-px: 5%;
}

body { font-family: var(--font-base); }

/* ── タイポグラフィスケール適用 ── */
.page-hero-title, .hero-logo-large { font-size: var(--fs-hero); }
.section-title, h2.section-title   { font-size: var(--fs-h2); }
h3                                  { font-size: var(--fs-h3); }
.page-hero-lead, .hero-lead        { font-size: var(--fs-lead); line-height: 1.8; }
p, .body-text, .mission-copy       { font-size: var(--fs-body); line-height: 1.9; }

/* ── ラベル・タグの最小サイズ保証 ── */
.eyebrow, .page-eyebrow, .breadcrumb,
.case-label, .tech-tag, .value-num,
.news-date, .news-cat, .cat-base, .cat-notice, .cat-tech,
.core-tech-num, .rag-step-num, .sec-tl-year,
.split-cta-micro, .scroll-ind-text,
.value-tag, .policy-date-label, .office-title,
.footer-col-title, .roadmap-year {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
}
.tech-tag, .news-cat { font-size: var(--fs-tag); letter-spacing: 0.06em; }

/* ── スマホ／PC 出し分け用ユーティリティ ── */
.sp-only { display: none; }
.pc-only { display: inline; }
@media (max-width: 768px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

/* ── スマホ表示（768px以下）の文字サイズ最適化 ── */
@media (max-width: 768px) {
  :root {
    --fs-hero: clamp(1.55rem, 6.5vw, 2.15rem);
    --fs-h2:   clamp(1.25rem, 5vw, 1.5rem);
    --fs-h3:   clamp(1.02rem, 4vw, 1.18rem);
    --fs-lead: 0.9rem;
    --fs-body: 0.88rem;   /* 約14px */
  }
  body { font-size: 13.5px; }
  p, .body-text { line-height: 1.8; }
}
@media (max-width: 480px) {
  :root {
    --fs-hero: clamp(1.4rem, 7.5vw, 1.9rem);
    --fs-h2:   clamp(1.12rem, 5.5vw, 1.35rem);
    --fs-body: 0.85rem;    /* 約13.6px */
  }
}

/* ── セクション余白統一 ── */
.section { padding: var(--section-py) 0; }
.section-inner {
  max-width: var(--inner-max);
  margin: 0;
  padding: 0 var(--inner-px);
}

/* ── ナビ視認性改善 ── */
/* スクロール後のみバー背景（すりガラス）を表示 */
nav.nav-visible {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-links a {
  color: rgba(255,255,255,0.9) !important;   /* バー非表示時：白 */
  font-size: 1.23rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  display: inline-block;
  transform-origin: center;
  transition: color .25s ease, transform .25s ease;
}
nav.nav-visible .nav-links a {
  color: rgba(13,27,62,0.75) !important;      /* スクロール後：濃色 */
}
/* ホバー：拡大＋金色 */
.nav-links a:hover, .nav-links a.active { color: var(--gold) !important; }
.nav-links a:hover { transform: scale(1.18); }

/* ── メニューバー表示時：開いているページに青い蛍光アンダーバー ── */
nav.nav-visible .nav-links a.active { position: relative; }
nav.nav-visible .nav-links a.active::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: -7px;
  height: 2px; border-radius: 2px;
  background: #2E9BFF;
  box-shadow: 0 0 5px #2E9BFF, 0 0 11px rgba(46,155,255,.85), 0 0 18px rgba(46,155,255,.5);
  animation: navGlow 1.8s ease-in-out infinite;
}
@keyframes navGlow {
  0%,100% { box-shadow: 0 0 4px #2E9BFF, 0 0 9px rgba(46,155,255,.7), 0 0 14px rgba(46,155,255,.4); }
  50%     { box-shadow: 0 0 7px #2E9BFF, 0 0 14px rgba(46,155,255,.95), 0 0 22px rgba(46,155,255,.6); }
}

/* ── ブロック幅・高さ統一 ── */
/* zigzag / value / case / core-tech グリッド */
.zigzag-layout         { gap: var(--block-gap); }
.value-grid            { gap: 32px; }
.case-grid             { gap: 1px; }
.core-tech-grid        { gap: 0; }
.value-block-inner,
.philosophy-block-inner { max-width: var(--inner-max); margin: 0; padding: 0 var(--inner-px); }

/* ── 余白の引き締め（PC）── */
@media (min-width: 861px) {
  :root { --section-py: 72px; --block-gap: 56px; }
  .page-hero      { padding: 130px 0 80px; }
  #block1         { min-height: 100vh; }
  .form-card      { padding: 48px 5%; }
  .company-section{ padding: 60px 0; }
  .policy-section { padding: 56px 0; }
  .value-block    { padding: 36px 0; }
  .philosophy-block { padding: 36px 0; }
}

/* ── 余白（スマホ）── */
@media (max-width: 860px) {
  :root { --section-py: 48px; --block-gap: 32px; --inner-px: 5%; }
  .page-hero { padding: 100px 0 60px; }
  .form-card { padding: 32px 5%; }
  .company-section { padding: 48px 0; }
  .policy-section  { padding: 48px 0; }
}