/* コエレク LP メインスタイルシート */

/* ========================================
   ユーティリティクラス
======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   カスタムプロパティ（CSS変数）
======================================== */
:root {
  /* カラーパレット */
  --wonder-blue: #2563EB;
  --wonder-blue-dark: #1E40AF;
  --wonder-blue-light: #3B82F6;
  --healing-green: #34C759;
  --healing-green-dark: #28A745;

  /* ニュートラルカラー */
  --white: #FFFFFF;
  --deep-navy: #1D1D1F;
  --gray-100: #F7F7F7;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;

  /* 背景色 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F7;
  --bg-dark: #1D1D1F;

  /* フォント */
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-numbers: 'Roboto', sans-serif;

  /* フォントサイズ */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 72px;

  /* 行間 */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* 余白 */
  --section-spacing: 128px;
  --section-spacing-mobile: 64px;
  --container-max-width: 1100px;
  --container-padding: 10%;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;

  /* ヒーロー背景既定（画像未設定時のグラデーション） */
  --hero-image: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);

  /* アクセント */
  --accent-red: #EF4444;
}

/* ========================================
   共通スタイル
======================================== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--deep-navy);
}

/* 青グラデーション横線付きセクションタイトル */
.section-title--lined {
  position: relative;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.section-title--lined::before,
.section-title--lined::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--wonder-blue) 0%, var(--white) 100%);
  border-radius: 2px;
}

.section-title--lined::before {
  top: 0;
}

.section-title--lined::after {
  bottom: 0;
}

.section-subtitle {
  font-size: var(--text-xl);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--gray-700);
}

.highlight {
  color: var(--wonder-blue);
  font-weight: 700;
}

.highlight-large {
  color: var(--wonder-blue);
  font-weight: 900;
  font-size: 1.2em;
}

/* ========================================
   ヘッダー（固定）
======================================== */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

/* ヘッダー用コンテナは画面端まで広げる */
.header-fixed .container {
  max-width: 100%;
  padding: 0 clamp(16px, 4vw, 48px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--wonder-blue);
}

.logo-image {
  height: 32px;
  width: auto;
  display: block;
}

.cta-button-header {
  background: var(--wonder-blue);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta-button-header:hover {
  background: var(--wonder-blue-dark);
  transform: translateY(-2px);
}

/* ========================================
   CTAボタン共通
======================================== */
.cta-button-primary {
  display: inline-block;
  background: var(--wonder-blue);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cta-button-primary:hover {
  background: var(--wonder-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.cta-button-primary.large {
  padding: 20px 48px;
  font-size: var(--text-2xl);
}

.cta-button-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--wonder-blue);
  border: 2px solid var(--wonder-blue);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: var(--text-lg);
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background: var(--wonder-blue);
  color: var(--white);
}

.cta-inline {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* ========================================
   Section 1: ヒーロー（固定背景）
======================================== */
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 68px 16px 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(30, 64, 175, 0.18) 0%, transparent 100%),
    linear-gradient(175deg, #0C1425 0%, #111D3A 50%, #0F172A 100%);
  z-index: 0;
  overflow: hidden;
}

/* ヒーロー画像をぼかして背景に敷く */
.hero-section::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/hero_-title.png') center center / cover no-repeat;
  filter: blur(50px) brightness(0.35) saturate(1.3);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 0;
}

/* 極薄ドットグリッド - テクスチャで奥行き */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ヒーロー以降のコンテンツオーバーレイ */
.content-overlay {
  position: relative;
  z-index: 10;
  margin-top: 92vh;
  /* ヒーロー画像の下端に少しかぶる程度 */
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  /* 両端に余裕を持たせる */
  margin-left: 20px;
  margin-right: 20px;
  /* フッターがヒーローを覆うため余白不要 */
  padding-bottom: 0;
  /* 内部要素のはみ出しを防止 */
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* オーバーレイを削除（画像が暗くならないように） */

.hero-headline {
  font-size: clamp(28px, 6vw, var(--text-6xl));
  font-weight: 900;
  color: var(--deep-navy);
  margin-bottom: var(--spacing-xl);
  line-height: var(--leading-tight);
  text-align: center;
}

.no-wrap {
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0 0;
}

.hero-cta.center {
  justify-content: center;
}

/* ヒーロー画像とテキストのラッパー */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: min(1400px, 95vw);
  z-index: 1;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(37, 99, 235, 0.15);
  animation: zoomIn 1.2s ease-out forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(1.1);
    opacity: 0.8;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 浮かび上がるテキストオーバーレイ */
.hero-text-overlay {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-text-main {
  width: auto;
  max-width: 91.96%;
  /* 5%縮小: 96.8% × 0.95 = 91.96% */
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* コエレクロゴ */
.hero-logo-overlay {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 4.5%;
}

.hero-logo {
  width: auto;
  max-width: 52.5%;
  /* 50% × 1.05 = 52.5% */
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: fadeInUpLogo 1s ease-out 0.6s forwards;
}

@keyframes fadeInUpLogo {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スマホ向け: 画面いっぱいに表示 */
@media (max-width: 768px) {
  /* セクション間隔を縮小 */
  :root {
    --section-spacing: 48px;
  }

  .hero-section {
    padding: 60px 0 0;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-image: var(--hero-image);
  }

  /* 導入実績セクションの上部余白を縮小 */
  .social-proof-section {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  /* コンテンツオーバーレイの内部パディング */
  .content-overlay {
    padding-top: 0;
  }

  /* セクションタイトルの余白を縮小 */
  .section-title {
    margin-bottom: 20px;
  }

  .section-title--lined {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  /* ヘッダーのパディングを確保 */
  .header-fixed .container {
    padding: 0 16px;
  }

  /* ヘッダーのCTAボタンを小さく */
  .cta-button-header {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hero-image-wrapper {
    width: 100vw;
    max-width: none;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
  }

  .hero-image {
    width: 100vw;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    display: block;
  }

  .hero-text-overlay {
    top: 3%;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 2%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }

  .hero-logo-overlay {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 4%;
  }

  .hero-text-main {
    max-width: 96%;
  }

  .scroll-indicator {
    display: none;
  }

  /* スマホでは左右余白を削除してヒーローを隠す */
  /* 画像アスペクト比に基づく固定位置（300px〜400pxの範囲で調整） */
  .content-overlay {
    margin-left: 0;
    margin-right: 0;
    margin-top: clamp(300px, calc(60px + 56.25vw), 400px);
    border-radius: 16px 16px 0 0;
  }
}

.image-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: 16px;
  padding: var(--spacing-2xl);
  text-align: center;
  color: var(--gray-500);
  min-height: 520px;
  /* ヒーロー画像領域を拡大 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 100px);
}

.hero-stack {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: inherit;
}

.hero-section .hero-headline {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-tagline-pill {
  align-self: center;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  align-self: center;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 9999px;
}

.stat-badge .label {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.stat-badge .value {
  font-size: var(--text-lg);
  font-weight: 900;
  font-family: var(--font-numbers);
}

.stat-sep {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.hero-cta--bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8vh;
}

/* 強調グラデーションCTA */
.cta-button-primary.gradient {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #34C759 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35), 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 0;
}

.cta-button-primary.gradient:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45), 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* CTA 二段組（メイン/サブ） */
.cta-button-primary .cta-main {
  display: block;
  line-height: 1.2;
}

.cta-button-primary .cta-sub {
  display: block;
  font-size: var(--text-sm);
  opacity: 0.9;
  margin-top: 4px;
}

.hero-cta-wrapper {
  /* Desktop/tablet: place CTA in normal flow (avoid covering sections) */
  position: relative;
  /* create stacking context so z-index works reliably */
  z-index: 2000;
  /* keep CTA above hero/sections, below video modal */
  display: flex;
  justify-content: center;
  padding: 0 16px;
  margin: -24px auto 40px;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: var(--text-2xl);
  color: var(--wonder-blue);
  animation: bounce 2s infinite;
  z-index: 10;
  opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 768px) {

  /* Reserve space for the fixed CTA so it never overlaps content */
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .hero-cta-wrapper {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    width: auto;
    margin: 0;
    z-index: 2000;
    /* stay above all content */
  }

  .hero-cta-wrapper.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-cta-wrapper .cta-button-primary {
    width: 100%;
    font-size: var(--text-base);
    padding: 12px 20px;
  }

  /* Reduce visual obstruction on mobile: single-line CTA */
  .hero-cta-wrapper .cta-button-primary .cta-sub {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* ========================================
   Section 2: 導入実績
======================================== */
.social-proof-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

/* ========================================
   Section 3.2: 救急部長の判断材料
======================================== */
.director-decision-section {
  padding: 32px 0 8px;
  background: var(--white);
}

.director-decision-card {
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
  padding: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.director-decision-title {
  font-size: var(--text-xl);
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.director-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.director-decision-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 16px;
  padding: 14px 14px;
}

.director-decision-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.10);
  flex: 0 0 auto;
}

.director-decision-head {
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.director-decision-text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--gray-700);
}

.director-decision-cta {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .director-decision-section {
    padding: 22px 0 6px;
  }

  .director-decision-card {
    padding: 16px;
    border-radius: 18px;
  }

  .director-decision-title {
    font-size: var(--text-lg);
  }

  .director-decision-grid {
    grid-template-columns: 1fr;
  }

  .director-decision-cta {
    justify-content: stretch;
  }

  .director-decision-cta .cta-button-secondary {
    width: 100%;
    text-align: center;
  }
}

/* 病院ロゴ横スライド（content-overlay内でフェード） */
.hospital-logos-wrapper {
  overflow: hidden;
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-md) 0;
  position: relative;
  /* 左右の端でフェードアウト（content-overlayの端に合わせる） */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

/* メインメッセージボックス */
.main-message-box {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--wonder-blue);
  border-radius: 16px;
  text-align: center;
}

.main-message-text {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.main-message-text .highlight-number {
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 900;
  font-family: var(--font-numbers);
  display: inline-block;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 4px 0 rgba(0, 0, 0, 0.15),
    0 6px 0 rgba(0, 0, 0, 0.1),
    0 8px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
}

.main-message-sub {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.hospital-logos-track {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  animation: slideLogos 30s linear infinite;
  width: max-content;
}

.hospital-logos-track:hover {
  animation-play-state: paused;
}

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

/* 旧スタイル（互換性のため残す） */
.hospital-logos {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
}

.top-video-proof {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.top-video-proof .cta-button-secondary {
  width: auto;
}

@media (max-width: 768px) {
  .top-video-proof {
    margin-top: 14px;
  }

  .top-video-proof .cta-button-secondary {
    width: 100%;
    text-align: center;
  }
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.hospital-logo {
  height: 100%;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.hospital-logo:hover {
  transform: scale(1.05);
}

/* 導入病院直下の動画2本 */
.intro-videos-row {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  padding: 0 var(--spacing-md);
}

.intro-video-card {
  flex: 0 1 320px;
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.intro-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}

.intro-video-thumb-img,
.intro-video-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-video-play {
  display: none; /* 自動再生のため再生ボタン非表示 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.intro-video-card:hover .intro-video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.intro-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
}

.intro-video-meta {
  padding: var(--spacing-md);
  text-align: center;
}

.intro-video-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.social-proof-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  font-size: clamp(13px, 3.2vw, 16px);
  font-weight: 600;
  color: var(--wonder-blue);
  background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
  padding: 12px 24px;
  margin: var(--spacing-xl) auto;
  border-radius: 50px;
  border: 2px solid var(--wonder-blue);
  white-space: nowrap;
  position: relative;
}

.social-proof-tagline::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--wonder-blue);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.stats-note {
  margin-top: 14px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

.stats-note strong {
  color: var(--deep-navy);
}

.stats {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.stat-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* ブロック全体を中央寄せ */
  gap: var(--spacing-md);
}

.stat-number {
  font-size: clamp(80px, 12vw, 160px);
  /* 大きさはキープ */
  font-weight: 900;
  font-family: var(--font-numbers);
  line-height: 0.9;
  color: var(--wonder-blue);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.stat-unit {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  color: var(--deep-navy);
  margin-left: 8px;
}

.stat-unit.red {
  color: var(--accent-red);
}

.stat-number.small {
  font-size: var(--text-3xl);
  color: var(--deep-navy);
}

.stat-sep {
  font-size: var(--text-4xl);
  color: var(--gray-300);
}

.stat-number.red {
  color: var(--accent-red);
}

.stat-number.blue {
  color: var(--wonder-blue);
}

.stat-unit.blue {
  color: var(--wonder-blue);
}

.stat-postfix {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--gray-700);
}

.stat-arrow {
  display: inline-block;
  width: clamp(90px, 12vw, 140px);
  height: auto;
  vertical-align: middle;
}

.stat-arrow svg {
  width: 100%;
  height: auto;
  display: block;
}

.stat-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 80%に左合わせ */
  text-align: left;
}

.stat-main {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.social-proof-section .stat-top {
  font-size: clamp(21px, 2.4vw, 27px) !important;
  /* 1.5倍: 14px→21px, 18px→27px */
  font-weight: 700;
  color: var(--deep-navy);
  /* 削減と同じ色 */
  margin-bottom: 6px;
}

.stat-suffix {
  font-size: clamp(14px, 1.6vw, 18px);
  /* の自由を と同サイズ */
  font-weight: 700;
  color: var(--deep-navy);
}

.stat-sub {
  margin-top: 6px;
  font-size: var(--text-base);
  color: var(--gray-500);
}

.stat-sub--highlight {
  display: block;
  margin-top: 12px;
  padding: 16px 20px;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  background: var(--wonder-blue);
  border-radius: 12px;
  line-height: 1.6;
  text-align: center;
}

.stat-label {
  font-size: var(--text-xl);
  color: var(--deep-navy);
  font-weight: 700;
}

.stat-description {
  font-size: var(--text-base);
  color: var(--gray-500);
}

/* ========================================
   Section 3: 問題提起（圧縮版）
======================================== */
.problem-section {
  padding: 80px 0;
  /* スクロール削減のため128px→80px */
  background: var(--bg-secondary);
}

.problem-list-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px auto 0;
  max-width: 1100px;
}

.problem-item-compact {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--accent-red);
  transition: all 0.3s ease;
}

.problem-item-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.problem-icon-compact {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border-radius: 12px;
}

.problem-illustration {
  width: 144px;
  height: 144px;
  object-fit: contain;
}

.problem-emoji {
  font-size: 56px;
  line-height: 1;
}

.problem-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.6;
  margin: 0;
}

/* レスポンシブ: タブレット */
@media (max-width: 1024px) {
  .problem-list-compact {
    gap: 24px;
  }

  .problem-item-compact {
    padding: 32px 20px 28px;
  }

  .problem-text {
    font-size: 16px;
  }
}

/* レスポンシブ: スマホ */
@media (max-width: 768px) {
  .problem-section {
    padding: 64px 0;
  }

  .problem-list-compact {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px auto 0;
  }

  .problem-item-compact {
    padding: 32px 24px;
  }

  .problem-icon-compact {
    width: 130px;
    height: 130px;
  }

  .problem-illustration {
    width: 117px;
    height: 117px;
  }

  .problem-emoji {
    font-size: 48px;
  }
}

/* ========================================
   Section 3: 救急決裁権者向けスタイル
======================================== */
.problem-section.emergency-manager {
  background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 100px 0;
}

.section-subtitle-emotion {
  font-size: 24px;
  font-weight: 500;
  color: var(--deep-navy);
  text-align: center;
  margin: 24px 0 0;
  font-style: italic;
  opacity: 0.85;
}

.reality-check {
  text-align: center;
  margin: 56px 0 32px;
}

.reality-title {
  font-size: 20px;
  font-weight: 600;
  color: #6B7280;
  margin: 0;
}

.problem-list-emergency {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-item-emergency {
  padding: 28px 32px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-item-emergency:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.problem-item-emergency.critical {
  border-left: 4px solid #DC2626;
  background: linear-gradient(90deg, #FEF2F2 0%, #FFFFFF 100%);
}

.problem-item-emergency.critical:hover {
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
}

.problem-text-emergency {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.problem-text-emergency strong {
  font-weight: 900;
  color: var(--wonder-blue);
  display: block;
  margin-top: 12px;
  font-size: var(--text-2xl);
}

.text-critical {
  color: #DC2626;
}

.manager-pain {
  text-align: center;
  margin: 64px 0;
  padding: 48px 32px;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  border-radius: 16px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.manager-pain-text {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px;
  line-height: 1.7;
}

.manager-pain-emotion {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.solution-principle {
  text-align: center;
  margin: 64px auto 0;
  max-width: 1100px;
}

.principle-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--deep-navy);
  margin: 0 0 32px;
  line-height: 1.6;
}

.principle-title strong {
  color: var(--accent-red);
}

.principle-message {
  font-size: 20px;
  font-weight: 500;
  color: #374151;
  line-height: 2;
  margin: 0;
}

.principle-shift {
  display: inline-block;
  padding: 8px 0;
  font-size: 22px;
}

.text-primary {
  color: var(--primary-blue);
}

/* レスポンシブ: タブレット */
@media (max-width: 1024px) {
  .section-subtitle-emotion {
    font-size: 20px;
  }

  .problem-item-emergency {
    padding: 20px 24px;
  }

  .problem-text-emergency {
    font-size: 16px;
  }

  .manager-pain-text {
    font-size: 18px;
  }

  .manager-pain-emotion {
    font-size: 32px;
  }

  .principle-title {
    font-size: 22px;
  }

  .principle-message {
    font-size: 18px;
  }
}

/* レスポンシブ: スマホ */
@media (max-width: 768px) {
  .problem-section.emergency-manager {
    padding: 64px 0;
  }

  .section-subtitle-emotion {
    font-size: 18px;
    padding: 0 16px;
  }

  .reality-check {
    margin: 40px 0 24px;
  }

  .problem-item-emergency {
    padding: 24px 20px;
  }

  .problem-text-emergency {
    font-size: 15px;
  }

  .problem-text-emergency strong {
    font-size: var(--text-xl);
  }

  .manager-pain {
    margin: 48px 16px;
    padding: 32px 24px;
  }

  .manager-pain-text {
    font-size: 16px;
  }

  .manager-pain-emotion {
    font-size: 28px;
  }

  .principle-title {
    font-size: 20px;
    padding: 0 16px;
  }

  .principle-message {
    font-size: 16px;
    padding: 0 16px;
  }

  .principle-shift {
    font-size: 18px;
  }
}

/* ========================================
   Section 4: Before/After 対比
======================================== */
.before-after-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #F7F7F7 0%, #FFFFFF 100%);
}

/* Before/After 横並びレイアウト */
.comparison-row-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0 32px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* コエレクなら セクション（下部配置） */
.koereq-transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--wonder-blue) 0%, #1E40AF 100%);
  border-radius: 20px;
  max-width: 400px;
  margin: 0 auto 48px auto;
}

.transition-triangle {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.transition-logo {
  width: 140px;
  height: auto;
}

.transition-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.05em;
}

/* 旧レイアウト（互換性のため残す） */
.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
  margin: 64px 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-item.before {
  background: linear-gradient(135deg, #1D1D1F 0%, #374151 100%);
  color: var(--white);
}

.comparison-item.after {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%);
  color: var(--deep-navy);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.comparison-item:hover {
  transform: translateY(-4px);
}

.comparison-item.before:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.comparison-item.after:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

.comparison-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
  text-align: center;
}

.comparison-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  line-height: var(--leading-tight);
}

.comparison-item.before .comparison-title {
  color: var(--white);
}

.comparison-item.after .comparison-title {
  color: var(--wonder-blue);
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.comparison-list .icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.comparison-list .icon.negative {
  color: #EF4444;
}

.comparison-list .icon.positive {
  color: var(--healing-green);
}

.comparison-item.before .comparison-list li {
  color: rgba(255, 255, 255, 0.9);
}

.comparison-item.after .comparison-list li {
  color: var(--gray-700);
}

.comparison-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
}

.arrow-logo {
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.arrow-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--wonder-blue);
  white-space: nowrap;
  text-align: center;
  margin-bottom: 8px;
}

/* Before/After: mobile layout */
@media (max-width: 768px) {
  .before-after-section {
    padding: 64px 0;
  }

  /* 新レイアウト（横並び→縦並び） */
  .comparison-row-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 16px 24px 16px;
  }

  .koereq-transition {
    max-width: calc(100% - 32px);
    padding: 24px 20px;
    margin: 0 16px 32px 16px;
  }

  .transition-triangle {
    font-size: 28px;
  }

  .transition-logo {
    width: 120px;
  }

  .transition-text {
    font-size: var(--text-lg);
  }

  /* 旧レイアウト（互換性） */
  .comparison-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 16px;
  }

  .comparison-item {
    padding: 24px 20px;
  }

  .comparison-arrow {
    padding: 0;
    gap: 10px;
  }

  .arrow-logo {
    width: 120px;
    margin-bottom: 0;
  }

  .arrow-text {
    white-space: normal;
    /* allow natural wrapping (horizontal) */
    word-break: keep-all;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .arrow-icon {
    font-size: 44px;
  }
}

.arrow-icon {
  font-size: 64px;
  font-weight: 900;
  color: var(--wonder-blue);
  line-height: 1;
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.comparison-result {
  margin-top: 64px;
  padding: 48px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.result-emotion {
  font-size: var(--text-3xl);
  color: var(--deep-navy);
  margin-bottom: 40px;
  line-height: var(--leading-tight);
}

.result-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
  padding: 40px 32px;
  background: var(--white);
  border-radius: 12px;
}

.result-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-label {
  display: flex;
  align-items: center;
  gap: 0;
}

.result-label-logo {
  height: 40px;
  width: auto;
}

.result-label-text {
  font-size: var(--text-xl);
  color: var(--gray-700);
  font-weight: 500;
  margin-left: 0;
}

.result-time-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.result-time-before,
.result-time-after {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.result-time-after .time-number {
  color: var(--accent-red);
}

.time-number {
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 900;
  color: var(--wonder-blue);
  line-height: 1;
  font-family: var(--font-numbers);
}

.time-unit {
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 700;
  color: var(--gray-700);
  line-height: 1;
  padding-bottom: 0;
}

.result-arrow-right {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 900;
  color: var(--wonder-blue);
  flex-shrink: 0;
}

.result-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 400px;
}

.graph-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.result-time-gained {
  text-align: center;
  padding-top: 24px;
  border-top: 2px solid rgba(37, 99, 235, 0.2);
}

.result-detail {
  margin-bottom: 16px;
}

.time-emphasis {
  font-size: var(--text-2xl);
  color: var(--wonder-blue);
}

.result-numbers {
  font-size: var(--text-4xl);
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.time-monthly,
.time-yearly {
  color: var(--wonder-blue);
  font-weight: 900;
}

.time-separator {
  color: var(--gray-300);
  font-weight: 300;
}

.result-subtext {
  font-size: var(--text-lg);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

/* ========================================
   Section 5: 動画エリア（統合版）
======================================== */
.demo-video-wrapper {
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 16px;
}

.demo-video-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--deep-navy);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.video-container {
  margin: var(--spacing-lg) 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive YouTube / iframe embed */
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #0B1220;
}

.video-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ========================================
   Section 7: 導入病院の声（3カード）
======================================== */
.real-case-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-secondary);
}

.hospital-cards-wrapper {
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  padding: 0 48px;
}

.hospital-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.hospital-card {
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  overflow: hidden;
}

.hospital-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.hospital-card__logo {
  width: 100%;
  height: 180px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  margin-bottom: 0;
  flex-shrink: 0;
}

.hospital-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hospital-card__photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.hospital-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hospital-card__body {
  flex: 1;
  padding: 24px 32px 32px;
}

.hospital-card__name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--deep-navy);
  margin: 0 0 4px;
}

.hospital-card__dept {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0 0 20px;
}

.hospital-card__quote {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--gray-700);
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
}

.hospital-card__quote::before {
  content: '\201C';
  display: block;
  font-size: 48px;
  font-family: Georgia, serif;
  color: var(--wonder-blue);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .hospital-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
    margin: 32px auto 0;
  }

  .hospital-cards-wrapper {
    padding: 0 24px;
  }

  .hospital-card {
    padding: 32px 24px;
  }
}

.pricing-section {
  padding: var(--section-spacing) 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
}

/* シンプル料金プラン - ブルータイトル */
.section-title--green {
  color: var(--wonder-blue);
}

/* シンプル料金カード（横並び） */
.pricing-simple-card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 40px auto;
  max-width: 700px;
}

.pricing-simple-left {
  flex: 1;
  background: linear-gradient(135deg, var(--wonder-blue) 0%, var(--wonder-blue-dark) 100%);
  padding: 32px 24px;
  padding-right: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* 白い三角形（青に食い込むデザイン） */
.pricing-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-right: 24px solid var(--white);
}

.pricing-simple-right {
  flex: 1;
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-simple-label {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.pricing-simple-left .pricing-simple-label {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-simple-right .pricing-simple-label {
  color: var(--gray-600);
}

.pricing-simple-value {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.pricing-simple-left .pricing-simple-value {
  color: var(--white);
}

.pricing-simple-right .pricing-simple-value {
  color: var(--deep-navy);
}

.pricing-simple-suffix {
  font-size: 18px;
  font-weight: 500;
}

.pricing-simple-yen {
  font-size: 20px;
  font-weight: 500;
}

.pricing-simple-note {
  font-size: 13px;
  color: var(--gray-600);
  margin: 8px 0 0;
}

.pricing-annual-note {
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
  margin: 16px 0 0;
}

.pricing-tax-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 40px;
}

.pricing-extras {
  max-width: 700px;
  margin: 0 auto;
}

.package-section {
  margin-top: 32px;
}

.package-intro {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

/* レスポンシブ: スマホ */
@media (max-width: 600px) {
  .pricing-simple-card {
    flex-direction: column;
  }

  .pricing-simple-left {
    padding: 24px 20px;
    padding-bottom: 36px;
    padding-right: 20px;
  }

  .pricing-simple-right {
    padding: 24px 20px;
    padding-top: 8px;
  }

  /* スマホでは下向きの三角形 */
  .pricing-arrow {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(50%);
    border-top: 20px solid transparent;
    border-bottom: none;
    border-right: 30px solid transparent;
    border-left: 30px solid transparent;
    border-top-color: var(--wonder-blue-dark);
  }

  .pricing-arrow::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -30px;
    border-top: 20px solid transparent;
    border-bottom: none;
    border-right: 30px solid transparent;
    border-left: 30px solid transparent;
  }

  .pricing-simple-value {
    font-size: 28px;
  }
}

.pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.pricing-grid--stack {
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-flow-note {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
  padding: 6px 0;
}

.pricing-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.06);
}

.pricing-card.is-secondary {
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.06);
}

.pricing-label {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--wonder-blue);
  text-transform: uppercase;
}

.pricing-main {
  display: grid;
  gap: 10px;
  padding: 14px 0 0;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.pricing-item {
  font-weight: 900;
  color: var(--deep-navy);
}

.pricing-value {
  font-size: 16px;
  color: var(--gray-700);
  text-align: right;
}

.pricing-value strong {
  font-size: 22px;
  color: var(--deep-navy);
}

.pricing-flat {
  font-size: 14px;
  color: var(--primary-blue);
  font-weight: 600;
  margin-left: 4px;
}

.pricing-footnote {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

.pricing-notes {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 14px;
}

.pricing-pack-media {
  margin: 10px 0 12px;
}

.pricing-pack-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #0B1220;
}

.pricing-pack-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(34, 197, 94, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
}

.pricing-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-actions .cta-button-primary,
.pricing-actions .cta-button-secondary {
  flex: 1 1 240px;
  text-align: center;
}

.ringi-box {
  margin-top: 16px;
  padding: 18px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
  border: 1px solid rgba(34, 197, 94, 0.16);
}

.ringi-box--inline {
  margin-top: 16px;
}

.ringi-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: var(--deep-navy);
}

.ringi-subtitle {
  margin: 0 0 10px;
  color: var(--gray-700);
  line-height: 1.7;
}

.ringi-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--gray-700);
  line-height: 1.8;
}

.package-card {
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  padding: 18px;
}

.package-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.package-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--deep-navy);
  line-height: 1.35;
}

.package-price {
  margin: 0;
  text-align: right;
  color: var(--deep-navy);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .package-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

.package-price strong {
  font-size: 22px;
}

.package-tax {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
  margin-left: 6px;
}

.package-media {
  margin-bottom: 12px;
}

.package-list {
  margin: 0;
  padding-left: 18px;
  color: var(--gray-700);
  line-height: 1.8;
}

.package-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

.real-case-video-wrapper {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.real-case-video-card {
  max-width: 1100px;
}

.real-case-voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: 32px;
}

.voice-item {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(2, 6, 23, 0.06);
}

.voice-hospital {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--wonder-blue);
}

.voice-item .voice-quote {
  margin: 0;
  font-style: normal;
  white-space: normal;
}

/* Enhanced Video Testimonial Block */
.video-testimonial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: center;
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.video-testimonial-block.reverse-layout {
  direction: rtl;
  /* Switch visual order */
}

/* Reset text direction for content inside rtl container */
.video-testimonial-block.reverse-layout>* {
  direction: ltr;
}

.video-wrapper-large {
  position: relative;
  width: 100%;
}

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

.testimonial-heading {
  font-size: 24px;
  font-weight: 900;
  color: var(--deep-navy);
  margin: 0 0 16px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.highlight-text {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}

/* Interview Quote Area */
.interview-quote-area {
  padding: 24px;
  background: linear-gradient(135deg, #FEFCE8 0%, #FFF7ED 100%);
  border-radius: 12px;
  border-left: 6px solid #F59E0B;
  /* Amber for attention */
  position: relative;
}

.interview-quote-area::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 80px;
  color: rgba(245, 158, 11, 0.15);
  font-family: serif;
  line-height: 1;
}

.quote-role {
  font-size: 14px;
  font-weight: 700;
  color: #D97706;
  /* Dark amber */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.quote-main {
  font-size: 26px;
  font-weight: 900;
  color: var(--deep-navy);
  line-height: 1.4;
  margin: 0 0 16px;
  /* Min-height to prevent layout shift during edit (optional) */
}

/* Placeholder style for user editing */
.quote-main.placeholder {
  color: var(--gray-400);
  font-style: italic;
}

.quote-detail {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}

/* Inline video card (used in "選ばれる3つの理由") */
.inline-video-card {
  margin-top: 16px;
  width: 100%;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.inline-video-card--large {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.inline-video-card--large .inline-video-thumb {
  border-radius: 14px;
}

.inline-video-card--large .inline-video-meta {
  padding: 0 2px;
}

.inline-video-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.28);
}

.inline-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0B1220;
}

.inline-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inline-video-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.inline-video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
  position: relative;
}

.inline-video-coming-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1E40AF;
  font-weight: 800;
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}

.inline-video-card.is-coming-soon {
  cursor: not-allowed;
  opacity: 0.75;
}

.inline-video-card.is-coming-soon:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.inline-video-play {
  display: none; /* 自動再生のため再生ボタン非表示 */
}

.inline-video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.inline-video-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inline-video-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--wonder-blue);
  letter-spacing: 0.04em;
}

.inline-video-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--deep-navy);
  line-height: 1.35;
}

/* 3-step video block (placed under reasons to keep 3-column balance on desktop) */
.three-step-video-block {
  margin-top: 24px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.three-step-video-copy {
  margin-bottom: 12px;
}

.three-step-video-heading {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--deep-navy);
  line-height: 1.35;
}

.three-step-video-subtext {
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

.three-step-video-card {
  margin-top: 12px;
  max-width: 720px;
}

@media (max-width: 640px) {

  /* Prevent fixed bottom CTA from covering pricing CTAs */
  .pricing-section {
    padding-bottom: calc(var(--section-spacing) + 110px);
  }

  .inline-video-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .three-step-video-block {
    margin-top: 16px;
    padding: 16px 14px;
  }

  .three-step-video-card {
    max-width: 100%;
  }

  .real-case-voices {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 18px;
    border-radius: 16px;
  }

  .pricing-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .package-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 動画セクション - スマホで縦1列 */
  .video-testimonial-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .video-testimonial-block.reverse-layout {
    direction: ltr;
  }

  .testimonial-heading {
    font-size: 20px;
  }

  /* 導入病院下の動画2本 - スマホで縦1列 */
  .intro-videos-row {
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
  }

  .intro-video-card {
    flex: 0 1 auto;
    width: 100%;
    max-width: 400px;
  }
}

/* Video modal (shared) */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5000;
  /* must stay above fixed CTA */
}

.video-modal.is-open {
  display: block;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

.video-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 32px));
  border-radius: 16px;
  background: #0B1220;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.video-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-modal__iframe,
.video-modal__video {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.video-modal__iframe.is-active,
.video-modal__video.is-active {
  display: block;
}

.video-modal__video {
  background: #000;
}

/* Real-case inline embedded video (Section 7) */
.real-case-video-embed {
  width: 100%;
}

.real-case-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

.real-case-video-meta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
  background: var(--gray-700);
  border-radius: 16px;
  padding: var(--spacing-2xl);
  text-align: center;
  color: var(--white);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}

.video-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.video-features .feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-lg);
  color: var(--gray-700);
}

.feature-icon {
  color: var(--healing-green);
  font-weight: 900;
}

.video-summary {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
  margin: var(--spacing-xl) 0;
}

/* ========================================
   Section 5: 従来の音声入力との比較表
======================================== */
.comparison-table-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
}

.feature-comparison-table {
  max-width: 1100px;
  margin: 64px auto;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.comparison-header {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
}

.comparison-header-item {
  padding: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-header-item.feature-name {
  background: rgba(0, 0, 0, 0.15);
}

.koereq-logo-header {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.comparison-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid #E5E7EB;
  transition: background 0.2s ease;
}

.comparison-row:hover {
  background: #F9FAFB;
}

.comparison-row.highlight {
  background: linear-gradient(90deg, #FEF2F2 0%, #FFF7ED 100%);
}

.comparison-row.highlight:hover {
  background: linear-gradient(90deg, #FEE2E2 0%, #FFEDD5 100%);
}

.comparison-cell {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.comparison-cell.feature-name {
  background: #F9FAFB;
  border-right: 2px solid #E5E7EB;
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-navy);
}

.comparison-cell.competitor {
  background: rgba(239, 68, 68, 0.03);
}

.comparison-cell.koereq {
  background: rgba(37, 99, 235, 0.03);
}

.comparison-cell p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--deep-navy);
}

.negative-icon {
  font-size: 28px;
}

.positive-icon {
  font-size: 28px;
}

.comparison-conclusion {
  max-width: 1100px;
  margin: 64px auto 0;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 16px;
  border: 2px solid var(--primary-blue);
}

.conclusion-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--deep-navy);
  line-height: 2;
  margin: 0 0 24px;
}

.conclusion-emphasis {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.6;
}

/* レスポンシブ: タブレット */
@media (max-width: 1024px) {
  .comparison-header {
    grid-template-columns: 160px 1fr 1fr;
  }

  .comparison-row {
    grid-template-columns: 160px 1fr 1fr;
  }

  .comparison-header-item {
    font-size: 16px;
    padding: 20px 16px;
  }

  .comparison-cell {
    padding: 24px 16px;
  }

  .comparison-cell.feature-name {
    font-size: 16px;
  }

  .comparison-cell p {
    font-size: 15px;
  }

  .conclusion-text {
    font-size: 18px;
  }

  .conclusion-emphasis {
    font-size: 22px;
  }
}

/* レスポンシブ: スマホ */
@media (max-width: 768px) {
  .comparison-table-section {
    padding: 64px 0;
  }

  .feature-comparison-table {
    margin: 48px 16px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-header-item.feature-name,
  .comparison-cell.feature-name {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    color: var(--white);
    border-right: none;
  }

  .comparison-cell.feature-name {
    border-bottom: 2px solid var(--primary-blue);
  }

  .comparison-cell {
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
  }

  .comparison-row {
    border-bottom: 3px solid #D1D5DB;
  }

  .comparison-conclusion {
    margin: 48px 16px 0;
    padding: 32px 24px;
  }

  .conclusion-text {
    font-size: 16px;
  }

  .conclusion-emphasis {
    font-size: 20px;
  }
}

/* ========================================
   Section 6.5: だから叶える救急の未来
======================================== */
/* ========================================
   Section 6: だから叶える救急の未来（フォトストーリー）
======================================== */
.future-story-section {
  padding: 100px 0 0;
  background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
}

.future-story-section .container {
  margin-bottom: 64px;
}

/* ストーリーブロックのラッパー（ヒーローと同じ横幅） */
.story-blocks-wrapper {
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  padding: 0 48px;
}

/* ストーリーブロック共通 */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 48px;
  background: var(--white);
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-block:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

/* 左配置（画像左、テキスト右） */
.story-block--left {
  grid-template-columns: 1.1fr 0.9fr;
}

/* 右配置（テキスト左、画像右） */
.story-block--right {
  grid-template-columns: 0.9fr 1.1fr;
}

.story-block--right .story-image {
  order: 2;
}

.story-block--right .story-content {
  order: 1;
}

/* 画像エリア */
.story-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  min-height: 380px;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-block:last-child .story-img {
  object-fit: contain;
  padding: 24px;
}

.story-block:hover .story-img {
  transform: scale(1.03);
}

/* プレースホルダー（写真準備中） */
.story-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  color: var(--wonder-blue);
}

.story-image.placeholder .story-img {
  display: none;
}

.story-image.placeholder .story-image-placeholder {
  display: flex;
}

.story-image-placeholder span {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.story-image-placeholder p {
  font-size: 14px;
  color: var(--wonder-blue);
  opacity: 0.8;
}

/* コンテンツエリア */
.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background: var(--white);
}

.story-number {
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--wonder-blue);
  opacity: 0.15;
  margin-bottom: 16px;
  line-height: 1;
}

.story-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--deep-navy);
  margin: 0 0 20px;
  line-height: 1.4;
}

.story-description {
  font-size: 15px;
  line-height: 1.9;
  color: var(--deep-navy);
  opacity: 0.85;
}

/* レスポンシブ: タブレット */
@media (max-width: 1024px) {
  .story-blocks-wrapper {
    padding: 0 32px;
  }

  .story-block,
  .story-block--left,
  .story-block--right {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .story-block--right .story-image,
  .story-block--right .story-content {
    order: unset;
  }

  .story-image {
    min-height: 280px;
  }

  .story-content {
    padding: 40px 32px;
  }

  .story-title {
    font-size: 24px;
  }

  .story-block {
    margin-bottom: 32px;
  }
}

/* レスポンシブ: スマホ */
@media (max-width: 768px) {
  .future-story-section {
    padding: 64px 0 0;
  }

  .future-story-section .container {
    margin-bottom: 40px;
  }

  .story-blocks-wrapper {
    padding: 0 16px;
  }

  .story-block {
    border-radius: 12px;
    margin-bottom: 24px;
  }

  .story-image {
    min-height: 220px;
  }

  .story-content {
    padding: 28px 24px;
  }

  .story-number {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .story-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .story-description {
    font-size: 14px;
    line-height: 1.7;
  }

  .story-image-placeholder span {
    font-size: 48px;
  }
}

/* ========================================
   Section 7: 導入までの簡単さ
======================================== */
.implementation-flow-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
}

.implementation-flow-section .container {
  margin-bottom: 0;
}

/* ステップのラッパー（ヒーローと同じ横幅） */
.flow-steps-wrapper {
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  padding: 0 48px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 32px;
  margin: 48px auto 64px;
  box-sizing: border-box;
}

.flow-step {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 24px 24px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

/* 数字バッジ（左上に小さく配置） */
.step-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 48px;
  height: 48px;
  background: var(--wonder-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  z-index: 1;
}

/* イラスト表示エリア */
.step-illustration {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.step-illust-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-illust-placeholder {
  font-size: 64px;
  display: none;
}

.step-illustration:has(.step-illust-img[style*="display: none"]) .step-illust-placeholder,
.step-illust-img:not([src]),
.step-illust-img[src=""] {
  display: none;
}

/* 画像がない場合のフォールバック */
.step-illustration:not(:has(.step-illust-img:not([style*="display: none"]))) .step-illust-placeholder {
  display: flex;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-navy);
  margin: 0;
  line-height: 1.4;
}

.step-description {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

.flow-arrow {
  display: none;
}

.flow-conclusion {
  text-align: center;
  margin: 64px auto 0;
  max-width: 1100px;
  padding: 40px 32px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 16px;
  border: 2px solid var(--primary-blue);
}

.flow-emphasis {
  font-size: 22px;
  font-weight: 700;
  color: var(--deep-navy);
  margin: 0;
  line-height: 1.7;
}

/* レスポンシブ: タブレット */
@media (max-width: 1024px) {
  .flow-steps-wrapper {
    padding: 0 32px;
  }
}

/* レスポンシブ: スマホ */
@media (max-width: 768px) {
  .implementation-flow-section {
    padding: 64px 0;
  }

  .flow-steps-wrapper {
    padding: 0 16px;
  }

  .flow-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 32px 0;
    gap: 24px;
  }

  .flow-step {
    flex: 0 0 auto;
    height: auto;
    padding: 20px;
    min-height: 0;
  }

  .step-badge {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: -10px;
    left: -10px;
  }

  .step-illustration {
    height: 140px;
  }

  .step-illust-placeholder {
    font-size: 48px;
  }

  .step-title {
    font-size: 17px;
  }

  .step-description {
    font-size: 14px;
  }

  .flow-arrow {
    display: none;
  }

  .flow-conclusion {
    margin: 48px 16px 0;
    padding: 32px 24px;
  }

  .flow-emphasis {
    font-size: 18px;
  }
}

/* ========================================
   Section 7 (OLD): メリット（3本柱） - 感情訴求版
======================================== */
.benefits-section {
  padding: var(--section-spacing) 0;
  background: linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 64px 0;
}

.benefit-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
}

/* ビジュアルセクション */
.benefit-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.benefit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.benefit-card:hover .benefit-image {
  transform: scale(1.05);
}

/* プレースホルダー（画像確認用） */
.benefit-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  position: relative;
}

.benefit-image-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 25%;
  border: 3px dashed rgba(255, 255, 255, 0.5);
  border-radius: 0 12px 0 0;
}

.benefit-image-placeholder::after {
  content: "数字BOX\nスペース";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  white-space: pre-line;
  line-height: 1.3;
}

.benefit-image-placeholder.patient {
  background: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
}

.benefit-image-placeholder.education {
  background: linear-gradient(135deg, #42A5F5 0%, #66BB6A 100%);
}

.benefit-image-placeholder.research {
  background: linear-gradient(135deg, #7E57C2 0%, #5C6BC0 100%);
}

.placeholder-note {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.5;
}

/* 数字オーバーレイ */
.benefit-stat-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Roboto', sans-serif;
}

.benefit-number-small {
  font-size: 36px;
  font-weight: 900;
}

.benefit-unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--wonder-blue);
  margin-left: 2px;
}

.benefit-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 0.5px;
}

/* テキストセクション */
.benefit-text {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.benefit-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  padding: 0 12px;
}

/* 吹き出し（患者・研修医・自分の声） */
.benefit-voice {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-left: 4px solid var(--wonder-blue);
  padding: 16px 20px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-voice::before {
  content: "💬";
  font-size: 18px;
  flex-shrink: 0;
}

.voice-quote {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-navy);
  font-style: italic;
  display: block;
  line-height: 1.5;
  flex: 1;
  white-space: nowrap;
}

.benefit-detail {
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.6;
  margin-top: 8px;
}

/* 感情的クロージング */
.benefits-closing {
  margin-top: 64px;
  padding: 48px 32px;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.25);
}

.closing-message {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  line-height: 1.6;
}

.closing-emphasis {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* ========================================
   Section 8: 賢い先生に選ばれる3つの理由
======================================== */
.why-chosen-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.reasons-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
}

.reason-item {
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  border-top: 4px solid var(--wonder-blue);
}

.reason-number {
  width: 60px;
  height: 60px;
  background: var(--wonder-blue);
  color: var(--white);
  font-size: var(--text-3xl);
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.reason-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: var(--spacing-md);
}

.reason-description {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
  text-align: left;
}

/* Why chosen: mobile-friendly stacked cards (no shortening text, just readable layout) */
@media (max-width: 768px) {
  .why-chosen-section {
    padding: 64px 0;
  }

  .reasons-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
  }

  .reason-item {
    text-align: left;
    padding: 20px 18px;
    border-top-width: 3px;
  }

  .reason-number {
    width: 52px;
    height: 52px;
    font-size: 24px;
    margin: 0 0 12px 0;
  }

  .reason-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .reason-description {
    font-size: 15px;
    line-height: 1.75;
  }
}

/* ========================================
   Section 7: 導入事例 + セキュリティ
======================================== */
.testimonials-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-secondary);
}

.testimonials-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
}

.testimonial-item {
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
  margin-bottom: var(--spacing-md);
}

.testimonial-hospital {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--wonder-blue);
  margin-bottom: var(--spacing-xs);
}

.testimonial-name {
  font-size: var(--text-base);
  color: var(--gray-500);
}

.testimonial-content {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

.security-main-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
}

.security-image-wrapper {
  margin: 32px 0 40px;
  display: flex;
  justify-content: center;
}

.security-diagram {
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.security-image-placeholder {
  background: var(--white);
  border: 2px dashed var(--wonder-blue);
  border-radius: 16px;
  padding: var(--spacing-2xl);
  text-align: center;
  max-width: 1100px;
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.security-image-placeholder p {
  color: var(--wonder-blue);
  font-size: var(--text-lg);
  font-weight: 700;
}

.security-image-placeholder .image-note {
  color: var(--gray-500);
  font-size: var(--text-sm);
  font-weight: 400;
}

.security-section {
  margin-top: var(--section-spacing);
}

.security-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.security-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.security-icon {
  font-size: 32px;
  line-height: 1;
}

.security-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 4px;
  line-height: 1.4;
}

.security-description {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ========================================
   Section 8: FAQ
======================================== */
.faq-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.faq-list {
  max-width: 1100px;
  margin: var(--spacing-2xl) auto 0;
}

.faq-item {
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-300);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-question h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--deep-navy);
}

.faq-toggle {
  font-size: var(--text-3xl);
  color: var(--wonder-blue);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--spacing-lg);
}

.faq-answer.open {
  max-height: 1000px;
  padding: var(--spacing-lg);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

/* ========================================
   Section 9: 最終CTA
======================================== */
.final-cta-section {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  color: var(--white);
  text-align: center;
}

.final-cta-section .section-title {
  color: var(--white);
}

.final-cta-content {
  max-width: 1100px;
  margin: 0 auto;
}

.final-cta-message {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--spacing-xl);
}

.final-cta-stats {
  margin: var(--spacing-xl) 0;
}

.stat-large {
  font-size: var(--text-2xl);
  font-weight: 900;
  margin: var(--spacing-md) 0;
}

.final-cta-destination {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-relaxed);
  margin: var(--spacing-xl) 0;
}

.final-cta-trial {
  font-size: var(--text-xl);
  margin: var(--spacing-xl) 0;
}

.final-cta-buttons {
  margin: var(--spacing-2xl) 0;
}

.cta-secondary-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.final-cta-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.final-cta-features .feature-item {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   フッター
======================================== */
.footer {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-dark);
  color: var(--white);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--wonder-blue);
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.footer-column h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--wonder-blue-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   アニメーション
======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   簡易セクション（ダウンロード/相談/お問い合わせ）
======================================== */
.simple-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

/* ========================================
   Section 5: ワークフローショーケース
======================================== */
.workflow-showcase-section {
  padding: var(--section-spacing) 0;
  background: linear-gradient(180deg, #F7F7F7 0%, #FFFFFF 100%);
}

.workflow-image-showcase {
  margin: var(--spacing-xl) 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.workflow-main-image {
  width: 100%;
  height: auto;
  display: block;
}

.workflow-video-showcase {
  margin: var(--spacing-xl) 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: #000;
}

.workflow-video {
  width: 100%;
  height: auto;
  display: block;
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--wonder-blue);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--text-sm);
}

/* workflow-showcase の step-number は .workflow-step-number で別管理 */
.workflow-step-number {
  font-weight: 700;
}

.workflow-arrow {
  font-size: 24px;
  color: var(--wonder-blue);
  font-weight: 700;
}

@media (max-width: 640px) {
  .workflow-steps {
    flex-direction: column;
    gap: 12px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }

  .workflow-step {
    width: 100%;
    justify-content: center;
  }

  /* 救急の現場で...を1行に */
  .problem-section .section-title {
    font-size: clamp(16px, 4.5vw, 24px);
    white-space: nowrap;
  }
}

/* ========================================
   Section 6.5: セキュリティ（カード形式）
======================================== */
.security-simple-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-secondary);
}

.security-simple-section .container {
  max-width: min(1400px, 95vw);
  padding: 0 48px;
}

.security-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.security-split-image {
  width: 100%;
}

.security-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.security-split-text {
  display: flex;
  align-items: center;
}

.security-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.security-point-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 24px;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--deep-navy);
}

.security-point-item:last-child {
  margin-bottom: 0;
}

.security-point-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--primary-blue);
  border-radius: 50%;
}

.security-point-label {
  font-weight: 600;
}

@media (max-width: 768px) {
  .security-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .security-split-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .security-point-item {
    font-size: var(--text-sm);
    line-height: 1.7;
  }
}

/* ========================================
   全ての電子カルテに接続可能セクション
======================================== */
.emr-compatibility-section {
  padding: var(--spacing-2xl) 0;
  background: var(--white);
}

.emr-compatibility-section .container {
  max-width: min(1400px, 95vw);
  padding: 0 48px;
}

.emr-compatibility-section .section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-sm);
}

.emr-subtitle {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--spacing-lg);
}

.emr-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
}

.emr-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 10px 16px;
  background: var(--gray-100);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emr-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.emr-logo-item img {
  max-height: 36px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.emr-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.emr-logo-item--text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}

.emr-more-text {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--spacing-md);
}

@media (max-width: 640px) {
  .emr-compatibility-section {
    padding: var(--spacing-xl) 0;
  }

  .emr-compatibility-section .section-title {
    font-size: var(--text-xl);
  }

  .emr-logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .emr-logo-item {
    height: 40px;
    padding: 6px 10px;
  }

  .emr-logo-item img {
    max-height: 24px;
    max-width: 100px;
  }

  .emr-logo-item--text {
    font-size: 11px;
  }
}

/* ========================================
   会社概要セクション
======================================== */
.company-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-secondary);
}

.company-section .section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-lg);
}

.company-info {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.company-list {
  margin: 0;
}

.company-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.company-row:last-child {
  border-bottom: none;
}

.company-row dt {
  width: 100px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--gray-700);
  font-size: var(--text-sm);
}

.company-row dd {
  margin: 0;
  color: var(--deep-navy);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.company-row dd a {
  color: var(--wonder-blue);
  text-decoration: none;
}

.company-row dd a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .company-section {
    padding: var(--spacing-xl) 0;
  }

  .company-row {
    flex-direction: column;
    gap: 4px;
  }

  .company-row dt {
    width: auto;
  }
}

/* ========================================
   使用例セクション
======================================== */
.use-cases-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.use-cases-section .container {
  max-width: min(1400px, 95vw);
  padding: 0 48px;
}

.use-cases-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-base);
  margin-top: 12px;
  margin-bottom: 48px;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.use-case-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.use-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.use-case-phone-preview {
  width: 100%;
  height: 220px;
  background: #1E293B;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #0F172A;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.phone-screen {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.phone-bubble {
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.5;
  max-width: 88%;
  text-align: left;
}

.phone-bubble--blue {
  background: var(--wonder-blue);
  color: var(--white);
  border-radius: 12px 12px 4px 12px;
}

.phone-preview-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #1E293B);
  pointer-events: none;
}

.use-case-card-body {
  padding: 24px;
}

.use-case-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.use-case-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 8px;
}

.use-case-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
}

.use-case-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wonder-blue);
  transition: gap 0.2s ease;
}

.use-case-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.use-case-card:hover .use-case-cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .use-case-phone-preview {
    height: 180px;
  }
}

/* ========================================
   使用例モーダル（縦スクロールチャット）
======================================== */
.use-case-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.use-case-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.use-case-modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 480px;
  width: 90%;
  height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.use-case-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-navy);
  text-align: center;
  padding: 20px 24px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid #E2E8F0;
}

.use-case-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.use-case-modal-footer {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
}

.use-case-modal-close-btn {
  background: var(--wonder-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.use-case-modal-close-btn:hover {
  background: #1d4ed8;
}

/* チャットセパレーター */
.use-case-chat-separator {
  text-align: center;
  margin: 20px 0 12px;
  position: relative;
}

.use-case-chat-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E2E8F0;
}

.use-case-chat-separator-text {
  background: var(--white);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  position: relative;
  letter-spacing: 0.03em;
}

/* チャットバブル */
.use-case-chat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  margin-top: 16px;
  margin-bottom: 6px;
}

.use-case-chat-label:first-child {
  margin-top: 0;
}

.use-case-chat-row {
  display: flex;
  margin-bottom: 8px;
}

.use-case-chat-row--right {
  justify-content: flex-end;
}

.use-case-chat-row--left {
  justify-content: flex-start;
}

.use-case-chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  border: none;
}

.use-case-chat-bubble--voice {
  background: var(--wonder-blue);
  color: var(--white);
  border-radius: 16px 16px 4px 16px;
}

.use-case-chat-bubble--result {
  background: #F1F5F9;
  color: var(--deep-navy);
  border-radius: 16px 16px 16px 4px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

@media (max-width: 768px) {
  .use-case-modal {
    width: 95%;
    height: 92vh;
    border-radius: 16px;
  }

  .use-case-chat-scroll {
    padding: 12px 16px;
  }

  .use-case-chat-bubble {
    max-width: 92%;
  }
}

