/* Japanese-first clinic design. Photo subjects follow the adjacent content. */
:root {
  --ink: #303d38;
  --green: #30594c;
  --muted: #5a6861;
  --paper: #fffefa;
  --cream: #f2f1eb;
  --green-soft: #edf1ed;
  --line: #d4ddd5;
  --accent: #8b4c32;
  --green-strong: #173a2e;
  --rule: #8c9f92;
  --rule-soft: #bccbbe;
  --on-green-line: #628371;
  --on-green-muted: #e2e8dc;
  --radius: 4px;
  --space: clamp(64px, 7vw, 96px);
}
.wrap { width: min(1120px, calc(100% - 80px)); }
h2 { letter-spacing: .035em; }
.header-inner { min-height: 104px; gap: 24px; }
.desktop-nav { gap: 22px; }
.desktop-nav .nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block: 8px 12px; }
.nav-icon { display: block; flex: 0 0 auto; color: var(--green); }
.nav-item:hover .nav-icon,.nav-item[aria-current] .nav-icon { color: var(--accent); }
.mobile-menu nav .nav-item { display: flex; align-items: center; gap: 14px; }
.review-banner { background: #eeeadf; }
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 7px 24px; color: var(--ink); }
.review-notice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.review-notice strong { font-size: 12px; font-weight: 700; }
.review-notice span { font-size: 11px; }
.palette-switcher { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.palette-switcher-label { margin-right: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.palette-switcher button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.palette-switcher button:hover { border-color: var(--green); }
.palette-switcher button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.palette-switcher button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 配色比較（確認用のみ）。色の変数だけを差し替え、構成・文章・写真は変えない。コントラストは全組み合わせ4.5:1以上で検算済み。 */
html[data-palette="beige"] { --ink: #3b342c; --green: #6b5640; --muted: #665b4f; --paper: #fffcf6; --cream: #f6efe3; --green-soft: #f2eadc; --line: #e2d8c8; --accent: #8e5230; --green-strong: #4d3d2c; --rule: #b5a58f; --rule-soft: #d6c9b5; --on-green-line: #9a8670; --on-green-muted: #f1e8da; }
html[data-palette="pink"] { --ink: #3f3034; --green: #94485c; --muted: #6d5a60; --paper: #fffbfa; --cream: #fbf0f0; --green-soft: #f8e9ec; --line: #ecd8dc; --accent: #8a3f50; --green-strong: #6e3243; --rule: #c7a0aa; --rule-soft: #e3c6cd; --on-green-line: #b87a8a; --on-green-muted: #fbe7ec; }
html[data-palette="yellow"] { --ink: #3a3424; --green: #765a00; --muted: #645a40; --paper: #fffdf4; --cream: #fcf5dc; --green-soft: #fbf0c8; --line: #eadfae; --accent: #8a4f12; --green-strong: #574200; --rule: #c9b56a; --rule-soft: #e3d49a; --on-green-line: #a68a2c; --on-green-muted: #fbf1cc; }
.waiting-strip { background: var(--green); }
.waiting-strip .wrap { min-height: 38px; }
.button { border-radius: 3px; min-height: 52px; padding: 14px 20px; }
.button.primary { background: var(--green); }
.button.primary:hover { background: #234538; }
.text-link { gap: 20px; }
.hero {
  width: min(1280px, calc(100% - 80px));
  min-height: 0;
  margin: 32px auto 42px;
  padding: 0;
  grid-template-columns: .92fr 1.15fr;
  grid-template-areas: 'intro photo' 'details photo';
  gap: 0 clamp(32px, 4vw, 62px);
  overflow: visible;
}
.hero-intro { grid-area: intro; align-self: end; padding-top: 18px; }
.hero-details { grid-area: details; align-self: start; padding-bottom: 18px; }
.hero-location { font-size: 13px; letter-spacing: .08em; color: var(--green); margin-bottom: 23px; }
.hero h1 { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-weight: 600; font-size: clamp(36px, 3.35vw, 48px); letter-spacing: .045em; line-height: 1.65; }
.hero-lead { font-size: 15px; line-height: 2; margin: 24px 0; max-width: 460px; }
.hero-departments { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 28px; font-size: 14px; font-weight: 700; color: var(--green); }
.hero-departments a:hover { text-decoration: underline; }
.hero-actions { flex-direction: row; gap: 10px; align-items: stretch; }
.hero-actions .button { font-size: 13px; padding: 13px 17px; gap: 18px; }
.hero-access { margin-top: 22px; font-size: 12px; }
.hero-visual { grid-area: photo; min-width: 0; align-self: center; }
.hero-photo { min-height: 0; height: auto; }
.hero-photo img { height: auto; min-height: 0; width: 100%; aspect-ratio: 1.4; object-fit: cover; object-position: center; border-radius: 3px; }
.fever-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-block: 1px solid var(--rule-soft); padding-block: 20px; }
.fever-notice p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.fever-notice strong { color: var(--accent); font-size: 16px; }
.fever-notice p>span { font-size: 14px; }
.fever-notice .text-link { flex-shrink: 0; font-size: 13px; padding: 4px 0; color: var(--accent); }
.visit-section { display: grid; grid-template-columns: 1.16fr 1fr; gap: 80px; padding-block: 48px; }
.visit-guide { border-left: 1px solid var(--line); padding-left: 44px; }
.visit-guide h2 { font-size: 21px; margin-bottom: 14px; }
.visit-guide p { font-size: 14px; margin-bottom: 13px; }
.visit-guide dl { font-size: 13px; margin: 0 0 4px; }
.visit-guide dl>div { display: flex; gap: 16px; padding-block: 3px; }
.visit-guide dt { width: 65px; flex-shrink: 0; color: var(--muted); }
.visit-guide dd { margin: 0; }
.hours caption { font-size: 21px; }
.hours,.header-phone strong,.aside-phone a,.contact-inner strong,.news-item time,.step-number { font-variant-numeric: lining-nums tabular-nums; }
.step-number { font-size: 18px; line-height: 1.85; font-weight: 700; color: var(--green); }
.steps li { grid-template-columns: 24px 1fr; gap: 18px; }
/* A step heading's parenthetical note wraps as one unit, so narrow screens never leave its last two characters alone on a line (2026-10-30). */
.steps h3 .step-note { display: inline-block; }
/* Steps with several paragraphs (dermatology) need a visible break between them; single-paragraph steps are unchanged. */
.steps p + p { margin-top: .6em; }
.hours thead th { background: var(--green-soft); }
.hours th,.hours td { padding-block: 13px; }
.news-section { grid-template-columns: .55fr 1.45fr; gap: 56px; padding-top: 24px; padding-bottom: 64px; }
.section-heading h2 { font-size: 30px; margin-bottom: 22px; }
.news-section h2 { font-size: 23px; padding-top: 20px; }
.news-section .empty-state { padding: 20px 0; }
.news-section .empty-state p { font-size: 14px; }
.care-section { background: var(--cream); }
.care-intro { margin: -10px 0 32px; font-size: 15px; }
.heading-row { margin-bottom: 32px; }
.heading-row .section-heading h2 { margin-bottom: 0; }
.medical-overview { display: grid; grid-template-columns: .9fr 1.2fr; gap: 56px; align-items: start; }
.medical-photo img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: 3px; }
.medical-photo>p { font-size: 13px; margin: 16px 0 0; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; gap: 24px; }
.service { padding: 17px 0 30px; border: 0; border-top: 1px solid var(--rule); }
.service:last-child { border-top: 1px solid var(--rule); }
.service:hover { background: transparent; color: var(--green); }
.service h3 { margin: 0 0 12px; font-size: 23px; }
.service p { font-size: 14px; margin: 0; padding-right: 14px; }
.service>span:last-child { position: absolute; bottom: 0; right: 0; font-size: 20px; }
.care-other { display: flex; flex-wrap: wrap; gap: 16px 34px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }
.care-other .text-link { border-bottom: 0; }
.doctor-section { background: var(--paper); }
.doctor-grid { width: min(1000px, calc(100% - 80px)); grid-template-columns: 320px minmax(0, 1fr); gap: 88px; }
.doctor-photo { border-radius: 3px; width: 100%; max-width: 320px; overflow: hidden; }
.doctor-photo img { width: 100%; height: auto; aspect-ratio: .8; object-fit: cover; object-position: center 40%; transform: scale(1.8); transform-origin: 38% 40%; }
.section-label { color: var(--green); font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.doctor-grid h2,.family-heading h2 { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-size: 34px; font-weight: 600; line-height: 1.7; }
.doctor-grid>div>p:not(.section-label) { font-size: 15px; line-height: 2; }
.doctor-name { margin-top: 26px; }
.family-section { background: var(--green-soft); }
.family-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.family-heading>p:not(.section-label) { margin: 24px 0; max-width: 480px; font-size: 15px; }
.family-photo img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; object-position: center; border-radius: 3px; }
.family-links { border-top: 1px solid var(--rule-soft); padding-top: 24px; }
.family-links h3 { font-size: 19px; margin: 0 0 7px; }
.family-links p { font-size: 14px; margin-bottom: 2px; }
.family-links .text-link { font-size: 13px; padding-block: 8px; margin-bottom: 24px; }
.family-links .text-link:last-child { margin-bottom: 0; }
.access-section { gap: 70px; }
.access-section>div>p { font-size: 14px; }
.contact-inner h2 { font-size: 23px; }
.contact-inner strong { font-size: 30px; letter-spacing: 0; font-weight: 700; }
.site-footer { background: var(--cream); }
.page-heading { background: var(--cream); padding: 24px 0 40px; }
.breadcrumb { margin-bottom: 26px; }
.page-heading-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.page-heading:not(.has-photo) .page-heading-grid { grid-template-columns: 1fr; }
.page-heading h1 { font-size: clamp(30px, 3vw, 40px); }
.page-lead { font-size: 16px; line-height: 2; max-width: 720px; color: var(--ink); }
.page-heading-photo img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; border-radius: 3px; }
.article-layout { gap: 64px; grid-template-columns: minmax(0, 1fr) 230px; }
.article-section h2 { font-size: 25px; color: var(--green); }
.care-list { gap: 30px; }
.care-item { border-top: 1px solid var(--rule); padding-top: 18px; }
.care-item .text-link { font-size: 13px; }
.care-item h3 { font-size: 22px; }
.page-aside { border-top-width: 1px; }
.aside-phone { padding: 20px 14px; }
.aside-phone a { white-space: nowrap; }
.about-portrait { grid-template-columns: 230px minmax(0, 1fr); }
.about-portrait .doctor-photo img { height: auto; }
.doctor-photo img.reception-photo { transform: none; object-position: center; }
@media (max-width: 1280px) {
  .header-inner { flex-wrap: wrap; row-gap: 8px; }
  .header-phone { display: block; margin-left: auto; }
  .desktop-nav { order: 3; flex-basis: 100%; justify-content: flex-end; }
  .hero { width: calc(100% - 64px); column-gap: 32px; }
  .hero-actions .button { font-size: 12px; gap: 12px; }
  .visit-section { gap: 44px; }
  .medical-overview,.family-grid { gap: 40px; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; width: calc(100% - 48px); column-gap: 28px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-photo img { min-height: 0; }
  .wrap { width: calc(100% - 56px); }
  .visit-section { gap: 32px; }
  .visit-guide { padding-left: 30px; }
  .medical-overview { grid-template-columns: .85fr 1.2fr; gap: 28px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .doctor-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 46px; }
  .doctor-grid h2,.family-heading h2 { font-size: 29px; }
  .family-grid { gap: 40px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .page-aside { display: none; }
  .page-heading-grid { gap: 32px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 82px; padding: 12px 18px; }
  .hero { display: grid; grid-template-columns: 1fr; grid-template-areas: 'intro' 'photo' 'details'; width: calc(100% - 40px); margin: 24px auto; padding: 0; gap: 22px; }
  .hero-intro,.hero-details { padding: 0; }
  .hero-location { font-size: 11px; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.55; }
  .hero-lead { margin: 0 0 20px; font-size: 14px; max-width: none; }
  .hero-departments { font-size: 13px; gap: 8px 16px; margin-bottom: 22px; }
  .hero-actions { flex-direction: row; align-items: stretch; gap: 8px; }
  .hero-actions .button { font-size: 12px; gap: 7px; padding: 12px 10px; }
  .hero-access { font-size: 11px; margin-top: 18px; }
  .hero-visual { width: 100%; }
  .hero-photo { height: auto; width: 100%; }
  .hero-photo img { height: auto; min-height: 0; aspect-ratio: 1.5; border-radius: 3px; object-position: center; }
  .fever-notice { display: block; padding-block: 17px; }
  .fever-notice p { display: block; }
  .fever-notice strong { display: block; margin-bottom: 5px; }
  .fever-notice p>span { font-size: 13px; }
  .fever-notice .text-link { margin-top: 8px; min-height: 36px; }
  .visit-section { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 40px; }
  .visit-guide { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .visit-guide h2 { font-size: 21px; }
  .visit-guide p { font-size: 14px; }
  .news-section { display: block; padding-top: 0; padding-bottom: 48px; }
  .news-section h2 { padding-top: 0; }
  .section-heading h2,.heading-row .section-heading h2 { font-size: 26px; }
  .heading-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
  .heading-row .text-link { font-size: 12px; gap: 10px; }
  .medical-overview { grid-template-columns: 1fr; gap: 26px; }
  .medical-photo>p { font-size: 12px; margin-top: 12px; }
  .service-grid { gap: 24px 22px; }
  .service { padding: 16px 0 28px; border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 0; }
  .service h3 { font-size: 21px; margin: 0 0 10px; }
  .service p { font-size: 13px; padding-right: 0; min-height: 0; }
  .care-other { gap: 8px 22px; margin-top: 28px; }
  .care-other .text-link { font-size: 13px; gap: 14px; }
  .doctor-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
  .doctor-photo { max-width: 260px; margin-inline: auto; border-radius: 3px; }
  .doctor-photo img { height: auto; }
  .doctor-grid h2,.family-heading h2 { font-size: 29px; }
  .section-label { font-size: 13px; margin-bottom: 14px; }
  .doctor-grid h2 { font-size: 26px; }
  .family-grid { display: flex; flex-direction: column; gap: 30px; }
  .family-heading>p:not(.section-label) { font-size: 15px; margin: 22px 0; }
  .family-photo { width: 100%; }
  .family-photo img { aspect-ratio: 1.5; }
  .family-links h3 { font-size: 19px; }
  .access-section { grid-template-columns: 1fr; gap: 34px; }
  .contact-inner { display: block; }
  .contact-inner>a { display: block; border-left: 0; border-top: 1px solid #628371; margin-top: 24px; padding: 22px 0 0; }
  .contact-inner h2 { font-size: 21px; }
  .page-heading { padding: 20px 0 30px; }
  .breadcrumb { margin-bottom: 24px; }
  .page-heading-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-heading h1 { font-size: 28px; }
  .page-lead { margin-top: 18px; }
  .page-heading-photo img { aspect-ratio: 1.6; }
  .article-layout { padding-top: 36px; }
  .article-section h2 { font-size: 23px; }
  .care-list { grid-template-columns: 1fr; }
  .about-portrait { grid-template-columns: 1fr; gap: 26px; }
}
.department-photo { margin-bottom: 20px; overflow: hidden; border-radius: 3px; }
.department-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service>.service-more:last-child { position: static; display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 18px; }
.service .service-more span { font-size: 20px; }
.service:hover { background: transparent; }
.service:hover h3,.service:hover .service-more { color: var(--accent); }
.service p { min-height: 3.7em; }
.hours-wrap>.reception-note { font-size: 14px; line-height: 1.8; }
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .header-phone { order: 4; flex-basis: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .header-phone small { font-size: 11px; }
  .header-phone strong { font-size: 25px; }
  .mobile-menu { margin-left: auto; }
}
@media (max-width: 700px) {
  .service-grid { gap: 24px 20px; }
  .service { padding-bottom: 12px; }
  .service h3 { font-size: 20px; }
  .service p { font-size: 14px; min-height: 0; }
  .department-photo { margin-bottom: 16px; }
  .service>.service-more:last-child { font-size: 12px; }
  .waiting-strip { font-size: 12px; }
  .waiting-strip .wrap { flex-wrap: wrap; padding-block: 8px; }
  .waiting-strip a { font-size: 12px; }
}
@media (max-width: 360px) {
  .header-inner { column-gap: 6px; padding-inline: 14px; }
  .header-phone { display: block; text-align: center; }
  .header-phone small { font-size: 11px; }
  .service-grid { grid-template-columns: 1fr; }
}
.directions-jump { margin-bottom: 30px; }
.directions,#train-access { scroll-margin-top: 24px; }
.route-guide { border-top: 1px solid var(--line); }
.route-guide:last-child { border-bottom: 1px solid var(--line); }
.route-guide>summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; font-size: 20px; font-weight: 700; color: var(--green); cursor: pointer; list-style: none; }
.route-guide>summary::-webkit-details-marker { display: none; }
.route-guide>summary:hover { color: var(--accent); }
.route-toggle { font-size: 24px; line-height: 1; font-weight: 400; }
.route-guide[open]>summary .route-toggle { transform: rotate(45deg); }
.route-body { padding-bottom: 32px; }
.route-body>p { margin-bottom: 26px; }
.route-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.route-steps li { min-width: 0; }
.route-steps h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.7; margin: 0 0 14px; min-height: 34px; }
.route-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-size: 18px; line-height: 1; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.route-photo { display: block; border: 1px solid var(--line); }
.route-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--cream); }
.route-photo>span { display: block; padding: 6px 12px; font-size: 12px; text-align: right; color: var(--green); background: var(--paper); }
.route-photo:hover>span { text-decoration: underline; }
.route-steps li>p { font-size: 14px; line-height: 1.9; margin: 14px 0 0; }
@media (max-width: 600px) {
  .review-banner { align-items: flex-start; flex-direction: column; gap: 6px; padding: 8px 12px; }
  .review-notice { gap: 3px 8px; }
  .review-notice strong { font-size: 11px; }
  .review-notice span { font-size: 10px; }
  .palette-switcher { gap: 5px; }
  .palette-switcher button { min-height: 40px; padding-inline: 9px; }
  .route-steps { grid-template-columns: 1fr; gap: 30px; }
  .route-guide>summary { font-size: 18px; padding-block: 20px; }
  .route-photo img { aspect-ratio: auto; max-height: 380px; }
}
.clinic-map { min-width: 0; }
.clinic-map iframe { display: block; width: 100%; height: 400px; border: 1px solid var(--line); background: var(--paper); }
.clinic-map .text-link { margin-top: 16px; }
.access-section>.clinic-map { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .clinic-map iframe { height: 350px; }
}
@media print {
  .clinic-map iframe { display: none; }
  .hero { display: block; width: 100%; margin: 0; }
  .hero-photo img { height: 240px; min-height: 0; }
  .wrap { width: 100%; }
  .page-heading-photo { display: none; }
  .page-heading-grid,.article-layout { display: block; }
}

/* Short, scannable visit information; supplementary explanations remain readable. */
.header-phone strong { font-size: 46px; line-height: 1.2; letter-spacing: -.025em; }
.header-phone small { font-size: 12px; }
.desktop-nav { gap: 18px; }
.hero h1 { font-size: clamp(34px, 3vw, 42px); }
.english-note { font-size: 14px; color: var(--green); margin: 8px 0 0; }
.quiet-hours { margin-top: 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.quiet-hours p { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.quiet-hours p>span { font-weight: 700; }
.quiet-hours small { display: block; font-size: 13px; line-height: 1.8; color: var(--muted); }
.key-facts { margin: 24px 0; border-top: 1px solid var(--line); }
.key-facts>div { display: grid; grid-template-columns: minmax(150px,.7fr) 1.3fr; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 12px; }
.key-facts dt { color: var(--muted); font-size: 15px; }
.key-facts dd { margin: 0; font-weight: 500; color: var(--green); font-size: 17px; }
.key-facts .fact-detail { display: block; color: var(--ink); font-weight: 400; text-align: left; }
#vaccine-prices .key-facts>div { grid-template-columns: minmax(0,1fr) auto; }
#vaccine-prices .key-facts dd { text-align: right; white-space: nowrap; }
.article-section>p { line-height: 1.9; }
.article-section h2 { line-height: 1.65; }
.hero-actions .button,.mobile-actions a { font-size: 14px; }
.compact-section .check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.doctor-message { margin: 28px 0 8px; padding: 0; }
.doctor-message p { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.doctor-message cite { font-size: 14px; font-style: normal; }
/* Japanese body fonts need synthetic italics for CMS emphasis. */
.cms-article-body em { font-style: italic; font-synthesis: style; }
.access-section { grid-template-columns: .85fr 1.15fr; align-items: start; gap: 44px; }
.access-section>.clinic-map { grid-column: auto; }
.waiting-home { margin-top: 28px; }
.entry-note { margin: 10px 0 0; padding: 0 2px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.waiting-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-areas: "heading numbers" "time numbers" "caption caption"; align-items: center; gap: 8px 32px; border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px 20px; background: var(--green-soft); }
.waiting-heading { grid-area: heading; }
.waiting-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--green); margin: 0 0 10px; }
.waiting-heading h2::before { content: ""; width: 26px; height: 30px; flex: 0 0 auto; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M23 42V24M24 29C8 30 4 19 6 7c13 0 20 7 18 22Zm1-9C23 9 31 4 42 5c1 12-6 19-17 18' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.waiting-heading p { font-size: 16px; margin: 0; }
.waiting-numbers { grid-area: numbers; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 16px 24px; background: var(--paper); border-radius: 6px; }
.waiting-numbers > div { padding-left: 24px; border-left: 1px solid var(--line); }
.waiting-numbers > div:first-child { padding-left: 0; border-left: 0; }
.waiting-numbers[hidden] { display: none; }
.waiting-numbers dt { font-size: 15px; color: var(--ink); }
.waiting-numbers dd { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; color: var(--green); }
.waiting-numbers strong { font-size: 48px; font-weight: 600; line-height: 1.25; font-variant-numeric: lining-nums tabular-nums; }
.waiting-numbers dd>span { font-size: 16px; }
.waiting-time { grid-area: time; margin: 0; font-size: 14px; color: var(--muted); }
.waiting-time:empty { display: none; }
.waiting-caption { grid-area: caption; border-top: 1px solid var(--line); padding-top: 12px; margin: 10px 0 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.waiting-panel:has(.waiting-numbers[hidden]) { grid-template-columns: 1fr; grid-template-areas: "heading" "time" "caption"; }
.staff-wrap { width: min(720px,calc(100% - 40px)); margin: 32px auto 60px; }
.staff-wrap h1 { font-size: 30px; margin: 28px 0 12px; }
.staff-wrap h2 { font-size: 21px; }
.staff-wrap fieldset { border: 0; padding: 0; margin: 28px 0; }
.staff-wrap legend,.staff-fields>div>label { font-size: 17px; font-weight: 700; margin-bottom: 12px; display: block; }
.state-options { display: flex; flex-wrap: wrap; gap: 10px; }
.state-options label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 12px 16px; cursor: pointer; min-height: 48px; }
.state-options label:has(:checked) { background: var(--green-soft); border-color: var(--green); }
.state-options input { width: 20px; height: 20px; accent-color: var(--green); }
.staff-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.number-control { display: flex; align-items: center; gap: 10px; }
.number-control input { width: 80px; height: 54px; border: 1px solid var(--line); background: #fff; border-radius: 3px; text-align: center; font-family: inherit; font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--ink); }
.number-control button { flex: 0 0 48px; height: 48px; background: #fff; border: 1px solid var(--green); color: var(--green); font-size: 24px; border-radius: 3px; cursor: pointer; }
.staff-wrap button:disabled,.staff-wrap input:disabled { opacity: .5; cursor: default; }
.staff-help { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 22px 0; }
.staff-toolbar { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
#staff-login { max-width:440px; display:grid; gap:16px; }
#staff-login[hidden],#staff-panel[hidden] { display:none; }
#staff-login input { min-height:48px; width:100%; border:1px solid var(--line); border-radius:4px; padding:10px; font:inherit; }
.photo-open { overflow:hidden; }
.photo-dialog { padding:64px 20px 20px; border:0; border-radius:6px; width:min(1200px,96vw); max-width:96vw; max-height:94dvh; background:#fffdf8; color:var(--ink); }
.photo-dialog::backdrop { background:rgb(15 31 25 / .86); }
.photo-dialog figure { margin:0; }
.photo-dialog img { display:block; width:100%; height:auto; max-height:calc(90dvh - 130px); object-fit:contain; }
.photo-dialog figcaption { max-width:760px; margin:14px auto 0; font-size:15px; line-height:1.8; }
.photo-close { position:absolute; top:10px; right:14px; min-height:44px; padding:8px 18px; border:1px solid var(--line); border-radius:4px; background:white; color:var(--ink); font:inherit; cursor:pointer; }
.staff-preview { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 32px; }
#waiting-result { min-height: 1.8em; margin-top: 16px; }
:is(a,button,input,select,summary):focus-visible { outline: 3px solid #93601b; outline-offset: 4px; }
.text-link { min-height: 44px; }
@media (max-width: 1450px) and (min-width: 901px) {
  .header-inner { flex-wrap: wrap; gap: 8px 24px; padding-block: 14px 0; }
  .desktop-nav { order: 3; flex-basis: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
  .header-phone { margin-left: auto; }
}
@media (max-width: 900px) {
  .header-phone strong { font-size: 36px; }
  .header-phone { align-items: center; }
}
@media (max-width: 700px) {
  .article-section p,.check-list { font-size: 16px; color: var(--ink); }
  .page-lead { font-size: 16px; color: var(--ink); }
  .header-phone { flex-direction: column; gap: 4px; }
  .hero h1 { font-size: 28px; letter-spacing: .025em; }
  .key-facts>div { grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 16px 0; }
  .key-facts dt { font-size: 14px; }
  .key-facts dd { font-size: 17px; }
  .compact-section .check-list { gap: 0 14px; }
  .compact-section .check-list li { font-size: 15px; }
  .doctor-message { padding: 0; }
  .waiting-panel { padding: 20px 18px 18px; grid-template-columns: 1fr; grid-template-areas: "heading" "time" "numbers" "caption"; gap: 8px; }
  .waiting-numbers { gap: 12px; padding: 16px 12px; margin-top: 6px; }
  .waiting-numbers > div { padding-left: 12px; }
  .waiting-numbers > div:first-child { border-left: 0; padding-left: 0; }
  .waiting-numbers strong { font-size: 44px; }
  .waiting-numbers dd { gap: 4px; }
  .waiting-heading p { font-size: 16px; }
  .access-section { grid-template-columns: 1fr; }
  .staff-fields { grid-template-columns: 1fr; gap: 22px; }
  .number-control input { width: 100px; }
  .state-options { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .waiting-numbers strong { font-size: 36px; }
}
@media (max-width: 350px) {
  .waiting-numbers { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .waiting-numbers > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
}
/* 院長の言葉は引用枠にせず、手紙として本文と同じ紙面で読ませる */
.doctor-message-long { margin: 4px 0 44px; }
.doctor-message-long p { font-size: 16px; font-weight: 500; line-height: 2.05; margin: 0 0 .9em; text-indent: 1em; }
.doctor-message-long cite { display: block; margin-top: 18px; text-align: right; font-size: 15px; letter-spacing: .08em; }
/* 院長メッセージの直後の一文は、下のカードの見出し。メッセージの本文と見分けがつくよう区切る */
.article-section > .doctor-message-long + p { margin: 0 0 24px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--green); font-size: 19px; font-weight: 700; line-height: 1.7; }
.waiting-heading .waiting-next { margin-top: 4px; color: var(--muted); font-size: 14px; }
/* 見出しの意味を示すアイコンと、拾い読みしやすい箇条書き */
.article-section h2.with-icon { display: flex; align-items: center; gap: 10px; }
.section-icon { flex: none; display: grid; place-items: center; color: var(--green); }
.section-icon svg { width: 22px; height: 22px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 12px 0 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); line-height: 1.75; }
.check-list li::before { content: none; }
.check-icon { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--green); }
.compact-section .check-list { gap: 0 32px; }
@media (max-width: 600px) {
  .section-icon svg { width: 20px; height: 20px; }
  .article-section h2.with-icon { gap: 8px; }
  .check-list { grid-template-columns: 1fr; }
  .compact-section .check-list { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
/* フッター：分類ごとの列 */
.footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; font-size: 13px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-heading { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--green); }
.footer-links span { color: var(--muted); }
@media (max-width: 900px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 押せる要素は、マウスを乗せたときに必ず見た目が変わるようにする */
.brand { transition: opacity .16s; }
.brand:hover { opacity: .75; }
.header-phone:hover strong, .aside-phone a:hover { color: var(--accent); }
.header-phone strong, .aside-phone a, .breadcrumb a, .footer-links a, .footer-bottom a, .faq-list summary, .palette-switcher button { transition: color .16s, background-color .16s, border-color .16s; }
.breadcrumb a:hover, .footer-links a:hover, .footer-bottom a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-list summary:hover { color: var(--accent); }
.contact-inner > a:hover strong, .waiting-strip a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fever-notice .text-link:hover { color: var(--green); border-color: var(--green); }
.palette-switcher button:hover { background: var(--green-soft); }
.palette-switcher button[aria-pressed="true"]:hover { background: var(--green-strong); }
.desktop-nav .nav-item:hover { color: var(--accent); }
@media (min-width: 901px) { .footer-top { grid-template-columns: minmax(0, 1fr) auto; } }
.footer-links { grid-template-columns: repeat(4, max-content); justify-content: end; column-gap: 48px; }
.footer-links a, .footer-links span { white-space: nowrap; }
@media (max-width: 1200px) { .footer-links { grid-template-columns: repeat(2, max-content); justify-content: start; } }
@media (max-width: 600px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } .footer-links a, .footer-links span { white-space: normal; } }
/* 日本語の組み方：1文字単位で折り返して行末まで使い、禁則（句読点・閉じ括弧を行頭に置かない）だけ守る */
body { word-break: normal; overflow-wrap: break-word; line-break: strict; }
/* 見出しの意図した改行はパソコン幅のときだけ。スマホでは自然に折り返す */
@media (max-width: 600px) { br.br-wide { display: none; } }
/* 見出しだけは文節の切れ目で折り返し、各行の長さをそろえる（語の途中で切れたり、最後の行に1〜2字だけ残ったりしないように）。本文は上の1文字単位の組み方のまま */
main h1, main h2, main h3, main h4, main summary, .contact-section h2 { word-break: auto-phrase; text-wrap: balance; }
/* 本文の段落は両端揃え。文節の途中では切らず、行末の空きを字間に配って右端をそろえる（最終行は左寄せ） */
/* 本文は両端揃え（右端をそろえる）。要素ごとに最大幅を変えず本文欄いっぱいに組む。最終行に1〜2字だけ残らないよう調整（両端揃えなので右端はそろったまま） */
.article-section > p, .doctor-message-long p, .page-lead, .article-section .care-item p, .check-list li span, .key-facts dd, .faq-list p, .steps p { text-align: justify; text-justify: inter-character; text-wrap: pretty; }

/* 症状から探す：診療内容の一覧（分類ごと） */
.symptom-catalog .catalog-group { margin-top: 36px; }
.symptom-catalog .catalog-group h3 { margin: 0; font-size: 19px; color: var(--green); letter-spacing: .02em; }
.symptom-catalog .check-list { margin-top: 6px; }
.symptom-catalog .check-list li:has(.catalog-note) { grid-column: 1 / -1; }
.catalog-note { display: block; margin-top: 6px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.catalog-caution { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.symptom-catalog .text-link { margin-top: 12px; }
@media (max-width: 600px) {
  .symptom-catalog .check-list { grid-template-columns: 1fr; }
  .symptom-catalog .catalog-group h3 { font-size: 18px; }
}
/* CMS articles retain the clinic's public typography. */
.cms-article-body{padding:16px 0 24px;overflow-wrap:anywhere;line-height:1.85}.cms-article-body img{display:block;max-width:100%;height:auto;margin:16px 0}.cms-article-body ul,.cms-article-body ol{padding-left:1.5em}.cms-article-body a{text-decoration:underline}.important-news{font-size:.85em;color:#7d432c}.catalog-group .text-link+.text-link{margin-left:20px}
/* Disease answers: short labelled lines so a reader can find what the clinic does, when to come early, and when a referral is made. */
.faq-list details { scroll-margin-top: 24px; }
.faq-list .faq-point { display: grid; grid-template-columns: 7.5em 1fr; gap: 0 12px; margin: 0; padding: 10px 8px; border-top: 1px dashed var(--line); }
.faq-list .faq-point:last-child { margin-bottom: 12px; }
.faq-label { font-size: 13px; font-weight: 700; color: var(--green); line-height: 2; }
.catalog-link { color: var(--green); text-decoration: underline; text-decoration-color: var(--rule-soft); text-underline-offset: 4px; }
.catalog-link:hover { color: var(--accent); }
.catalog-link > span { margin-left: 6px; font-size: .85em; }
@media (max-width: 600px) {
  .faq-list .faq-point { grid-template-columns: 1fr; padding: 10px 4px; }
  .faq-label { line-height: 1.6; }
}

/* Narrow screens: keep vaccination fee explanations readable. */
@media (max-width: 600px) {
  #injected-flu .key-facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #injected-flu .key-facts dd, #child-injected-flu .key-facts dd { font-size: 15px; line-height: 1.8; text-align: left; text-wrap: wrap; }
}

/* Keep each shingles fee readable without breaking its amount or currency. */
#shingles .key-facts dd { text-align: left; text-wrap: wrap; }
#shingles .key-facts > div + div .shingles-fee-line { display: block; }
#shingles .key-facts > div + div .shingles-fee-separator { display: none; }
#shingles .shingles-fee-amount { display: inline-block; white-space: nowrap; }
@media (max-width: 700px) {
  #shingles .key-facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #shingles .key-facts dd { font-size: 15px; line-height: 1.8; text-align: left; text-wrap: wrap; display: grid; gap: 4px; }
  #shingles .shingles-fee-line { display: block; }
  #shingles .shingles-fee-separator { display: none; }
}

/* The header carries the clinic name and telephone once. A short centred introduction and current notices lead the home page; the family introduction and photo follow (option 2 chosen by the clinic, 2026-10-25). */
.home-intro { padding-block: 36px 28px; text-align: center; }
.home-location { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.home-message { margin: 0; color: var(--green); line-height: 1.8; font-size: 17px; }
.home-message > span { display: block; }
.home-message-phrase { white-space: nowrap; }
/* The home page always lists date-free service notices, so it hides the no-news message (clinic request, 2026-10-25). The news page keeps it. */
.news-section [data-news] > .empty-state { display: none; }
.service-notices { margin: 12px 0 24px; border-top: 1px solid var(--line); }
.service-notice { border-bottom: 1px solid var(--line); }
.service-notice>summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 16px; color: var(--green); font-weight: 700; cursor: pointer; }
.service-notice>summary>span[aria-hidden="true"] { flex-shrink: 0; font-size: 20px; }
.service-notice[open]>summary>span[aria-hidden="true"] { transform: rotate(45deg); }
.service-notice>div { padding: 0 0 18px; }
.service-notice p { font-size: 15px; line-height: 1.9; }
/* Phones wrap Japanese per character on this site, so short notices keep phrases whole (QA, 2026-10-27). inline-block, not nowrap, so a phrase can still wrap inside itself when the text is enlarged. */
.service-notice-phrase { display: inline-block; }
.service-notice summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.reception-supplement { margin-top: 16px; font-size: 14px; line-height: 1.9; }
@media (max-width: 600px) { .home-intro { padding-block: 24px; } .home-message { font-size: 15px; } }
/* ===== PC幅ではヘッダーを画面上部に固定する（スマホは画面下の電話バーがあるので固定しない） ===== */
@media (min-width: 901px) {
  /* ----- スクロールしてもヘッダーが付いてくる。下の線で本文と区切る ----- */
  .site-header { position: sticky; top: 0; box-shadow: 0 1px 0 var(--line); }
  /* ----- ページ内リンクの飛び先と右側の目次が、ヘッダー（約184px）の下に隠れないようにずらす。画面が低いときは目次の中でスクロールできるようにする ----- */
  html { scroll-padding-top: 208px; }
  .page-aside { top: 208px; max-height: calc(100vh - 216px); overflow-y: auto; }
}
