/* こもれび坂 内科・小児科（見本） */
:root {
  --bg: #ffffff;
  --mint: #eef7f3;
  --mint-2: #dcefe6;
  --line: #c9ded4;
  --ink: #142a3e;
  --ink-soft: #3c5266;
  --green: #2f7d5b;
  --green-dark: #23624a;
  --closed: #8a97a3;
  --today: #fff6d6;
  --today-line: #e0b84a;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.85;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name {
  font-family: "Zen Maru Gothic", "BIZ UDPGothic", sans-serif;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--today-line);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  background: var(--green);
  display: grid; place-items: center;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-size: 20px; letter-spacing: .02em; }
.brand-name small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: .08em; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.nav a:hover { background: var(--mint); }
.nav a[aria-current="page"] { background: var(--mint-2); color: var(--green-dark); }

/* ---------- hero ---------- */
.hero { background: var(--mint); }
.hero-inner {
  display: grid;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 36px;
}
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1fr 1.1fr; align-items: center; padding-top: 48px; padding-bottom: 56px; }
}
.hero h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 12px; }
.hero .lead { margin: 0 0 22px; color: var(--ink-soft); }
.hero-photo { border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: 0 6px 24px rgba(20, 42, 62, .08); }
.dept-line { margin: 0 0 6px; font-weight: 700; color: var(--green-dark); letter-spacing: .1em; font-size: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--green);
  cursor: pointer;
  font-family: inherit;
}
.btn-main { background: var(--green); color: #fff; }
.btn-main:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-sub { background: #fff; color: var(--green-dark); }
.btn-sub:hover { background: var(--mint-2); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-tel-num { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.btn-sub { white-space: nowrap; }
.note { font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--mint-2); }
.section h2 {
  font-size: clamp(24px, 4.6vw, 30px);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.section h2::before {
  content: "";
  width: 10px; height: 28px; border-radius: 5px;
  background: var(--green);
  flex: none;
}
.section p { margin: 0 0 1em; }

.page-head { background: var(--mint); padding: 32px 0 28px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 6vw, 38px); }
.page-head p { margin: 8px 0 0; color: var(--ink-soft); }

/* ---------- hours table ---------- */
.today-msg {
  display: inline-block;
  background: var(--today);
  border: 2px solid var(--today-line);
  border-radius: 8px;
  padding: 6px 14px;
  margin: 0 0 14px;
  font-weight: 700;
}
.today-msg:empty { display: none; }
.table-box {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.hours {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  text-align: center;
  font-size: 18px;
}
.hours th, .hours td { padding: 12px 4px; border-bottom: 1px solid var(--mint-2); }
.hours thead th { background: var(--mint); font-family: "Zen Maru Gothic", sans-serif; font-size: 17px; }
.hours tbody th { text-align: left; padding-left: 12px; white-space: nowrap; font-size: 16px; line-height: 1.4; }
.hours tbody th span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.hours tbody tr:last-child th, .hours tbody tr:last-child td { border-bottom: 0; }
.hours .open { color: var(--green); font-weight: 700; font-size: 22px; }
.hours .closed { color: var(--closed); font-size: 20px; }
.hours .is-today { background: var(--today); box-shadow: inset 2px 0 0 var(--today-line), inset -2px 0 0 var(--today-line); }
.hours thead .is-today { background: var(--today-line); color: var(--ink); }
.hours-notes { margin: 14px 0 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 16px; }
.hours-notes li + li { margin-top: 4px; }

/* ---------- departments ---------- */
.dept-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .dept-list { grid-template-columns: 1fr 1fr 1fr; } }
.dept-list li {
  border-left: 6px solid var(--green);
  background: var(--mint);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.dept-list h3 { margin: 0 0 4px; font-size: 21px; }
.dept-list p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- greeting ---------- */
.greeting {
  display: grid; gap: 24px;
}
@media (min-width: 860px) { .greeting { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.greeting blockquote {
  margin: 0;
  padding: 22px 22px 8px;
  background: #fff;
  border: 2px solid var(--mint-2);
  border-radius: var(--radius);
}
.greeting .sign { text-align: right; font-weight: 700; color: var(--ink-soft); }
.photo-pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.photo-pair figure { margin: 0; }
.photo-pair img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-pair figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 持ち物 (filled rounded-square icons) ---------- */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .items { grid-template-columns: 1fr 1fr; } }
.items li {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px;
  background: var(--mint);
  border-radius: var(--radius);
}
.ico {
  width: 56px; height: 56px; flex: none;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--green);
}
.ico svg { width: 32px; height: 32px; }
.ico.c2 { background: #3f6f8f; }
.ico.c3 { background: #b9774a; }
.items strong { display: block; font-size: 19px; line-height: 1.4; }
.items span { font-size: 15px; color: var(--ink-soft); line-height: 1.5; display: block; }

/* ---------- flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li {
  position: relative;
  padding: 0 0 26px 70px;
  counter-increment: step;
}
.flow li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700; font-size: 22px;
  display: grid; place-items: center;
}
.flow li::after {
  content: "";
  position: absolute; left: 23px; top: 52px; bottom: 4px;
  width: 2px; background: var(--line);
}
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow h3 { margin: 6px 0 4px; font-size: 21px; }
.flow p { margin: 0; }

/* ---------- FAQ ---------- */
.faq details {
  border: 2px solid var(--mint-2);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--mint-2); }
.faq .answer { padding: 14px 18px 4px; }

/* ---------- access ---------- */
.map-figure { margin: 0 0 12px; }
.map-figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.map-figure figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.info-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .info-list > div { grid-template-columns: 9em 1fr; gap: 16px; } }
.info-list dt { font-weight: 700; color: var(--green-dark); }
.info-list dd { margin: 0; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #e6eef3; padding: 32px 0 28px; margin-top: 20px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 14px; }
.footer-name { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 19px; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
.copy { font-size: 14px; color: #b9c7d2; margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 400px) {
  .btn { padding: 12px 20px; }
  .hours th, .hours td { padding: 12px 2px; }
  .hours tbody th { padding-left: 10px; }
}
