:root {
  /* 医院ごとの色は、まずこの4色を変更してください */
  --main-color: #2e5949;
  --sub-color: #eef2eb;
  --background-color: #faf9f5;
  --text-color: #303e36;
  --line-color: #d9dfd6;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--text-color); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 18px; line-height: 1.8; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #b26520; outline-offset: 5px; }
h1,h2,h3,p,figure { margin: 0; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only,.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { display: block; padding: 12px; }
.demo-banner { background: var(--sub-color); text-align: center; font-size: 14px; padding: 7px 20px; color: var(--main-color); }
.header { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; gap: 20px; }
.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--main-color); }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 12%; background: var(--main-color); color: white; font-size: 42px; font-weight: 300; line-height: 1; }
.brand strong { display: block; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 32px; letter-spacing: .08em; line-height: 1.3; }
.brand small { display: block; font-size: 15px; letter-spacing: .15em; margin-top: 5px; }
.header-phone { display: grid; justify-items: center; }
.phone-label,.phone-note { font-size: 14px; }
.phone { background: none; border: 0; display: flex; gap: 10px; align-items: center; color: var(--main-color); font-size: 30px; font-weight: 600; letter-spacing: .03em; padding: 0 8px; min-height: 44px; line-height: 1.5; }
.navigation { border-block: 1px solid var(--line-color); }
.nav-grid { display: grid; grid-template-columns: repeat(5,1fr); }
.nav-grid a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; text-decoration: none; font-weight: 600; color: var(--main-color); }
.nav-grid a:hover { background: var(--sub-color); }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 390px; margin-block: 36px 48px; background: var(--background-color); border-radius: 4px 64px 4px 4px; overflow: hidden; }
.hero-copy { padding: 40px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .17em; color: var(--main-color); }
h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; color: var(--main-color); font-size: clamp(26px,3.2vw,46px); white-space: nowrap; font-weight: 600; line-height: 1.6; letter-spacing: .08em; margin-block: 12px 18px; }
.hero-description { font-size: 17px; line-height: 1.9; }
.hero-clinic { font-size: 18px; margin-top: 24px; font-weight: 600; color: var(--main-color); }
.hero-clinic span { font-size: 14px; font-weight: 400; margin-left: 12px; }
.hero-image { position: relative; min-height: 320px; }
.hero-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.photo-placeholder { height: 100%; display: grid; place-items: center; background: var(--sub-color); padding: 32px; text-align: center; }
.hero-image figcaption { position: absolute; right: 14px; bottom: 12px; background: #fffE; font-size: 13px; padding: 2px 10px; }
.section-heading h2 { font-size: 30px; font-weight: 600; letter-spacing: .07em; line-height: 1.5; margin-top: 0; }
.news { display: grid; grid-template-columns: 220px 1fr; gap: 36px; margin-bottom: 48px; }
.news-list { padding: 0; margin: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 110px 76px 1fr; align-items: start; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--line-color); }
.news-list li:first-child { padding-top: 0; }
.news-list time { font-size: 15px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tag { background: var(--sub-color); color: var(--main-color); font-size: 13px; text-align: center; padding: 3px 5px; border-radius: 3px; }
.news-list p { font-size: 17px; }.news-list small { display: block; font-size: 14px; color: #62685f; }
.section-tint { background: var(--background-color); padding-block: 42px; }
.hours .section-heading,.content-section .section-heading { margin-bottom: 24px; }
.schedule { background: #fff; border: 1px solid var(--line-color); border-radius: 8px; padding: 24px 32px; }
.schedule + .schedule { margin-top: 24px; }
.schedule-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
h3 { font-size: 23px; font-weight: 600; }.schedule-top p { font-size: 15px; }
table { width: 100%; border-collapse: collapse; text-align: center; table-layout: fixed; font-variant-numeric: tabular-nums; }
th,td { border-bottom: 1px solid var(--line-color); padding: 14px 4px; }
/* 曜日同士の境界だけに淡い縦罫線。内側に描くため列幅・余白は変わりません。 */
.schedule tr > :nth-child(n + 3) { box-shadow: inset 1px 0 0 #e1e6de; }
thead { background: var(--sub-color); color: var(--main-color); }
th:first-child { width: 26%; }thead th { font-weight: 500; }tbody th { font-weight: 500; white-space: nowrap; }td { color: var(--main-color); font-size: 24px; line-height: 1.4; }
.hours-notes { display: grid; gap: 5px; margin-top: 20px; font-size: 16px; }.hours-notes p { display: flex; gap: 22px; }.hours-notes strong { min-width: 70px; color: var(--main-color); }
/* 診療科カードが1枚の場合も、左右に空き列を残さず表示します。 */
.service-card:only-child { grid-column: 1 / -1; }
.content-section { padding-block: 44px; }.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.service-card { padding: 26px 30px; background: #fff; border: 1px solid var(--line-color); border-top: 3px solid var(--main-color); border-radius: 4px; }.service-title { display: flex; align-items: center; gap: 14px; color: var(--main-color); margin-bottom: 12px; }.service-title .icon { width: 30px; height: 30px; }.service-card p { font-size: 17px; }.conditions { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }.conditions li { background: var(--sub-color); padding: 4px 13px; font-size: 16px; border-radius: 4px; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; }.doctor-name { margin-top: 24px; font-size: 16px; }.doctor-name strong { font-size: 23px; margin-left: 10px; }.doctor-name span { display: block; font-size: 15px; margin-top: 5px; }.greeting h3 { color: var(--main-color); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 26px; line-height: 1.7; margin-bottom: 16px; }.greeting p { font-size: 17px; }.greeting .sample-note { margin-top: 12px; font-size: 14px; }
.access-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }.address { margin-top: 10px; font-size: 17px; }.sample-note { color: #636b62; font-size: 14px; }dl { font-size: 16px; margin: 20px 0 0; }dl div { display: flex; padding: 8px 0; border-bottom: 1px solid var(--line-color); }dt { min-width: 84px; font-weight: 600; }dd { margin: 0; }.text-phone { background: none; border: 0; padding: 0 3px; min-height: 44px; color: var(--main-color); text-decoration: underline; text-underline-offset: 4px; }.map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 330px; text-align: center; padding: 28px; background: #f0f2ed; border: 1px solid var(--line-color); border-radius: 6px; }.map-placeholder .icon { width: 34px; height: 34px; color: var(--main-color); }.map-placeholder p { font-size: 16px; }.map-placeholder span { font-size: 14px; }iframe { width: 100%; border: 0; min-height: 330px; }
footer { background: var(--main-color); color: #fff; padding: 32px 0 18px; }.footer-grid { display: flex; justify-content: space-between; gap: 24px; }.footer-name { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 26px; margin-bottom: 8px; }.footer-grid p:not(.footer-name) { font-size: 14px; }.footer-grid nav { display: flex; gap: 25px; align-items: start; }.footer-grid a { font-size: 15px; padding-block: 10px; min-height: 44px; }.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #ffffff40; padding-top: 17px; margin-top: 25px; font-size: 13px; }.footer-bottom small { font-size: inherit; }
dialog { border: 1px solid var(--line-color); border-radius: 12px; padding: 32px; max-width: min(520px, calc(100% - 32px)); color: var(--text-color); }dialog::backdrop { background: #14281e80; }dialog h2 { font-size: 24px; margin-bottom: 16px; }.close-button { margin-top: 24px; background: var(--main-color); color: white; border: 0; border-radius: 5px; padding: 10px 32px; }
@media(max-width: 760px) {
  .wrap { width: calc(100% - 36px); }.demo-banner { font-size: 12px; }.header { padding-block: 18px; gap: 12px; }.brand { gap: 8px; }.brand strong { font-size: 24px; }.brand-mark { width: 40px; height: 40px; font-size: 32px; }.brand small { font-size: 14px; }.phone { font-size: 21px; gap: 6px; }.phone .icon { width: 20px; height: 20px; }.phone-label,.phone-note { font-size: 12px; }
  .nav-grid a { flex-direction: column; gap: 3px; min-height: 76px; font-size: 15px; }.nav-grid .icon { width: 24px; height: 24px; }
  .hero { margin-block: 24px 32px; grid-template-columns: 1fr 1fr; border-radius: 4px 40px 4px 4px; min-height: 340px; }.hero-copy { padding: 26px 20px; }h1 { font-size: 26px; }.hero-description { font-size: 16px; }.hero-clinic span { display: block; margin-left: 0; }
  .news { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }.news-list li { grid-template-columns: 106px 70px 1fr; }.section-heading h2 { font-size: 27px; }.schedule { padding: 20px 16px; }.service-grid { gap: 16px; }.service-card { padding: 22px; }.about-grid { grid-template-columns: 1fr 1.6fr; gap: 24px; }.greeting h3 { font-size: 23px; }.desktop-only { display: none; }.access-grid { gap: 24px; }.footer-grid { flex-direction: column; }.footer-grid nav { flex-wrap: wrap; }
}
@media(max-width: 520px) {
  .header { flex-direction: column; align-items: stretch; gap: 16px; }.brand { justify-content: center; }.brand strong { font-size: 29px; }.brand-mark { width: 47px; height: 47px; }.brand small { text-align: center; }.header-phone { border-top: 1px solid var(--line-color); padding-top: 10px; }.phone { font-size: 27px; }.phone-label { font-size: 14px; }.phone-note { font-size: 13px; }.nav-grid { width: 100%; }.nav-grid a { font-size: 14px; }.hero { grid-template-columns: 1fr; }.hero-copy { padding: 28px; }h1 { font-size: clamp(26px, 8vw, 37px); }.hero-clinic span { display: inline; margin-left: 10px; }.hero-image { min-height: 230px; }.news-list li { grid-template-columns: 110px 76px; gap: 6px 12px; padding-block: 16px; }.news-list p { grid-column: 1 / -1; }.section-tint,.content-section { padding-block: 32px; }.schedule { padding: 16px 10px; }.schedule-top { align-items: start; flex-direction: column; gap: 2px; }.schedule-top h3 { font-size: 21px; }.schedule-top p { font-size: 14px; }table { font-size: 14px; }th:first-child { width: 36%; }th,td { padding: 14px 0; }td { font-size: 20px; }.hours-notes { font-size: 15px; }.hours-notes p { display: block; }.hours-notes strong { display: block; }.hours-notes p + p { margin-top: 8px; }.service-grid,.about-grid,.access-grid { grid-template-columns: 1fr; }.service-card { padding: 22px; }.about-grid { gap: 24px; }.doctor-name { margin-top: 14px; }.greeting h3 { font-size: 23px; }.map-placeholder { min-height: 270px; }.footer-grid nav { gap: 18px; }.footer-bottom { flex-direction: column; }
}
@media print { .demo-banner,.navigation,.header-phone,footer nav { display: none; }.hero-image { min-height: 200px; }.wrap { width: 100%; }.hero { min-height: auto; }.section-tint,.content-section { padding-block: 20px; }section { break-inside: avoid; }body { font-size: 14px; } }
