/* みなもと内科・小児科クリニック — design sample (Sapporo Web) */
:root {
  --ink: #1f3038;
  --ink-soft: #55696f;
  --teal: #2a9d8f;
  --teal-dark: #1f7a6f;
  --mint: #eef8f5;
  --mint-2: #dff1ec;
  --sky: #eaf4fa;
  --sky-ink: #2b6f95;
  --line: #dfe9ea;
  --white: #fff;
  --radius: 18px;
  --sans: "Noto Sans JP", "Hiragino Sans", "Meiryo", sans-serif;
  --head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3 { text-wrap: balance; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.9 var(--sans); letter-spacing: .02em; padding-bottom: 64px; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
.nb { display: inline-block; }
.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- sample banner (fixed) ---- */
.sample-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 20px;
  padding: 10px 16px; background: #1d1d1f; color: #fff; font: 700 13px/1.5 "Zen Kaku Gothic New", "Hiragino Sans", "Meiryo", sans-serif;
  letter-spacing: .02em; text-align: center; border-top: 3px solid #ffd23f;
}
.sample-bar strong { background: #ffd23f; color: #1d1d1f; padding: 1px 8px; border-radius: 4px; margin-right: 4px; }
.sample-bar__link { color: #fff; text-underline-offset: 3px; white-space: nowrap; }
.capture .sample-bar { display: none; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; color: var(--teal); flex: none; }
.brand__name { font: 700 21px/1.2 var(--head); letter-spacing: .06em; display: flex; flex-direction: column; }
.brand__name small { font: 500 11.500px/1.3 var(--sans); letter-spacing: .08em; color: var(--ink-soft); }
.nav { display: flex; gap: 26px; font: 500 14px var(--sans); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--teal); color: var(--teal-dark); }
.header-tel { text-decoration: none; text-align: right; line-height: 1.3; }
.header-tel__label { display: block; font-size: 11px; color: var(--ink-soft); }
.header-tel__num { display: inline-flex; align-items: center; gap: 6px; font: 700 22px/1.3 var(--head); color: var(--teal-dark); letter-spacing: .04em; }
.header-tel__num svg { width: 18px; height: 18px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border-radius: 12px; background: var(--teal); color: #fff; font: 700 16px/1.2 var(--head); letter-spacing: .06em; text-decoration: none; border: 2px solid var(--teal); transition: background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--ghost { background: #fff; color: var(--teal-dark); }
.btn--ghost:hover { background: var(--mint); color: var(--teal-dark); border-color: var(--teal); }

/* ---- hero ---- */
.hero { background: linear-gradient(180deg, var(--mint) 0, #fff 100%); padding: 48px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__label { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.hero__label span { background: #fff; border: 1px solid var(--mint-2); color: var(--teal-dark); border-radius: 999px; padding: 2px 16px; font: 700 13px/1.8 var(--head); letter-spacing: .08em; }
.hero h1 { font: 700 clamp(28px, 3vw, 40px)/1.55 var(--head); letter-spacing: .03em; margin: 0 0 22px; }
.hero__lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.hero__notes li { padding-left: 24px; position: relative; }
.hero__notes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.500px solid var(--teal); border-bottom: 2.500px solid var(--teal); transform: rotate(-45deg) scale(.85); }
.hero__visual { position: relative; }
.hero__photo { width: 100%; aspect-ratio: 5 / 5; object-fit: cover; border-radius: 28px 28px 28px 120px; filter: saturate(.82) brightness(1.06); }
.hero__card { position: absolute; left: -32px; bottom: 28px; background: #fff; border-radius: 16px; padding: 18px 24px 14px; box-shadow: 0 18px 40px -18px rgba(31,48,56,.35); min-width: 240px; }
.hero__card-title { font: 700 13px/1 var(--head); color: var(--teal-dark); letter-spacing: .1em; margin: 0 0 10px; }
.hero__card dl { margin: 0; }
.hero__card dl div { display: flex; align-items: baseline; gap: 14px; padding: 4px 0; border-top: 1px solid var(--line); }
.hero__card dt { font-size: 12px; color: #fff; background: var(--teal); border-radius: 6px; padding: 0 8px; line-height: 1.7; }
.hero__card dd { margin: 0; font: 700 21px/1.4 var(--head); letter-spacing: .03em; }
.hero__card-note { font-size: 11.500px; color: var(--ink-soft); margin: 6px 0 0; }

/* ---- sections ---- */
.section { padding: 92px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head--left { text-align: left; margin-bottom: 28px; }
.eyebrow { font: 700 12.500px/1 var(--head); color: var(--teal); letter-spacing: .24em; text-transform: uppercase; margin: 0 0 10px; }
.section-title { font: 700 clamp(26px, 3vw, 34px)/1.4 var(--head); letter-spacing: .08em; margin: 0; }
.section-sub { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; text-align: center; transition: box-shadow .25s, transform .25s; }
.service:hover { box-shadow: 0 20px 40px -26px rgba(31,48,56,.35); transform: translateY(-3px); }
.service__icon { width: 64px; height: 64px; margin: 0 auto 14px; }
.ic-bg { fill: var(--mint); }
.ic-line { fill: none; stroke: var(--teal); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font: 700 20px/1.4 var(--head); letter-spacing: .1em; margin: 0 0 8px; }
.service p { font-size: 14px; line-height: 1.85; color: var(--ink-soft); margin: 0; text-align: left; }

/* hours */
.hours { background: var(--sky); }
.hours-inner { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: stretch; }
.hours .eyebrow { color: var(--sky-ink); }
.table-wrap { background: #fff; border-radius: var(--radius); padding: 10px 24px 14px; box-shadow: 0 18px 40px -32px rgba(31,70,95,.5); }
.hours-table { width: 100%; border-collapse: collapse; text-align: center; }
.hours-table th, .hours-table td { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.hours-table thead th { font: 700 14px/1.4 var(--head); color: var(--sky-ink); border-bottom: 2px solid var(--sky-ink); padding: 14px 4px 12px; }
.hours-table thead th:first-child { text-align: left; }
.hours-table .sat { color: #2b78c2; }
.hours-table .sun { color: #d4584a; }
.hours-table .sun small { display: block; font-size: 10.500px; font-weight: 500; line-height: 1; margin-top: 2px; }
.hours-table tbody th { text-align: left; font: 700 17px/1.4 var(--head); white-space: nowrap; letter-spacing: .02em; }
.hours-table tbody th small { display: block; font: 400 11.500px/1.4 var(--sans); color: var(--ink-soft); letter-spacing: 0; margin-top: 2px; }
.hours-table td.on { color: var(--teal); font-size: 20px; }
.hours-table td.off { color: #b5c2c6; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.sub th { font-size: 15px; }
.hours__notes { list-style: none; margin: 20px 0 0; padding: 0; font-size: 14px; color: var(--ink-soft); display: grid; gap: 4px; }
.hours__notes li { padding-left: 1.2em; position: relative; }
.hours__notes li::before { content: "※"; position: absolute; left: 0; }
.hours__side { position: relative; display: flex; flex-direction: column; }
.hours__photo { width: 100%; flex: 1; min-height: 260px; object-fit: cover; border-radius: var(--radius); }
.hours__call { margin: -64px 18px 0; position: relative; background: var(--teal); color: #fff; border-radius: 16px; padding: 18px 20px 14px; text-align: center; box-shadow: 0 16px 30px -16px rgba(20,90,80,.7); }
.hours__call p { margin: 0 0 2px; font-size: 13px; }
.hours__call a { display: block; text-decoration: none; font: 700 27px/1.4 var(--head); letter-spacing: .04em; }
.hours__call small { font-size: 12px; opacity: .88; }

/* first visit */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--mint); border-radius: var(--radius); padding: 28px 22px 24px; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 46px; width: 12px; height: 12px; border-top: 3px solid var(--teal); border-right: 3px solid var(--teal); transform: rotate(45deg); opacity: .55; z-index: 1; }
.step__no { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 18px/1 var(--head); margin-bottom: 12px; }
.step h3 { font: 700 18px/1.5 var(--head); letter-spacing: .06em; margin: 0 0 6px; }
.step p { font-size: 14px; line-height: 1.85; color: var(--ink-soft); margin: 0; }
.first-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.box h3 { font: 700 18px/1.5 var(--head); letter-spacing: .08em; margin: 0 0 12px; padding-left: 14px; border-left: 5px solid var(--teal); }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.500px; line-height: 1.8; }
.check li { padding-left: 26px; position: relative; }
.check li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 13px; height: 7px; border-left: 2.500px solid var(--teal); border-bottom: 2.500px solid var(--teal); transform: rotate(-45deg); }

/* news */
.news { background: var(--mint); }
.news-inner { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); padding: 6px 30px; }
.news-list li { display: grid; grid-template-columns: 6.5em auto 1fr; gap: 6px 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { font: 500 14px/1.6 var(--head); color: var(--ink-soft); letter-spacing: .04em; }
.news-list p { margin: 0; font-size: 15px; line-height: 1.8; }
.badge { display: inline-block; justify-self: start; min-width: 6.4em; text-align: center; font: 700 12px/1.9 var(--head); background: var(--mint-2); color: var(--teal-dark); border-radius: 6px; padding: 0 8px; letter-spacing: .06em; }
.badge--blue { background: var(--sky); color: var(--sky-ink); }
.badge--gray { background: #eef1f2; color: var(--ink-soft); }

/* access */
.access-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.map { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; aspect-ratio: 560 / 400; }
.map figcaption { padding: 14px 20px; font-size: 13.500px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.map-bg { fill: #f3f7f6; } .map-road { fill: #fff; } .map-road--main { fill: #fff; stroke: #dbe6e6; stroke-width: 2; }
.map-block { fill: #e5eeec; } .map-park { fill: #cfe8dc; }
.map-pin__body { fill: var(--teal); } .map-pin__cross { stroke: #fff; stroke-width: 5; stroke-linecap: round; fill: none; }
.map-station { fill: var(--sky-ink); } .map-station__t { fill: #fff; font: 700 14px var(--sans); }
.map-label { fill: #7b8d91; font: 500 13px var(--sans); }
.map-label--clinic { fill: var(--ink); font-weight: 700; font-size: 14px; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.info-table th { width: 5.5em; color: var(--teal-dark); font-weight: 700; white-space: nowrap; }
.access-photo { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }

/* cta */
.cta { background: var(--teal); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.5 var(--head); letter-spacing: .06em; margin: 0 0 4px; }
.cta p { margin: 0; opacity: .92; }
.cta__tel { text-decoration: none; background: #fff; color: var(--teal-dark); border-radius: 16px; padding: 14px 36px 12px; text-align: center; box-shadow: 0 16px 30px -18px rgba(0,60,50,.7); }
.cta__label { display: block; font-size: 12px; color: var(--ink-soft); }
.cta__num { display: inline-flex; align-items: center; gap: 8px; font: 700 34px/1.4 var(--head); letter-spacing: .04em; }
.cta__num svg { width: 26px; height: 26px; }

/* footer */
.site-footer { background: #17262c; color: #c9d6d9; padding: 32px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 40px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.footer-brand { font: 700 18px/1.5 var(--head); color: #fff; letter-spacing: .06em; }
.copy { color: #92a4a8; }

/* ---- tablet / phone ---- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hero-inner, .hours-inner, .access-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 40px; }
  .hero__card { left: 16px; bottom: -22px; }
  .hero { padding-bottom: 80px; }
  .service-grid, .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
  .news-inner { grid-template-columns: 1fr; gap: 0; }
  .hours__side { flex-direction: row; gap: 20px; align-items: center; }
  .hours__photo { display: none; }
  .hours__call { margin: 0; flex: 1; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; padding-bottom: 78px; }
  .wrap { width: calc(100% - 32px); }
  .sample-bar { font-size: 11px; flex-direction: column; gap: 1px; padding: 7px 8px; }
  .sample-bar strong { padding: 0 6px; }
  .header-inner { gap: 10px; padding: 10px 0; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 16px; }
  .brand__name small { font-size: 10px; letter-spacing: .02em; }
  .header-tel__label { display: none; }
  .header-tel { background: var(--teal); color: #fff; border-radius: 10px; padding: 8px 12px; }
  .header-tel__num { color: #fff; font-size: 0; gap: 0; }
  .header-tel__num svg { width: 20px; height: 20px; }
  .header-tel__num::after { content: "電話"; font: 700 14px var(--head); margin-left: 5px; letter-spacing: .08em; }
  .hero { padding: 28px 0 64px; }
  .hero h1 { font-size: 27px; }
  .hero__lead { font-size: 15px; }
  .hero__lead br { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__photo { aspect-ratio: 5 / 4; border-radius: 20px 20px 20px 80px; }
  .hero__card { left: 12px; bottom: -26px; min-width: 216px; padding: 14px 18px 10px; }
  .hero__card dd { font-size: 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .service-grid, .steps, .first-extra { grid-template-columns: 1fr; gap: 14px; }
  .service { padding: 22px 20px; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; text-align: left; align-items: center; }
  .service__icon { width: 52px; height: 52px; margin: 0; grid-row: 1 / 3; }
  .service h3 { margin-bottom: 2px; }
  .service p { grid-column: 2; }
  .step::after { display: none; }
  .box { padding: 22px 20px; }
  .table-wrap { padding: 4px 10px 8px; }
  .hours-table th, .hours-table td { padding: 14px 0; font-size: 14px; }
  .hours-table tbody th { font-size: 12.500px; line-height: 1.35; }
  .hours-table tr.sub th { font-size: 12.500px; }
  .hours-table tbody th small { font-size: 10px; }
  .hours-table thead th { font-size: 13px; }
  .hours-table td.on { font-size: 17px; }
  .hours__side { display: block; }
  .news-list { padding: 2px 18px; }
  .news-list li { grid-template-columns: auto 1fr; padding: 16px 0; }
  .news-list p { grid-column: 1 / -1; font-size: 14.500px; }
  .info-table th, .info-table td { font-size: 14px; }
  .cta { padding: 44px 0; }
  .cta__tel { width: 100%; padding: 12px 10px; }
  .cta__num { font-size: 29px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
