/* 白樺の丘デンタルクリニック（架空・デモ） 共通スタイル */

:root {
  --green: #0e5a4a;
  --green-dark: #0a4438;
  --green-mid: #3f8a75;
  --green-pale: #eef5f2;
  --gold: #b08d57;
  --gold-pale: #f6efe3;
  --ink: #2b2b2b;
  --gray: #6b7570;
  --line: #e3e8e5;
  --bg: #ffffff;
  --radius: 10px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
}
h1, h2, h3, h4 { font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-weight: 600; color: var(--green-dark); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---------- デモ表記 ---------- */
.demo-banner {
  background: #444; color: #fff; text-align: center;
  font-size: 12px; padding: 6px 12px; letter-spacing: 0.05em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { line-height: 1.25; }
.logo .name { font-family: "Noto Serif JP", serif; font-size: 19px; font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.logo .sub { font-size: 10px; color: var(--gray); letter-spacing: 0.08em; }

.global-nav > ul { display: flex; gap: 0; font-size: 13px; white-space: nowrap; }
.global-nav > ul > li { position: relative; }
.global-nav > ul > li > a { display: block; padding: 10px 8px; border-radius: 6px; }
.global-nav > ul > li > a:hover { background: var(--green-pale); color: var(--green); }
.global-nav .has-sub > a::after { content: " ▾"; font-size: 10px; color: var(--gray); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(14,90,74,0.12); padding: 8px 0;
  display: none; z-index: 110;
}
.has-sub:hover .sub-menu, .has-sub.open .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 16px; font-size: 13px; }
.sub-menu a:hover { background: var(--green-pale); color: var(--green); }

.header-btns { display: flex; gap: 8px; align-items: center; }
.btn-hd {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-hd.reserve { background: var(--green); color: #fff; }
.btn-hd.reserve:hover { background: var(--green-dark); }
.btn-hd.line { background: #fff; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-hd.line:hover { background: var(--green-pale); }
.btn-hd.access { background: var(--gold-pale); color: var(--gold); }

.menu-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 6px;
  width: 42px; height: 42px; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--green-dark);
  position: absolute; left: 10px; transition: 0.2s;
}
.menu-toggle span { top: 19px; }
.menu-toggle span::before { top: -6px; left: 0; }
.menu-toggle span::after { top: 6px; left: 0; }
.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active span::after { transform: rotate(-45deg); top: 0; }

.mobile-nav {
  display: none; background: #fff; border-top: 1px solid var(--line);
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mobile-nav .group { background: var(--green-pale); font-size: 12px; color: var(--gray); padding: 8px 20px; letter-spacing: 0.1em; }
.mobile-nav .indent a { padding-left: 34px; }

/* ---------- ボタン ---------- */
.btn-primary, .btn-secondary, .btn-white, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 30px; border-radius: 6px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: 0.2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: #fff; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-secondary:hover { background: var(--green-pale); }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.8); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.link-arrow { color: var(--green); font-weight: 500; font-size: 14px; }
.link-arrow::after { content: " →"; }

/* ---------- レイアウト ---------- */
section { padding: 72px 20px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-label { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 30px; line-height: 1.4; }
h3 { font-size: 19px; margin-bottom: 12px; }
.lead { color: var(--gray); font-size: 15px; max-width: 760px; margin-bottom: 30px; }
.alt-bg { background: var(--green-pale); }
.narrow { max-width: 820px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; } .mt-40 { margin-top: 40px; } .mb-20 { margin-bottom: 20px; }

/* ---------- ページ上部（下層） ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-pale) 0%, #f7faf9 60%, #fdfcf8 100%);
  padding: 52px 20px 44px;
}
.page-hero .section-inner { display: flex; flex-direction: column; gap: 8px; }
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); }
.page-hero .en { font-size: 12px; letter-spacing: 0.25em; color: var(--gold); font-weight: 700; }
.breadcrumb { font-size: 12px; color: var(--gray); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span::before { content: " › "; }

/* ---------- トップ ヒーロー ---------- */
.hero { background: linear-gradient(135deg, var(--green-pale) 0%, #f7faf9 60%, #fdfcf8 100%); padding: 70px 20px 60px; }
.hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(26px, 4.5vw, 42px); line-height: 1.5; margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-meta .chip { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; font-size: 13px; color: var(--green-dark); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 12.5px; color: var(--gray); margin-top: 12px; }
.hero-visual { width: 100%; max-width: 480px; justify-self: end; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(14,90,74,0.12)); }
.today-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; font-size: 13.5px; margin-bottom: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.today-box .lbl { font-weight: 700; color: var(--green-dark); }
.today-box .status { background: var(--green); color: #fff; border-radius: 20px; padding: 2px 12px; font-size: 12px; }
.today-box .status.closed { background: var(--gray); }

/* ---------- カード類 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--gray); }
.card .num { font-family: "Noto Serif JP", serif; font-size: 14px; color: var(--gold); margin-bottom: 6px; }
.icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--green);
}
.icon svg { width: 26px; height: 26px; }
.icon-card { text-align: center; }
.icon-card .icon { margin: 0 auto 14px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; background: var(--green-pale); color: var(--green-dark); font-weight: 500; }
.tag.private { background: var(--gold-pale); color: var(--gold); }
.card-link { display: block; transition: 0.2s; }
.card-link:hover { border-color: var(--green-mid); transform: translateY(-2px); }

/* 2カラム（画像＋文章） */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split p { font-size: 14.5px; margin-bottom: 12px; }

/* 写真サンプル枠 */
.photo-ph {
  background: linear-gradient(160deg, #d9e5e0, #eef5f2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 12px;
  aspect-ratio: 4/3; width: 100%;
}
.photo-ph.portrait { aspect-ratio: 3/4; }
.photo-ph.wide { aspect-ratio: 16/9; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery figure figcaption { font-size: 13px; color: var(--gray); margin-top: 6px; text-align: center; }

/* ---------- リスト ---------- */
.check-list li { position: relative; padding-left: 26px; font-size: 14.5px; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.num-list { counter-reset: n; }
.num-list li { counter-increment: n; position: relative; padding-left: 34px; margin-bottom: 8px; font-size: 14.5px; }
.num-list li::before {
  content: counter(n); position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ---------- 流れ（STEP） ---------- */
.steps { display: grid; gap: 14px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: start;
}
.step .no { font-family: "Noto Serif JP", serif; color: var(--gold); font-size: 13px; letter-spacing: 0.1em; line-height: 1.2; }
.step .no b { display: block; font-size: 26px; color: var(--green-dark); }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--gray); }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--green-pale); color: var(--green-dark); font-weight: 700; white-space: nowrap; }
td.price { font-weight: 700; color: var(--green-dark); white-space: nowrap; text-align: right; }
.hours-table { text-align: center; font-size: 13px; }
.hours-table th, .hours-table td { padding: 10px 6px; text-align: center; }
.info-table th { width: 120px; }

/* ---------- 注記ボックス ---------- */
.note {
  font-size: 13px; color: var(--gray); background: #fff;
  border-left: 3px solid var(--gold); padding: 14px 18px; margin-bottom: 24px;
}
.notice-box {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 24px; font-size: 13px; color: var(--gray); margin-bottom: 20px;
}
.notice-box strong { color: var(--ink); display: block; margin-bottom: 6px; }
.alt-bg .note, .alt-bg .notice-box { background: #fff; }

/* ---------- 症状パターン（3分類の図解） ---------- */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px; text-align: center; }
.stage .lv { font-size: 11px; letter-spacing: 0.15em; color: var(--gold); font-weight: 700; }
.stage h4 { font-size: 15px; margin: 6px 0 8px; }
.stage p { font-size: 13px; color: var(--gray); }
.stage svg { width: 64px; height: 64px; margin: 0 auto 8px; }

/* ---------- アコーディオン ---------- */
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.acc-btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 48px 16px 20px; font-size: 15px; font-weight: 700; color: var(--green-dark); position: relative; line-height: 1.6;
}
.acc-btn::before { content: "Q"; color: var(--gold); font-family: "Noto Serif JP", serif; margin-right: 10px; }
.acc-btn::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--green); }
.acc-item.open .acc-btn::after { content: "−"; }
.acc-panel { display: none; padding: 0 20px 18px 46px; font-size: 14px; color: var(--gray); }
.acc-item.open .acc-panel { display: block; }
.acc-panel::before { content: "A. "; color: var(--green); font-weight: 700; }

/* ---------- お知らせ ---------- */
.news-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-item { display: flex; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; align-items: center; }
.news-item:last-child { border-bottom: none; }
.news-item time { color: var(--gray); white-space: nowrap; font-size: 13px; }
.news-item .tag { margin: 0; }
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.news-cols h3 { display: flex; justify-content: space-between; align-items: baseline; }
.news-cols h3 .link-arrow { font-family: "Noto Sans JP", sans-serif; font-weight: 500; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; margin-bottom: 18px; }
.article h3 { font-size: 18px; }
.article .meta { font-size: 12.5px; color: var(--gray); margin-bottom: 10px; }
.article p { font-size: 14.5px; }

/* ---------- 医師カード ---------- */
.doctor-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; }
.doctor-card .role { font-size: 12px; color: var(--gold); letter-spacing: 0.15em; font-weight: 700; }
.doctor-card h3 { font-size: 22px; margin: 4px 0 12px; }
.doctor-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 14px; margin-top: 14px; }
.doctor-card dt { color: var(--gray); }
.doctor-card p { font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--green); color: #fff; text-align: center; padding: 44px 20px; }
.cta-band h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.cta-band p { font-size: 13.5px; opacity: 0.92; margin-bottom: 20px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.consult-cta { margin-top: 30px; background: var(--green-dark); border-radius: 12px; padding: 36px 30px; text-align: center; color: #fff; }
.consult-cta h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.consult-cta p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px;
}
.banner h3 { font-size: 18px; margin-bottom: 6px; }
.banner p { font-size: 14px; color: var(--gray); }
.banner.gold { background: var(--gold-pale); border-color: #eadcc4; }

/* ---------- フッター ---------- */
.site-footer { background: var(--green-dark); color: #fff; padding: 56px 20px 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; font-family: "Noto Sans JP", sans-serif; }
.footer-grid .name { font-family: "Noto Serif JP", serif; font-size: 20px; margin-bottom: 6px; }
.footer-grid p, .footer-grid li { font-size: 13px; opacity: 0.88; margin-bottom: 6px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-hours { width: 100%; font-size: 12px; margin-top: 12px; color: #fff; background: transparent; }
.footer-hours th, .footer-hours td { border-color: rgba(255,255,255,0.2); background: transparent; color: #fff; padding: 6px 4px; text-align: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; opacity: 0.85; }
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-demo { font-size: 12px; background: rgba(255,255,255,0.12); border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; line-height: 1.7; }
.to-top {
  position: fixed; right: 18px; bottom: 74px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; border: none; cursor: pointer; font-size: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18); opacity: 0; pointer-events: none; transition: 0.2s; z-index: 150;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- モバイル固定CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; grid-template-columns: 1fr 1fr; }
.mobile-cta a, .mobile-cta button { padding: 15px 8px; text-align: center; font-weight: 700; font-size: 14px; border: none; cursor: pointer; }
.mobile-cta .m-tel { background: var(--gold); color: #fff; }
.mobile-cta .m-reserve { background: var(--green); color: #fff; }

/* ---------- モーダル ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 12px; max-width: 440px; padding: 36px 30px; text-align: center; }
.modal h3 { font-size: 18px; margin-bottom: 12px; }
.modal p { font-size: 14px; color: var(--gray); margin-bottom: 22px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1300px) {
  .header-btns .btn-hd.access { display: none; }
  .logo .sub { display: none; }
}
@media (max-width: 1000px) {
  .global-nav { display: none; }
  .header-btns .btn-hd.line, .header-btns .btn-hd.access { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .header-inner { padding: 10px 12px; gap: 8px; }
  .logo .name { font-size: 15.5px; }
  .btn-hd.reserve { padding: 9px 10px; font-size: 12px; }
  .menu-toggle { width: 38px; height: 38px; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { width: 18px; left: 9px; }
  .menu-toggle span { top: 17px; }
}
@media (max-width: 860px) {
  section { padding: 54px 20px; }
  .hero { padding: 54px 20px 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { max-width: 340px; justify-self: center; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .news-cols { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-card .photo-ph { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 54px; }
  .to-top { bottom: 66px; }
  .step { grid-template-columns: 56px 1fr; }
}
