/* さくら通り歯科医院（ADWORKS.jp サンプルサイト） */
:root {
  --ink: #2f3b48;        /* 本文 */
  --ink-sub: #55626f;    /* 補足（コントラスト比 6:1 以上） */
  --sakura: #e47a93;     /* アクセント */
  --sakura-dk: #c4506d;  /* 文字・ボタン用の濃いさくら色（白文字で 4.5:1 以上） */
  --sakura-lt: #fde8ee;
  --leaf: #4f8f68;
  --leaf-lt: #e6f2ea;
  --cream: #fffaf4;
  --line: #e7ddd3;
  --max: 1080px;
  --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--cream);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 18px; line-height: 1.9; letter-spacing: .02em;
  font-feature-settings: "palt";
}
@media (max-width: 640px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sakura-dk); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* サンプル表示の帯 */
.sample-bar {
  background: #2f3b48; color: #fff; font-size: 14px; line-height: 1.6;
  text-align: center; padding: 8px 16px;
}
.sample-bar a { color: #ffd3de; }

/* ヘッダー */
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-name { font-weight: 900; font-size: 22px; letter-spacing: .06em; line-height: 1.2; }
.logo-name small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-sub); letter-spacing: .1em; }
.hdr-tel { text-align: right; line-height: 1.3; }
.hdr-tel a { font-size: 26px; font-weight: 900; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.hdr-tel small { display: block; font-size: 13px; color: var(--ink-sub); }
@media (max-width: 860px) { .hdr-tel { display: none; } .logo-name { font-size: 19px; } }

.gnav { background: #fff; border-bottom: 1px solid var(--line); }
.gnav ul { list-style: none; margin: 0 auto; padding: 0 20px; max-width: var(--max); display: flex; flex-wrap: wrap; }
.gnav li { flex: 1 1 auto; }
.gnav a, .gnav span { display: block; text-align: center; padding: 12px 8px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.gnav a:hover, .gnav a[aria-current="page"] { border-bottom-color: var(--sakura); color: var(--sakura-dk); }
.gnav span { color: #a7a29c; font-weight: 500; cursor: default; }
@media (max-width: 860px) {
  .gnav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 8px; }
  .gnav li { flex: none; }
  .gnav a, .gnav span { padding: 10px 12px; font-size: 15px; white-space: nowrap; }
}

/* ひと目で分かる帯 */
.facts { background: var(--leaf-lt); }
.facts ul { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 700; font-size: 16px; }
.facts li::before { content: "●"; color: var(--leaf); margin-right: .35em; font-size: .8em; }

/* ヒーロー */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 40px; font-weight: 900; letter-spacing: .08em; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--sakura-dk); }
.hero p.lead { font-size: 18px; color: var(--ink-sub); }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) {
  .hero { padding: 28px 0 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 30px; }
  .hero-ill { order: -1; max-width: 460px; margin: 0 auto; }
}

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 900; font-size: 18px; text-decoration: none; border: 2px solid transparent; }
.btn-main { background: var(--sakura-dk); color: #fff; }
.btn-main:hover { background: #a73d59; color: #fff; }
.btn-sub { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-sub:hover { background: var(--ink); color: #fff; }
.btn svg { width: 22px; height: 22px; }

/* セクション */
.sec { padding: 64px 0; }
.sec-white { background: #fff; }
.sec-pink { background: var(--sakura-lt); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head .en { display: block; color: var(--sakura-dk); font-weight: 700; font-size: 14px; letter-spacing: .2em; }
.sec-head h2 { font-size: 30px; font-weight: 900; margin: .2em 0 .3em; }
.sec-head p { color: var(--ink-sub); margin: 0; }
@media (max-width: 640px) { .sec { padding: 48px 0; } .sec-head h2 { font-size: 24px; } }

/* 3つの入口 */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.door:hover { border-color: var(--sakura); transform: translateY(-3px); color: var(--ink); }
.door img { width: 120px; height: 120px; margin: 0 auto 12px; }
.door h3 { font-size: 22px; text-align: center; font-weight: 900; }
.door p { font-size: 16px; color: var(--ink-sub); flex: 1; }
.door .more { font-weight: 900; color: var(--sakura-dk); text-align: center; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; } .door img { width: 84px; height: 84px; margin: 0; } .door h3 { text-align: left; flex: 1; margin: 0; } .door p { flex-basis: 100%; margin: 10px 0; } .door .more { text-align: right; flex-basis: 100%; } }

/* 診療時間表 */
.hours { width: 100%; border-collapse: collapse; background: #fff; font-size: 17px; text-align: center; }
.hours th, .hours td { border: 1px solid var(--line); padding: 10px 4px; }
.hours thead th { background: var(--leaf); color: #fff; font-weight: 700; }
.hours tbody th { background: var(--leaf-lt); font-weight: 700; white-space: nowrap; }
.hours .ok { color: var(--leaf); font-weight: 900; font-size: 20px; }
.hours .half { color: var(--leaf); font-weight: 900; font-size: 15px; }
.hours .no { color: #b5ada5; }
.note { font-size: 15px; color: var(--ink-sub); }
.today-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .today-grid { grid-template-columns: 1fr; } }

/* カレンダー */
.cal { background: #fff; border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.cal h3 { font-size: 18px; text-align: center; margin-bottom: 8px; }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: 16px; table-layout: fixed; }
.cal th { font-size: 14px; color: var(--ink-sub); padding: 4px 0; }
.cal td { padding: 6px 0; }
.cal td.off span { display: inline-block; width: 32px; height: 32px; line-height: 32px; border-radius: 50%; background: var(--sakura-lt); color: var(--sakura-dk); font-weight: 900; }
.cal td.sun { color: var(--sakura-dk); }
.cal .legend { font-size: 14px; color: var(--ink-sub); margin: 10px 0 0; text-align: center; }
.cal .legend span { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--sakura-lt); border: 1px solid var(--sakura); vertical-align: -1px; margin-right: 4px; }

/* 考え方 */
.policy { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
.policy ul { list-style: none; padding: 0; margin: 0 0 18px; }
.policy li { position: relative; padding-left: 2em; margin-bottom: .6em; font-weight: 700; }
.policy li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--sakura); box-shadow: inset 0 0 0 4px var(--sakura-lt); }
.policy .sign { text-align: right; font-weight: 700; }
@media (max-width: 860px) { .policy { grid-template-columns: 1fr; } .policy img { max-width: 240px; margin: 0 auto; } }

/* バナー2つ */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.banner { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; background: #fff; border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); border: 2px solid var(--line); }
.banner:hover { border-color: var(--leaf); color: var(--ink); }
.banner h3 { font-size: 20px; font-weight: 900; margin-bottom: .2em; }
.banner p { font-size: 16px; color: var(--ink-sub); margin: 0; }
@media (max-width: 860px) { .banners { grid-template-columns: 1fr; } .banner { grid-template-columns: 80px 1fr; } }

/* お知らせ */
.news { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news a { display: flex; gap: 18px; padding: 16px 22px; text-decoration: none; color: var(--ink); }
.news a:hover { background: var(--cream); }
.news time { color: var(--ink-sub); font-size: 16px; white-space: nowrap; }
@media (max-width: 640px) { .news a { flex-direction: column; gap: 0; } }

/* 採用 */
.recruit { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--leaf); color: #fff; border-radius: var(--r); padding: 30px 34px; }
.recruit h2 { font-size: 26px; font-weight: 900; margin-bottom: .2em; }
.recruit p { margin: 0; }
.recruit .btn-sub { border-color: #fff; }
@media (max-width: 860px) { .recruit { grid-template-columns: 1fr; text-align: center; } }

/* アクセス */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.access dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; gap: 10px 14px; }
.access dt { font-weight: 900; color: var(--leaf); }
.access dd { margin: 0; }
.map-ph { background: #fff; border: 1px solid var(--line); border-radius: var(--r); min-height: 260px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* 下層ページ */
.page-title { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.crumb { font-size: 14px; color: var(--ink-sub); margin-bottom: 8px; }
.crumb a { color: var(--ink-sub); }
.page-title h1 { font-size: 32px; font-weight: 900; margin: 0; letter-spacing: .06em; }
.page-title p { margin: .4em 0 0; color: var(--ink-sub); }
@media (max-width: 640px) { .page-title h1 { font-size: 25px; } }

.intro { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: center; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro img { max-width: 300px; margin: 0 auto; order: -1; } }
.box { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 28px 30px; }
.box + .box { margin-top: 20px; }
.box h3 { font-size: 22px; font-weight: 900; color: var(--ink); border-left: 6px solid var(--sakura); padding-left: 12px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding-left: 2em; margin-bottom: .5em; }
.check li::before { content: ""; position: absolute; left: .2em; top: .5em; width: .9em; height: .5em; border-left: 4px solid var(--leaf); border-bottom: 4px solid var(--leaf); transform: rotate(-45deg); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.steps li::before { content: counter(st); width: 48px; height: 48px; border-radius: 50%; background: var(--sakura-dk); color: #fff; font-weight: 900; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 20px; font-weight: 900; margin: 6px 0 .2em; }
.steps p { margin: 0; color: var(--ink-sub); font-size: 17px; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .cols3, .cols2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card img { width: 96px; height: 96px; margin: 0 auto 10px; }
.card h3 { font-size: 20px; font-weight: 900; text-align: center; }
.card p { font-size: 17px; color: var(--ink-sub); margin: 0; }

.price { width: 100%; border-collapse: collapse; background: #fff; font-size: 17px; }
.price th, .price td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.price thead th { background: var(--leaf-lt); }

.faq dt { font-weight: 900; margin-top: 18px; padding-left: 2em; position: relative; }
.faq dt::before { content: "Q"; position: absolute; left: 0; color: var(--sakura-dk); font-size: 1.1em; }
.faq dd { margin: 6px 0 0; padding-left: 2em; position: relative; color: var(--ink-sub); }
.faq dd::before { content: "A"; position: absolute; left: 0; color: var(--leaf); font-weight: 900; font-size: 1.1em; }

.cta { text-align: center; background: #fff; border: 2px solid var(--sakura); border-radius: var(--r); padding: 30px 20px; }
.cta p.big { font-size: 22px; font-weight: 900; margin-bottom: .4em; }
.cta .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* 自費診療のリスク表示・その他 */
.box.risk { background: #fffaf2; border-color: #ead7bd; margin-top: 18px; }
.box.risk h3 { border-left-color: #c8a46b; }
.dot { margin: 0; padding-left: 1.3em; }
.dot li { margin-bottom: .4em; }
.price tbody th { background: var(--cream); text-align: left; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.doors.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .doors.two { grid-template-columns: 1fr; } .price { font-size: 15px; } .price th, .price td { padding: 10px; } }

/* テイスト切り替え（サンプルの帯） */
.theme-sw { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; white-space: nowrap; }
.theme-sw button { font: inherit; font-size: 13px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 2px 12px; cursor: pointer; }
.theme-sw button[aria-pressed="true"] { background: #fff; color: #2f3b48; border-color: #fff; font-weight: 700; }
@media (max-width: 640px) { .theme-sw { display: flex; justify-content: center; margin: 6px 0 0; } }

/* ===== 上品テイスト（html[data-theme="elegant"]） ===== */
html[data-theme="elegant"] {
  --ink: #2e3640; --ink-sub: #59626b;
  --sakura: #c48d97; --sakura-dk: #7a4f5a; --sakura-lt: #f6eceb;
  --leaf: #56756a; --leaf-lt: #edf1ec;
  --cream: #f8f6f2; --line: #e3ddd3; --r: 6px;
  --gold: #b89b6a;
}
html[data-theme="elegant"] h1, html[data-theme="elegant"] h2, html[data-theme="elegant"] h3,
html[data-theme="elegant"] .logo-name, html[data-theme="elegant"] .recruit h2, html[data-theme="elegant"] .cta p.big {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600; letter-spacing: .08em;
}
html[data-theme="elegant"] .hero h1 { font-weight: 600; letter-spacing: .12em; }
html[data-theme="elegant"] .hero { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
html[data-theme="elegant"] .sec-head .en { color: var(--gold); letter-spacing: .3em; font-weight: 500; }
html[data-theme="elegant"] .sec-head h2::after { content: ""; display: block; width: 36px; height: 1px; background: var(--gold); margin: 14px auto 0; }
html[data-theme="elegant"] .btn { border-radius: 4px; font-weight: 700; letter-spacing: .08em; }
html[data-theme="elegant"] .door, html[data-theme="elegant"] .banner { border-width: 1px; }
html[data-theme="elegant"] .door:hover, html[data-theme="elegant"] .banner:hover { border-color: var(--gold); }
html[data-theme="elegant"] .facts { background: #fff; border-bottom: 1px solid var(--line); }
html[data-theme="elegant"] .facts li::before { content: "◆"; color: var(--gold); }
html[data-theme="elegant"] .policy li::before { width: .55em; height: .55em; top: .7em; left: .3em; border-radius: 0; transform: rotate(45deg); background: var(--gold); box-shadow: none; }
html[data-theme="elegant"] .steps li::before { background: transparent; color: var(--sakura-dk); border: 1.5px solid var(--sakura-dk); font-family: "Noto Serif JP", serif; font-weight: 600; }
html[data-theme="elegant"] .box h3 { border-left-width: 2px; border-left-color: var(--gold); }
html[data-theme="elegant"] .hours thead th { background: var(--ink); }
html[data-theme="elegant"] .hours tbody th { background: var(--cream); }
html[data-theme="elegant"] .hours .ok, html[data-theme="elegant"] .hours .half { color: var(--sakura-dk); }
html[data-theme="elegant"] .recruit { background: var(--ink); }
html[data-theme="elegant"] .cta { border-width: 1px; border-color: var(--gold); }
html[data-theme="elegant"] .ftr { background: #262d35; }

/* フッター */
.ftr { background: var(--ink); color: #e6e9ec; padding: 44px 0 110px; font-size: 16px; }
.ftr a { color: #fff; }
.ftr-in { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ftr .name { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: .3em; }
.ftr ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.ftr li { margin-bottom: .3em; }
.ftr .copy { text-align: center; font-size: 13px; color: #aab3bc; margin-top: 30px; }
@media (max-width: 860px) { .ftr-in { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .ftr { padding-bottom: 44px; } }

/* スマホ下部の固定ボタン */
.fixbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.3fr 1fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.fixbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; text-decoration: none; font-weight: 900; font-size: 14px; color: var(--ink); }
.fixbar a:first-child { background: var(--sakura-dk); color: #fff; font-size: 16px; }
.fixbar svg { width: 24px; height: 24px; }
@media (min-width: 861px) { .fixbar { display: none; } }
