/* ==========================================
   サブページ共通スタイル
   ========================================== */


/* ==========================================
   ヘッダー（サブページ用 固定ヘッダー）
   ========================================== */

.sub-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, 1vh, 16px) clamp(12px, 2vw, 32px);
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(145 15% 88%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sub-header.scrolled {
  background: hsla(0, 0%, 100%, 0.95);
  box-shadow: 0 2px 20px -4px rgba(0, 0, 0, 0.08);
}



/* ==========================================
   画像ヒーローセクション（prevention等）
   ========================================== */

.page-hero {
  position: relative;
  width: 100%;
  margin-top: var(--header-h, 64px);
  height: calc(100dvh - var(--header-h, 64px) - var(--scroll-h, 60px));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      hsla(152, 30%, 15%, 0.55) 0%,
      hsla(150, 20%, 10%, 0.35) 50%,
      hsla(148, 25%, 20%, 0.60) 100%
    );
}

.page-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  animation: heroFadeIn 1s ease-out both;
}

.page-hero__label {
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  font-weight: 500;
  color: hsla(148, 50%, 80%, 0.9);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.page-hero__subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: #ffffff;
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-hero__line {
  width: 40px;
  height: 2px;
  background: hsla(148, 50%, 70%, 0.6);
  margin: 1.5rem auto 0;
  border-radius: 1px;
  animation: heroLineExpand 1.2s ease-out 0.5s both;
}

@keyframes heroLineExpand {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}

@media (max-width: 767px) {
  .page-hero {
    height: calc(70dvh - var(--header-h, 64px) - var(--scroll-h, 60px));
    min-height: 280px;
  }
}


/* ==========================================
   ビデオヒーローセクション
   ========================================== */

.video-hero {
  position: relative;
  width: 100%;
  /* 固定ヘッダーの下から開始 */
  margin-top: var(--header-h, 64px);
  /* ヘッダー＋スクロールインジケーター分を引いた残り全体 */
  height: calc(100dvh - var(--header-h, 64px) - var(--scroll-h, 60px));
  background:
    linear-gradient(135deg,
      hsl(148 30% 95%) 0%,
      hsl(145 20% 92%) 30%,
      hsl(140 15% 90%) 50%,
      hsl(145 20% 92%) 70%,
      hsl(148 30% 95%) 100%
    );
  overflow: hidden;
}

/* 左右に淡い装飾パターン */
.video-hero::before,
.video-hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  z-index: 1;
  pointer-events: none;
}

.video-hero::before {
  left: 0;
  background:
    radial-gradient(ellipse at 20% 30%, hsla(152, 40%, 42%, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 70%, hsla(152, 35%, 50%, 0.05) 0%, transparent 55%);
}

.video-hero::after {
  right: 0;
  background:
    radial-gradient(ellipse at 80% 40%, hsla(152, 40%, 42%, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 75%, hsla(152, 35%, 50%, 0.05) 0%, transparent 55%);
}

.video-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

/* スクロールダウンインジケーター（動画の外・下に配置） */
.video-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
  background: hsl(140 20% 98%);
  animation: heroFadeIn 1.2s ease-out 0.6s both;
}

.video-hero__scroll span {
  font-size: 0.7rem;
  font-weight: 500;
  color: hsl(150 5% 45%);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.video-hero__scroll-line {
  width: 1px;
  height: 36px;
  background: hsl(145 15% 82%);
  position: relative;
  overflow: hidden;
}

.video-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsl(152 40% 42%);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================
   3つの柱カード
   ========================================== */

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar-card {
  position: relative;
  background: white;
  border: 1px solid hsl(145 15% 88%);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px hsla(152, 35%, 28%, 0.12);
}

.pillar-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: hsl(148 30% 90%);
  margin-bottom: 1.25rem;
}

.pillar-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.pillar-card__number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  color: hsla(152, 40%, 42%, 0.06);
  line-height: 1;
  pointer-events: none;
}

.pillar-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(150 10% 15%);
  margin-bottom: 0.75rem;
}

.pillar-card__text {
  font-size: 0.875rem;
  color: hsl(150 5% 45%);
  line-height: 1.8;
}


/* ==========================================
   8029セクション
   ========================================== */

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

.about-card {
  background: white;
  border: 1px solid hsl(145 15% 88%);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
}

.about-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.about-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: hsl(152 40% 42%);
  line-height: 1;
}

.about-number-unit {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(150 5% 45%);
}

/* ステップカード */
.step-card {
  background: white;
  border: 1px solid hsl(145 15% 88%);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: hsl(152 40% 42% / 0.4);
}

.step-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(152 40% 42%);
  background: hsl(148 30% 90%);
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.step-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(150 10% 15%);
  margin-bottom: 0.35rem;
}

.step-card__text {
  font-size: 0.8rem;
  color: hsl(150 5% 45%);
  line-height: 1.7;
}


/* ==========================================
   診療の流れ（フローステップ）
   ========================================== */

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: white;
  border: 1px solid hsl(145 15% 88%);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.flow-step__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsl(152 40% 42%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.flow-step__body {
  min-width: 0;
}

.flow-step__title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(150 10% 15%);
  margin-bottom: 0.35rem;
}

.flow-step__text {
  font-size: 0.85rem;
  color: hsl(150 5% 45%);
  line-height: 1.7;
}

.flow-step__connector {
  width: 2px;
  height: 24px;
  background: hsl(145 15% 85%);
  margin: 0 auto;
}


/* ==========================================
   CTAセクション
   ========================================== */

.cta-section {
  padding: 5rem 1rem;
  background: linear-gradient(135deg, hsl(152 40% 38%), hsl(152 35% 48%));
}

.cta-section__inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.cta-section__title {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.cta-section__lead {
  font-size: 0.95rem;
  color: hsla(0, 0%, 100%, 0.9);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(152 40% 42%);
  background: white;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.25);
}

.cta-button__icon {
  width: 24px;
  height: 24px;
}

.cta-section__note {
  font-size: 0.85rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.9);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}


/* ==========================================
   レスポンシブ
   ========================================== */

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ==========================================
   モバイル下部固定 電話バー（デフォルト非表示）
   ========================================== */



/* ハンバーガー・メニュー・電話ボタンのスタイルは style.css で共通定義済み */
