/* 制作例：こもれび歯科クリニック（架空） */
:root {
  --teal: #2f8f83; --teal-deep: #1f5f57; --mint: #e9f6f1; --mint-2: #d7efe7;
  --cream: #fffdf8; --ink: #2d3532; --ink-2: #5b6662; --accent: #e8734a; --line: #dde8e3;
  --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; font-weight: 500; line-height: 1.85; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
.dn-wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.dn-header { position: sticky; top: 34px; z-index: 50; background: rgb(255 253 248 / 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dn-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.dn-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: clamp(15px, 4.2vw, 18px); line-height: 1.2; }
.dn-logo small { display: block; font-size: 11px; font-weight: 700; color: var(--teal); }
.dn-nav { display: none; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 700; }
.dn-nav a { text-decoration: none; color: var(--ink); }
.dn-nav a:hover { color: var(--teal); }
.dn-header__cta { margin-left: auto; padding: 6px 16px; min-height: 40px; box-shadow: 0 4px 0 #c95a33; }
.dn-hero__art { display: none; }
@media (min-width: 640px) { .dn-hero__art { display: block; } }
@media (min-width: 900px) { .dn-nav { display: flex; } .dn-header__cta { margin-left: 0; } }

/* ボタン */
.dn-btn { white-space: nowrap; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 8px 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.3; }
.dn-btn small { font-size: 11px; font-weight: 500; opacity: 0.9; }
.dn-btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 0 #c95a33; }
.dn-btn--accent:hover { transform: translateY(1px); box-shadow: 0 5px 0 #c95a33; }
.dn-btn--line { background: #fff; color: var(--teal-deep); border-color: var(--teal); }
.dn-btn--lg { min-height: 64px; padding: 10px 28px; font-size: 17px; }
.dn-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ヒーロー */
.dn-hero { background: linear-gradient(180deg, var(--mint) 0%, var(--cream) 100%); padding: 40px 0 24px; overflow: hidden; }
.dn-hero__inner { display: grid; gap: 24px; align-items: center; }
.dn-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.dn-hero__tags span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; color: var(--teal-deep); }
.dn-hero h1 { font-size: clamp(30px, 7vw, 50px); font-weight: 900; letter-spacing: 0.02em; }
.dn-hero__lead { color: var(--ink-2); margin: 16px 0 24px; max-width: 34em; }
.dn-hero__actions { display: grid; gap: 14px; }
.dn-hero__art { max-width: 380px; justify-self: center; }
@media (min-width: 640px) { .dn-hero__actions { grid-template-columns: repeat(2, max-content); } }
@media (min-width: 900px) { .dn-hero { padding: 72px 0 48px; } .dn-hero__inner { grid-template-columns: 1.2fr 1fr; } }

/* カード・見出し */
.dn-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: 0 10px 30px rgb(47 143 131 / 0.07); }
.dn-section { padding: 64px 0; }
.dn-section--tint { background: var(--mint); }
.dn-eyebrow { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.dn-h2 { font-size: clamp(24px, 5vw, 34px); font-weight: 900; margin: 4px 0 28px; }
.dn-h3 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.dn-note { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }

/* 診療時間・お知らせ */
.dn-hours { margin-top: -8px; }
.dn-hours .dn-wrap { display: grid; gap: 16px; }
@media (min-width: 900px) { .dn-hours .dn-wrap { grid-template-columns: 1.5fr 1fr; } }
.dn-table-wrap { overflow-x: auto; }
.dn-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 15px; min-width: 460px; }
.dn-table th, .dn-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.dn-table thead th { color: var(--teal-deep); font-size: 13px; }
.dn-table tbody th { text-align: left; white-space: nowrap; font-weight: 700; }
.dn-table td { color: var(--teal); font-weight: 900; font-size: 18px; }
.dn-table td.is-off { color: #b5bdb9; }
.dn-news ul { list-style: none; margin: 0; padding: 0; }
.dn-news li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.dn-news time { color: var(--teal); font-size: 12px; font-weight: 700; }

/* 初めての方へ */
.dn-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .dn-steps { grid-template-columns: repeat(4, 1fr); } }
.dn-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 20px 20px; }
.dn-steps__no { position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; }
.dn-steps h3 { font-size: 17px; margin-bottom: 6px; }
.dn-steps p { margin: 0; font-size: 14px; color: var(--ink-2); }
.dn-bring { margin: 24px 0 0; padding: 14px 18px; background: var(--mint); border-radius: 12px; font-size: 14px; }

/* 診療内容 */
.dn-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .dn-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .dn-services { grid-template-columns: repeat(3, 1fr); } }
.dn-services h3 { font-size: 18px; margin: 12px 0 6px; }
.dn-services p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* 院長 */
.dn-doctor { display: grid; gap: 28px; align-items: center; }
.dn-doctor__photo { max-width: 260px; }
@media (min-width: 900px) { .dn-doctor { grid-template-columns: 280px 1fr; } }
.dn-sign { font-weight: 900; font-size: 18px; }
.dn-sign small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* 予約 */
.dn-reserve { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .dn-reserve { grid-template-columns: 1fr 1fr; } }
.dn-tel { font-size: 32px; font-weight: 900; color: var(--teal-deep); letter-spacing: 0.04em; margin: 8px 0; }
.dn-tel small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.dn-form { display: grid; gap: 14px; }
.dn-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.dn-form input, .dn-form select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }

/* アクセス */
.dn-access { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .dn-access { grid-template-columns: 1fr 1fr; } }
.dn-dl { margin: 0; display: grid; gap: 10px; }
.dn-dl div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dn-dl dt { font-weight: 900; color: var(--teal-deep); }
.dn-dl dd { margin: 0; }

/* フッター・下部の固定ボタン（スマホ） */
.dn-footer { background: var(--teal-deep); color: #e9f6f1; padding: 40px 0 110px; font-size: 14px; }
.dn-footer__name { font-size: 18px; font-weight: 900; margin: 0 0 4px; }
.dn-footer p { margin: 0 0 4px; }
.dn-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.96); border-top: 1px solid var(--line); }
.dn-bottombar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-weight: 900; text-decoration: none; border: 2px solid var(--teal); color: var(--teal-deep); }
.dn-bottombar a.is-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 900px) { .dn-bottombar { display: none; } .dn-footer { padding-bottom: 40px; } }
/* グリッドの中身が表の幅に引っぱられて広がらないように */
.dn-hours .dn-wrap > *, .dn-reserve > *, .dn-access > *, .dn-doctor > * { min-width: 0; }
body { overflow-x: clip; }
@media (max-width: 559px) {
  .dn-card { padding: 18px 14px; }
  .dn-table { min-width: 0; font-size: 12px; }
  .dn-table th, .dn-table td { padding: 8px 2px; }
  .dn-table td { font-size: 15px; }
  .dn-table tbody th { white-space: normal; width: 4.5em; line-height: 1.3; }
}
.dn-hero__art, .dn-doctor__photo, .dn-map { width: 100%; } .dn-hero__art svg, .dn-doctor__photo svg, .dn-map svg { width: 100%; }
