/* ==========================================================================
   青山アール矯正歯科 大阪院 - Master Stylesheet
   Luxury & Clean Medical Web Design: White Base + Lime Green (#76B82A) + Vibrant Orange (#FF7A00)
   WCAG 2.1 AA Compliant, Responsive (Mobile 375px-430px & Desktop 1024px-1920px+)
   ========================================================================== */

:root {
  /* Brand Colors: White, Fresh Lime Green, Vibrant Orange */
  --primary: #76b82a;          /* ブランド爽やか黄緑（装飾・アクセント・境界線用） */
  --primary-light: #92d440;
  --primary-dark: #376810;     /* WCAG AA準拠・白背景でコントラスト比5.6:1を達成する視認用ダークグリーン */
  --primary-text: #2d580b;     /* テキスト・リンク用ハイコントラストグリーン（比率6.3:1） */
  --primary-gradient: linear-gradient(135deg, #7bc22a 0%, #468c0e 100%); /* 白文字がくっきり読めるボタン用グラデーション */
  
  --accent: #ff7a00;           /* 温かみのあるオレンジ（予約・注目CTA） */
  --accent-light: #ff9838;
  --accent-dark: #c24d00;      /* WCAG AA準拠・白背景でコントラスト比4.9:1を達成する視認用ダークオレンジ */
  --accent-text: #b84500;      /* テキスト用ハイコントラストオレンジ（比率5.3:1） */
  --accent-gradient: linear-gradient(135deg, #ff8214 0%, #d85400 100%); /* 白文字がくっきり読めるCTAグラデーション */
  
  --gold: #76b82a;             /* 既存クラス互換用 */
  --gold-dark: #376810;
  --gold-light: #ebf7d9;
  --gold-gradient: linear-gradient(135deg, #ff8214 0%, #d85400 100%); /* ボタンはオレンジ */

  --text-main: #111827;        /* 超高視認性ダークチャコール（コントラスト比16.1:1 - AAA適合） */
  --text-sub: #374151;         /* 高視認性サブテキスト（コントラスト比9.3:1 - AAA適合） */
  --text-muted: #4b5563;       /* 注記・メタ情報用（コントラスト比7.0:1 - AAA適合） */
  
  --bg-main: #ffffff;          /* 完全な清潔白地 */
  --bg-soft: #f8faf5;          /* ほんのり清潔なオフホワイト/ミントホワイト */
  --bg-card: #ffffff;
  --bg-alt: #f1f7ea;
  --bg-orange-soft: #fff8f2;
  
  --border-color: #e2ebd5;
  --border-orange: #fed7aa;
  
  --shadow-sm: 0 2px 10px rgba(118, 184, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(118, 184, 42, 0.12);
  --shadow-lg: 0 16px 36px rgba(45, 55, 72, 0.10);
  --shadow-orange: 0 8px 24px rgba(216, 84, 0, 0.35);
  
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-en: 'League Spartan', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  position: relative;
  word-break: normal;
  overflow-wrap: anywhere;
  word-break: auto-phrase; /* 日本語の文節（単語の区切り）で自動改行 */
  text-wrap: pretty;       /* 末尾の1文字落ちを自動防止 */
  padding-top: 88px;       /* 固定ヘッダー分の余白 */
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;      /* 見出しの折り返し行長を左右均等に美しく整列 */
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

p, li, td, th, label, div, span, a, button, input, select, textarea {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Responsive Break Utilities (PC・スマホ別レスポンシブ改行)
   ========================================================================== */
.pc-only {
  display: inline;
}
.sp-only {
  display: none;
}
.inline-block, .nowrap-unit {
  display: inline-block;
  white-space: nowrap;
}
.keep-all {
  word-break: keep-all;
}

@media (max-width: 768px) {
  .hero-lead-text {
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1.6rem !important;
    word-break: auto-phrase !important;
  }

  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: inline !important;
  }
}

img, video, iframe, canvas, svg {
  max-width: 100% !important;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography & Color Utilities (WCAG AA Compliant)
   ========================================================================== */

.container {
  width: 100% !important;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box !important;
}

.text-gold, .text-green { color: var(--primary-text); }
.text-green-brand { color: var(--primary); }
.text-orange { color: var(--accent-text); }
.text-orange-brand { color: var(--accent); }
.text-navy { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-serif { font-family: var(--font-serif); }
.font-en { font-family: var(--font-en); }

.bg-soft { background-color: var(--bg-soft); }
.bg-white { background-color: #ffffff; }
.bg-orange-soft { background-color: var(--bg-orange-soft); }

.gold-gradient-text, .orange-gradient-text {
  background: linear-gradient(135deg, #b45309 0%, #d97706 45%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  z-index: 20;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95));
}

.green-gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head {
  text-align: left;
  margin-bottom: 3rem;
}

.section-en-title {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
  background: rgba(118, 184, 42, 0.14);
  padding: 0.3rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(118, 184, 42, 0.25);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-sub);
  max-width: 780px;
  margin: 0;
  text-align: left;
  line-height: 1.8;
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding { padding: 6.5rem 0; }
  .section-title { font-size: 2.4rem; }
}

/* ==========================================================================
   Buttons & CTAs (High-Contrast & WCAG AA Compliant)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 46px; /* タップ領域の最低基準 */
}

/* Orange Main CTA Button */
.btn-gold, .btn-orange {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: var(--shadow-orange);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-gold:hover, .btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(216, 84, 0, 0.45);
  filter: brightness(1.05);
  color: #ffffff !important;
}

/* Lime Green Sub Button */
.btn-navy, .btn-green {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(70, 140, 14, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}

.btn-navy:hover, .btn-green:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(70, 140, 14, 0.40);
  filter: brightness(1.06);
  color: #ffffff !important;
}

.btn-outline-gold, .btn-outline-green {
  background: #ffffff;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark) !important;
}

.btn-outline-gold:hover, .btn-outline-green:hover {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border-color: transparent;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-dark) !important;
  text-shadow: none;
}

.btn-lg {
  padding: 1.15rem 2.4rem;
  font-size: 1.1rem;
  min-height: 52px;
}



/* ==========================================================================
   PERFECT HEADER & NAVIGATION (72PX LOGO & ZERO OVERFLOW 1-LINE SYSTEM)
   ========================================================================== */
/* ==========================================================================
   2-ROW SOLID LUXURY HEADER (完全レスポンシブ・全端末最適化)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto !important;
  z-index: 1000;
  background: #f8fafc !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  border-bottom: 2px solid #cbd5e1;
  transition: all 0.3s ease;
}

/* PCデスクトップ時のbody余白 */
body {
  padding-top: 170px !important;
}

/* ==========================================================================
   Dual Brand Tabs Bar (インビザライン & インビザライン・ファースト両導入タブ)
   ========================================================================== */
.header-brand-tabs-bar {
  width: 100%;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  font-family: var(--font-sans);
}

.header-brand-tabs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1420px !important;
  width: 100% !important;
  height: 38px;
  padding: 0 1.25rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-brand-tabs-group {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 0.5rem;
}

.brand-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 33px;
  padding: 0 1rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
}
.brand-tab-item:hover {
  background: #ffffff;
  color: var(--navy-800);
}

.brand-tab-item.brand-tab-adult {
  border-top: 2px solid transparent;
}
.brand-tab-item.brand-tab-adult:hover,
.brand-tab-item.brand-tab-adult.active {
  background: #ffffff;
  color: #92400e;
  border-top-color: #b45309;
  font-weight: 800;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}

.brand-tab-item.brand-tab-first {
  border-top: 2px solid transparent;
}
.brand-tab-item.brand-tab-first:hover,
.brand-tab-item.brand-tab-first.active {
  background: #ffffff;
  color: #0f766e;
  border-top-color: #0d9488;
  font-weight: 800;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}

.brand-tab-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* PCデスクトップ時のインビザラインロゴ設定（高さ14px、最大幅60pxで確実に上品に抑制） */
img.brand-tab-logo,
.brand-tab-logo {
  height: 14px !important;
  max-height: 14px !important;
  max-width: 60px !important;
  width: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.brand-tab-first-tag {
  font-family: 'Century Gothic', 'Arial', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0072ce;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-tab-sub {
  font-size: 0.75rem;
  color: #64748b;
  padding-left: 0.35rem;
  border-left: 1px solid #cbd5e1;
  white-space: nowrap;
}

.brand-tab-item.brand-tab-first.active .brand-tab-sub {
  color: #0d9488;
  font-weight: 800;
}
.brand-tab-item.brand-tab-adult.active .brand-tab-sub {
  color: #b45309;
  font-weight: 800;
}

.brand-tab-badge-official {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* タブレット・スマホ時（991px以下） */
@media (max-width: 991px) {
  body {
    padding-top: 98px !important;
  }
  .header-brand-tabs-inner {
    height: 34px !important;
    padding: 0 !important;
  }
  .brand-tab-badge-official {
    display: none;
  }
  .header-brand-tabs-group {
    width: 100%;
    gap: 0;
  }
  .brand-tab-item {
    flex: 1;
    height: 34px !important;
    justify-content: center !important;
    padding: 0 0.35rem !important;
    font-size: 0.72rem !important;
    gap: 0.25rem !important;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: #f8fafc;
  }
  .brand-tab-item:first-child {
    border-right: 1px solid #e2e8f0;
  }
  img.brand-tab-logo,
  .brand-tab-logo {
    height: 12px !important;
    max-height: 12px !important;
    max-width: 50px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  .brand-tab-first-tag {
    font-size: 0.65rem !important;
    padding: 1px 4px !important;
    line-height: 1.1 !important;
  }
  .brand-tab-sub {
    font-size: 0.72rem !important;
    padding-left: 0.15rem !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em !important;
  }
  .brand-tab-item.brand-tab-adult.active {
    background: #ffffff;
    border-top: none;
    border-bottom: 2.5px solid #b45309;
  }
  .brand-tab-item.brand-tab-first.active {
    background: #ffffff;
    border-top: none;
    border-bottom: 2.5px solid #0d9488;
  }
}

/* 小型スマホ時（380px以下） */
@media (max-width: 380px) {
  .header-brand-tabs-inner {
    height: 32px !important;
  }
  .brand-tab-item {
    height: 32px !important;
    padding: 0 0.2rem !important;
    font-size: 0.68rem !important;
    gap: 0.18rem !important;
  }
  img.brand-tab-logo,
  .brand-tab-logo {
    height: 11px !important;
    max-height: 11px !important;
    max-width: 45px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  .brand-tab-first-tag {
    font-size: 0.6rem !important;
    padding: 0 3px !important;
  }
  .brand-tab-sub {
    font-size: 0.68rem !important;
    padding-left: 0.1rem !important;
    letter-spacing: -0.02em !important;
  }
}

/* --------------------------------------------------------------------------
   Row 1: Header Top Row (ロゴ・電話・LINE・Instagram・Web予約)
   -------------------------------------------------------------------------- */
.header-top-row {
  width: 100%;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1420px !important;
  width: 100% !important;
  height: 80px;
  padding: 0 1.25rem;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .header-top-inner {
    height: 64px;
    padding: 0 0.5rem;
    gap: 0.35rem;
  }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 48px !important;
  max-height: 48px !important;
  max-width: 170px !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}

@media (max-width: 991px) {
  .site-logo img {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 110px !important;
  }
}

@media (max-width: 380px) {
  .site-logo img {
    height: 28px !important;
    max-height: 28px !important;
    max-width: 96px !important;
  }
}

/* Desktop CTA Group (992px以上で横並び完全表示) */
.header-cta-group {
  display: none;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .header-cta-group {
    display: flex !important;
  }
}

@media (min-width: 1200px) {
  .header-cta-group {
    gap: 1.1rem;
  }
}

/* Phone Info with Hours Note */
.header-phone-info {
  text-align: right;
  line-height: 1.2;
  margin-right: 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none !important;
  transition: var(--transition);
  cursor: pointer;
}

.header-phone-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-phone-num {
  font-size: 1.18rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.header-phone-notice {
  font-size: 0.68rem;
  color: #e11d48;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-top: 1px;
}

.header-phone-info:hover .header-phone-num {
  color: var(--primary);
}

/* Instagram Header Button */
.header-insta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 3px 10px rgba(220, 39, 67, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.header-insta-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.4);
}

/* LINE Header Button */
.header-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #06C755;
  box-shadow: 0 3px 10px rgba(6, 199, 85, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.header-line-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.45);
}

/* Web Reserve Button in Header */
.header-reserve-btn {
  padding: 0.65rem 1.2rem !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35) !important;
}

/* Mobile Quick CTA (991px以下でヘッダー1行目に常時表示) */
.header-mobile-quick-cta {
  display: none;
  align-items: center;
  gap: 0.22rem;
  margin-left: auto;
  margin-right: 0.15rem;
}

@media (max-width: 991px) {
  .header-mobile-quick-cta {
    display: flex !important;
  }
}

.header-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.header-mobile-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.btn-mobile-insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 2px 6px rgba(220, 39, 67, 0.35);
}

.btn-mobile-line {
  background: #06C755;
  box-shadow: 0 2px 6px rgba(6, 199, 85, 0.35);
}

.btn-mobile-tel {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(118, 184, 42, 0.35);
}

.header-mobile-reserve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}

@media (max-width: 374px) {
  .header-mobile-quick-cta {
    gap: 0.18rem;
    margin-right: 0.1rem;
  }
  .header-mobile-btn {
    width: 26px;
    height: 26px;
  }
  .header-mobile-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
  .header-mobile-reserve-btn {
    font-size: 0.65rem;
    padding: 0.28rem 0.38rem;
  }
}

/* --------------------------------------------------------------------------
   Row 2: Navigation Bar (992px以上で表示)
   -------------------------------------------------------------------------- */
.header-nav-bar {
  display: none;
  width: 100%;
  background: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}

@media (min-width: 992px) {
  .header-nav-bar {
    display: block !important;
  }
}

.header-nav-inner {
  max-width: 1420px !important;
  width: 100% !important;
  height: 50px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}


.site-nav-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.site-nav-desktop li {
  margin: 0;
  padding: 0;
}

.site-nav-desktop .nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 4px;
}

@media (min-width: 1200px) {
  .site-nav-desktop .nav-link {
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem;
  }
}

.site-nav-desktop .nav-link:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.site-nav-desktop .nav-link.active {
  color: #0f172a;
  font-weight: 800;
  background: rgba(180, 83, 9, 0.10);
}

.site-nav-desktop .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #b45309;
  border-radius: 2px;
}

.site-nav-desktop .nav-highlight {
  color: #ffffff !important;
  background: linear-gradient(135deg, #c5a059, #b08d48) !important;
  padding: 0.4rem 0.95rem !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
}

.site-nav-desktop .nav-highlight:hover {
  opacity: 0.92;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
}

/* サブバー（ヘッダー直下の案内バー）：落ち着いたグレー系で統一 */
.header-subbar {
  background: #e9ecef !important;
  border-bottom: 2px solid #cbd5e1 !important;
  color: #1e293b !important;
}

.header-subbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  gap: 0.75rem;
}

.header-subbar-name {
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.header-subbar-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-subbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-subbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
  }
  .header-subbar-info {
    gap: 0.4rem 0.75rem;
  }
  .header-subbar-info span {
    font-size: 0.8rem;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1420px !important;
  width: 100% !important;
  height: 88px;
  padding: 0 1.25rem !important;
  box-sizing: border-box !important;
  gap: 0.75rem;
}

/* Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .hamburger-btn {
    width: 34px;
    height: 34px;
    padding: 3px;
    gap: 4px;
  }
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none !important;
  }
}

.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 88%;
  max-width: 390px;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.mobile-nav-link i {
  color: var(--primary-dark);
}

.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Page Banner / Hero Styles (White & Light Green Gradient)
   ========================================================================== */

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf0 60%, #eef8df 100%);
  color: #0f172a;
  padding: 4.5rem 0 3.5rem;
  text-align: left;
  border-bottom: 2px solid #dbe8cb;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 122, 0, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-en {
  font-family: var(--font-en);
  color: #275a0e;
  letter-spacing: 0.15em;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  display: inline-block;
  background: rgba(118, 184, 42, 0.15);
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(118, 184, 42, 0.35);
}

.page-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-serif);
  line-height: 1.35;
  margin-bottom: 1.1rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: #1e293b;
  max-width: 820px;
  margin: 0;
  text-align: left;
  line-height: 1.85;
  font-weight: 500;
}

.breadcrumb {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #475569;
  margin-top: 1.5rem;
  font-weight: 600;
}

.breadcrumb a {
  color: #275a0e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: #ea580c;
}

/* ==========================================================================
   Badges & Stat Boxes (WCAG AA Compliant)
   ========================================================================== */

.badge-gold, .badge-green {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(118, 184, 42, 0.14);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  border: 1px solid rgba(118, 184, 42, 0.35);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.badge-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 122, 0, 0.14);
  color: var(--accent-dark);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  border: 1px solid rgba(255, 122, 0, 0.35);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.badge-navy {
  display: inline-flex;
  align-items: center;
  background: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
}

/* ==========================================================================
   Feature / Card Grids
   ========================================================================== */

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

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

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

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-body {
  padding: 2.2rem 1.8rem;
}

.card-icon {
  width: 58px;
  height: 58px;
  background: rgba(118, 184, 42, 0.14);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ==========================================================================
   Comparison Table & Data Presentations
   ========================================================================== */

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 620px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
  background: #f7fcf0;
  border-color: #cbe6a8;
}

.comparison-table td.highlight {
  color: var(--primary-text);
  font-weight: 700;
}

.badge-check {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 1.25rem;
}

.badge-cross {
  display: inline-block;
  color: #ef4444;
  font-weight: 700;
  font-size: 1.1rem;
}

.badge-triangle {
  display: inline-block;
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  min-height: 48px;
}

.accordion-header .q-icon {
  width: 30px;
  height: 30px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.accordion-arrow {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--primary-dark);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: var(--bg-soft);
}

.accordion-body-inner {
  padding: 1.25rem 1.5rem 1.5rem 3.5rem;
  color: var(--text-sub);
  font-size: 0.96rem;
  line-height: 1.85;
  position: relative;
}

.accordion-body-inner::before {
  content: 'A';
  position: absolute;
  left: 1.5rem;
  top: 1.25rem;
  width: 30px;
  height: 30px;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Pricing Table & Calculator (Refined Visual Hierarchy)
   ========================================================================== */

.price-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  border: 2px solid var(--primary-dark);
  box-shadow: 0 12px 32px rgba(118, 184, 42, 0.16);
  background: #ffffff;
}

.price-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.4rem 1.4rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(70, 140, 14, 0.35);
  white-space: nowrap;
}

.price-plan-name {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.price-target {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.price-amount {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.price-amount span {
  font-size: 1rem;
  font-family: var(--font-base);
  color: var(--text-sub);
  font-weight: 500;
}

.price-monthly {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 1.5rem;
}

.price-features {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.94rem;
  color: var(--text-sub);
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.price-features li::before {
  content: '✓';
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ==========================================================================
   DR. TOKUHISA ACADEMIC BACKGROUND TABBED UI (#doctor-academic-tabs)
   ========================================================================== */
.doctor-tabs-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.doctor-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.doctor-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
  min-height: 46px;
}

.doctor-tab-btn:hover {
  background: #f1f7ea;
  color: var(--primary-dark);
  border-color: var(--primary);
}

.doctor-tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(70, 140, 14, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.doctor-tab-btn.active i {
  color: #ffffff;
}

.doctor-tab-pane {
  display: none;
  animation: fadeInPane 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-tab-pane.active {
  display: block;
}

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

/* Timeline Cards in Doctor Profile */
.timeline-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  transition: var(--transition);
  align-items: flex-start;
}

.timeline-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.timeline-item.highlight-award {
  background: #fff9f2;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.15);
}

.timeline-year {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 90px;
  flex-shrink: 0;
}

.timeline-item.highlight-award .timeline-year {
  color: var(--accent-text);
}

.timeline-body {
  flex: 1;
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* Lecture / Seminar Cards */
.lecture-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lecture-card {
  padding: 1.2rem 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: var(--transition);
}

.lecture-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent);
}

.lecture-date {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.lecture-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Society / Paper Cards */
.society-card-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.society-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.society-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.paper-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.paper-list li {
  list-style: disc;
  font-size: 0.94rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ==========================================================================
   Case Before / After Photo Presentation (Side-by-Side PC / Stacked Mobile)
   ========================================================================== */
.case-before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.case-photo-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f8fafc;
}

.case-photo-box img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.case-photo-box:hover img {
  transform: scale(1.03);
}

.case-photo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.case-photo-tag.before {
  background: rgba(75, 85, 99, 0.9);
}

.case-photo-tag.after {
  background: var(--accent-gradient);
}

/* ==========================================================================
   Footer (White with Fresh Green accents)
   ========================================================================== */

.site-footer {
  background: #ffffff;
  color: var(--text-main);
  padding: 5rem 0 7rem;
  border-top: 3px solid var(--primary);
}

@media (min-width: 768px) {
  .site-footer { padding-bottom: 4rem; }
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.95rem;
  color: var(--text-sub);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--primary-dark);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Floating CTA Bar (Mobile Touch Optimization)
   ========================================================================== */

.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.75rem;
  z-index: 990;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 820px) {
  .floating-cta-bar {
    display: none;
  }
}

.floating-cta-btn {
  flex: 1;
  padding: 0.85rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  min-height: 48px; /* タップ目標 48px */
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-label .badge-req {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  font-weight: 700;
}

.form-label .badge-opt {
  background: #94a3b8;
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  transition: var(--transition);
  background: #ffffff;
  min-height: 46px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(118, 184, 42, 0.20);
}

/* ==========================================================================
   Blog & Staff Articles Styles (医院メンバーブログ)
   ========================================================================== */

.blog-cat-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  margin-bottom: 2.5rem;
  white-space: nowrap;
}
.blog-cat-tabs::-webkit-scrollbar {
  height: 4px;
}
.blog-cat-tabs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
.blog-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  transition: var(--transition);
  cursor: pointer;
  min-height: 44px;
}
.blog-cat-tab:hover, .blog-cat-tab.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(70, 140, 14, 0.28);
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #ffffff;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
  transition: var(--transition);
}
@media (min-width: 860px) {
  .blog-featured-card {
    grid-template-columns: 1.2fr 1fr;
  }
}
.blog-featured-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.blog-featured-body {
  padding: 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.blog-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}
.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.blog-author-mini {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

/* ==========================================================================
   Single Article Content Styles (記事詳細)
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 320px;
  }
}

.article-main {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.article-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  color: var(--text-main);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-author-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 2px solid var(--primary-light);
}
.article-author-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.article-author-role {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.article-eyecatch {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.article-eyecatch img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

.article-body {
  font-size: 1.02rem;
  line-height: 2;
  color: #1f2937;
}
.article-body p {
  margin-bottom: 1.75rem;
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 3rem 0 1.5rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  background: linear-gradient(to right, #f4faec, #ffffff);
  border-left: 6px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}
.article-body ul, .article-body ol {
  margin: 1.25rem 0 2rem 1.5rem;
  line-height: 1.85;
}
.article-body ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
}
.article-body ol li {
  list-style: decimal;
  margin-bottom: 0.5rem;
}

.toc-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0 2.5rem;
}
.toc-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.94rem;
}
.toc-list a {
  color: var(--text-sub);
  text-decoration: underline;
}
.toc-list a:hover {
  color: var(--primary-dark);
}

.point-box {
  background: #f7fcf0;
  border: 2px solid #cbe6a8;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}
.point-box-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.caution-box {
  background: #fff8f2;
  border: 2px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}
.caution-box-title {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   ULTIMATE MOBILE RESPONSIVE OPTIMIZATIONS (375px〜430px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-top: 98px !important;
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  

  .header-inner {
    height: 76px !important;
    padding: 0 1rem !important;
  }

  .site-logo img {
    height: 30px !important;
    max-height: 32px !important;
    max-width: 100px !important;
    width: auto !important;
  }

  @media (max-width: 380px) {
    .site-logo img {
      height: 26px !important;
      max-height: 28px !important;
      max-width: 88px !important;
    }
  }

  .container {
    padding: 0 1rem !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .section-padding {
    padding: 3.5rem 0 !important;
  }

  .section-title {
    font-size: 1.55rem !important;
    line-height: 1.4 !important;
  }

  .section-desc {
    font-size: 0.94rem !important;
    line-height: 1.75 !important;
  }

  .section-head {
    margin-bottom: 2.2rem !important;
  }

  .page-hero {
    padding: 2.8rem 0 2.2rem !important;
  }

  .page-hero-title {
    font-size: 1.55rem !important;
    line-height: 1.4 !important;
  }

  .page-hero-desc {
    font-size: 0.94rem !important;
    line-height: 1.75 !important;
  }

  /* Buttons on Mobile */
  .btn, .btn-lg {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
    min-height: 48px !important;
  }

  .card-body {
    padding: 1.5rem 1.15rem !important;
  }

  .price-card {
    padding: 2.2rem 1.25rem !important;
    transform: none !important;
    margin-bottom: 1.5rem !important;
  }

  .price-amount {
    font-size: 2.2rem !important;
  }

  /* Doctor Tabbed UI Mobile */
  .doctor-tabs-container {
    padding: 1.5rem 1rem !important;
  }

  .doctor-tabs-nav {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .doctor-tab-btn {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.92rem !important;
  }

  .timeline-item {
    flex-direction: column !important;
    gap: 0.4rem !important;
    padding: 1rem !important;
  }

  .timeline-year {
    min-width: auto !important;
    font-size: 1rem !important;
  }

  /* Case Before / After Stack on Mobile */
  .case-before-after-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .case-photo-box img {
    height: 220px !important;
  }

  /* Multi-column grids stack on mobile */
  .grid-2, .grid-3, .grid-4, .hero-grid-layout, .doctor-highlight-grid, .access-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
}



/* ==========================================================================
   Frameless 3D Floating & Rotating Aligner Cinema Stage (World-Class)
   ========================================================================== */

.aligner-cinema-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

/* Ambient Radial Light Beam Aura */
.aligner-ambient-glow {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(118, 184, 42, 0.22) 0%, rgba(2, 132, 199, 0.15) 40%, rgba(255, 122, 0, 0.08) 65%, transparent 75%);
  border-radius: 50%;
  filter: blur(40px);
  animation: glowBreathe 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes glowBreathe {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.95; }
}

/* Top Floating Official Brand Header */
.aligner-brand-float {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 45, 98, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
  animation: badgeHover 6s ease-in-out infinite alternate;
}

@keyframes badgeHover {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.aligner-brand-logo {
  height: 32px;
  width: auto;
}

.aligner-brand-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #002d62;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* 3D Floating Pure Aligner Container (NO FRAME / NO BOX) */
.aligner-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 320px;
  transform-style: preserve-3d;
  animation: pureAlignerFloat 8s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

/* Multi-axis Continuous 3D Floating & Rotating Motion */
@keyframes pureAlignerFloat {
  0% {
    transform: translateY(0px) rotateX(12deg) rotateY(-18deg) rotateZ(-3deg) scale(1);
  }
  25% {
    transform: translateY(-18px) rotateX(-8deg) rotateY(14deg) rotateZ(4deg) scale(1.03);
  }
  50% {
    transform: translateY(-30px) rotateX(-14deg) rotateY(26deg) rotateZ(-2deg) scale(1.06);
  }
  75% {
    transform: translateY(-14px) rotateX(8deg) rotateY(-8deg) rotateZ(3deg) scale(1.02);
  }
  100% {
    transform: translateY(0px) rotateX(12deg) rotateY(-18deg) rotateZ(-3deg) scale(1);
  }
}

/* Frameless Aligner Vector Graphic */
.aligner-isolated-graphic {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 45, 98, 0.18)) drop-shadow(0 8px 16px rgba(118, 184, 42, 0.2));
  transition: filter 0.3s ease;
  animation: alignerGleam 6s ease-in-out infinite alternate;
}

@keyframes alignerGleam {
  0% { filter: drop-shadow(0 20px 30px rgba(0, 45, 98, 0.16)) drop-shadow(0 8px 16px rgba(118, 184, 42, 0.18)) brightness(1); }
  50% { filter: drop-shadow(0 28px 40px rgba(2, 132, 199, 0.28)) drop-shadow(0 12px 24px rgba(118, 184, 42, 0.3)) brightness(1.08); }
  100% { filter: drop-shadow(0 20px 30px rgba(0, 45, 98, 0.16)) drop-shadow(0 8px 16px rgba(118, 184, 42, 0.18)) brightness(1); }
}

/* Shimmer Sparkles floating around the aligner */
.aligner-sparkle {
  position: absolute;
  color: #38bdf8;
  font-size: 1.1rem;
  pointer-events: none;
  animation: sparkleTwinkle 3s ease-in-out infinite alternate;
}

.sparkle-1 { top: 18%; left: 8%; animation-delay: 0s; font-size: 1.4rem; color: #76B82A; }
.sparkle-2 { top: 12%; right: 12%; animation-delay: 1.2s; font-size: 1.2rem; color: #ea580c; }
.sparkle-3 { bottom: 22%; left: 14%; animation-delay: 2.1s; font-size: 1rem; color: #0284c7; }
.sparkle-4 { bottom: 16%; right: 10%; animation-delay: 0.7s; font-size: 1.3rem; color: #38bdf8; }

@keyframes sparkleTwinkle {
  0% { transform: scale(0.4) rotate(0deg); opacity: 0.2; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
  100% { transform: scale(0.6) rotate(360deg); opacity: 0.4; }
}

/* Floating Glass Feature Badges (Tethered in 3D Space) */
.aligner-3d-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0,0,0,0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 8;
  white-space: nowrap;
}

.aligner-tag-left {
  top: 65%;
  left: -10px;
  animation: tagBob1 5.5s ease-in-out infinite alternate;
}

.aligner-tag-right {
  top: 15%;
  right: -15px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  animation: tagBob2 6s ease-in-out infinite alternate;
}

@keyframes tagBob1 {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes tagBob2 {
  0% { transform: translateY(0px) rotate(2deg); }
  100% { transform: translateY(12px) rotate(-2deg); }
}

/* Dynamic Ground Shadow (Synchronized with 3D Float) */
.aligner-ground-shadow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(0, 45, 98, 0.28) 0%, rgba(15, 23, 42, 0) 72%);
  border-radius: 50%;
  animation: alignerShadowPulse 8s ease-in-out infinite;
  z-index: 2;
}

@keyframes alignerShadowPulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.65; }
  50% { transform: translateX(-50%) scale(0.68); opacity: 0.25; filter: blur(4px); }
  100% { transform: translateX(-50%) scale(1); opacity: 0.65; }
}

/* Responsive Scaling for Mobile Screens */
@media (max-width: 768px) {
  .aligner-cinema-stage { min-height: 380px; margin-top: 1.5rem; }
  .aligner-3d-wrapper { height: 260px; max-width: 340px; }
  .aligner-tag-left { left: 0; top: 75%; }
  .aligner-tag-right { right: 0; top: 5%; }
}

/* ==========================================================================
   HERO SECTION: VIBRANT FULL ALIGNER IMAGE (画像が消えない・美しく共存する設計)
   マウスピース画像を100%くっきり表示 ＆ 文字の視認性も両立
   ========================================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f7fcf2 50%, #edf8df 100%);
  color: #0f172a;
  overflow: hidden;
  padding: 4.8rem 0 5.5rem;
  border-bottom: 2px solid #dbe8cb;
  isolation: isolate;
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f7fcf2 50%, #edf8df 100%);
  color: #0f172a;
  overflow: hidden;
  padding: 4.8rem 0 5.2rem;
  border-bottom: 2px solid #dbe8cb;
  isolation: isolate;
}

/* 前面コンテンツ：文字を最前面(z-index: 10)に配置し、画像と重なっても100%読める光彩を付与 */
.hero-front-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
}

.hero-front-content h1 {
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  /* 文字の背後に画像が重なっても文字がくっきり浮き出る微細なホワイトグロー */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 0 15px rgba(255, 255, 255, 0.9);
}

.hero-front-content p {
  color: #1e293b;
  line-height: 1.9;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero-highlight-gold {
  color: #b45309 !important; /* 均一な品格あるゴールド */
  font-weight: 800;
  display: inline-block;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 0 15px rgba(255, 255, 255, 0.9);
}

/* マウスピース画像レイヤー：画像を消さずにしっかり表示 (z-index: 2) */
.hero-backmost-aligner-layer {
  position: absolute;
  right: 1.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 500px;
  min-width: 320px;
  z-index: 2; /* 最背面でも文字(z-index: 10)の奥でしっかり見える */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* マウスピース画像本体：マスクを外して画像を消さず、本来のクオリティで100%鮮明に表示 */
.hero-backmost-aligner-img {
  width: 100%;
  height: auto;
  display: block;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  object-fit: contain;
  mix-blend-mode: multiply !important; /* 白い背景枠を透明にして背景色と同化 */
  opacity: 1 !important; /* 絶対に薄くして消さない：100%くっきり表示 */
  filter: contrast(1.05) saturate(1.05); /* マウスピースの透明感とケースの質感を鮮明に */
}

/* キャプション */
.hero-backmost-aligner-caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* タブレット・ノートPC（画面幅 <= 1180px） */
@media (max-width: 1180px) {
  .hero-backmost-aligner-layer {
    right: 0;
    width: 42%;
    max-width: 420px;
    opacity: 0.9 !important; /* 画像を消さずにくっきり維持 */
  }
  .hero-front-content {
    max-width: 620px;
  }
}

/* タブレット縦・スマホ（画面幅 <= 860px）：文字と重なっても画像が見えるようにレイアウト */
@media (max-width: 860px) {
  .hero-backmost-aligner-layer {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 340px;
    margin: 2rem auto 0;
    opacity: 1 !important; /* スマホでも画像を消さない */
  }
  .hero-backmost-aligner-caption {
    display: flex;
  }
  .hero-front-content {
    max-width: 100%;
  }
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}


/* --- Hero H1 Exactly 3 Lines Structure --- */
.hero-main-title {
  font-family: var(--font-serif);
  line-height: 1.45;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-title-line {
  display: block !important; /* 確実に1行ずつ独立させて3行にする */
  white-space: nowrap;
}

.hero-title-line.line-1 {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  color: #0f172a;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-title-line.line-2 {
  font-size: clamp(1.4rem, 2.9vw, 2.35rem);
  color: #b45309 !important; /* 均一ソリッドゴールド */
  font-weight: 800;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.hero-title-line.line-3 {
  font-size: clamp(1.55rem, 3.3vw, 2.65rem);
  color: #b45309 !important; /* 均一ソリッドゴールド */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

@media (max-width: 520px) {
  .hero-title-line {
    white-space: normal;
    word-break: keep-all;
  }
}

/* --- Hero Clinic Middle Image Slider --- */
.hero-clinic-middle-banner {
  display: block;
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  margin: 1rem 0 1.3rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: #f1f5f9;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s ease;
}

.hero-clinic-middle-banner:hover .hero-slide.active img {
  transform: scale(1.03);
}

.hero-clinic-middle-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

@media (max-width: 768px) {
  .hero-clinic-middle-banner {
    height: 250px;
    margin: 0.85rem 0 1rem;
    border-radius: 10px;
  }
  .hero-clinic-middle-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    bottom: 6px;
    right: 8px;
  }
  .hero-slider-dots {
    bottom: 8px;
    left: 8px;
    gap: 4px;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
  }
  .hero-dot.active {
    width: 16px;
  }
}

/* ==========================================================================
   Responsive Price Tables (スマホでの料金表文字改行・見にくさ解消)
   ========================================================================== */

@media (max-width: 768px) {
  /* 4列の本体治療費テーブル (.price-responsive-table) */
  .price-responsive-table {
    display: block !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .price-responsive-table thead,
  .price-responsive-table > tbody > tr:first-child,
  .price-responsive-table > tr:first-child {
    display: none !important; /* PC用ヘッダー行を非表示 */
  }
  .price-responsive-table > tbody,
  .price-responsive-table {
    display: block !important;
    width: 100% !important;
  }
  .price-responsive-table tr {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .price-responsive-table tr.featured-row {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 4px 16px rgba(118, 184, 42, 0.15) !important;
  }
  .price-responsive-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1rem !important;
    border: none !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    text-align: left !important;
  }
  .price-responsive-table td:last-child {
    border-bottom: none !important;
  }
  /* 1番目のセル（プラン名）：ヘッダー風背景 */
  .price-responsive-table td:first-child {
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 0.9rem 1rem !important;
  }
  .price-responsive-table tr.featured-row td:first-child {
    background: #f4f9eb !important;
    border-bottom: 1px solid #c7e59b !important;
  }
  /* 2番目のセル（総額）：ラベル付き */
  .price-responsive-table td:nth-child(2)::before {
    content: "総額治療費（税込）：";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.3rem;
  }
  /* 3番目のセル（期間）：ラベル付き */
  .price-responsive-table td:nth-child(3)::before {
    content: "治療期間の目安：";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.3rem;
  }
  /* 4番目のセル（月々分割）：ラベル付き */
  .price-responsive-table td:nth-child(4)::before {
    content: "月々の分割お支払い目安：";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.3rem;
  }
  /* 最終行の定期検診料0円特記バー */
  .price-responsive-table tr:last-child {
    border: 1px solid #86efac !important;
    background: #f0fdf4 !important;
  }
  .price-responsive-table tr:last-child td {
    background: transparent !important;
    border: none !important;
    padding: 0.9rem 1rem !important;
  }
  .price-responsive-table tr:last-child td::before {
    display: none !important;
  }

  /* 2列の詳細料金表 (.price-detail-table) */
  .price-detail-table {
    display: block !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .price-detail-table tbody,
  .price-detail-table {
    display: block !important;
    width: 100% !important;
  }
  .price-detail-table tr {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-bottom: 0.85rem !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
    box-sizing: border-box !important;
  }
  .price-detail-table th {
    display: block !important;
    width: 100% !important;
    background: #f8fafc !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
    color: var(--text-main) !important;
    text-align: left !important;
    line-height: 1.5 !important;
  }
  .price-detail-table td {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 0.85rem 1rem !important;
    font-size: 1.05rem !important;
    border: none !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  /* 難症例カードのスマホ最適化（バッジ文字改行防止・見出しゆったり表示） */
  .difficult-case-card {
    padding: 1.5rem 1.25rem !important;
  }
  .difficult-case-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    margin-bottom: 0.85rem !important;
  }
  .difficult-case-header h3 {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
  .difficult-case-header .badge-gold {
    font-size: 0.82rem !important;
    padding: 0.3rem 0.75rem !important;
    white-space: nowrap !important;
  }

  /* 提携専門クリニックカードのスマホ最適化（岡崎歯科・U'z dentalの文字折り返し＆枠乱れ解消） */
  .partner-clinic-inner {
    padding: 1.5rem 1.25rem !important;
  }
  .partner-clinic-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
  }
  .partner-clinic-floor {
    font-size: 0.85rem !important;
    color: var(--text-main) !important;
    background: #ffffff !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    align-self: flex-start !important;
  }
  .partner-clinic-meta .badge-green,
  .partner-clinic-meta .badge-orange {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.75rem !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .partner-clinic-merit {
    margin: 0 1.25rem 1.25rem !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.88rem !important;
  }
}

/* 提携専門クリニックカード共通スタイル */
.partner-clinic-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.partner-clinic-inner {
  padding: 2rem;
}
.partner-clinic-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.partner-clinic-floor {
  font-size: 0.92rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.partner-clinic-merit {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-sub);
  margin: 0 2rem 2rem;
}

/* 汎用インラインブロック（スマホでの自然な文節改行用） */
.inline-block {
  display: inline-block !important;
}

/* ドクター紹介ページ（doctor.html）のスマホ表示最適化 */
@media (max-width: 768px) {
  .doctor-profile-grid {
    gap: 2rem !important;
  }
  .doctor-profile-grid h2 {
    font-size: 1.8rem !important;
  }
  #faculty-team .card-body {
    padding: 2rem 1.25rem !important;
  }
  #faculty-team .grid-2 {
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
  .doctor-tabs-nav {
    gap: 0.5rem !important;
  }
  .doctor-tab-btn {
    font-size: 0.88rem !important;
    padding: 0.6rem 1rem !important;
  }
}

/* 治療の流れ（flow-price.html）ステップカード */
.flow-step-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-step-num {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(30, 77, 43, 0.2);
}

.flow-step-body {
  flex: 1;
  min-width: 0;
}

.flow-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.flow-step-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 768px) {
  .flow-step-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
  }
  .flow-step-num {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .flow-step-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }
  .flow-step-desc {
    font-size: 0.92rem;
    line-height: 1.8;
  }
}

/* 治療の流れ（flow-price.html）06番下のCTAボタン */
.flow-cta-wrap {
  text-align: center;
  margin-top: 3.5rem;
}

.flow-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  line-height: 1.4;
}

.flow-cta-sub {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .flow-cta-wrap {
    margin-top: 2.5rem;
  }
  .flow-cta-btn {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 0.98rem;
    flex-direction: column;
    gap: 0.25rem;
    white-space: normal !important;
    border-radius: var(--radius-md);
  }
  .flow-cta-sub {
    font-size: 0.8rem;
  }
}





/* ==========================================================================
   Semantic Mobile Typography & Phrasing Rules (Japanese Typography Architect)
   ========================================================================== */
.text-nowrap {
  white-space: nowrap !important;
  display: inline-block;
}

.phrase-block {
  display: inline-block;
}

/* Auto-phrase for modern browsers supporting semantic Japanese word wrapping */
.hero-front-content, .our-solution-box, .section-desc, .card-title, .card-text {
  word-break: auto-phrase;
}

@media (max-width: 768px) {
  /* Prevent badges from breaking container bounds on mobile */
  .badge-gold, .badge-green, .badge-orange {
    white-space: normal !important;
    line-height: 1.35 !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }
  
  /* OUR SOLUTION Mobile Layout Optimization (Wider reading space) */
  .our-solution-box {
    padding: 1.6rem 1rem !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }
  .our-solution-title {
    font-size: 1.25rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.8rem !important;
  }
  .our-solution-desc {
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1.2rem !important;
    text-align: left !important;
    padding: 0 0.2rem !important;
  }
  
  /* Doctor Profile Name on Mobile: Never break the name */
  .doctor-profile-name-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 0.4rem 0.8rem !important;
  }
  .doctor-main-name {
    font-size: 1.35rem !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
}
