/* ==========================================
   蕨セントラル整形外科 交通事故相談室LP
   style.css
   ========================================== */

/* ----- CSS VARIABLES ----- */
:root {
  --primary: #36b340;
  --primary-dark: #1e8a38;
  --primary-light: #e8f5e9;
  --cta-orange: #e67e22;
  --cta-orange-hover: #d35400;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #bdbdbd;
  --gray-600: #666666;
  --gray-700: #555555;
  --gray-800: #333333;
  --gray-900: #222222;
  --red: #d32f2f;
  --font-family: 'Noto Sans JP', sans-serif;
  --body-size: 18px;
  --heading-size: 32px;
  --line-height: 1.8;
  --container-max: 1200px;
  --header-height: 140px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-offset, 50px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

main {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.text-red {
  color: var(--red);
}

table {
  border-collapse: collapse;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h2, h3 {
  font-family: 'Noto Serif JP', serif;
}

h2 {
  font-weight: 400;
}

h3 {
  font-weight: 400;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* ----- UTILITY ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- FADE IN ANIMATION ----- */
.fade-slide-down {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-slide-down.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ステップ番号はカード登場の0.2秒後に降りてくる */
.flow-step__number.fade-slide-down {
  transition-delay: 0.2s;
}

/* Timeline bar - scroll driven (実要素で制御) */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left/right animation */
.fade-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-slide-down,
  .fade-slide-left,
  .fade-slide-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  padding: 2px 0;
  text-align: left;
  letter-spacing: 0.05em;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 1000;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: nowrap;
}

.header-logo {
  align-self: center;
}

.header-logo__img {
  width: clamp(300px, 26vw, 350px);
  height: auto;
}

.header-schedule {
  flex-shrink: 1;
}

.header-schedule table {
  font-size: clamp(13px, 1.1vw, 15px);
  border: 2px solid var(--primary);
  border-collapse: collapse;
  min-width: clamp(340px, 36vw, 480px);
}

.header-schedule thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
  padding: clamp(2px, 0.3vw, 4px) clamp(5px, 1vw, 14px);
  text-align: center;
  font-size: clamp(13px, 1.1vw, 15px);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid var(--primary);
}

.header-schedule thead th:last-child {
  border-right: none;
}

.header-schedule tbody td,
.header-schedule tbody .time-label {
  padding: clamp(2px, 0.3vw, 4px) clamp(5px, 1vw, 14px);
  text-align: center;
  border: 1px solid #c8d6c8;
  font-size: clamp(13px, 1.1vw, 15px);
}

/* 診療中の○をグリーンに */
.header-schedule tbody td:not(.time-label):not(.closed) {
  color: var(--primary);
  font-weight: 700;
}

.header-schedule .time-label {
  text-align: left;
  white-space: nowrap;
  font-weight: 500;
  font-size: clamp(13px, 1.1vw, 15px);
}

.header-schedule .closed {
  color: var(--red);
  font-weight: 700;
}

.header-schedule__notes {
  margin-top: 4px;
}

.header-schedule__notes p {
  font-size: clamp(11px, 0.85vw, 12px);
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0;
}

.header-contact {
  flex-shrink: 1;
}

.header-contact__label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  background: var(--cta-orange, #e67e22);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 10px;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.08em;
}

.header-contact__label strong {
  font-weight: 500;
  font-size: 15px;
}

.header-contact__row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-phone {
  font-size: 34px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: color var(--transition);
}

.header-phone:hover {
  color: #111;
}

.header-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.header-icon-circle svg {
  width: 16px;
  height: 16px;
}

.header-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--gray-600);
  text-decoration: none;
  margin-top: 8px;
  transition: color var(--transition);
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.header-address:hover {
  color: var(--primary);
}

.header-phone-sp,
.header-line-sp {
  display: none;
}

.header-access-sp {
  display: none;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  height: var(--hero-h, 100vh);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 24px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 8px 28px;
  border-radius: 40px;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.3);
  margin-bottom: 24px;
  max-width: 600px;
  word-break: keep-all;
}

/* PC/SP改行切り替え */
.sp-only { display: none; }
.pc-only { display: inline; }

.hero-phone a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta-orange);
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 60px;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(230,126,34,0.4);
}

.hero-phone a:hover {
  background: var(--cta-orange-hover);
  transform: translateY(-2px);
}

.hero-phone svg {
  width: 28px;
  height: 28px;
}

.hero-access {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  padding: 6px 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-access__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  white-space: nowrap;
}

.hero-access__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
  flex-shrink: 0;
}

.hero-access__icon svg {
  width: 20px;
  height: 20px;
}

.hero-access__text {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  word-break: keep-all;
}

.hero-access__text strong {
  font-weight: 700;
  color: var(--white);
}

.hero-access__divider {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.hero-dots__dot.is-active {
  background: var(--white);
  transform: scale(1.2);
}

.scroll-indicator {
  position: absolute;
  right: 24px;
  bottom: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.scroll-indicator__text {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  margin-bottom: 12px;
}

.scroll-indicator__line {
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  animation: scrollLine 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* ==========================================
   PAGE NAV
   ========================================== */
/* --- Page Nav: 共通 --- */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 999;
}

.page-nav .container {
  max-width: 100%;
  padding: 0;
}

.hamburger-btn {
  display: none;
}

.page-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.page-nav__list li {
  flex-shrink: 0;
  position: relative;
}

.page-nav__list .page-nav__dl {
  display: none;
}

.page-nav__list li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.page-nav__list li a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

/* --- パターン1: グリーン背景＋白文字 --- */
.page-nav--green {
  background: var(--primary);
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(30, 138, 56, 0.3);
}

.page-nav--green .page-nav__list li a {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.page-nav--green .page-nav__list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-nav--green .page-nav__list li a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.page-nav--green .page-nav__list li a:hover::after {
  width: 100%;
  left: 0;
}

/* --- 5+4 grid (tablet + narrow PC) --- */
@media (max-width: 1200px) and (min-width: 768px) {
  .page-nav__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .page-nav__list li a {
    text-align: center;
    padding: 10px 6px;
    font-size: 14px;
    border-bottom: none;
  }

  .page-nav__list li a::after {
    bottom: 0;
  }

  .page-nav__list .page-nav__dl {
    display: list-item;
  }

  .page-nav__list li + li::before {
    display: none;
  }

  /* green: grid時の区切り */
  .page-nav--green .page-nav__list li {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .page-nav--green .page-nav__list li:nth-child(5n) {
    border-right: none;
  }

  .page-nav--green .page-nav__list li:nth-child(n+6) {
    border-bottom: none;
  }

}

/* ==========================================
   SECTION HEADING
   ========================================== */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading .en-label {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  font-style: normal;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 20px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(32px, 3vw, 36px);
  color: var(--gray-900);
  line-height: 1.4;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-heading__sub {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-600);
  margin-top: 8px;
}

/* ==========================================
   REASONS - プレミアム交互レイアウト
   ========================================== */
.reasons {
  padding: 100px 0;
  background: linear-gradient(180deg, #f7f8f6 0%, #eef1eb 100%);
  position: relative;
  overflow: hidden;
}

/* --- Mobile (default) --- */
.reason-item {
  position: relative;
  margin-bottom: 56px;
}

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

/* 画像エリア */
.reason-item__image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.reason-item__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
}

.reason-item__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reason-item:hover .reason-item__image img {
  transform: scale(1.05);
}

/* POINT01: 先生（右寄り）にピントを寄せ、左前景の患者が入り込みにくいようトリミング */
.reason-item--point01 .reason-item__image img {
  object-position: 72% 38%;
  transform: scale(1.22);
  transform-origin: 68% 36%;
}

.reason-item--point01:hover .reason-item__image img {
  transform: scale(1.28);
}

/* POINT04: 画像を枠より大きくし translate で上下左右を調整（頭上に余白・患者顔は枠外） */
.reason-item--point04 .reason-item__image {
  aspect-ratio: 16 / 10;
}

.reason-item--point04 .reason-item__image img {
  position: absolute;
  aspect-ratio: unset;
  left: 50%;
  top: 50%;
  width: 136%;
  height: 136%;
  max-width: none;
  object-fit: cover;
  /* 右上寄せで左下の患者を外す。translate(-48%, -39%) が位置の目安 */
  object-position: 76% 14%;
  transform: translate(-48%, -39%);
  transition:
    width 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reason-item--point04:hover .reason-item__image img {
  width: 140%;
  height: 140%;
  transform: translate(-48%, -39%);
}

/* テキストエリア */
.reason-item__text {
  position: relative;
  padding: 28px 0 0;
}

/* --- POINT番号: プレミアムタイポグラフィ --- */
.reason-item__number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  pointer-events: none;
  user-select: none;
  margin-bottom: 14px;
}

.reason-item__number-label {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 20px;
}

.reason-item__number-num {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: rgba(54, 179, 64, 0.15);
  letter-spacing: 0.02em;
  line-height: 0.9;
}

/* コンテンツ部 */
.reason-item__content {
  position: relative;
}

/* タイトル */
.reason-item__title {
  font-size: 22px;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 0;
}

/* タイトル下のアクセントライン */
.reason-item__title-line {
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin: 14px 0 18px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reason-item:hover .reason-item__title-line {
  width: 64px;
}

/* 説明文 */
.reason-item__desc {
  font-size: 16px;
  line-height: 2;
  color: var(--gray-700);
  word-break: normal;
}

/* --- Tablet (768px+): 横並び交互レイアウト --- */
@media (min-width: 768px) {
  .reasons {
    padding: 120px 0;
  }

  .reason-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 88px;
  }

  /* 奇数アイテム(02, 04): 画像右 + テキスト左
     ※ .section-heading が child 1 のため、
     reason-item 01=child2(even), 02=child3(odd), 03=child4(even)...
     よって odd = POINT 02, 04 */
  .reason-item:nth-child(odd) .reason-item__image {
    order: 2;
  }
  .reason-item:nth-child(odd) .reason-item__text {
    order: 1;
  }

  /* 画像 */
  .reason-item__image {
    border-radius: 8px;
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.04),
      0 12px 40px rgba(0, 0, 0, 0.08);
  }

  .reason-item__image img {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }

  .reason-item--point04 .reason-item__image {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }

  .reason-item--point04 .reason-item__image img {
    aspect-ratio: unset;
    min-height: 0;
  }

  /* テキスト */
  .reason-item__text {
    padding: 32px 40px;
  }

  .reason-item__number {
    gap: 8px;
    margin-bottom: 16px;
  }

  .reason-item__number-num {
    font-size: 68px;
  }

  .reason-item__title {
    font-size: clamp(22px, 2.4vw, 26px);
  }

  .reason-item__title-line {
    margin: 16px 0 20px;
  }

  .reason-item__desc {
    font-size: 16px;
    line-height: 1.95;
  }
}

/* --- PC (1200px+): さらに洗練 --- */
@media (min-width: 1200px) {
  .reasons {
    padding: 140px 0;
  }

  .reason-item {
    grid-template-columns: 54% 46%;
    gap: 0;
    margin-bottom: 100px;
    position: relative;
  }

  .reason-item:nth-child(odd) {
    grid-template-columns: 46% 54%;
  }

  .reason-item__image {
    border-radius: 10px;
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.04),
      0 16px 48px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.5s ease;
  }

  .reason-item:hover .reason-item__image {
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.04),
      0 24px 64px rgba(0, 0, 0, 0.12);
  }

  .reason-item__image img {
    min-height: 380px;
    aspect-ratio: 3 / 2;
  }

  .reason-item--point04 .reason-item__image {
    aspect-ratio: 3 / 2;
    min-height: 380px;
  }

  .reason-item--point04 .reason-item__image img {
    min-height: 0;
    aspect-ratio: unset;
  }

  .reason-item__text {
    padding: 40px 56px 40px 64px;
  }

  .reason-item:nth-child(odd) .reason-item__text {
    padding: 40px 64px 40px 56px;
  }

  .reason-item__number {
    gap: 10px;
    margin-bottom: 20px;
  }

  .reason-item__number-label {
    font-size: 20px;
    letter-spacing: 0.1em;
  }

  .reason-item__number-num {
    font-size: 80px;
  }

  .reason-item__title {
    font-size: 26px;
  }

  .reason-item__title-line {
    width: 44px;
    height: 2px;
    margin: 18px 0 24px;
  }

  .reason-item:hover .reason-item__title-line {
    width: 72px;
  }

  .reason-item__desc {
    font-size: 17px;
    line-height: 2;
  }
}

/* ==========================================
   STRENGTHS
   ========================================== */
.strengths {
  padding: 80px 0;
  background: var(--primary-light);
}

.strength-item {
  margin-bottom: 48px;
}

.strength-item__inner {
  display: flex;
  gap: 40px;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.strength-item:nth-child(even) .strength-item__inner {
  flex-direction: row-reverse;
}

.strength-item__image {
  flex: 0 0 42%;
  overflow: hidden;
}

.strength-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.strength-item__image img[src^="images/insurance-support.jpg"] {
  object-position: center center;
  transform: scale(1.45);
  transform-origin: 50% 70%;
}

.strength-item__text {
  flex: 1;
  min-width: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.strength-item__title {
  font-size: clamp(22px, 2.5vw, 26px);
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.4;
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(54, 179, 64, 0.06) 0%, transparent 100%);
}

.strength-item__desc {
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray-700);
  word-break: normal;
}

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

.strength-item__checks li {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-dark);
  padding-left: 24px;
  position: relative;
  line-height: 1.8;
}

.strength-item__checks li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================
   DOCTOR PROFILE
   ========================================== */
.doctor {
  padding: 80px 0;
  background: var(--white);
}

.doctor__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.doctor__photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.doctor__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.doctor__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.4;
}

.doctor__name-title {
  display: inline-block;
  margin-left: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
}

.doctor__credentials {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--primary-light);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.doctor__credentials ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doctor__credentials li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}

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

.doctor__message p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 16px;
  word-break: normal;
}

.doctor__message p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   SYMPTOMS
   ========================================== */
.symptoms {
  padding: 80px 0;
  background: var(--gray-50);
}

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

.symptom-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.symptom-card:nth-child(2) { transition-delay: 0.2s; }
.symptom-card:nth-child(3) { transition-delay: 0.4s; }

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

.symptom-card__image {
  overflow: hidden;
}

.symptom-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.symptom-card:hover .symptom-card__image img {
  transform: scale(1.05);
}

/* 症状カード上段2枚: 先生中心にアップ、患者が極力映らないようトリミング */
.symptom-card__image--doctor-focus {
  position: relative;
  aspect-ratio: 4 / 3;
}

.symptom-card__image--doctor-focus img {
  position: absolute;
  aspect-ratio: unset;
  left: 50%;
  top: 50%;
  width: 138%;
  height: 138%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* whiplash-neck-treatment: 先生左・患者右 → 左寄せで右側をカット（全体が分かるよう138%より弱め） */
.symptom-card__image--doctor-focus-a img {
  width: 122%;
  height: 122%;
  object-position: 26% 46%;
  transform: translate(-42%, -47%);
}

.symptom-card:hover .symptom-card__image--doctor-focus-a img {
  transform: translate(-42%, -47%) scale(1.02);
}

/* headache-back-pain-treatment: 患者が右端 → やや左寄せで右をカット、モデル・手元を中心に */
.symptom-card__image--doctor-focus-b img {
  object-position: 34% 36%;
  transform: translate(-44%, -43%);
}

.symptom-card:hover .symptom-card__image--doctor-focus-b img {
  transform: translate(-44%, -43%) scale(1.03);
}

.symptom-card__body {
  padding: 24px;
}

.symptom-card__title {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.symptom-card__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  word-break: normal;
}

.symptom-card__checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
}

.symptom-card__checklist li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  padding: 4px 0 4px 28px;
  position: relative;
}

.symptom-card__checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cta-orange);
  border-radius: 3px;
}

.symptom-card__checklist li::after {
  content: '\2713';
  position: absolute;
  left: 3px;
  top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cta-orange);
}

.symptoms__note {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-dark);
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius);
}

/* ==========================================
   INSURANCE
   ========================================== */
.insurance {
  padding: 80px 0;
  background: var(--white);
}

.insurance__lead {
  text-align: left;
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray-700);
  max-width: 900px;
  margin: -24px auto 48px;
  word-break: normal;
}

.insurance__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.insurance-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.insurance-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.insurance-card__icon svg {
  width: 100%;
  height: 100%;
}

.insurance-card__title {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.insurance-card__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  text-align: left;
  word-break: normal;
}

/* ==========================================
   CALCULATOR
   ========================================== */
.calculator {
  padding: 80px 0;
  background: var(--primary-light);
}

.calculator__body {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}

.calculator__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calculator__field label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--gray-900);
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.calculator__field small {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.calculator__field input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--gray-50);
}

.calculator__field input[type="date"] {
  cursor: pointer;
  min-height: 48px;
}

.calculator__field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54, 179, 64, 0.12);
  background: var(--white);
}

.calculator__btn {
  width: 100%;
  padding: 18px;
  background: var(--cta-orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease, box-shadow var(--transition);
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
  letter-spacing: 0.04em;
}

.calculator__btn:hover {
  background: var(--cta-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

#calcResults.calculator__results {
  display: none !important;
  margin-top: 32px;
  gap: 16px;
}

#calcResults.calculator__results.is-visible {
  display: flex !important;
  flex-direction: column;
}

.calculator__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--white);
}

.calculator__result--jibaiseki {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.calculator__result--bengoshi {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.calculator__result-label {
  font-size: 15px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.calculator__result-amount {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
}

.calculator__diff {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--gray-50);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  text-align: center;
}

.calculator__diff-label {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.calculator__diff-amount {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: #e74c3c;
}

.calculator__detail {
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}

.calculator__detail h4 {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.calculator__detail-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px;
}

.calculator__detail p {
  display: block;
  margin: 0 0 0.65em;
}

.calculator__detail p:last-child {
  margin-bottom: 0;
}

.calculator__detail hr {
  border: none;
  border-top: 1px dashed var(--gray-200);
  margin: 12px 0;
}

.calculator__notes {
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border: 1px solid rgba(54, 179, 64, 0.15);
  align-self: stretch;
}

.calculator__notes p {
  font-size: 14px;
  color: var(--primary-dark);
  line-height: 1.8;
  padding-left: 1em;
  text-indent: -1em;
}

.calculator__notes-title {
  margin-bottom: 8px;
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
  padding: 80px 0;
  background: var(--gray-50);
}

.faq__list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-900);
  transition: background var(--transition);
  user-select: none;
  word-break: normal;
}

.faq-item__question > span:not(.faq-item__badge):not(.faq-item__toggle) {
  min-width: 0;
}

.faq-item__question:hover {
  background: var(--gray-50);
}

.faq-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item__toggle {
  margin-left: auto;
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  background: var(--gray-600);
  transition: transform var(--transition);
}

.faq-item__toggle::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__question[aria-expanded="true"] .faq-item__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item__answer-inner {
  padding: 0 24px 20px 72px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray-700);
  word-break: normal;
  position: relative;
}

.faq-item__answer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--cta-orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  position: absolute;
  left: 24px;
  top: 0;
}

/* ==========================================
   TRANSFER
   ========================================== */
.transfer {
  padding: 80px 0;
  background: var(--white);
}

.transfer__signs {
  background: #fff8f0;
  border: 2px solid var(--cta-orange);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 48px;
  text-align: center;
}

.transfer__signs-title {
  font-size: 32px;
  color: var(--cta-orange);
  margin-bottom: 20px;
}

.transfer__signs-list {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 20px;
}

.transfer__signs-list li {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-800);
  padding-left: 32px;
  position: relative;
}

.transfer__signs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--cta-orange);
  border-radius: 50%;
}

.transfer__signs-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

.transfer__signs-cta {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.transfer__parallel {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 48px;
}

.transfer__parallel-title {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.transfer__signs-lead {
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 20px;
  word-break: normal;
}

.transfer__parallel-desc {
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray-700);
  word-break: normal;
  margin-bottom: 24px;
}

.transfer__roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.transfer__role {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.transfer__role h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.transfer__role ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.transfer__role li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}

.transfer__role li::before {
  content: '\30FB';
  position: absolute;
  left: 0;
}

.transfer__parallel-note {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-top: 20px;
}

.transfer__comparison-title {
  font-size: clamp(20px, 5.5vw, 32px);
  color: var(--gray-900);
  margin-bottom: 20px;
  text-align: center;
  white-space: nowrap;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  width: 100%;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border: 1px solid var(--gray-200);
  font-size: 16px;
  table-layout: fixed;
}

.comparison-table thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
}

.comparison-table thead th:first-child {
  background: var(--gray-100);
  color: var(--gray-800);
  width: 25%;
}

.comparison-table thead th:nth-child(2) {
  width: 45%;
}

.comparison-table thead th:nth-child(3) {
  width: 30%;
}

.comparison-table tbody th {
  background: var(--gray-50);
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--gray-200);
}

.comparison-table tbody td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.col-seikei {
  background: var(--primary-light);
}

.mark-o {
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}

.mark-x {
  color: var(--red);
  font-weight: 700;
  font-size: 20px;
}

.mark-triangle {
  color: var(--cta-orange);
  font-weight: 700;
  font-size: 20px;
}

.table-sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.4;
}

.transfer__comparison-note {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  background: var(--gray-50);
  padding: 24px;
  border-radius: var(--radius);
  word-break: normal;
}

/* ==========================================
   FLOW
   ========================================== */
.flow {
  padding: 80px 0;
  background: var(--primary-light);
}

/* --- Flow: Mobile (default) --- */
.flow__timeline {
  position: relative;
  padding-left: 0;
}

/* 縦線（左側）- ::before は非表示、実要素で制御 */
.flow__timeline::before {
  display: none;
}

.flow__timeline-bar {
  position: absolute;
  top: 26px;
  left: 24px;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark, #1e8e3a));
  border-radius: 2px;
  z-index: 0;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 14px;
  align-items: start;
  margin-bottom: 32px;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-step__number {
  position: static;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  z-index: 3;
  line-height: 1;
  grid-column: 1;
  grid-row: 1;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(40, 166, 69, 0.35);
}

.flow-step__number::before {
  content: 'STEP';
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1px;
}

.flow-step__label {
  display: none;
}

/* 最初のステップ：丸より上の縦線を隠す（不要だがリセット） */
.flow-step:first-child::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  height: 0;
  width: 6px;
  background: var(--primary-light);
  z-index: 1;
}

/* 最後のステップ：丸より下の縦線を隠す */
.flow-step:last-child::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 52px;
  bottom: 0;
  width: 6px;
  background: var(--primary-light);
  z-index: 1;
}

.flow-step__card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 0;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
}

.flow-step__image {
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.flow-step__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.flow-step--doctor-focus .flow-step__image img {
  object-position: 72% 38%;
  transform: scale(1.22);
  transform-origin: 68% 36%;
}

.flow-step__body {
  display: block;
  min-width: 0;
  padding: 16px;
  position: relative;
  z-index: 4;
}

.flow-step__title {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.flow-step__desc {
  font-size: 16px;
  line-height: 2;
  color: var(--gray-700);
  word-break: normal;
}

.flow-step__line-link {
  color: #06C755;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #06C755;
}

.flow-step__line-link:hover {
  opacity: 0.8;
}

/* --- Flow: Tablet (768〜1199px) --- */
@media (min-width: 768px) and (max-width: 1199px) {
  .flow__timeline {
    padding-left: 0;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
  }

  /* 縦線（左側・最初の丸中心〜最後の丸中心） */
  .flow__timeline::before {
    display: none;
  }

  .flow__timeline-bar {
    left: 32px;
    top: 32px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark, #1e8e3a) 100%);
    border-radius: 2px;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 0 20px;
    align-items: start;
    margin-bottom: 40px;
    position: relative;
  }

  /* STEP番号：常に左列・カード中央 */
  .flow-step__number {
    position: static;
    width: 64px;
    height: 64px;
    font-size: 22px;
    grid-column: 1;
    grid-row: 1;
    margin: 0 auto;
    transform: none;
    flex-direction: column;
    gap: 0;
    line-height: 1;
    z-index: 3;
    border: none;
    box-shadow: 0 6px 24px rgba(40, 166, 69, 0.3);
  }

  .flow-step__number::before {
    content: 'STEP';
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2px;
  }

  /* カード：常に右列 */
  .flow-step__card {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }

  /* 最初のステップ：丸より上の縦線を隠す（不要だが念のためリセット） */
  .flow-step:first-child::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 0;
    width: 8px;
    background: var(--primary-light);
    z-index: 1;
  }

  /* 最後のステップ：丸より下の縦線を隠す */
  .flow-step:last-child::after {
    display: block;
    content: '';
    position: absolute;
    left: 30px;
    right: auto;
    top: 64px;
    bottom: 0;
    width: 8px;
    background: var(--primary-light);
    z-index: 1;
  }

  .flow-step__image {
    margin-bottom: 0;
    border-radius: 0;
  }

  .flow-step__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }

  .flow-step__body {
    padding: 20px 24px;
  }
}

/* --- Flow: PC (1200px+) ワイドジグザグ --- */
@media (min-width: 1200px) {
  #flow > .container {
    max-width: 1300px;
  }

  .flow__timeline {
    padding-left: 0;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
  }

  .flow__timeline::before {
    display: none;
  }

  .flow__timeline-bar {
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    top: 186px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark, #1e8e3a) 100%);
  }

  .flow-step {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0 20px;
    align-items: start;
    margin-bottom: 0;
  }

  .flow-step + .flow-step {
    margin-top: -140px;
  }

  .flow-step__number {
    position: static;
    width: 72px;
    height: 72px;
    font-size: 20px;
    margin: 150px auto 0;
    grid-column: 2;
    grid-row: 1;
    box-shadow: 0 6px 24px rgba(40, 166, 69, 0.3);
    border: none;
    flex-direction: column;
    gap: 0;
    line-height: 1;
  }

  .flow-step__number::before {
    content: 'STEP';
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2px;
  }

  .flow-step__number.fade-slide-down.is-visible {
    transform: translateY(0) scale(1.1);
    box-shadow: 0 8px 32px rgba(40, 166, 69, 0.4);
  }

  .flow-step--left .flow-step__card {
    grid-column: 1;
    grid-row: 1;
  }

  .flow-step--right .flow-step__card {
    grid-column: 3;
    grid-row: 1;
  }

  .flow-step__card {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 5;
  }

  .flow-step__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  }

  .flow-step__image {
    margin-bottom: 0;
    border-radius: 0;
  }

  .flow-step__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }

  .flow-step__body {
    padding: 24px 28px;
  }

  .flow-step:last-child::after {
    display: block;
    left: 50%;
    transform: translateX(-50%);
    top: 186px;
    width: 4px;
  }

  .flow-step__label {
    display: none;
  }

  .flow-step__title {
    font-size: 22px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
  }

  .flow-step__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
  }

  .flow-step__desc {
    font-size: 16px;
    line-height: 1.9;
  }
}

/* --- Flow: Checklist --- */
.flow__checklist {
  margin-top: 56px;
  background: var(--white);
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.flow__checklist-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  text-align: center;
}

.flow__checklist-lead {
  font-size: 16px;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 20px;
}

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

.flow__checklist-list li {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-800);
  padding: 10px 0 10px 36px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}

.flow__checklist-list li:last-child {
  border-bottom: none;
}

.flow__checklist-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--white);
}

.flow__checklist-list li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 19px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.flow__note {
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   FACILITY
   ========================================== */
.facility {
  padding: 80px 0;
  background: var(--white);
}

.facility-slider {
  position: relative;
  overflow: hidden;
}

.facility-slider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}

.facility-slider__track::-webkit-scrollbar {
  display: none;
}

.facility-slider__item {
  flex: 0 0 280px;
  scroll-snap-align: center;
}

.facility-slider__item img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facility-slider__item--reception .facility-slider__item-photo {
  position: relative;
  width: 280px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facility-slider__item--reception .facility-slider__item-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  border-radius: 0;
  box-shadow: none;
}

.facility-slider__item-label {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
  margin-top: 10px;
}

.facility-slider__btn {
  position: absolute;
  top: calc(8px + 100px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--transition), transform var(--transition);
}

.facility-slider__btn:hover {
  background: var(--gray-50);
}

.facility-slider__btn svg {
  width: 24px;
  height: 24px;
  fill: var(--gray-800);
}

.facility-slider__btn--prev {
  left: 0;
}

.facility-slider__btn--next {
  right: 0;
}

/* --- Facility: タブレット 2列グリッド --- */
@media (min-width: 768px) and (max-width: 1199px) {
  .facility-slider {
    overflow: visible;
  }

  .facility-slider__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    overflow: visible;
    padding: 8px 0;
  }

  .facility-slider__item {
    flex: none;
  }

  .facility-slider__item img {
    width: 100%;
    height: 220px;
  }

  .facility-slider__item--reception .facility-slider__item-photo {
    width: 100%;
    height: 220px;
  }

  .facility-slider__btn {
    display: none;
  }
}

/* --- Facility: PC 3列×2段グリッド --- */
@media (min-width: 1200px) {
  .facility-slider {
    overflow: visible;
  }

  .facility-slider__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    padding: 8px 0;
  }

  .facility-slider__item {
    flex: none;
  }

  .facility-slider__item img {
    width: 100%;
    height: 220px;
  }

  .facility-slider__item--reception .facility-slider__item-photo {
    width: 100%;
    height: 220px;
  }

  .facility-slider__btn {
    display: none;
  }

  .access__schedule-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .access__schedule-table {
    font-size: 16px;
    min-width: 540px;
  }

  .access__schedule-table thead th:first-child {
    width: 36%;
  }

  .access__schedule-table thead th {
    padding: 10px 8px;
  }

  .access__schedule-table tbody td {
    padding: 12px 8px;
  }
}

/* ==========================================
   ACCESS
   ========================================== */
.access {
  padding: 80px 0;
  background: var(--gray-50);
}

.access__map {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.access__map iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.access__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.access__map-info {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.access__clinic-name {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.access__info-table {
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
}

.access__info-table th {
  padding: 14px 16px;
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);
  width: 110px;
}

.access__info-table td {
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
}

.access__tel {
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 400;
}

.access__schedule-title {
  font-size: 22px;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.access__schedule-table {
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
  table-layout: fixed;
}

.access__schedule-table thead th:first-child {
  width: 30%;
}

.access__schedule-table thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
  padding: 12px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.access__schedule-table tbody td {
  padding: 14px 16px;
  text-align: center;
  border: 1px solid var(--gray-200);
  font-size: 16px;
}

.access__schedule-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.access__schedule-table .time-label {
  text-align: center;
  font-weight: 600;
  background: var(--gray-100);
}

.access__schedule-table .closed {
  color: var(--red);
  font-weight: 700;
}

.access__schedule-note-top {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.access__schedule-note {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
}

.access__parking-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  text-align: center;
}

.access__parking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.access__parking-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.access__parking-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.access__parking-grid figcaption {
  text-align: center;
  padding: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
}

/* ==========================================
   IMAGE LIGHTBOX
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox__body {
  transform: scale(1);
}

.lightbox__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.lightbox__row.lightbox__row--reception {
  width: min(92vw, 800px);
  aspect-ratio: 800 / 533;
  overflow: hidden;
}

.lightbox__row.lightbox__row--reception > img.lightbox__img--reception-crop {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

@media (orientation: landscape) {
  .lightbox img {
    width: auto;
    max-height: 70vh;
  }

  .lightbox__row.lightbox__row--reception > img.lightbox__img--reception-crop {
    width: 100%;
    height: 100%;
    max-height: none;
    object-position: center center;
    transform: none;
  }
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox__nav-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
}

.lightbox__nav {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.4);
}

.lightbox__nav svg {
  width: 28px;
  height: 28px;
}

.lightbox__caption {
  text-align: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  margin-top: 12px;
}

.facility-slider__item {
  cursor: zoom-in;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 48px 24px 32px;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__clinic-name {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--white);
}

.footer__address {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer__tel {
  font-size: 16px;
}

.footer__tel a {
  color: var(--white);
}

.footer__line {
  font-size: 16px;
  margin-top: 8px;
}

.footer__line a {
  color: var(--white);
  transition: opacity var(--transition);
}

.footer__line a:hover {
  opacity: 0.8;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li a {
  display: block;
  padding: 6px 0;
  font-size: 16px;
  color: var(--white);
  transition: opacity var(--transition);
}

.footer__col li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer__col--logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer__logo {
  width: clamp(200px, 20vw, 300px);
  height: auto;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 0;
}

.footer__copyright {
  font-size: 16px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.footer__official {
  font-size: 16px;
  margin-top: 12px;
}

.footer__official a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.footer__official a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.footer__official-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* ==========================================
   FIXED CTA BAR (SP)
   ========================================== */
.fixed-cta-bar {
  display: none;
  position: fixed;
  /* 画面最下端より少し下まで伸ばし、隙間を完全に塞ぐ */
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--primary);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.fixed-cta-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.fixed-cta-bar__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.fixed-cta-bar__btn--calc {
  background: #2980b9;
}

.fixed-cta-bar__btn--phone {
  background: var(--cta-orange);
}

.fixed-cta-bar__btn--schedule {
  background: var(--primary);
}

.fixed-cta-bar__btn--dl {
  background: var(--gray-700);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 100;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

/* ==========================================
   SIDE NAV (PC - floating right)
   ========================================== */
.side-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
}

/* サイドナビ受付時間ポップアップ */
.side-nav__schedule-wrap {
  position: relative;
  margin-right: -4px;
  transition: margin var(--transition);
  display: none;
}

.side-nav__schedule-wrap.is-visible {
  display: list-item;
}

.side-nav__schedule-wrap:hover {
  margin-right: 0;
  margin-left: -8px;
}

.side-nav__schedule-wrap button.side-nav__item {
  border: none;
  cursor: pointer;
  width: 100%;
  margin-right: 0;
}

.side-nav__schedule-wrap button.side-nav__item:hover {
  margin-right: 0;
  margin-left: 0;
}

.side-nav__schedule-popup {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 12px 12px 12px 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1003;
}

.side-nav__schedule-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.side-nav__schedule-popup table {
  border-collapse: collapse;
  font-size: 13px;
  border: 2px solid var(--primary);
  white-space: nowrap;
}

.side-nav__schedule-popup thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
  padding: 4px 8px;
  text-align: center;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.side-nav__schedule-popup thead th:last-child {
  border-right: none;
}

.side-nav__schedule-popup tbody td {
  padding: 4px 8px;
  text-align: center;
  border: 1px solid #c8d6c8;
  font-size: 13px;
}

.side-nav__schedule-popup tbody td:not(.time-label):not(.closed) {
  color: var(--primary);
  font-weight: 700;
}

.side-nav__schedule-popup .time-label {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.side-nav__schedule-popup .closed {
  color: var(--red);
  font-weight: 700;
}

.side-nav__schedule-close {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}

.side-nav__schedule-close:hover {
  background: #f0f0f0;
  color: #333;
}

.side-nav__schedule-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

.side-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav__item {
  display: flex;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px 0 0 8px;
  overflow: visible;
  text-decoration: none;
  margin-right: -4px;
  transition: background var(--transition), box-shadow var(--transition), margin var(--transition);
}

.side-nav__item:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(40, 166, 69, 0.5);
  margin-right: 0;
  margin-left: -8px;
}

.side-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.side-nav__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.side-nav__label {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  padding-right: 0;
  transition: max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              padding 0.6s ease;
}

/* サイドナビ全体にホバーで全ラベル表示 */
.side-nav:hover .side-nav__label {
  max-width: 120px;
  opacity: 1;
  padding-right: 16px;
}

/* DLボタン: パルスドット */
.side-nav__item--dl {
  position: relative;
  overflow: visible;
}

/* DLボタン: 吹き出しヒント（初回のみ表示） */
.side-nav__item--dl::before {
  content: '問診表はこちら';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--cta-orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  animation: dlBalloonOnce 4s ease-in-out 1s forwards;
}

.side-nav__item--dl::after {
  content: '';
  position: absolute;
  right: calc(100% - 3px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: var(--cta-orange);
  opacity: 0;
  pointer-events: none;
  animation: dlBalloonOnce 4s ease-in-out 1s forwards;
}

@keyframes dlBalloonOnce {
  0% { opacity: 0; transform: translateY(-50%) translateX(16px); }
  10% { opacity: 1; transform: translateY(-50%) translateX(0); }
  15% { opacity: 1; transform: translateY(-50%) translateX(4px); }
  20% { opacity: 1; transform: translateY(-50%) translateX(0); }
  25% { opacity: 1; transform: translateY(-50%) translateX(3px); }
  30% { opacity: 1; transform: translateY(-50%) translateX(0); }
  35% { opacity: 1; transform: translateY(-50%) translateX(2px); }
  40% { opacity: 1; transform: translateY(-50%) translateX(0); }
  75% { opacity: 1; transform: translateY(-50%) translateX(0); }
  100% { opacity: 0; transform: translateY(-50%) translateX(16px); }
}

/* 受付時間: タブレットのみ表示、PCでは非表示 */
.side-nav__tablet-only {
  display: none;
}

/* ==========================================
   HEADER HAMBURGER (hidden on PC)
   ========================================== */
.header-hamburger {
  display: none;
}

/* ==========================================
   DRAWER MENU (hidden on PC)
   ========================================== */
.drawer-overlay {
  display: none;
}

.drawer-menu {
  display: none;
}

/* ==========================================
   RESPONSIVE: COMPACT DESKTOP (1200px - 1360px)
   ========================================== */
@media (min-width: 1200px) and (max-width: 1360px) {
  .header-inner {
    gap: 12px;
    padding-right: 60px;
  }

  .header-logo__img {
    width: 300px;
  }

  /* テーブルはclamp()で自動縮小するため個別指定不要 */

  .header-contact__label {
    font-size: 15px;
    padding: 5px 12px;
  }

  .header-address {
    font-size: 15px;
  }

  .header-phone {
    font-size: 30px;
  }
}

/* ==========================================
   RESPONSIVE: TABLET (768px - 1199px)
   ========================================== */
@media (max-width: 1199px) {
  /* ヘッダー: 診療時間非表示、ロゴ左＋電話右の横並び */
  .header-schedule {
    display: none;
  }

  .header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .header-logo {
    flex-shrink: 0;
  }

  .header-logo__img {
    width: 300px;
  }

  .header-contact {
    flex-shrink: 0;
    text-align: right;
  }

  .header-phone {
    font-size: clamp(24px, 2.8vw, 30px);
  }

  .side-nav__tablet-only {
    display: list-item;
  }

  /* Page nav: タブレット時 */
  .page-nav__list li a {
    padding: 8px 12px;
    font-size: 16px;
  }

  /* コンテンツ系 */
  .strength-item__inner {
    flex-direction: column !important;
    gap: 0;
  }

  .strength-item__image {
    flex: none;
    width: 100%;
  }

  .strength-item__image img {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .strength-item:nth-child(2) .strength-item__image img {
    transform: scale(1.25);
    transform-origin: 25% 25%;
  }

  .symptoms__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Doctor tablet */
  .doctor__content {
    gap: 36px;
  }

  /* Access: タブレット時も1段表示 */
  .access__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Footer: ロゴ非表示・3列 */
  .footer__col--logo {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* --- 受付時間: 1024px以上ではなるべく表示 --- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-inner {
    align-items: flex-start;
    gap: 10px;
    padding-right: 56px;
  }

  .header-logo {
    align-self: center;
  }

  .header-logo__img {
    width: 300px;
  }

  .header-schedule {
    display: block;
    flex-shrink: 1;
    overflow: hidden;
  }

  /* テーブルはclamp()で自動縮小するため個別指定不要 */

  .header-contact__label {
    font-size: 15px;
    padding: 4px 10px;
    letter-spacing: 0.04em;
  }

  .header-phone {
    font-size: 28px;
  }

  .header-address {
    font-size: 14px;
    white-space: normal;
  }

  .header-icon-circle {
    width: 32px;
    height: 32px;
  }

  .header-icon-circle svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================
   RESPONSIVE: MOBILE (767px and below)
   ========================================== */
@media (max-width: 767px) {
  :root {
    --body-size: 16px;
    --heading-size: 26px;
  }

  .container {
    padding: 0 16px;
  }

  /* Top bar - hidden on mobile */
  .top-bar {
    display: none;
  }

  /* Header */
  .header-inner {
    position: relative;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    min-height: 36px;
  }

  .header-logo {
    flex: 0 0 auto;
    margin: 0;
  }

  .header-logo__img {
    width: min(200px, calc(100vw - 176px));
  }

  .header-schedule,
  .header-contact {
    display: none;
  }

  .header-line-sp {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #06C755;
    border-radius: 8px;
  }

  .header-line-sp__icon {
    width: 26px;
    height: 26px;
  }

  .header-access-sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
  }

  .header-access-sp svg {
    width: 20px;
    height: 20px;
  }

  .header-access-sp span {
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    margin-top: 1px;
  }

  .header-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }

  .header-hamburger__icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
  }

  .header-hamburger__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .header-hamburger.is-active .header-hamburger__icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .header-hamburger.is-active .header-hamburger__icon span:nth-child(2) {
    opacity: 0;
  }

  .header-hamburger.is-active .header-hamburger__icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
  }

  /* ドロワー展開中はstickyが効かないのでfixedに切替 */
  .site-header.is-drawer-open {
    position: fixed;
    left: 0;
    width: 100%;
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Hero - ヘッダー分だけ引いてぴったり表示（CTAバーは最初非表示） */
  .hero {
    height: calc(100vh - 36px);
    height: calc(100dvh - 36px);
    height: var(--hero-h, calc(100dvh - 36px));
  }


  /* SP: スライド画像ズームエフェクト（CSS=拡大状態、JS=縮小トランジション） */
  .hero-slide img {
    will-change: transform;
    transform: scale(1.2);
    transition: transform 30s ease-out;
  }

  .hero-slide:nth-child(1) img { object-position: 70% center; }
  .hero-slide:nth-child(2) img { object-position: 60% center; }
  .hero-slide:nth-child(3) img { object-position: 30% center; }
  .hero-slide:nth-child(4) img { object-position: center center; }
  .hero-slide:nth-child(5) img { object-position: 55% center; }

  /* .is-active img のzoom解除はJSで制御（初回フラッシュ防止） */

  .scroll-indicator {
    display: flex;
  }

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

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-phone a {
    font-size: 22px;
    padding: 12px 28px;
  }

  .hero-access {
    flex-direction: column;
    gap: 0;
    bottom: 56px;
    border-radius: 16px;
    padding: 4px 6px;
  }

  .hero-access__item {
    padding: 7px 14px;
    gap: 8px;
  }

  .hero-access__icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .hero-access__icon svg {
    width: 18px;
    height: 18px;
  }

  .hero-access__text {
    font-size: 16px;
  }

  .hero-access__divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
  }

  /* Page nav - hidden on mobile (replaced by drawer) */
  .page-nav {
    display: none;
  }

  /* Sections */
  .reasons,
  .strengths,
  .doctor,
  .symptoms,
  .insurance,
  .faq,
  .transfer,
  .flow,
  .facility,
  .access {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 24px;
    letter-spacing: 0;
  }

  /* Reasons */
  .reasons {
    padding: 64px 0;
  }

  .reason-item {
    margin-bottom: 44px;
  }

  .reason-item__image {
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .reason-item__text {
    padding: 24px 2px 0;
  }

  .reason-item__number {
    gap: 5px;
    margin-bottom: 10px;
  }

  .reason-item__number-label {
    font-size: 18px;
    letter-spacing: 0.1em;
    font-weight: 300;
  }

  .reason-item__number-num {
    font-size: 48px;
  }

  .reason-item__title {
    font-size: 20px;
  }

  .reason-item__title-line {
    width: 32px;
    height: 2px;
    margin: 12px 0 14px;
  }

  .reason-item__desc {
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: break-word;
  }

  /* Strengths */
  .strength-item__inner {
    flex-direction: column !important;
  }

  .strength-item__image {
    width: 100%;
    flex: none;
  }

  .strength-item__image img {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }

  .strength-item__text {
    padding: 24px;
  }

  .strength-item__title {
    font-size: 20px;
  }

  .strength-item__desc {
    font-size: 16px;
  }

  .strength-item__checks {
    flex-direction: column;
    gap: 4px;
  }

  /* Doctor */
  .doctor {
    padding: 56px 0;
  }

  .doctor__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .doctor__photo {
    max-width: 400px;
    margin: 0 auto;
  }

  .doctor__name {
    font-size: 20px;
    text-align: center;
  }

  .doctor__name-title {
    font-size: 16px;
  }

  .doctor__credentials {
    padding: 16px 20px;
  }

  .doctor__credentials li {
    font-size: 16px;
  }

  .doctor__message p {
    font-size: 16px;
  }

  /* Flow checklist */
  .flow__checklist {
    margin-top: 40px;
    padding: 28px 24px;
  }

  .flow__checklist-title {
    font-size: 20px;
  }

  .flow__checklist-list li {
    font-size: 16px;
  }

  /* Symptoms */
  .symptoms__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .symptom-card__image img {
    aspect-ratio: 3 / 2;
  }

  .symptom-card__image--doctor-focus {
    aspect-ratio: 3 / 2;
  }

  .symptom-card__image--doctor-focus img {
    aspect-ratio: unset;
    min-height: 0;
  }

  .symptom-card__body {
    padding: 20px;
  }

  /* Insurance */
  .insurance__grid {
    grid-template-columns: 1fr;
  }

  .insurance__lead {
    font-size: 16px;
    margin-bottom: 32px;
  }

  /* Calculator */
  .calculator {
    padding: 48px 0;
  }

  .calculator__body {
    padding: 24px 16px;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .calculator__field input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
  }

  /* FAQ */
  .faq-item__question {
    padding: 16px;
    font-size: 16px;
  }

  .faq-item__answer-inner {
    padding: 0 16px 16px 60px;
    font-size: 16px;
  }

  .faq-item__answer-badge {
    left: 16px;
  }

  /* Transfer */
  .transfer__signs {
    padding: 20px 16px;
  }

  .transfer__signs-title {
    font-size: 20px;
  }

  .transfer__signs-list {
    display: flex;
    width: 100%;
  }

  .transfer__signs-list li {
    font-size: 16px;
    padding-left: 28px;
    overflow-wrap: break-word;
  }

  .transfer__signs-lead {
    text-align: left;
  }

  .transfer__signs-cta {
    font-size: 16px;
    overflow-wrap: break-word;
    text-align: left;
  }

  .transfer__parallel {
    padding: 24px;
  }

  .transfer__parallel-title {
    font-size: 20px;
  }

  .transfer__parallel-desc {
    font-size: 16px;
  }

  .transfer__roles {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .transfer__role {
    padding: 16px;
  }

  .transfer__role h4 {
    font-size: 16px;
  }

  .comparison-table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 520px;
    font-size: 16px;
  }

  .comparison-table thead th {
    padding: 10px 8px;
  }

  .comparison-table thead th:first-child {
    width: 110px;
  }

  .comparison-table tbody th {
    padding: 8px 8px;
    font-size: 16px;
  }

  .comparison-table tbody td {
    padding: 8px 8px;
    font-size: 16px;
  }

  .transfer__comparison-note {
    font-size: 16px;
    padding: 16px;
  }

  /* Access schedule table */
  .access__schedule-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
  }

  .access__schedule-table {
    font-size: 16px;
    min-width: 540px;
  }

  .access__schedule-table thead th:first-child {
    width: 35%;
  }

  .access__schedule-table thead th {
    padding: 10px 6px;
  }

  .access__schedule-table tbody td {
    padding: 10px 6px;
  }

  .access__schedule-table .time-label {
    font-size: 16px;
    white-space: nowrap;
  }

  /* Facility */
  .facility-slider {
    overflow: hidden;
  }

  .facility-slider__btn {
    top: calc(8px + 90px);
  }

  .facility-slider__track {
    display: flex;
    overflow-x: auto;
    grid-template-columns: none;
    padding: 8px 0;
    padding-left: calc((100vw - 260px) / 2);
    padding-right: calc((100vw - 260px) / 2);
    scroll-snap-type: x mandatory;
  }

  .facility-slider__item {
    flex: 0 0 260px;
    scroll-snap-align: center;
  }

  .facility-slider__item img {
    width: 260px;
    height: 180px;
  }

  .facility-slider__item--reception .facility-slider__item-photo {
    width: 260px;
    height: 180px;
  }

  /* Access */
  .access__map iframe {
    height: 280px;
  }

  .access__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .access__content > div {
    min-width: 0;
  }

  .access__info-table th,
  .access__info-table td {
    padding: 10px 12px;
    font-size: 16px;
  }

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

  .access__parking-grid img {
    height: 180px;
  }

  /* Footer */
  .footer {
    padding: 40px 16px 90px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer__col--info {
    order: 0;
  }

  .footer__col--nav1 {
    order: 1;
    padding-bottom: 0;
    margin-bottom: -24px;
  }

  .footer__col--nav2 {
    order: 2;
  }

  .footer__clinic-name {
    font-size: 20px;
  }

  /* Fixed CTA bar - 3等分 */
  .fixed-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .fixed-cta-bar.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Back to top adjust */
  .back-to-top {
    right: 16px;
    width: 52px;
    height: 52px;
    bottom: 16px;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  /* Drawer overlay */
  .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer menu - 上から下にフェード */
  .drawer-menu {
    display: block;
    position: fixed;
    top: var(--header-h, 36px);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-h, 36px));
    max-height: calc(100dvh - var(--header-h, 36px));
    background: var(--primary);
    z-index: 1006;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 24px 20px;
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.35s ease;
  }

  .drawer-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .drawer-menu__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .drawer-menu__nav li a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: opacity 0.3s ease;
  }

  .drawer-menu__nav li a:hover {
    opacity: 0.7;
  }

  .drawer-menu__dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.35);
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .drawer-menu__dl:hover {
    background: rgba(255,255,255,0.25);
  }

  .drawer-menu__dl svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  /* Side nav - SP非表示（固定CTAバーがあるため） */
  .side-nav {
    display: none;
  }
}

/* ==========================================
   RESPONSIVE: SMALL MOBILE (375px and below)
   ========================================== */
@media (max-width: 400px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-phone a {
    font-size: 20px;
    padding: 10px 24px;
  }

  .hero-badge {
    font-size: 16px;
    padding: 6px 20px;
  }

}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .fixed-cta-bar,
  .back-to-top,
  .hero-dots,
  .scroll-indicator,
  .page-nav,
  .side-nav,
  .drawer-overlay,
  .drawer-menu {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
