/* ============================================================
   自費診療専門クリニック — メインスタイル
   公開・プレビュー両環境で完全一致するよう設計
   ============================================================ */

/* --- CSS 変数 --- */
:root {
  --nav-w: 200px;          /* 左ナビ幅 */
  --c-primary:   #3a5f8a;
  --c-dark:      #2a4a6f;
  --c-accent:    #9b8ec4;
  --c-accent-lt: #c4b5e8;
  --c-pink:      #d4a0c0;
  --c-text:      #333;
  --c-mid:       #555;
  --c-light:     #777;
  --c-white:     #fff;
  --c-bg:        #f8f9fc;
  --c-border:    #e8e8e8;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --ease: all 0.3s ease;
  --sh:  0 2px 12px rgba(0,0,0,.08);
  --shm: 0 4px 20px rgba(0,0,0,.12);
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--ease); }
ul, ol { list-style: none; }

/* ============================================================
   ローディング
   ============================================================ */
#loader-container {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader-container.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader { text-align: center; }
.loading-logo-img {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
}
.loading-logo  { font-size: 1rem; font-weight: 700; color: var(--c-dark); letter-spacing: .1em; margin-bottom: 4px; }
.loading-en    { font-size: .65rem; font-family: var(--font-en); color: var(--c-accent); letter-spacing: .2em; margin-bottom: 20px; }
.loading-dots  { display: flex; gap: 6px; justify-content: center; }
.loading-dots span {
  width: 8px; height: 8px; background: var(--c-accent); border-radius: 50%;
  animation: dotPulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotPulse {
  0%,80%,100% { transform: scale(.6); opacity: .4; }
  40%          { transform: scale(1);  opacity: 1;  }
}

/* ============================================================
   左固定ナビゲーション（PC）
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--nav-w); z-index: 1000;
  background: var(--c-white);
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column;
  padding: 32px 0;
}
.header-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.header-logo a    { display: flex; flex-direction: column; gap: 2px; }
.header-logo .ja  { font-size: .82rem; font-weight: 700; color: var(--c-dark); line-height: 1.3; }
.header-logo .en  { font-size: .55rem; font-family: var(--font-en); color: var(--c-accent); letter-spacing: .15em; }
.header-logo .subtitle { font-size: .52rem; color: var(--c-light); margin-top: 2px; }

.gnav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.header-nav { display: flex; flex-direction: column; }
.header-nav li a {
  display: flex; flex-direction: column;
  padding: 9px 20px;
  font-size: .72rem; color: var(--c-text);
  border-left: 3px solid transparent;
  line-height: 1.3; transition: var(--ease);
}
.header-nav li a .ja  { font-weight: 500; }
.header-nav li a .en  { font-size: .58rem; font-family: var(--font-en); color: var(--c-light); letter-spacing: .1em; margin-top: 2px; }
.header-nav li a:hover,
.header-nav li a.active {
  color: var(--c-primary);
  border-left-color: var(--c-accent);
  background: rgba(155,142,196,.06);
}
.header-nav li a:hover .en,
.header-nav li a.active .en { color: var(--c-accent); }

.header-info-box {
  margin-top: auto; padding: 14px 20px 0;
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
}
.header-tel-label { font-size: .6rem; color: var(--c-light); margin-bottom: 4px; }
.header-tel {
  font-size: .78rem; font-weight: 700; color: var(--c-dark);
  font-family: var(--font-en); letter-spacing: .02em;
  display: inline-block; position: relative;
}
.header-tel::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  animation: waveLine 2s ease-in-out infinite;
}
@keyframes waveLine {
  0%,100% { transform: scaleX(.5); opacity: .4; }
  50%      { transform: scaleX(1);  opacity: 1;  }
}

/* ============================================================
   ハンバーガー & モバイルメニュー（SP）
   ============================================================ */
.menu-wrap {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 1100;
}
.hamburger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; background: var(--c-white);
  border-radius: 8px; border: 1px solid var(--c-border); box-shadow: var(--sh);
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--c-dark); border-radius: 2px; transition: var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1050;
  background: var(--c-white);
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  padding: 72px 24px 40px; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; font-size: .9rem; color: var(--c-text);
  border-bottom: 1px solid var(--c-border); transition: var(--ease);
}
.mobile-nav a:hover { color: var(--c-primary); background: var(--c-bg); }
.mobile-nav .en { font-size: .65rem; font-family: var(--font-en); color: var(--c-light); margin-left: auto; }
.mobile-tel { margin-top: 20px; padding: 18px 20px; background: var(--c-bg); border-radius: 8px; }
.mobile-tel .label { font-size: .75rem; color: var(--c-light); margin-bottom: 4px; }
.mobile-tel .tel   { font-size: 1.3rem; font-weight: 700; color: var(--c-dark); font-family: var(--font-en); }

/* ============================================================
   ラッパー（左ナビ分だけオフセット）
   ============================================================ */
#wrapper { margin-left: var(--nav-w); }

/* ============================================================
   メインビジュアル
   MVセクションだけ position:fixed で viewport 全体を使う
   left:var(--nav-w) で左ナビを避け、right:0/top:0/bottom:0
   ============================================================ */

/* MV の高さ分だけ wrapper に余白を確保（fixedなので） */
.top-mv-spacer {
  height: 100vh;
  min-height: 600px;
}

/* MV セクション本体：fixed で viewport に張り付ける */
.top-mv-section {
  position: fixed;
  top: 0;
  left: var(--nav-w);
  right: 0;
  bottom: 0;
  min-height: 600px;
  overflow: hidden;
  background: #111;
  z-index: 100;
}

/* スクロール後は MV を隠す（JSで制御） */
.top-mv-section.scrolled-out {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: 100vh;
}

/* ── スライダー：section 全面カバー ── */
.top-mv-slider-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 1;
}
.top-mv-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.slider-item {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.slider-item.active { opacity: 1; }
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── テキスト帯：スライダー左端に縦書きオーバーレイ ── */
.top-mv-txt-box {
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 100%;
  background: rgba(255,255,255,0.92);
  border-right: 1px solid rgba(200,200,200,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  overflow: hidden;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ヘッドライン */
.top-mv-headline01 {
  font-size: clamp(.9rem, 1.2vw, 1.3rem);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.8;
  letter-spacing: .14em;
}
.top-mv-headline01 span {
  display: inline-block;
  animation: charFadeIn .6s ease both;
}
.top-mv-headline01 span:nth-child(1) { animation-delay: .3s; }
.top-mv-headline01 span:nth-child(2) { animation-delay: .4s; }
.top-mv-headline01 span:nth-child(3) { animation-delay: .5s; }
.top-mv-headline01 span:nth-child(4) { animation-delay: .6s; }
.top-mv-headline01 span:nth-child(5) { animation-delay: .7s; }
.top-mv-headline01 span:nth-child(6) { animation-delay: .8s; }
.top-mv-headline01 span:nth-child(7) { animation-delay: .9s; }
@keyframes charFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.top-mv-txt {
  font-size: .66rem;
  color: var(--c-light);
  line-height: 2.2;
  letter-spacing: .1em;
}

/* ── スライダードット（スライダーエリア内） ── */
.slider-counter {
  position: absolute;
  bottom: 56px; right: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--ease);
}
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* ── お知らせバー（スライダーエリア内・最下部） ── */
.top-add-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 11px 24px;
  border-top: 1px solid rgba(255,255,255,.4);
}
.top-add-content-btn {
  font-size: .78rem;
  color: var(--c-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-add-content-btn::before {
  content: '●';
  font-size: .45rem;
  color: var(--c-accent);
  flex-shrink: 0;
}

/* ── SNS アイコン（スライダーエリア右下） ── */
.mv-sns {
  position: absolute;
  bottom: 56px; right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mv-sns a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--c-primary);
  transition: var(--ease);
}
.mv-sns a:hover { background: #fff; transform: scale(1.1); }

/* ============================================================
   共通インナー
   ============================================================ */
.inner { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

/* ============================================================
   お知らせ
   ============================================================ */
.top-news-section { padding: 60px 0; border-bottom: 1px solid var(--c-border); }
.top-news-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }

.top-headline02 {
  font-size: 1rem; font-weight: 700; color: var(--c-text);
  display: flex; flex-direction: column; gap: 4px;
}
.top-headline02 .en {
  font-family: var(--font-en); font-size: .65rem; font-weight: 400;
  color: var(--c-accent); letter-spacing: .2em;
}

.deco-post-wrap { position: relative; }
.deco-post {
  position: absolute; top: -10px; left: -20px;
  width: 40px; height: 40px;
  background: var(--c-accent-lt); border-radius: 50%; opacity: .25; z-index: 0;
}
.top-news-list { position: relative; z-index: 1; }
.top-news-list li a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 10px 0; font-size: .85rem;
  border-bottom: 1px dotted var(--c-border);
}
.top-news-list li a:hover { color: var(--c-primary); }
.top-news-list .date  { flex-shrink: 0; font-size: .75rem; color: var(--c-light); font-family: var(--font-en); }
.top-news-list .title { color: var(--c-text); line-height: 1.6; }

.btn-txt a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--c-primary); font-weight: 600;
  border: 1px solid var(--c-primary); padding: 6px 16px; border-radius: 20px;
  transition: var(--ease);
}
.btn-txt a:hover { background: var(--c-primary); color: #fff; }

/* ============================================================
   アバウト
   ============================================================ */
.top-about-section { padding: 80px 0; overflow: hidden; }
.top-about-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
  max-width: 1100px; margin: 0 auto; padding: 0 48px;
}
.top-about-wrap._reverse { direction: rtl; }
.top-about-wrap._reverse > * { direction: ltr; }

.top-about-img { position: relative; margin-bottom: 20px; }
.top-about-img01 img { width: 100%; height: 280px; object-fit: cover; border-radius: 4px; }
.top-about-img02 img { width: 80%; height: 200px; object-fit: cover; border-radius: 4px; }
.top-about-img03 { position: absolute; bottom: -30px; right: 0; width: 55%; }
.top-about-img03 img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; box-shadow: var(--shm); }

.deco-img { position: absolute; pointer-events: none; }
.deco-img._01 { bottom: -15px; left: -15px; opacity: .5; }
.deco-img._02 { top: -10px;  right: -10px; opacity: .5; }
.deco-img._03 { top: 10px;   right: -20px; opacity: .4; }
.deco-img._04 { bottom: -20px; left: -15px; opacity: .4; }
.deco-img._05 { bottom: -10px; right: 30px; opacity: .4; }

.top-about-title { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; color: var(--c-text); line-height: 1.6; margin-bottom: 8px; }
.en-txt { font-size: .72rem; color: var(--c-accent); font-style: italic; line-height: 1.6; }
.top-about-section p { font-size: .88rem; color: var(--c-mid); line-height: 1.9; margin-bottom: 10px; }

/* ユーティリティ */
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.mb30 { margin-bottom: 30px; }
.mb40 { margin-bottom: 40px; }
.mb50 { margin-bottom: 50px; }
.mb60 { margin-bottom: 60px; }
.is-inline-block { display: inline-block; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 26px;
  background: var(--c-primary); color: var(--c-white);
  border-radius: 30px; font-size: .82rem; font-weight: 600;
  border: 2px solid var(--c-primary); letter-spacing: .05em;
  transition: var(--ease);
}
.btn:hover { background: transparent; color: var(--c-primary); }

/* ============================================================
   診療案内
   ============================================================ */
.top-info-section { padding: 80px 0; position: relative; overflow: hidden; }
.top-info-section.deco-line::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary), var(--c-accent));
  opacity: .4;
}
.top-info-wrap { position: relative; }
.top-info-headline02 {
  writing-mode: vertical-rl;
  position: absolute; left: -20px; top: 0;
  font-size: .75rem; font-weight: 700; color: var(--c-text); letter-spacing: .15em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.top-info-headline02 .en {
  writing-mode: vertical-rl; font-family: var(--font-en);
  font-size: .6rem; color: var(--c-accent); letter-spacing: .3em;
}
.top-info-cont { padding-left: 40px; }
.top-info-item-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.top-info-item {
  padding: 28px; background: var(--c-white);
  border: 1px solid var(--c-border); border-radius: 4px; box-shadow: var(--sh);
}
.top-info-item .title { font-size: 1rem; font-weight: 700; color: var(--c-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.top-info-item .txt-box p { font-size: .83rem; color: var(--c-mid); line-height: 1.8; }

.top-medical-info-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.medical-info-item dt  { font-size: .75rem; font-weight: 700; color: var(--c-accent); letter-spacing: .1em; margin-bottom: 4px; }
.medical-info-item .time { font-size: 1.1rem; font-weight: 700; color: var(--c-dark); font-family: var(--font-en); }
.medical-info-item dd p { font-size: .82rem; color: var(--c-mid); }
.medical-info-item dd small { font-size: .72rem; color: var(--c-light); }

.hikarino-clinic-wrap { position: relative; margin-top: 60px; height: 300px; overflow: hidden; }
.deco-txt {
  font-family: var(--font-en); font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900; color: rgba(155,142,196,.08);
  white-space: nowrap; letter-spacing: .05em;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; user-select: none; z-index: 0;
}
.hikarino-clinic-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 40%; position: relative; z-index: 1;
}

/* ============================================================
   医師紹介
   ============================================================ */
.top-doctor-section { padding: 80px 0; background: var(--c-bg); }
.top-doctor-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.top-doctor-grid._reverse { grid-template-columns: 1.4fr 1fr; }
.top-doctor-grid._reverse .img-box { order: 2; }
.top-doctor-grid._reverse .txt-box { order: 1; }
.top-doctor-grid .img-box img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: var(--shm); }

.top-doctor-headline02 {
  font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.top-doctor-headline02 .en { font-family: var(--font-en); font-size: .65rem; color: var(--c-accent); letter-spacing: .25em; }

.top-doctor-name-wrap { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.position-txt { font-size: .72rem; color: var(--c-accent); line-height: 1.8; padding-right: 16px; border-right: 1px solid var(--c-border); }
.name-txt { font-size: 1.3rem; font-weight: 700; color: var(--c-dark); }
.name-txt .en { display: block; font-size: .65rem; font-family: var(--font-en); color: var(--c-light); letter-spacing: .15em; margin-top: 2px; }

.top-doctor-title { font-size: .78rem; font-weight: 700; color: var(--c-mid); padding-bottom: 4px; border-bottom: 1px solid var(--c-border); display: inline-block; }
.top-doctor-title span { border-bottom: 2px solid var(--c-accent); padding-bottom: 2px; }

.biography-list li { display: flex; gap: 16px; font-size: .82rem; color: var(--c-mid); padding: 7px 0; border-bottom: 1px dotted var(--c-border); line-height: 1.6; }
.biography-list .date { flex-shrink: 0; font-size: .75rem; color: var(--c-accent); font-weight: 600; min-width: 80px; }
.btn-center { text-align: center; }

/* ============================================================
   診療メニュー（カード一覧）
   ============================================================ */
.top-blog-section { padding: 80px 0; }
.top-blog-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.top-blog-list li a { display: block; }
.top-blog-list .img-box { aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg); border-radius: 4px; margin-bottom: 12px; }
.top-blog-list .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.top-blog-list li a:hover .img-box img { transform: scale(1.05); }
.top-blog-list .txt-box { padding: 4px 0; }
.top-blog-list .title { font-size: .85rem; font-weight: 500; color: var(--c-text); line-height: 1.6; margin-bottom: 6px; }
.top-blog-list .date  { font-size: .72rem; color: var(--c-light); font-family: var(--font-en); }

/* ============================================================
   右固定ボタン
   ============================================================ */
.recruit_btn {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column;
}
.recruit_btn a {
  writing-mode: vertical-rl; padding: 18px 10px;
  font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .15em;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: var(--ease);
}
.recruit_btn .en { font-family: var(--font-en); font-size: .55rem; letter-spacing: .2em; }
.recruit_btn .doctor { background: var(--c-accent); }
.recruit_btn .nurse  { background: var(--c-primary); }
.recruit_btn a:hover { filter: brightness(1.1); }

/* ============================================================
   フッター
   ============================================================ */
.footer { background: var(--c-bg); border-top: 1px solid var(--c-border); padding: 60px 0 0; }
.footer-wrap {
  display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--c-border);
}
.footer-logo { margin-bottom: 16px; }
.footer-logo a { display: flex; flex-direction: column; gap: 2px; }
.footer-logo .ja { font-size: .9rem; font-weight: 700; color: var(--c-dark); }
.footer-logo .en { font-size: .58rem; font-family: var(--font-en); color: var(--c-accent); letter-spacing: .18em; }

.sns-list { display: flex; gap: 10px; margin-top: 12px; }
.sns-list a {
  width: 30px; height: 30px; background: var(--c-white);
  border: 1px solid var(--c-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--c-primary); transition: var(--ease);
}
.sns-list a:hover { background: var(--c-primary); color: #fff; }

.footer-info-txt { font-size: .8rem; color: var(--c-mid); line-height: 1.8; margin-bottom: 12px; }
.tel-item { margin-bottom: 16px; }
.tel-item dt { font-size: .68rem; color: var(--c-light); margin-bottom: 2px; }
.tel-txt { font-size: .95rem; font-weight: 700; color: var(--c-dark); font-family: var(--font-en); }

.footer-nav { margin-top: 16px; }
.footer-nav li { margin-bottom: 2px; }
.footer-nav li a {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: .78rem; color: var(--c-mid);
  border-bottom: 1px dotted var(--c-border); transition: var(--ease);
}
.footer-nav li a:hover { color: var(--c-primary); }
.footer-nav .en { font-size: .6rem; font-family: var(--font-en); color: var(--c-light); margin-left: auto; }

.footer-map-box { border-radius: 4px; overflow: hidden; }
.footer-map-box iframe { width: 100%; height: 240px; display: block; border: 0; }

.copyright { text-align: center; padding: 20px; font-size: .72rem; color: var(--c-light); letter-spacing: .05em; }

/* ============================================================
   スクロールアニメーション
   ============================================================ */
.ani-item { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.ani-item.visible { opacity: 1; transform: translateY(0); }
.ani-item.delay-1 { transition-delay: .1s; }
.ani-item.delay-2 { transition-delay: .2s; }
.ani-item.delay-3 { transition-delay: .3s; }
.ani-item.delay-4 { transition-delay: .4s; }
.ani-item.delay-5 { transition-delay: .5s; }

/* ============================================================
   治療詳細ページ共通
   ============================================================ */
.treatment-hero {
  padding: 80px 0 60px; background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: relative; overflow: hidden;
}
.treatment-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(155,142,196,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--c-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--c-primary); }
.breadcrumb a:hover { text-decoration: underline; }

.section-label {
  display: block; font-size: .68rem; font-family: var(--font-en);
  font-weight: 700; color: var(--c-accent); letter-spacing: .25em;
  text-transform: uppercase; margin-bottom: 10px;
}
.treatment-hero-title    { font-size: clamp(1.6rem,3vw,2.8rem); font-weight: 800; color: var(--c-text); line-height: 1.3; margin-bottom: 16px; }
.treatment-hero-subtitle { font-size: .92rem; color: var(--c-mid); max-width: 640px; line-height: 1.9; margin-bottom: 24px; }

.treatment-price-card {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 24px; background: var(--c-white);
  border-radius: 4px; box-shadow: var(--sh); border: 1px solid var(--c-border);
}
.treatment-price-card .label { font-size: .75rem; color: var(--c-light); }
.treatment-price-card .price { font-size: 1.4rem; font-weight: 800; color: var(--c-primary); font-family: var(--font-en); }

.section    { padding: 80px 0; }
.section-bg { background: var(--c-bg); }

.content-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: 4px; padding: 32px; box-shadow: var(--sh); margin-bottom: 24px; }
.content-card h3 { font-size: 1rem; font-weight: 700; color: var(--c-dark); margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--c-accent); }
.content-card p  { font-size: .87rem; color: var(--c-mid); line-height: 1.9; margin-bottom: 10px; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; margin-top: 16px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--c-bg); border-radius: 4px; border: 1px solid var(--c-border); }
.feature-item .icon { font-size: 1.3rem; flex-shrink: 0; }
.feature-item .text strong { display: block; font-size: .85rem; font-weight: 700; color: var(--c-text); margin-bottom: 3px; }
.feature-item .text span   { font-size: .78rem; color: var(--c-light); }

.caution-box { padding: 16px 20px; background: rgba(255,200,50,.07); border-left: 3px solid #f59e0b; border-radius: 4px; font-size: .83rem; color: var(--c-text); line-height: 1.8; }

/* お問い合わせ（治療ページ） */
.contact-section { background: linear-gradient(135deg, var(--c-dark), var(--c-accent)); padding: 70px 0; text-align: center; }
.contact-section h2 { font-size: clamp(1.3rem,2vw,2rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.contact-section p  { font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.contact-btn-group  { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-btn-white  { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #fff; color: var(--c-primary); border-radius: 30px; font-size: .9rem; font-weight: 700; transition: var(--ease); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.contact-btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.contact-btn-border { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border: 2px solid rgba(255,255,255,.7); color: #fff; border-radius: 30px; font-size: .9rem; font-weight: 600; transition: var(--ease); }
.contact-btn-border:hover { background: rgba(255,255,255,.15); }

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

/* 1200px 以下 — ナビ縮小 */
@media (max-width: 1200px) {
  :root { --nav-w: 160px; }
}

/* 1024px 以下 */
@media (max-width: 1024px) {
  .top-about-wrap { grid-template-columns: 1fr; }
  .top-about-wrap .img-box { display: none; }
  .top-doctor-grid { grid-template-columns: 1fr; }
  .top-doctor-grid .img-box { display: none; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}

/* 768px 以下 — モバイル */
@media (max-width: 768px) {
  /* ナビ非表示 / ハンバーガー表示 */
  .header    { display: none; }
  .menu-wrap { display: block; }
  #wrapper   { margin-left: 0; }

  /* MVセクション：モバイルでは fixed を解除して通常フローに */
  .top-mv-section {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    z-index: auto;
  }
  .top-mv-spacer { display: none; } /* スペーサー不要 */
  .top-mv-txt-box {
    width: 72px;
    padding: 20px 0;
    gap: 8px;
  }
  .top-mv-headline01 { font-size: .76rem; letter-spacing: .1em; }
  .top-mv-txt        { font-size: .58rem; }

  /* その他レイアウト */
  .top-news-wrap        { grid-template-columns: 1fr; gap: 20px; }
  .top-info-item-wrap   { grid-template-columns: 1fr; }
  .top-medical-info-wrap{ grid-template-columns: 1fr; }
  .top-blog-list        { grid-template-columns: 1fr 1fr; }
  .footer-wrap          { grid-template-columns: 1fr; }
  .footer-map-box       { display: none; }
  .recruit_btn          { display: none; }
  .inner                { padding: 0 20px; }
  .top-about-wrap       { padding: 0 20px; }
  .treatment-hero       { padding: 60px 0 40px; }
  .feature-list         { grid-template-columns: 1fr; }
}

/* 480px 以下 */
@media (max-width: 480px) {
  .top-mv-txt-box    { width: 60px; }
  .top-mv-headline01 { font-size: .7rem; }
  .top-blog-list     { grid-template-columns: 1fr; }
  .section           { padding: 60px 0; }
}
