:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --accent:#065f46;
  --link:#0ea5e9;
  --ring:rgba(14,165,233,.35);

  /* ★ 追加：ナビの色（スクショの紫に合わせています） */
  --nav-color:#7a2b8a;   /* 通常 */
  --nav-hover:#5d1f69;   /* ホバー/アクティブ */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Noto Sans JP',system-ui,-apple-system,Segoe UI,Roboto,'Hiragino Kaku Gothic ProN','メイリオ',sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.8;
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1080px;margin:0 auto;padding:0 16px}

/* ===== Header / Brand / Nav ===== */
.site-header{
  background:linear-gradient(180deg,#fff,rgba(255,255,255,.92));
  border-bottom:1px solid #e2e8f0;
  position:sticky; top:0; z-index:10;
}

/* ★ 変更：ロゴ＋テキストを横並びに */
.site-header .brand{
  display:flex; align-items:center; gap:10px;
  padding:14px 0;
  color:inherit; text-decoration:none;
}
.brand-logo{ width:36px; height:36px; object-fit:contain; display:block; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-title{ font-weight:700; font-size:18px; }
.brand-sub{ font-size:12px; color:var(--muted); }

/* ナビ */
.nav{list-style:none;display:flex;gap:12px;margin:0;padding:0;flex-wrap:wrap}

/* ★ 変更：背景色のバッジをやめ、色＋下線風ボーダーで統一 */
.nav a{
  display:block;
  padding:12px 10px 10px;
  font-weight:500;
  color:var(--nav-color);
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.nav a:hover,
.nav a:focus{
  color:var(--nav-hover);
  border-bottom-color:var(--nav-hover);
  text-decoration:none;
}
.nav a.active{
  color:var(--nav-hover);
  border-bottom-color:var(--nav-hover);
  font-weight:700;
}

/* モバイル調整（任意） */
@media (max-width: 720px){
  .brand-logo{ width:30px; height:30px; }
  .brand-sub{ font-size:11px; }
}

/* ===== Hero / Common ===== */
.hero{
  background:#e6f0ff;
  padding:32px;
  border-radius:18px;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px;
  align-items:center;
  margin:24px 0 12px;
}
.hero h1{margin:0 0 10px 0; font-size:28px}
.hero p{margin:.2em 0}
.card{
  background:var(--card);
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px;
  box-shadow:0 6px 20px rgba(2,6,23,.03);
}
.grid{display:grid;gap:18px}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .grid.cols-3{grid-template-columns:1fr}
  .grid.cols-2{grid-template-columns:1fr}
}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#eef6ff;color:#075985;font-size:12px;margin-bottom:10px}
.notice{border-left:6px solid #ef4444;background:#fff1f2;padding:14px 16px;border-radius:10px}
.kv{
  width:100%;aspect-ratio:16/9;
  background:linear-gradient(135deg,#dbeafe,#fef9c3);
  border-radius:14px; display:flex; align-items:center; justify-content:center; color:#334155; font-weight:700;
}
.section-title{margin-top:26px; font-size:22px}
.list-plain{margin:0; padding-left:1.1em}
.list-plain li{margin:.2em 0}
.table{width:100%; border-collapse:collapse}
.table th,.table td{border:1px solid #e2e8f0; padding:10px 12px; text-align:left}
.table th{background:#f1f5f9}
.map-embed{border:0;width:100%;height:360px;border-radius:14px}
.site-footer{margin-top:40px;border-top:1px solid #e2e8f0;background:#fff}
.footer-inner{padding:20px 0;color:var(--muted);font-size:14px}
.fine{font-size:12px;color:#94a3b8}
.form input,.form textarea{width:100%; padding:12px; border:1px solid #cbd5e1; border-radius:10px}
.form input:focus,.form textarea:focus{outline:none; box-shadow:0 0 0 4px var(--ring); border-color:#0ea5e9}
.form label{font-weight:500; display:block; margin:14px 0 6px}
.button{display:inline-block; padding:12px 16px; border-radius:12px; border:1px solid #0ea5e9; color:#0c4a6e; background:#e0f2fe; font-weight:700}
.button:hover{filter:brightness(.98)}

/* ===== hero banner ===== */
.hero-banner{
  width:100%;
  min-height:420px;
  background:url("../img/sky-bg.jpg") center/cover no-repeat;
  display:flex; align-items:center;
}
.hero-inner{
  width:100%;
  max-width:1080px;
  margin:0 auto;
  padding:24px 16px;
  display:flex; justify-content:center;
}
.hero-logo{
  max-width:min(920px,86vw);
  height:auto;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.25));
}
@media (max-width: 600px){
  .hero-banner{ min-height:320px; }
}

/* ===== 画像左・テキスト右の2カラム ===== */
.intro-split{
  display:grid;
  grid-template-columns: auto 1fr;
  gap:20px;
  align-items:center;
  margin:40px 0;
}
.intro-blurb--label{
  grid-column:1 / -1;
  margin:0 0 12px 0;
  align-self:start;
}
.intro-img img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  object-fit:cover;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.intro-text{ font-size:16px; line-height:1.8; }
.intro-line{ margin:0 0 8px 0; color:#2563eb; font-weight:600; }
.intro-lead{ margin:0 0 16px 0; font-size:24px; font-weight:700; color:#111827; }

.intro-desc {
  font-size:18px;
  font-weight:400;
  color:#111827;
  margin: 0 0 16px 0;
  line-height:1.9;
  margin-bottom:20px;
}
.intro-link a{
  font-size:18px; 
  color:#2563eb;
  font-weight:600;
  text-decoration:none;
}
.intro-link a:hover{ text-decoration:underline; }

/* スマホで縦並びに */
@media (max-width: 768px){
  .intro-split{ grid-template-columns: 1fr; }
}
.intro-img img{
  max-width:250px;
  height:auto;
  border-radius:12px;
  display:block;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

/* ===== 2カラム：写真(250px)＋タイトル＋ボタン＋説明 ===== */
:root{ --clinic-accent:#a05683; } /* タイトルや線の色 */
.features-2col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:56px;
  margin: 30px 0 10px; 
}
.feature .feat-img{
  max-width:250px;
  height:auto;
  border-radius:10px;
  display:block;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  margin-bottom:16px;
}
.feature .feat-title{
  font-size:32px;
  font-weight:700;
  color:var(--clinic-accent);
  margin: 4px 0 16px 0;
}
.feature .feat-cta{
  display:inline-block;
  padding:12px 20px;
  border-radius:8px;
  background:#d7b2c9;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  margin-bottom:20px;
}
.feature .feat-cta:hover{ filter:brightness(.97); }
.feature .feat-desc{
  font-size:16px;
  line-height:1.9;
  color:#374151;
  margin: 0 0 16px 0;
}
.feature .feat-divider{
  height:4px;
  width:100%;
  background: linear-gradient(90deg, rgba(160,86,131,.35), rgba(160,86,131,.1));
  border-radius:999px;
  margin-top:18px;
}
@media (max-width: 900px){
  .features-2col{ grid-template-columns:1fr; gap:40px; }
  .feature .feat-img{ margin-left:auto; margin-right:auto; }
  .feature .feat-title{ text-align:left; }
}

/* 共通区切り線 */
.section-divider{
  border:0;
  height:4px;
  background:linear-gradient(90deg, rgba(160,86,131,.35), rgba(160,86,131,.1));
  margin:40px 0;
  border-radius:999px;
}

/* ラベル風 */
.intro-blurb{
  display:inline-block;
  background:#e7c3d6;
  color:#5f2441;
  padding:8px 16px;
  border-radius:8px;
  font-size:18px;
  font-weight:700;
  margin:0 0 16px 0;
  box-shadow:0 3px 8px rgba(0,0,0,0.1);
}

/* きれいなボタン */
.cta-button{
  display:inline-block;
  padding:12px 18px;
  border-radius:10px;
  background:#d7b2c9;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 6px 14px rgba(0,0,0,.10);
  transition:transform .06s ease, filter .2s ease;
}
.cta-button:hover{ filter:brightness(.97); transform:translateY(-1px); }
.cta-button:active{ transform:translateY(0); }

/* 医師紹介画像：枠なし・レスポンシブ */
.dr-img{
  display:block;
  width:100%;
  max-width:1100px;
  margin:16px auto 24px;
  border:0;
  box-shadow:none;
  border-radius:12px;
}

/* ===== アクセス：地図(7) + テキスト(3) ===== */
.access-block .access-split{
  display:grid;
  grid-template-columns: 7fr 3fr;
  gap:20px;
  align-items:start;
}
.access-block .access-map{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}
@media (max-width: 900px){
  .access-block .access-split{ grid-template-columns:1fr; }
}

/* ===== 施設写真ギャラリー ===== */
.facility-photos .gallery-grid{
  display:grid;
  gap:28px;
  margin-top:14px;
}
.facility-photos .gallery-grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.facility-photos .gallery-grid.cols-4{ grid-template-columns:repeat(4,1fr); }

/* 画像：高さ統一（比率維持・トリミングなし） */
.facility-photos .gallery-item{
  height:auto;
  display:flex; align-items:center; justify-content:center;
  background:transparent;
  border-radius:12px;
  box-shadow:none;
  margin:0;
}
.facility-photos .gallery-item img{
  height:300px;
  width:auto;
  max-width:100%;
  object-fit:contain;
  display:block;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
@media (max-width: 1000px){
  .facility-photos .gallery-item img{ height:260px; }
}
@media (max-width: 640px){
  .facility-photos .gallery-item img{ height:220px; }
}

/* ===== Lightbox ===== */
.lightbox[hidden]{ display:none; }
.lightbox{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.85);
  padding:24px;
  cursor:zoom-out;
}
.lightbox img{
  max-width:92vw; max-height:86vh; display:block;
  box-shadow:0 20px 50px rgba(0,0,0,.5);
  border-radius:10px;
}
.lb-caption{
  position:fixed; bottom:20px; left:50%; transform:translateX(-50%);
  color:#fff; font-size:14px; opacity:.9; text-align:center;
  max-width:min(92vw, 960px);
}
.lb-btn{
  position:fixed; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px; border:none;
  background:rgba(255,255,255,.15); color:#fff; font-size:28px; cursor:pointer;
}
.lb-btn:hover{ background:rgba(255,255,255,.25); }
.lb-prev{ left:18px; } .lb-next{ right:18px; }
.lb-close{
  top:18px; right:18px; left:auto; transform:none;
  width:40px; height:40px; font-size:22px;
  background:rgba(255,255,255,.2);
}
.lightbox img, .lb-btn{ cursor:auto; }

/* ------------- Care Center ------------- */
.care-desc{
  margin-top:12px;
  color:#374151;
  line-height:1.9;
}
.care-photos{
  display:grid;
  gap:24px;
  margin:12px 0 6px;
}
.care-photos.cols-2{ grid-template-columns:repeat(2, 1fr); }
.care-photos.cols-3{ grid-template-columns:repeat(3, 1fr); }
:root{ --care-photo-h: 260px; }
.photo-item{ margin:0; }
.photo-item img{
  height:var(--care-photo-h);
  width:auto;
  max-width:100%;
  object-fit:contain;
  display:block;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.care-split{
  display:grid;
  grid-template-columns: 7fr 5fr;
  gap:28px;
  align-items:start;
  margin-top:10px;
}
.care-photo img{
  height:280px;
  width:auto;
  max-width:100%;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.care-text p{ margin:.3em 0; }

/* 区切り線 */
.section-divider{
  border:0; height:2px;
  background:linear-gradient(90deg, rgba(160,86,131,.25), rgba(160,86,131,0));
  margin:28px 0;
  border-radius:999px;
}

/* レスポンシブ */
@media (max-width: 1024px){
  :root{ --care-photo-h: 240px; }
  .care-photos.cols-3{ grid-template-columns:repeat(2, 1fr); }
  .care-split{ grid-template-columns:1fr; }
  .care-photo img{ height:240px; }
}
@media (max-width: 640px){
  :root{ --care-photo-h: 210px; }
  .care-photos.cols-2,
  .care-photos.cols-3{ grid-template-columns:1fr; }
  .care-photo img{ height:210px; }
}

/* 画像とテキストの間隔を詰める＋画像をカラム幅いっぱいに */
.care-section .care-split{
  grid-template-columns: 6fr 5fr;
  gap:16px;
}
.care-section .care-photo img{
  width:100%;
  height:auto;
  object-fit:contain;
}

/* ===== Contact ===== */
.contact-card{ padding-top:24px; }
.contact-grid{
  display:grid;
  grid-template-columns: 6fr 5fr;
  gap:36px;
  align-items:start;
}
.contact-photo{ margin:0; }
.contact-photo img{
  width:100%; height:auto; display:block;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.contact-info{ font-size:18px; line-height:1.3; }
.contact-heading{
  margin:0 0 8px 0;
  font-size:22px; font-weight:700;
  color:var(--clinic-accent, #7a2b8a);
}
.contact-block{ margin:16px 0 22px; }
.contact-block h3{
  margin:.2em 0 .2em;
  font-size:18px; font-weight:700; color:#333;
}
.mt8{ margin-top:8px; }
.contact-info a{ color:var(--clinic-accent, #7a2b8a); text-decoration:none; }
.contact-info a:hover{ text-decoration:underline; }
.section-divider{
  border:0; height:2px; margin:8px 0 0;
  background:linear-gradient(90deg, rgba(160,86,131,.35), rgba(160,86,131,0));
  border-radius:999px;
}
@media (max-width: 980px){
  .contact-grid{ grid-template-columns:1fr; gap:20px; }
  .contact-info{ font-size:16.5px; }
}
/* ====== Mobile Nav ====== */
.header-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; }

/* PC: そのまま横並び。スマホ: ハンバーガー表示・メニュー非表示 */
.hamburger{
  display:none;
  width:44px; height:44px; border:0; background:transparent; padding:0; cursor:pointer;
}
.hamburger span{
  display:block; width:24px; height:2px; background:var(--nav-color); border-radius:2px;
  margin:5px auto; transition:transform .2s ease, opacity .2s ease;
}
.hamburger.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ラッパー（PCは通常表示） */
.nav-wrap{ display:block; }

/* ===== スマホ幅 ===== */
@media (max-width: 900px){
  .hamburger{ display:block; }
  /* メニューは全画面ドロワーに */
  .nav-wrap{
    position:fixed; inset:58px 0 0 0;    /* ヘッダー下から全画面 */
    background:rgba(255,255,255,.98);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transform:translateY(-6%); opacity:0; pointer-events:none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 9;  /* ヘッダー(10)の下でOK */
  }
  .nav-wrap.open{ transform:none; opacity:1; pointer-events:auto; }
  .nav{ flex-direction:column; gap:0; padding:12px 10px; }
  .nav a{
    padding:14px 14px; font-size:18px;
    border-bottom:1px solid #eef2f7; border-radius:0;
  }
  .nav a:last-child{ border-bottom:none; }
  /* メニュー展開時に背面スクロールを止める */
  body.nav-open{ overflow:hidden; }
}
/* ------- Header: PCはロゴの下にメニューを1段で表示 ------- */
.header-row{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;              /* ← これで次の行に回せる */
  justify-content:flex-start;  /* 余白計算を素直に */
}

/* PC(>900px) ではメニューをフル幅にして“次の行”へ */
@media (min-width: 901px){
  .nav-wrap{ flex: 0 0 100%; }   /* ← フル幅を確保＝下の行に落ちる */
  .nav{ justify-content:center; }/* 中央寄せ。左寄せにしたいなら flex-start */
}

/* 見た目の微調整（任意） */
.brand{ display:flex; align-items:center; gap:10px; padding:10px 0; }
