/* 野崎歯科医院 static top page */
:root {
  --ink: #1d1d1f;
  --muted: #4a4f55;
  --accent: #0e6f7a;      /* window-sign teal, darkened for contrast */
  --accent-ink: #ffffff;
  --tint: #f2f7f7;
  --line: #d5dfe0;
  --closed: #8a2c2c;
  --radius: 0.5rem;
  --max: 64rem;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: #fff;
  overflow-wrap: anywhere;
  line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; transition: color 200ms ease; }
a:hover { color: #094b53; }
:focus-visible { outline: 3px solid #e08a00; outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  padding: 0.5rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 0.5rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
}
.site-header__brand {
  margin: 0; display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em;
}
.site-header__brand img { width: 1.75rem; }
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-nav a {
  display: inline-block; min-height: 2.75rem; padding: 0.5rem 0.6rem;
  color: var(--ink); text-decoration: none; font-size: 0.9rem; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.45rem; height: 2px;
  background: var(--accent); transform: scale(0, 1); transform-origin: left top;
  transition: transform 300ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scale(1, 1); }
.tel-button {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.tel-button:hover { color: var(--accent-ink); background: #094b53; }
.tel-button__label { font-size: 0.8rem; font-weight: 400; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 2.5rem;
  display: grid; gap: 1.75rem; align-items: center;
}
.hero__title {
  margin: 0; display: flex; align-items: center; gap: 1rem;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.8rem); line-height: 1.3; letter-spacing: 0.1em;
}
.hero__logo { width: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); flex: none; }
.hero__place { margin: 0.75rem 0 0; color: var(--muted); letter-spacing: 0.05em; }
.hero__lead { margin: 0.25rem 0 1.25rem; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.hero__facts { margin: 0 0 1.5rem; display: grid; gap: 0.35rem; }
.hero__facts div, .facts div { display: grid; grid-template-columns: 6em 1fr; gap: 0.75rem; }
.hero__facts dt, .facts dt { font-weight: 700; }
.hero__facts dd, .facts dd { margin: 0; }
.hero__photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.6rem 1.4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
  transition: background-color 200ms ease;
}
.button:hover { background: #094b53; color: var(--accent-ink); }

/* Sections */
.section { padding: 3rem 1rem; }
.section--tint { background: var(--tint); }
.section__inner { max-width: 44rem; margin: 0 auto; }
.section h2 {
  margin: 0 0 1.25rem; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem); line-height: 1.45;
  padding-bottom: 0.6rem; border-bottom: 3px solid var(--accent);
}
.section h3 { margin: 2.25rem 0 0.6rem; font-size: 1.15rem; line-height: 1.5; }
.section p { margin: 0 0 0.75rem; }
.lead { font-weight: 700; }
.callout {
  margin-top: 1.5rem !important; padding: 1rem 1.25rem; border-left: 4px solid var(--accent);
  background: #fff; font-weight: 700;
}
.tags { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { padding: 0.25rem 0.9rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); background: #fff; }
.checklist, .nolist { margin: 0.5rem 0 1rem; padding-left: 1.4em; }
.checklist li::marker { color: var(--closed); }
.nolist li::marker { color: var(--accent); }

/* Hours */
.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
.hours { width: 100%; min-width: 30rem; border-collapse: collapse; text-align: center; background: #fff; }
.hours caption { text-align: left; caption-side: top; padding-bottom: 0.5rem; color: var(--muted); }
.hours th, .hours td { border: 1px solid var(--line); padding: 0.6rem 0.4rem; }
.hours thead th { background: var(--tint); }
.hours tbody th { font-weight: 400; white-space: nowrap; }
.hours td { color: var(--accent); font-weight: 700; }
.hours td.is-closed { color: var(--closed); background: #fbf3f3; }
.facts { margin: 0; display: grid; gap: 0.35rem; }

/* Contact */
.contact__note { display: grid; gap: 1rem; align-items: start; background: #fff; border-radius: var(--radius); padding: 1.25rem; }
.contact__note img { width: 7.5rem; justify-self: center; }
.contact__note h3 { margin-top: 0; }
.contact__address { font-style: normal; margin-bottom: 1rem; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #e6eded; margin-bottom: 0.5rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #f2f2f2; padding: 2rem 1rem; }
.site-footer a { color: #9fe3ea; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; }
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.08em; margin: 0 0 0.5rem; }
.site-footer__brand img { width: 2rem; filter: invert(1); }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer__links { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; gap: 1rem; }
.site-footer__links a { display: inline-block; min-height: 2.75rem; padding: 0.5rem 0; }
.site-footer__copy { color: #c9c9c9; }

@media (min-width: 40rem) {
  .contact__note { grid-template-columns: auto 1fr; }
  .map { aspect-ratio: 16 / 9; }
}
@media (min-width: 52rem) {
  .site-nav { order: 0; flex-basis: auto; }
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1fr 1fr; padding-top: 3rem; padding-bottom: 3.5rem; }
}
@media print {
  .site-header { position: static; }
  .site-nav, .tel-button, .map, .skip-link { display: none; }
}
a[href^="tel:"] { white-space: nowrap; }
