/* パーティクルアニメーション - オーバーレイ方式（CLSゼロ） */

.particle-title {
  position: relative;
  display: inline-block;
}

/* パーティクルオーバーレイ（テキストDOMに影響なし） */
.particle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* 個々のパーティクル */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #3b82f6;
  border-radius: 50%;
  transform: translate3d(var(--start-x), var(--start-y), 0);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* パーティクルが集結するアニメーション */
.particle.gathering {
  animation: particleGather 2.5s cubic-bezier(0.4, 0, 0.2, 1) var(--delay) forwards;
}

@keyframes particleGather {
  0% {
    transform: translate3d(var(--start-x), var(--start-y), 0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
    transform: translate3d(calc(var(--start-x) * 0.3), calc(var(--start-y) * 0.3), 0);
  }
  100% {
    transform: translate3d(0px, 0px, 0);
    opacity: 0;
  }
}

/* 下部のアクセントライン */
.particle-title.animated::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: lineExpand 1.5s ease-out 0.5s forwards;
}

@keyframes lineExpand {
  0% {
    width: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0.7;
  }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .particle {
    display: none;
  }

  .particle-title.animated::after {
    display: none;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  .particle {
    display: none !important;
  }

  .particle-title::after {
    display: none;
  }
}
/* 音声波形アニメーションセクション
 * v3: ダーク帯 (録音→認識→「声」のメッセージ) → ライト帯 (生成 SOAP カード)
 * のフェード構成。背景色ブロックの島が解消され、視覚的に
 * 「声 (dark) → カルテ (light)」の物語が成立する。
 */
/* nav ダークグラス判定用センチネル: 背景 gradient の dark 帯 (0〜52%) を表す。
   描画はせず、nav 帯 (上端 80px) との交差判定にのみ使う。 */
.nav-dark-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52%;
  pointer-events: none;
  z-index: 0;
}

.voice-animation-section {
  padding: 5rem 2rem 6rem;
  /* v3: transition zone を 18% → 8% に圧縮し、dark/light の境界をシャープに */
  background: linear-gradient(
    180deg,
    #1e3a8a 0%,
    #0f172a 35%,
    #0f172a 50%,
    #fafbfc 58%,
    #fafbfc 100%
  );
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

/* radial アクセント光は dark 帯 (上 52%) にだけ表示 */
.voice-animation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  background:
    radial-gradient(circle at 20% 70%, rgba(212, 169, 96, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.14) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ダーク帯のコンテナ (status / viz / h3 / p) */
.voice-animation-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ダーク帯の section-header — 上書きで白系に */
.voice-animation-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 1;       /* common.aeaa2273.css の opacity:0 + fadeIn を保険で打ち消し */
  animation: none;
}

.voice-animation-section .conversion-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1rem;
  display: block;
  position: relative;
  /* 日本語は文節単位で折り返す (mid-word break 防止) */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* common.aeaa2273.css 由来の青下線をダーク帯では消す */
.voice-animation-section .section-header h2::after {
  display: none;
}

.voice-animation-section .section-subtitle--on-dark {
  color: rgba(241, 245, 249, 0.78);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0.5rem auto 0;
}

/* ライト帯: 生成 SOAP カードのゾーン
 * 背景は section の linear-gradient に任せる。
 * 上 margin は .medical-record-animation 側の 50px に集約。 */
.voice-animation-record-zone {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 録音ステータス (v2: dark 帯に住む frosted glass pill。
   旧 白ピル + shimmer は dark 帯で過剰だったため撤去) */
.recording-status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.recording-status:hover {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(255, 255, 255, 0.22);
}

/* 録音ドット */
.recording-dot {
  width: 10px;
  height: 10px;
  background: #ff4444;
  border-radius: 50%;
  box-shadow: 
    0 0 0 0 rgba(255, 68, 68, 0.7),
    0 2px 4px rgba(255, 68, 68, 0.3);
  animation: pulseRing 2s infinite;
  position: relative;
}

.recording-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.recording-text {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

/* 音声ビジュアライザー */
.voice-visualizer {
  width: 100%;
  max-width: var(--max-width-text);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2.5rem 3rem;
  background: transparent;
  border: none;
  border-radius: 20px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

/* 音声バー (dark 帯前提: brand gold で発光し、Navy + Gold の 2 色軸を純化) */
.voice-bar {
  width: 5px;
  /* v4: champagne の照り → リッチ金 → 深い金 で縦バーにも金属の輝きを */
  background: linear-gradient(180deg, #f6e6b4 0%, #d8a849 55%, #b8862f 100%);
  border-radius: 50px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.95;
  transform-origin: center;
  animation: voiceWave 1.5s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(216, 168, 73, 0.45);
}

.voice-bar:hover {
  opacity: 1;
  transform: scaleY(1.06);
}

/* 各バーの高さとアニメーション遅延 */
.voice-bar:nth-child(1) { animation-delay: 0s; height: 40px; }
.voice-bar:nth-child(2) { animation-delay: 0.05s; height: 55px; }
.voice-bar:nth-child(3) { animation-delay: 0.1s; height: 70px; }
.voice-bar:nth-child(4) { animation-delay: 0.15s; height: 85px; }
.voice-bar:nth-child(5) { animation-delay: 0.2s; height: 100px; }
.voice-bar:nth-child(6) { animation-delay: 0.25s; height: 115px; }
.voice-bar:nth-child(7) { animation-delay: 0.3s; height: 130px; }
.voice-bar:nth-child(8) { animation-delay: 0.35s; height: 140px; }
.voice-bar:nth-child(9) { animation-delay: 0.4s; height: 135px; }
.voice-bar:nth-child(10) { animation-delay: 0.45s; height: 125px; }
.voice-bar:nth-child(11) { animation-delay: 0.5s; height: 110px; }
.voice-bar:nth-child(12) { animation-delay: 0.55s; height: 95px; }
.voice-bar:nth-child(13) { animation-delay: 0.6s; height: 80px; }
.voice-bar:nth-child(14) { animation-delay: 0.65s; height: 70px; }
.voice-bar:nth-child(15) { animation-delay: 0.7s; height: 75px; }
.voice-bar:nth-child(16) { animation-delay: 0.75s; height: 90px; }
.voice-bar:nth-child(17) { animation-delay: 0.8s; height: 105px; }
.voice-bar:nth-child(18) { animation-delay: 0.85s; height: 115px; }
.voice-bar:nth-child(19) { animation-delay: 0.9s; height: 110px; }
.voice-bar:nth-child(20) { animation-delay: 0.95s; height: 95px; }
.voice-bar:nth-child(21) { animation-delay: 1s; height: 80px; }
.voice-bar:nth-child(22) { animation-delay: 1.05s; height: 70px; }
.voice-bar:nth-child(23) { animation-delay: 1.1s; height: 75px; }
.voice-bar:nth-child(24) { animation-delay: 1.15s; height: 85px; }
.voice-bar:nth-child(25) { animation-delay: 1.2s; height: 100px; }
.voice-bar:nth-child(26) { animation-delay: 1.25s; height: 110px; }
.voice-bar:nth-child(27) { animation-delay: 1.3s; height: 100px; }
.voice-bar:nth-child(28) { animation-delay: 1.35s; height: 85px; }
.voice-bar:nth-child(29) { animation-delay: 1.4s; height: 65px; }
.voice-bar:nth-child(30) { animation-delay: 1.45s; height: 45px; }

/* 旧 .conversion-text 系は section-header パターン (.conversion-title / .section-subtitle--on-dark)
 * に移行済み。レスポンシブは下記 @media に集約。 */

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .voice-animation-container {
    padding: 1rem 1.5rem 5rem;
  }

  .voice-visualizer {
    max-width: 100%;
    padding: 2rem 2rem;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .voice-animation-container {
    gap: 2rem;
    padding: 0.75rem 1rem 3rem;
  }

  .recording-status {
    padding: 0.75rem 1.5rem;
  }

  .recording-text {
    font-size: 0.875rem;
  }

  .voice-visualizer {
    height: 150px;
    padding: 1.5rem;
    gap: 4px;
    border-radius: 16px;
  }

  .voice-bar {
    width: 4px;
  }

  /* モバイルでバーの高さを調整 */
  .voice-bar:nth-child(n) {
    height: calc(var(--base-height, 60px) * 0.8);
  }

  .voice-animation-section .section-subtitle--on-dark {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .voice-animation-container {
    gap: 1.5rem;
    padding: 0.5rem 0.75rem 2.5rem;
  }

  .recording-status {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .recording-dot {
    width: 8px;
    height: 8px;
  }

  .voice-visualizer {
    height: 100px;
    padding: 1rem;
    gap: 3px;
  }

  .voice-bar {
    width: 3px;
  }

  /* 表示するバーの数を減らす */
  .voice-bar:nth-child(n+20) {
    display: none;
  }

  .voice-animation-section .section-subtitle--on-dark {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

/* アニメーションのパフォーマンス最適化 */
@media (prefers-reduced-motion: reduce) {
  .voice-bar {
    animation: none;
  }
  
  .recording-status::before {
    animation: none;
  }
  
  .recording-dot {
    animation: none;
  }
}

/* アニメーション定義（animations.5175f56e.cssにない場合のフォールバック） */
@keyframes voiceWave {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
/* ========================================
   医療記録カード - プレミアムデザイン
   ======================================== */

/* ----------------------------------------
   カスタムプロパティ（CSS変数）
   ---------------------------------------- */
:root {
  /* カラーパレット */
  --card-primary: #3b82f6;
  --card-primary-dark: #2563eb;
  --card-primary-darker: #1e40af;
  --card-primary-light: #60a5fa;
  --card-primary-lighter: #93bbfc;
  
  /* メタリックグラスモーフィズム背景 */
  --card-bg-gradient: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 251, 255, 0.88) 25%,
    rgba(240, 247, 255, 0.85) 50%,
    rgba(232, 243, 255, 0.88) 75%,
    rgba(255, 255, 255, 0.95) 100%
  );
  
  --card-bg-hover: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(250, 252, 255, 0.92) 25%,
    rgba(243, 248, 255, 0.90) 50%,
    rgba(236, 245, 255, 0.92) 75%,
    rgba(255, 255, 255, 0.98) 100%
  );
  
  /* テキストカラー */
  --card-text: #475569;
  --card-text-light: #94a3b8;
  
  /* スペーシング */
  --card-padding: 32px;
  --card-radius: 18px;  /* v2: 24→18 で書類らしい角に */
  --section-gap: 20px;

  /* トランジション */
  --card-transition: transform 0.24s ease, box-shadow 0.24s ease;
  --card-transition-fast: background 0.2s ease, transform 0.2s ease;

  /* シャドウ (v2: プレミアム医療 SaaS のトーンに合わせ 2 層) */
  --card-shadow:
    0 0 0 1px rgba(30, 58, 138, 0.08),
    0 22px 48px -16px rgba(15, 23, 42, 0.18);

  --card-shadow-hover:
    0 0 0 1px rgba(30, 58, 138, 0.14),
    0 28px 56px -16px rgba(15, 23, 42, 0.22);
}

/* ----------------------------------------
   メインコンテナ (v2: perspective 除去 — 3D 回転を削るため不要)
   ---------------------------------------- */
.medical-record-animation {
  margin-top: 50px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* グラスモーフィズムリフレクション */
.medical-record-animation::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 30px;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(59, 130, 246, 0.1) 40%,
    transparent 70%
  );
  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

.medical-record-animation:hover::after {
  opacity: 0.8;
}

/* ----------------------------------------
   カード本体 (v2: 装飾レイヤー削減 — 医療プレミアム SaaS のトーン重視)
   - 旧 ::before (radial + linear overlay) / ::after (metallic shine) を撤去
   - 3D rotation hover を 2D translateY に
   - backdrop-filter を blur(40px) → blur(12px) で paint コスト削減
   ---------------------------------------- */
.record-card {
  max-width: 480px;
  width: 100%;
  padding: var(--card-padding);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 251, 255, 0.92) 100%
  );
  border-radius: var(--card-radius);
  border: 1px solid rgba(30, 58, 138, 0.06);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  position: relative;
  transition: var(--card-transition);
  overflow: hidden;
}

/* hover ── 2D で軽く持ち上げる */
.record-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* ----------------------------------------
   ヘッダーセクション
   ---------------------------------------- */
.record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

/* 区切り線 */
.record-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.15) 10%,
    rgba(59, 130, 246, 0.15) 90%,
    transparent 100%
  );
}

/* タイトル (v2: shimmerText アニメと bg-clip グラデを廃止、素直な navy に) */
.record-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--card-primary-darker, #1e40af);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}

/* 日付 */
.record-date {
  font-size: 12px;
  color: var(--card-text-light);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------
   コンテンツセクション
   ---------------------------------------- */
.record-content {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  position: relative;
  z-index: 2;
}

/* 各レコードセクション (v2: 装飾レイヤー削減) */
.record-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s ease;
  position: relative;
  background: rgba(248, 250, 255, 0.55);
  border: 1px solid rgba(30, 58, 138, 0.05);
}

.record-section:hover {
  background: rgba(239, 246, 255, 0.8);
}

/* ----------------------------------------
   SOAPラベル
   ---------------------------------------- */
.section-label {
  /* サイズとレイアウト */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  /* メタリックブルーグラデーション */
  background: 
    linear-gradient(
      145deg,
      rgba(96, 165, 250, 0.9) 0%,
      rgba(59, 130, 246, 0.95) 45%,
      rgba(37, 99, 235, 0.95) 50%,
      rgba(30, 64, 175, 0.9) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 100%
    );
  background-blend-mode: normal, overlay;
  border-radius: 10px;
  color: white;
  
  /* タイポグラフィ */
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-shadow: 
    0 1px 2px rgba(30, 58, 138, 0.4),
    0 0 4px rgba(255, 255, 255, 0.2);
  
  /* メタリックエフェクト */
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(30, 58, 138, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 8px rgba(59, 130, 246, 0.3),
    0 8px 16px rgba(30, 58, 138, 0.2);
  
  position: relative;
  overflow: hidden;
  transition: var(--card-transition-fast);
}

/* メタリックハイライト */
.section-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  border-radius: 10px 10px 0 0;
  pointer-events: none;
  mix-blend-mode: overlay;
}



/* ----------------------------------------
   テキストコンテンツ
   ---------------------------------------- */
.typing-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
  position: relative;
}

.typing-text::after {
  content: attr(data-text);
  display: block;
  color: var(--card-text);
  font-weight: 400;
}

/* ----------------------------------------
   アニメーション定義
   ---------------------------------------- */
@keyframes shimmerText {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 浮遊アニメーション */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-10px) translateZ(10px);
  }
}

/* スクロール中はアニメーションを一時停止 */
body.is-scrolling .record-card,
body.is-scrolling .record-section,
body.is-scrolling .section-label {
  transition: none !important;
  animation-play-state: paused !important;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット（横向き） */
@media (max-width: 1024px) {
  :root {
    --card-padding: 28px 24px;
  }
  
  .medical-record-animation {
    margin-top: 50px;
    padding: 0 20px;
  }
  
  .record-card {
    max-width: 500px;
  }
}

/* タブレット（縦向き） */
@media (max-width: 768px) {
  :root {
    --card-padding: 24px 20px;
    --card-radius: 20px;
    --section-gap: 20px;
  }
  
  .medical-record-animation {
    margin-top: 40px;
    padding: 0 16px;
    perspective: none;
  }
  
  .record-card {
    max-width: calc(100% - 32px);
    margin: 0 auto;
    transform: none !important;
  }
  
  .record-card:hover {
    transform: none !important;
    box-shadow: 
      0 0 0 1px rgba(0, 0, 0, 0.03),
      0 2px 4px rgba(0, 0, 0, 0.01),
      0 8px 16px rgba(0, 0, 0, 0.02),
      0 16px 32px rgba(0, 0, 0, 0.03);
  }
  
  .record-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }
  
  .record-section {
    padding: 12px;
    gap: 16px;
    border-radius: 12px;
  }
  
  .record-section:hover {
    transform: translateX(2px);
  }
  
  .section-label {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .typing-text {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* モバイル（大） */
@media (max-width: 480px) {
  :root {
    --card-padding: 20px 16px;
    --card-radius: 16px;
    --section-gap: 16px;
  }
  
  .medical-record-animation {
    margin-top: 30px;
    padding: 0 12px;
  }
  
  .record-card {
    max-width: calc(100% - 24px);
  }
  
  .record-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  
  .record-title {
    font-size: 16px;
  }
  
  .record-date {
    font-size: 11px;
  }
  
  .record-section {
    padding: 10px;
    gap: 14px;
    border-radius: 10px;
  }
  
  .section-label {
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
  }
  
  .typing-text {
    font-size: 12px;
    line-height: 1.6;
  }
}

/* モバイル（小） */
@media (max-width: 360px) {
  :root {
    --card-padding: 16px 14px;
    --section-gap: 16px;
  }
  
  .medical-record-animation {
    margin-top: 24px;
    padding: 0 8px;
  }
  
  .record-card {
    max-width: calc(100% - 16px);
  }
  
  .record-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  
  .record-title {
    font-size: 15px;
  }
  
  .record-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
  }
  
  .section-label {
    width: auto;
    padding: 4px 10px;
    border-radius: 4px;
  }
}

/* ========================================
   アクセシビリティとパフォーマンス
   ======================================== */

/* タッチデバイス最適化 */
@media (hover: none) and (pointer: coarse) {
  .record-card {
    transform: none !important;
  }
  
  .record-card::after {
    display: none;
  }
  
  .record-section {
    padding: 14px;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.1);
    touch-action: manipulation;
  }
  
  .record-section:active {
    background: linear-gradient(
      135deg,
      rgba(248, 250, 255, 0.9) 0%,
      rgba(240, 247, 255, 0.6) 100%
    );
  }
}

/* アニメーション無効化（パフォーマンス設定） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .record-card::after {
    display: none;
  }
}/* 課題セクション - 交互フルレイアウト (v2: 共感トーンで薄グレー背景) */
.problem {
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  position: relative;
  padding: var(--space-5xl, 128px) var(--space-md, 24px);
  padding-bottom: 5rem;
  overflow: hidden;
}

/* セクションヘッダー */
.problem .section-header {
  text-align: center;
  margin-bottom: 100px;
}

.problem .section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.15;
}

.problem .section-subtitle {
  display: none;
}

/* メイン統計 */
.problem-main-stat {
  text-align: center;
  margin: 0 auto 80px;
  max-width: var(--max-width-text);
  position: relative;
  padding: 0 20px;
}

.main-stat-number {
  font-family: "Space Grotesk", "Inter", -apple-system, sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  /* v4: Hero「2時間」と同じ metallic sheen で対応関係を確立 */
  background: var(--gold-sheen, linear-gradient(135deg, #a3722a 0%, #d9ad55 30%, #f6e6b4 50%, #cda049 68%, #9c6c26 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.stat-unit {
  font-size: 0.4em;
  font-weight: 500;
  margin-left: 0.1em;
  display: inline-block;
}

.main-stat-text {
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.main-stat-subtext {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 12px;
  font-weight: 400;
}

.main-stat-source {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-lighter, #94a3b8);
  line-height: 1.6;
}

/* === 課題リスト === */
.problems-list {
  max-width: var(--max-width-content);
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* 各課題アイテム - 2カラム */
.problem-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  /* スクロールreveal */
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.problem-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交互レイアウト: 偶数は画像を右に（orderで制御） */
.problem-item--reverse .problem-item-image {
  order: 2;
}

.problem-item--reverse .problem-item-content {
  order: 1;
}

/* 画像エリア */
.problem-item-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.07),
    0 12px 40px -4px rgba(0, 0, 0, 0.1);
}

.problem-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* コンテンツエリア */
.problem-item-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-number {
  font-size: 0.8rem;
  font-weight: 700;
  /* v4: 旧 cyan(--accent) を撤廃し navy へ統一 (パレット純化) */
  color: var(--primary-dark, #1e40af);
  letter-spacing: 0.1em;
}

.problem-title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
}

.problem-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* CTA */
.problem-cta {
  text-align: center;
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.cta-message {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.cta-arrow {
  width: 24px;
  height: 24px;
  color: #9ca3af;
  animation: subtleBounce 3s ease-in-out infinite;
}

/* === アクセシビリティ === */
@media (prefers-reduced-motion: reduce) {
  .problem-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta-arrow {
    animation: none;
  }
}

/* === タブレット === */
@media (max-width: 1024px) {
  .problem {
    padding: 100px 20px;
  }

  .problems-list {
    gap: 64px;
  }

  .problem-item {
    gap: 40px;
  }

  .main-stat-number {
    font-size: clamp(3.5rem, 7vw, 6rem);
  }
}

/* === モバイル === */
@media (max-width: 768px) {
  .problem {
    padding: 80px 20px;
    padding-bottom: 4rem;
  }

  .problem .section-header {
    margin-bottom: 60px;
  }

  .problem .section-header h2 {
    font-size: 2rem;
  }

  .problem-main-stat {
    margin-bottom: 60px;
  }

  .main-stat-number {
    font-size: clamp(3rem, 6vw, 4rem);
  }

  .main-stat-text {
    font-size: 1.25rem;
  }

  .problems-list {
    gap: 56px;
  }

  .problem-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* モバイルではorder解除（常に画像が上） */
  .problem-item--reverse .problem-item-image {
    order: unset;
  }

  .problem-item--reverse .problem-item-content {
    order: unset;
  }

  .problem-item-image {
    aspect-ratio: 3 / 2;
    border-radius: 10px;
  }

  .problem-title {
    font-size: 1.125rem;
  }

  .problem-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .problem {
    padding: 60px 16px;
    padding-bottom: 3rem;
  }

  .problem .section-header h2 {
    font-size: 1.75rem;
  }

  .main-stat-number {
    font-size: 3rem;
  }

  .stat-unit {
    font-size: 0.35em;
  }

  .main-stat-text {
    font-size: 1.125rem;
  }

  .problems-list {
    gap: 40px;
  }

  .problem-item {
    gap: 16px;
  }

  .problem-item-image {
    border-radius: 8px;
  }

  .cta-message {
    font-size: 1.125rem;
  }
}
/* 導入ロードマップ (旧 .flow-steps の 4 ステップ flow から作り変え)
 * 縦タイムライン + Day バッジ + 簡潔なタイトル + 説明文 で構成。
 *
 * 設計:
 *   --rail-x        … タイムライン縦線とドット中心の X 座標 (single source of truth)
 *   --dot-y         … 各 step 内でのドット中心の Y 座標 (when テキスト中央に揃える)
 *   --rail-inset    … 最初/最後のドット手前で線を fade させる量
 *
 *   - 線:  .roadmap-steps::before が rail-x で 1px 線を描画
 *   - ドット: .roadmap-step::before が同じ rail-x で円を描画
 *           translate(-50%, -50%) で完全センター揃え
 *   - 両者が同じ --rail-x を参照するので必ず揃う
 */

#solution.roadmap {
  background: #ffffff;
  padding: 5rem 2rem 6rem;
}

.roadmap .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  /* common.aeaa2273.css 由来の opacity:0 + animation:fadeIn が万一適用されない環境
     (reduced-motion 強制 OFF など) でも見えるよう静的値を保険に。 */
  opacity: 1;
}

.roadmap .section-header .section-eyebrow {
  margin-bottom: 0.875rem;
}

.roadmap .section-header h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text, #1e293b);
  margin: 0 0 1.25rem;
  display: block;
  position: relative;
}

/* common.aeaa2273.css の青下線を navy のフェードラインに上書き */
.roadmap .section-header h2::after {
  content: "";
  position: absolute;
  bottom: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary, #1e3a8a), transparent);
  border-radius: 1px;
  opacity: 0.55;
}

.roadmap .section-header .section-subtitle {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-light, #64748b);
  line-height: 1.6;
}

/* ───────── タイムライン本体 ───────── */
.roadmap-steps {
  --rail-x: 6rem;       /* 線/ドットの X 座標 */
  --dot-y: 1.65rem;     /* step 内の dot 中心 Y (when テキスト中央) */
  --rail-inset: 1.65rem;/* 線の上下フェード位置 (= 最初/最後の dot 中心) */

  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 縦タイムライン (上下を最初/最後のドット中心でフェード) */
.roadmap-steps::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: var(--rail-inset);
  bottom: var(--rail-inset);
  width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(
    180deg,
    rgba(30, 58, 138, 0) 0%,
    rgba(30, 58, 138, 0.22) 6%,
    rgba(30, 58, 138, 0.22) 94%,
    rgba(30, 58, 138, 0) 100%
  );
  pointer-events: none;
}

.roadmap-step {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-template-areas:
    "when title"
    "when text";
  gap: 0.25rem 2rem;
  padding: 1.125rem 0;
  align-items: start;
}

.roadmap-step__when {
  grid-area: when;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-dark, #1e40af);
  white-space: nowrap;
  padding-top: 0.125rem;
}

.roadmap-step__title { grid-area: title; }
.roadmap-step__text  { grid-area: text; }

/* タイムライン上の節点 ── step ::before として配置し --rail-x で完全揃え */
.roadmap-step::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: var(--dot-y);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-dark, #1e40af);
  /* 線を打ち抜くハロー (背景色と合わせる) */
  box-shadow: 0 0 0 4px #ffffff;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.roadmap-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.roadmap-step__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light, #64748b);
  margin: 0;
}

/* ───────── レスポンシブ (≤600px) ───────── */
@media (max-width: 600px) {
  #solution.roadmap {
    padding: 4rem 1.25rem 5rem;
  }

  .roadmap-steps {
    --rail-x: 1rem;        /* mobile: 左端 padding 内に rail を引く */
    --dot-y: 1.5rem;       /* mobile: when 中央 Y (padding 構造が違うため再計算) */
    --rail-inset: 1.5rem;
  }

  .roadmap-step {
    grid-template-columns: 1fr;
    grid-template-areas:
      "when"
      "title"
      "text";
    gap: 0.25rem;
    padding: 1.125rem 0 1.125rem 2rem;
  }

  .roadmap-step__when {
    padding-top: 0;
  }
}

/* ───────── アクセシビリティ ───────── */
@media (prefers-reduced-motion: reduce) {
  .roadmap-steps::before {
    /* reduced-motion 時は fade を抑えてしっかりした線に */
    background: linear-gradient(
      180deg,
      rgba(30, 58, 138, 0.22) 0%,
      rgba(30, 58, 138, 0.22) 100%
    );
  }
}
/* 価値提案 - 最適化されたミニマルデザイン
 * v3: VoiceToChart 末尾がライト (#fafbfc) で終わるようになったため、
 * Value 上端のブリッジは廃止。素直に薄グレーで揃える。 */
.value {
  background: #fafbfc;
  position: relative;
  overflow: hidden;
  padding: 6rem 3rem;
}

.value::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(59, 130, 246, 0.03) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.metric-card {
  text-align: center;
  position: relative;
  flex: 0 1 auto;
  min-width: 200px;
  cursor: default;
  transition: transform 0.24s ease;
}

.metric-card:hover {
  z-index: 10;
}

/* 中央メトリクスのみ視覚的にやや強調 */
.metric-card:nth-child(2) {
  transform: scale(1.06);
}


.metric-visual {
  width: clamp(160px, 20vw, 200px);
  height: clamp(160px, 20vw, 200px);
  margin: 0 auto 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card:nth-child(2) .metric-visual {
  width: clamp(180px, 22vw, 220px);
  height: clamp(180px, 22vw, 220px);
}

.metric-card:nth-child(1) .metric-visual,
.metric-card:nth-child(3) .metric-visual {
  width: clamp(140px, 18vw, 180px);
  height: clamp(140px, 18vw, 180px);
}

/* グローエフェクト — 旧 conic + 7 色の派手アニメは廃止。
   品位を保つため静的な薄い radial グローのみ。 */
.metric-glow {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(30, 58, 138, 0.12) 0%,
    transparent 60%
  );
  filter: blur(28px);
  pointer-events: none;
}

/* メインコンテンツ - ガラスモーフィズム円形デザイン */
.metric-content {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* v4: off-white 背景に輪郭が溶けて数字が浮く問題を解消。
     gold ring で円を着地させ、数字(gold)と器の関係を明示する。 */
  border: 1px solid rgba(212, 169, 96, 0.28);
  border-radius: 50%;
  padding: 2.5rem 2rem;
  min-width: 140px;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.15),
    0 0 0 1px rgba(30, 58, 138, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 -20px 40px -20px rgba(59, 130, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* シャイン / 内側グローも品位のため廃止 (R9) */


.metric-card:hover .metric-content {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px -16px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  border-color: rgba(184, 138, 62, 0.45);
}

.metric-value {
  font-family: "Space Grotesk", "Inter", -apple-system, sans-serif;
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 800;
  /* v4: metallic sheen で主役数字に金属の照りを与える */
  background: var(--gold-sheen, linear-gradient(135deg, #a3722a 0%, #d9ad55 30%, #f6e6b4 50%, #cda049 68%, #9c6c26 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  margin-bottom: 0;
  letter-spacing: -0.03em;
  word-break: keep-all;
  white-space: nowrap;
  position: relative;
}

.metric-unit {
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 0.05em;
  letter-spacing: 0;
}

.metric-card:nth-child(2) .metric-value {
  font-size: clamp(3.5rem, 6vw, 5rem);
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  opacity: 0.9;
}

.metric-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
  font-weight: 400;
  opacity: 0.85;
}

.metric-asterisk {
  font-size: 0.5em;
  color: #94a3b8;
  vertical-align: top;
  margin-left: 0.05em;
}

.metrics-note {
  margin: 2.5rem auto 0;
  max-width: 760px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #94a3b8;
  text-align: center;
  font-weight: 500;
}

.metrics-note__star {
  color: #94a3b8;
  font-weight: 700;
  margin-right: 0.25rem;
}
/* 価値提案セクション - レスポンシブ対応 */

/* 大型タブレット */
@media (max-width: 1200px) {
  .value {
    padding: 6rem 2.5rem;
  }

  .metrics {
    gap: clamp(1.5rem, 4vw, 4rem);
  }

  .metric-visual {
    width: clamp(150px, 18vw, 180px);
    height: clamp(150px, 18vw, 180px);
  }

  .metric-card:nth-child(2) .metric-visual {
    width: clamp(180px, 22vw, 220px);
    height: clamp(180px, 22vw, 220px);
  }

  .metric-card:nth-child(1) .metric-visual,
  .metric-card:nth-child(3) .metric-visual {
    width: clamp(130px, 16vw, 160px);
    height: clamp(130px, 16vw, 160px);
  }
}

/* タブレット */
@media (max-width: 1024px) {
  .value {
    padding: 5rem 2rem;
  }

  .metric-card:nth-child(2) {
    transform: scale(1.2);
  }

  .metric-value {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
  }

  .metric-card:nth-child(2) .metric-value {
    font-size: clamp(2.8rem, 4vw, 3.5rem);
  }

  .metric-content {
    padding: 2rem 1.25rem;
  }
}

/* タブレット縦向き */
@media (max-width: 768px) {
  .value {
    padding: 4rem 1.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .metrics {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
  }

  .metric-card {
    max-width: 400px;
    width: 100%;
    animation: none;
  }

  /* モバイルでは中央カードの拡大を解除 + 600h を主役として先頭配置
   * (desktop の center hero と等価. DOM 順は 70/600/90 で screen reader 不変) */
  .metric-card:nth-child(2) {
    transform: scale(1);
    order: -1;
  }

  .metric-visual {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
  }

  .metric-card:nth-child(2) .metric-visual {
    width: 180px;
    height: 180px;
  }

  .metric-card:nth-child(1) .metric-visual,
  .metric-card:nth-child(3) .metric-visual {
    width: 150px;
    height: 150px;
  }

  .metric-content {
    padding: 2rem 1.5rem;
    min-width: 120px;
  }

  .metric-value {
    font-size: 2.5rem;
  }

  .metric-card:nth-child(2) .metric-value {
    font-size: 2.75rem;
  }

  .metric-label {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .metric-desc {
    font-size: 0.85rem;
    max-width: 280px;
  }

  /* アニメーション調整 */
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .metric-glow {
    filter: blur(20px);
  }
}

/* スマートフォン */
@media (max-width: 480px) {
  .value {
    padding: 3rem 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .metrics {
    gap: 2rem;
  }

  .metric-card {
    max-width: 320px;
  }

  .metric-visual {
    width: 140px;
    height: 140px;
    margin-bottom: 1.25rem;
  }

  .metric-card:nth-child(2) .metric-visual {
    width: 160px;
    height: 160px;
  }

  .metric-card:nth-child(1) .metric-visual,
  .metric-card:nth-child(3) .metric-visual {
    width: 130px;
    height: 130px;
  }

  .metric-content {
    padding: 1.75rem 1.25rem;
  }

  .metric-value {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
  }

  .metric-card:nth-child(2) .metric-value {
    font-size: 2.5rem;
  }

  .metric-label {
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
  }

  .metric-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 240px;
  }

  /* ホバーエフェクトを無効化（タッチデバイス） */
  .metric-card:hover .metric-content {
    transform: none;
  }
}

/* 非常に小さい画面 */
@media (max-width: 360px) {
  .value {
    padding: 2.5rem 0.75rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .metrics {
    gap: 1.5rem;
  }

  .metric-card {
    max-width: 280px;
  }

  .metric-visual {
    width: 120px;
    height: 120px;
  }

  .metric-card:nth-child(2) .metric-visual {
    width: 140px;
    height: 140px;
  }

  .metric-card:nth-child(1) .metric-visual,
  .metric-card:nth-child(3) .metric-visual {
    width: 110px;
    height: 110px;
  }

  .metric-content {
    padding: 1.5rem 1rem;
  }

  .metric-value {
    font-size: 1.875rem;
  }

  .metric-card:nth-child(2) .metric-value {
    font-size: 2.125rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  .metric-desc {
    font-size: 0.75rem;
    max-width: 200px;
  }
}

/* 横向きモバイル対応 */
@media (max-width: 896px) and (orientation: landscape) {
  .value {
    padding: 3rem 2rem;
  }

  .metrics {
    flex-direction: row;
    gap: 2rem;
  }

  .metric-card {
    flex: 1;
    min-width: 150px;
  }

  .metric-card:nth-child(2) {
    transform: scale(1.1);
  }

  .metric-visual {
    width: 120px;
    height: 120px;
  }

  .metric-card:nth-child(2) .metric-visual {
    width: 140px;
    height: 140px;
  }

  .metric-card:nth-child(1) .metric-visual,
  .metric-card:nth-child(3) .metric-visual {
    width: 110px;
    height: 110px;
  }

  .metric-content {
    padding: 1.5rem 1rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .metric-card:nth-child(2) .metric-value {
    font-size: 2.25rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  .metric-desc {
    font-size: 0.75rem;
    max-width: 180px;
  }
}

/* アニメーション最適化 */
@media (prefers-reduced-motion: reduce) {
  .metric-card {
    animation: none !important;
  }

  .metric-glow {
    animation: none !important;
  }

  .metric-content {
    animation: none !important;
  }

  .metric-content::before {
    animation: none !important;
  }

  .metric-value {
    animation: none !important;
  }

  .metric-card:hover .metric-content {
    transform: scale(1.02);
  }
}
/* 社会的証明（導入実績）セクション */
.social-proof {
  padding: var(--space-4xl, 96px) var(--space-md, 24px);
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.social-proof .section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.social-proof h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* 推薦コメントグリッド */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto 2.5rem;
}

.testimonial-card {
  background: white;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 58, 138, 0.24);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.testimonial-card:hover .testimonial-photo img {
  transform: scale(1.02);
}

.testimonial-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.18) 100%);
  pointer-events: none;
}

.testimonial-content {
  padding: 1.35rem 1.35rem 0;
  flex: 1;
  position: relative;
}

/* signature: 大きく淡い引用符モチーフ (装飾、本文の背後) */
.testimonial-content::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  right: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(30, 58, 138, 0.08);
  pointer-events: none;
  z-index: 0;
}

.testimonial-type {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  /* v2: 薄青背景 → white + navy outline でパレット純化 */
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.2);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.testimonial-content blockquote {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* v4: 「声」の主役は引用文。サイズ・コントラストを上げて写真より前に出す */
.testimonial-content p {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
}

/* キーフレーズ強調 (スキャンで便益が刺さるように navy 太字) */
.t-emph {
  font-weight: 700;
  color: var(--primary-dark);
}

.testimonial-author {
  padding: 1.25rem 1.35rem 1.35rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: #f8fafc;
}

.author-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.author-detail {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* 導入事例リンク */
.case-studies-link {
  text-align: center;
  margin: 0 auto;
}

.case-studies-link__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(30, 58, 138, 0.28);
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

.case-studies-link__button:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.case-studies-link__icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-studies-link__button:hover .case-studies-link__icon {
  transform: translateX(4px);
}

/* 数値注釈スタイル */
.metric-asterisk {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--text-light);
  margin-left: 0.125rem;
}

.metrics-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-lighter);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .social-proof {
    padding: 4rem 1.5rem;
  }

  .social-proof .section-header {
    margin-bottom: 2.25rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-card:last-child {
    max-width: none;
  }

  /* モバイルは写真高さを抑え、主役の引用文を前に出す */
  .testimonial-photo {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .social-proof {
    padding: 3rem 1rem;
  }

  .social-proof h2 {
    font-size: 1.5rem;
  }

  .testimonial-content,
  .testimonial-author {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }

  .testimonial-content p {
    font-size: 0.9375rem;
  }

  .case-studies-link__button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}
/* 医療監修セクション */
.supervisor {
  background: var(--bg);
}

.supervisor-content {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 写真 */
.supervisor-photo {
  position: relative;
  width: 152px;
  height: 152px;
}

.supervisor-photo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
}

.supervisor-photo img {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

/* プロフィール */
.supervisor-profile {
  margin-top: 1.25rem;
}

.supervisor-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.supervisor-title {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.5rem;
}

.supervisor-position {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 0.25rem;
}

.supervisor-position strong {
  font-weight: 600;
  color: var(--text);
}

/* コメント（引用） */
.supervisor-comment {
  margin: 2rem 0 0;
  padding: 0;
  border: none;
  position: relative;
}

.supervisor-comment::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
}

.supervisor-comment::after {
  display: none;
}

.supervisor-comment p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 2;
  margin: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .supervisor-photo,
  .supervisor-photo img {
    width: 136px;
    height: 136px;
  }
}

@media (max-width: 480px) {
  .supervisor-photo,
  .supervisor-photo img {
    width: 120px;
    height: 120px;
  }

  .supervisor-name {
    font-size: 1rem;
  }

  .supervisor-comment p {
    font-size: 0.875rem;
    line-height: 1.9;
  }
}
/* 機能セクション — v2 Bento Grid
 * 旧 .features-cross-grid (2x2 均等) は廃止。
 * セキュリティを主役カード (2x1) として配置し #security アンカー受け皿に。
 */

#features {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}

#security {
  scroll-margin-top: 80px;
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-item {
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.18);
  border-color: rgba(30, 58, 138, 0.28);
}

.feature-item .feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 1) 0%, rgba(219, 234, 254, 1) 100%);
  border-radius: 12px;
  color: var(--primary);
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.feature-item .feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-item p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* 主役カード (セキュリティ) */
.feature-item--hero {
  grid-column: span 3;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-item--hero:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px -24px rgba(30, 58, 138, 0.45);
}

.feature-item--hero h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.feature-item--hero p {
  color: rgba(241, 245, 249, 0.88);
  font-size: 1rem;
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

.feature-icon--accent {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.feature-icon--accent svg {
  width: 28px;
  height: 28px;
}

/* feature-eyebrow は section-eyebrow に統合済み (R5)
   レガシー保持用ルールはここで一括定義する */
.feature-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.feature-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.feature-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(241, 245, 249, 0.92);
  line-height: 1.55;
}

.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

/* レスポンシブ */
@media (max-width: 900px) {
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item--hero {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .features-bento {
    grid-template-columns: 1fr;
  }

  .feature-item--hero {
    grid-column: span 1;
    padding: 2rem 1.5rem;
  }

  .feature-item {
    padding: 1.75rem 1.5rem;
  }

  .feature-item--hero h3 {
    font-size: 1.25rem;
  }
}
/* 比較セクション - 他社音声 AI vs コエカル マトリクス
 * 旧 .compare-fullwidth / .compare-side / .compare-list は廃止し、
 * .compare-matrix（3列・行ヘッダー左固定）に刷新。
 */

.comparison {
  position: relative;
  overflow: hidden;
}

.comparison .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.compare-matrix {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
}

.compare-matrix__head,
.compare-matrix__body {
  display: contents;
}

.compare-matrix__row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) 1fr 1.1fr;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.compare-matrix__row:first-child {
  border-top: none;
}

.compare-matrix__cell {
  padding: 1.125rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-matrix__row--head .compare-matrix__cell {
  font-weight: 700;
  font-size: 0.95rem;
  background: #f8fafc;
  text-align: left;
  color: #1e293b;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.compare-matrix__cell--label {
  background: #fafbfc;
  color: #475569;
  font-weight: 600;
  font-size: 0.875rem;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.compare-matrix__cell--other {
  color: #64748b;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.compare-matrix__cell--coekar {
  color: #1e293b;
  font-weight: 500;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.12);
}

.compare-matrix__row--head .compare-matrix__cell--coekar {
  background: linear-gradient(180deg, var(--primary, #1e3a8a) 0%, var(--primary-dark, #1e40af) 100%);
  color: #fff;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.4);
}

.compare-matrix__row--head .compare-matrix__cell--coekar .compare-matrix__brand {
  color: #fff;
}

.compare-matrix__row--head .compare-matrix__cell--coekar .compare-matrix__sub {
  color: rgba(255, 255, 255, 0.7);
}

.compare-matrix__brand {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--primary-dark, #1e40af);
  letter-spacing: -0.01em;
}

.compare-matrix__sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.compare-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1;
}

.compare-mark--yes {
  background: rgba(30, 58, 138, 0.12);
  color: var(--primary-dark, #1e40af);
}

.compare-mark--partial {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.compare-mark--no {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* レスポンシブ ── 中型タブレット (601-768px) は 2 列、
 * スマートフォン (≤600px) は 1 列に積み上げて読みやすく */
@media (max-width: 768px) and (min-width: 601px) {
  .compare-matrix__row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "label  label"
      "other  coekar";
  }

  .compare-matrix__cell--label {
    grid-area: label;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: #f1f5f9;
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
  }

  .compare-matrix__cell--other {
    grid-area: other;
  }

  .compare-matrix__cell--coekar {
    grid-area: coekar;
  }

  .compare-matrix__row--head {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "other coekar";
  }

  .compare-matrix__row--head .compare-matrix__cell--label {
    display: none;
  }
}

@media (max-width: 600px) {
  .compare-matrix {
    border-radius: 12px;
  }

  /* 全 cell を縦積み: label → other → coekar の順 */
  .compare-matrix__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "other"
      "coekar";
    border-top: 1px solid rgba(148, 163, 184, 0.18);
  }

  .compare-matrix__row:first-child {
    border-top: none;
  }

  .compare-matrix__cell {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .compare-matrix__cell--label {
    grid-area: label;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.625rem 1rem;
  }

  .compare-matrix__cell--other {
    grid-area: other;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: #fafbfc;
  }

  .compare-matrix__cell--coekar {
    grid-area: coekar;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.12);
  }

  /* ヘッダ行も縦積みで「ラベル無し → 汎用 → コエカル」順 */
  .compare-matrix__row--head {
    grid-template-areas:
      "other"
      "coekar";
  }

  .compare-matrix__row--head .compare-matrix__cell--label {
    display: none;
  }

  .compare-matrix__row--head .compare-matrix__cell--other {
    background: #f1f5f9;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .compare-matrix__row--head .compare-matrix__cell--coekar {
    background: linear-gradient(180deg, var(--primary, #1e3a8a) 0%, var(--primary-dark, #1e40af) 100%);
    color: #fff;
    text-align: center;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .compare-matrix__brand {
    font-size: 1.125rem;
  }
}
/* 比較セクション - レスポンシブ
 * 旧 .compare-card / .compare-list 系の指定はマトリクス刷新 (Comparison.astro v2)
 * に伴い廃止。レスポンシブは comparison.14036f38.css 側で完結。
 */
/* 導入実績セクション
 * 深い navy 帯に metallic gold の主役数字。Comparison(light) と Testimonials(light)
 * の間に置く dark beat。gold-sheen が最も映える背景。 */
.track-record {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 8.5rem) 2rem;
  background: radial-gradient(
    ellipse 90% 70% at 50% 38%,
    #1e3a8a 0%,
    #0f172a 58%,
    #0b1322 100%
  );
  text-align: center;
  color: #fff;
}

/* 数字の背後にだけ仕込む控えめな gold グロー */
.track-record::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(216, 168, 73, 0.16) 0%,
    transparent 52%
  );
  pointer-events: none;
}

.track-record__inner {
  position: relative;
  z-index: 1;
}

.track-record__eyebrow {
  color: var(--accent-gold, #d8a849);
  margin-bottom: 1.25rem;
}

.track-record__stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.track-record__num {
  font-family: "Space Grotesk", "Inter", -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(5.5rem, 16vw, 12rem);
  /* metallic sheen — dark 地で最も金属的に光る */
  background: var(
    --gold-sheen,
    linear-gradient(
      135deg,
      #a3722a 0%,
      #d9ad55 30%,
      #f6e6b4 50%,
      #cda049 68%,
      #9c6c26 100%
    )
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 金属を dark bg から浮かせる暖色のソフトシャドウ */
  filter: drop-shadow(0 6px 24px rgba(216, 168, 73, 0.22));
}

.track-record__unit {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  color: #fff;
  letter-spacing: 0;
}

.track-record__label {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.track-record__lead {
  margin: 1.75rem auto 0;
  max-width: 32rem;
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.track-record__note {
  margin: 1rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* gold hairline の区切り (lead の上に) */
.track-record__lead::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 1.75rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-gold, #d8a849),
    transparent
  );
}

@media (max-width: 768px) {
  .track-record {
    padding: clamp(4rem, 14vw, 6rem) 1.5rem;
  }
}
/* CTA セクション (クロージング) — v2
 * 旧実装の複数同時アニメ (回転 / pulse / particles / textGlow / titleBackGlow)
 * は撤去。動的演出は背景の静的ラジアル光 1 つだけ残す。
 * フォント太さで重みを出し、紺基調 × 1 点ゴールド (eyebrow) で締める。 */

.cta {
  position: relative;
  text-align: center;
  padding: var(--space-5xl, 128px) var(--space-md, 24px);
  background: radial-gradient(ellipse at top, #1e3a8a 0%, #0f172a 65%, #08111f 100%);
  overflow: hidden;
  isolation: isolate;
  cursor: default;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 75%, rgba(59, 130, 246, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(147, 197, 253, 0.10) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

/* メインタイトル — グロー / アニメーションを撤去し、weight で重みを出す */
.cta h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  /* 日本語の末尾 1 文字折り返し防止 (「ゼロ / に」「最大 / に」回避) */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cta h2 br {
  display: block;
  content: "";
  margin-top: 0.25em;
}

/* デフォルトサブテキスト */
.cta p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* エピローグ用ブランドコピー (ゴールドはここに集中) */
.cta p.cta-eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-gold, #d4a960);
  margin: 0 0 1.5rem;
}

/* サブテキスト (h2 直下) */
.cta p.cta-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(241, 245, 249, 0.85);
  margin: 0 auto 2.5rem;
  max-width: 600px;
  font-weight: 500;
}

/* ボタン内メタ表記 */
.btn-meta {
  display: inline-block;
  margin-left: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0;
}

/* CTAボタンコンテナ */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* CTAボタン */
.cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.75rem;
  background: white;
  color: #1e3a8a;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.3);
}

.cta .btn-primary:active {
  transform: translateY(0);
}

/* セカンダリボタン (ライト版) */
.cta .btn-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.125rem 2.5rem;
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cta .btn-secondary-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* フォーカス */
.cta .btn-primary:focus-visible,
.cta .btn-secondary-light:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .cta {
    padding: 5rem 1.5rem;
  }

  .cta h2 {
    /* 9 文字 (「記録の時間をゼロに」「対話の時間を最大に」) が 375px viewport で
     * 1 行に収まる font-size を確保。1.625rem ≈ 26px → 9*26 ≈ 234px で余裕 */
    font-size: clamp(1.625rem, 5.6vw, 2.25rem);
    letter-spacing: -0.03em;
  }

  .cta p,
  .cta p.cta-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .cta .btn-primary,
  .cta .btn-secondary-light {
    width: 100%;
    max-width: 360px;
    /* ボタン内テキスト + meta を縦積みに (横並びだと両方折り返す) */
    flex-direction: column;
    padding: 0.875rem 1.5rem;
    line-height: 1.35;
  }

  .btn-meta {
    display: block;
    margin-left: 0;
    margin-top: 0.125rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 4rem 1.25rem;
  }

  .cta p.cta-eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  .cta .btn-primary,
  .cta .btn-secondary-light {
    transition: none;
  }
}

/* ハイコントラストモード */
@media (prefers-contrast: high) {
  .cta {
    background: #000033;
  }

  .cta .btn-primary {
    background: white;
    color: black;
    border: 2px solid white;
  }
}
/* よくある質問 */
.pre-contact-faq {
  padding: var(--space-3xl, 80px) var(--space-md, 24px);
  background: #ffffff;
}

.pre-contact-faq .section-header {
  margin-bottom: 2.5rem;
}

.pre-contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.pre-contact-faq-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  min-height: 0;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
}

.pre-contact-faq-item h3 {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.pre-contact-faq-item h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.pre-contact-faq-item p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* お問い合わせフォームセクション */
.contact-section {
  padding: var(--space-3xl, 80px) var(--space-md, 24px);
  background: var(--bg);
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

/* TimeRexカレンダー（サンクスセクション用） */
#timerex_calendar {
  min-height: 600px;
  margin-top: 1.5rem;
}

/* フォーム本体 */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* フォームグループ */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

/* 関連フィールドを横並びにし、フォーム全体の見た目の長さを抑える
   （入力開始のハードルを下げる目的。モバイルでは縦積みに戻す） */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
  align-items: start;
}

.form-row .form-group {
  margin-bottom: 1.5rem;
}

/* ラベル */
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* v4: bare red 連発の圧を低減。.optional と対になる控えめなピルに。 */
.required {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.08);
  color: #c0392b;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.optional {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
}

.form-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* 入力フィールド共通 */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fafbfc;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;  /* WCAG AA準拠: コントラスト比 4.6:1 */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

/* セレクトボックス */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* テキストエリア（任意項目。圧を下げるため初期高さは控えめに） */
.form-group textarea {
  resize: vertical;
  min-height: 76px;
}

/* ラジオボタン */
.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
  padding: 0.5rem 0;
  min-height: 44px;
}

.radio-label input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-mark {
  border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.radio-label input[type="radio"]:focus + .radio-mark {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* チェックボックス */
.checkbox-group {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 0.5rem 0;
  min-height: 44px;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-text a:hover {
  text-decoration: none;
}

/* 送信ボタン */
.form-submit {
  margin-top: 2rem;
  text-align: center;
}

.btn-submit {
  min-width: 200px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
/* レスポンシブ: タブレット */
@media (max-width: 768px) {
  .pre-contact-faq {
    padding: 3rem 1.25rem;
  }

  .pre-contact-faq-grid {
    grid-template-columns: 1fr;
  }

  .pre-contact-faq-item {
    grid-template-columns: 1fr;
    gap: 0.625rem;
    padding: 1.25rem 0;
  }

  .contact-section {
    padding: 3rem 0;
  }

  .contact-section > .container {
    padding: 0;
  }

  .contact-form {
    padding: 2rem 1.25rem;
    border-radius: 0;
    box-shadow: none;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  /* モバイルでは横並びを解除して縦積みに戻す */
  .form-row {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 1rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0;
  }

  .btn-submit {
    width: 100%;
  }

  .form-success {
    padding: 2.5rem 1.25rem;
    border-radius: 0;
    box-shadow: none;
  }

  #timerex_calendar {
    min-height: 500px;
  }
}

/* レスポンシブ: スマートフォン */
@media (max-width: 480px) {
  .pre-contact-faq {
    padding: 2.5rem 1rem;
  }

  .pre-contact-faq-item {
    padding: 1.125rem 0;
  }

  .pre-contact-faq-item h3 {
    grid-template-columns: 1.625rem 1fr;
    gap: 0.625rem;
    font-size: 1rem;
  }

  .pre-contact-faq-item h3::before {
    width: 1.625rem;
    height: 1.625rem;
  }

  .contact-section {
    padding: 2.5rem 0;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }

  .form-success {
    padding: 2rem 1rem;
  }

  #timerex_calendar {
    min-height: 450px;
  }
}

/* 送信完了メッセージ */
.form-success {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.form-success p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* 送信中ボタン */
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 次のステップ（予約誘導） */
.next-step {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.next-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.next-step-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.booking-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Timerex埋め込み */
.timerex-embed {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timerex-iframe {
  width: 100%;
  height: 600px;
  border: none;
}

@media (max-width: 768px) {
  .timerex-iframe {
    height: 500px;
  }
}

/* フォームエラー状態 */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-group input:invalid:not(:placeholder-shown):focus,
.form-group textarea:invalid:not(:placeholder-shown):focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-error-message {
  color: var(--error);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-error-message::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background: var(--error);
  color: white;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
}

/* フォーム成功状態 */
.form-group input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

/* チェックボックスのフォーカス状態 */
.checkbox-label input[type="checkbox"]:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* インラインエラーバナー */
.form-error-banner {
  padding: 0.875rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
/* フッター */
footer {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 1) 100%
  );
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding: 4rem 3rem 2rem;
  position: relative;
  overflow: hidden;
}

footer:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.02) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto auto;
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary, #1e3a8a) 0%, var(--primary-dark, #1e40af) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.footer-brand h3 img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.footer-brand p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 450;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
}

.footer-links a:hover {
  color: var(--primary, #1e3a8a);
  transform: translateX(4px);
}

.footer-links a::before {
  content: "→";
  font-size: 0.875rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links h4 {
    font-size: 0.7rem;
    padding-bottom: 0.5rem;
  }

  .footer-links a::before {
    display: none;
  }

  .footer-links a:hover {
    transform: none;
    color: var(--primary, #1e3a8a);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  .footer-bottom p {
    font-size: 0.8125rem;
  }
}
/* モバイル対応 */
@media (max-width: 768px) {
  .voice-visualizer {
    height: 150px;
    gap: 4px;
    padding: 1.5rem;
  }

  .voice-bar {
    width: 3px;
  }

  .recording-status {
    padding: 0.75rem 1.5rem;
  }

  .recording-text {
    font-size: 0.9rem;
  }
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .timeline-container {
    max-width: 800px;
  }

  .timeline-content {
    width: calc(50% - 3rem);
  }

  .timeline-item:nth-child(odd) .timeline-time {
    right: -4.5rem;
  }

  .timeline-item:nth-child(even) .timeline-time {
    left: -4.5rem;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .problem {
    padding: 5rem 1.5rem;
  }

  .timeline-container {
    padding: 2rem 0;
  }

  .timeline-line {
    left: 2.5rem;
    width: 2px;
  }

  .timeline-item {
    margin-bottom: 3rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    margin-left: 0;
    padding-left: 4.5rem;
  }

  .timeline-content {
    width: 100%;
    padding: 2rem;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
  }

  .timeline-dot {
    left: 2.5rem;
    top: 2rem;
    width: 20px;
    height: 20px;
    border-width: 3px;
  }

  .timeline-time {
    position: static;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ef4444;
    opacity: 0.9;
  }

  .timeline-content h3 {
    font-size: 1.25rem;
    flex-wrap: wrap;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
  }

  .timeline-problems li {
    font-size: 0.95rem;
    padding: 0.75rem 0;
  }

  .timeline-stat {
    font-size: 0.85rem;
    padding: 0.4rem 0.875rem;
    margin-top: 1.25rem;
  }
}

/* 小型スマホ対応 */
@media (max-width: 480px) {
  .problem {
    padding: 4rem 1rem;
  }

  .timeline-line {
    left: 1.75rem;
  }

  .timeline-item {
    padding-left: 3.5rem;
  }

  .timeline-content {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .timeline-dot {
    left: 1.75rem;
    width: 18px;
    height: 18px;
  }

  .timeline-content h3 {
    font-size: 1.125rem;
    gap: 0.75rem;
  }

  .timeline-icon {
    width: 36px;
    height: 36px;
  }

  .timeline-problems {
    margin-top: 1rem;
  }

  .timeline-problems li {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    line-height: 1.6;
  }

  .timeline-stat {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
}

/* 機能セクションのレスポンシブ対応 */
@media (max-width: 768px) {
  .features-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-right {
    padding-top: 0;
  }

  .feature-card {
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2) {
    border-radius: 16px;
  }

  .feature-header {
    gap: 1rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #features {
    padding: 4rem 1rem;
  }

  .features-left,
  .features-right {
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.75rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .feature-card h3 {
    font-size: 1.05rem;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .btn-primary:not(.hero-cta),
  .btn-secondary:not(.hero-cta-secondary) {
    width: 100%;
    text-align: center;
  }

  .metrics,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .arrow-container {
    display: none;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  .cta h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .cta p {
    font-size: 1.05rem;
  }

  .value {
    padding: 5rem 1.5rem;
  }

  .metrics {
    flex-direction: column;
    gap: 3rem;
  }

  .metric-card:nth-child(2) {
    transform: scale(1);
    --scale: 1;
  }

  .metric-visual {
    width: 180px;
    height: 180px;
  }

  .metric-card:nth-child(2) .metric-visual,
  .metric-card:nth-child(1) .metric-visual,
  .metric-card:nth-child(3) .metric-visual {
    width: 180px;
    height: 180px;
  }

  .metric-value {
    font-size: 3rem;
  }

  .metric-card:nth-child(2) .metric-value {
    font-size: 3.5rem;
  }

  .compare-card {
    padding: 2rem;
  }
}

/* 小型デバイス向け追加調整 */
@media (max-width: 480px) {
  h2 {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  section {
    padding: 4rem 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .footer-brand h3 {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .footer-brand h3 img {
    width: 24px;
    height: 24px;
  }

  .value {
    padding: 4rem 1rem;
  }

  .metric-visual {
    width: 150px;
    height: 150px;
  }

  .metric-card:nth-child(2) .metric-visual,
  .metric-card:nth-child(1) .metric-visual,
  .metric-card:nth-child(3) .metric-visual {
    width: 150px;
    height: 150px;
  }

  .metric-content {
    padding: 1.5rem 1.25rem;
  }

  .metric-value {
    font-size: 2.5rem;
  }

  .metric-card:nth-child(2) .metric-value {
    font-size: 3rem;
  }

  .metric-label {
    font-size: 0.85rem;
  }

  .metric-desc {
    font-size: 0.85rem;
  }

  .compare-card h3 {
    font-size: 1.25rem;
  }
}
/* パフォーマンス最適化CSS */
/* backdrop-filterとfilterを削除/軽量化し、代替デザインを提供 */

/* Nav の backdrop-filter / 半透明背景は critical.css でデザイン確定済み。
 * ここで !important で潰すと dark セクション直上で硬い白塊になるため除去。
 * 旧パフォーマンスハック (backdrop-filter: none !important) は撤去。 */

/* 旧 .voice-animation-container / .crystallization-stage の白背景 !important は撤去。
 * Voice セクションは v3 で dark → light のフェード構成に変更されており、
 * コンテナが白背景になるとダーク帯の中に白矩形が浮いてしまうため。 */

/* カード最適化 */
.feature-card,
.comparison-card,
.solution-card {
  backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

/* フィーチャーセクション最適化 */
.features-gradient-orb,
.features-accent-orb,
.feature-glow {
  /* blurを削除またはopacityで代替 */
  filter: none !important;
  opacity: 0.15 !important;
}

/* 価値セクション最適化 */
.value-gradient-bg {
  filter: none !important;
  opacity: 0.2 !important;
}

/* ユーティリティ最適化 */
.gradient-orb,
.gradient-blob {
  filter: none !important;
  opacity: 0.15 !important;
}

/* アニメーション最適化 - GPU加速を活用 */
* {
  /* will-changeを削除（過度の使用はメモリを消費） */
  will-change: auto !important;
}

/* 特定の要素のみGPU加速 */
.hero-title,
.hero-visual,
.device-wrapper {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* アニメーションの簡略化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 重いアニメーションを無効化 */
.shimmer-effect::before,
.shimmer-slow::before,
.gloss-sweep::before {
  display: none !important;
}

/* トランジションを高速化 */
* {
  transition-duration: 0.2s !important;
}

/* box-shadowを軽量化 */
.btn-primary,
.btn-secondary,
.nav-cta {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.nav-cta:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08) !important;
}

/* スクロールパフォーマンス改善 */
html {
  scroll-behavior: smooth;
  /* スクロール時のレンダリング最適化 */
  -webkit-overflow-scrolling: touch;
}

/* 画像最適化 */
img {
  /* 画像のレンダリング品質を調整 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* フォント最適化 */
body {
  /* フォントレンダリング最適化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* レイアウトシフト防止 */
.device-image,
.logo-icon {
  aspect-ratio: attr(width) / attr(height);
}

/* 不要な再描画を防ぐ */
.static-content {
  contain: layout style paint;
}