:root {
  --primary: #176b66;
  --primary-dark: #10514d;
  --primary-soft: #edf7f6;
  --text: #243333;
  --muted: #596766;
  --line: #d9e3e2;
  --white: #ffffff;
  --section-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--primary-dark); text-underline-offset: .2em; }
svg { display: block; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.35; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; color: var(--primary-dark); background: var(--white); border: 2px solid var(--primary); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #d19a35; outline-offset: 3px; }

.container { width: min(calc(100% - 48px), var(--section-width)); margin-inline: auto; }
.container.narrow { max-width: 900px; }
.section { padding: 96px 0; }
.section-tint { background: #f7faf9; }
.section-heading { margin-bottom: 40px; text-align: center; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: .06em; }
.section-heading h2::after { content: ""; display: block; width: 44px; height: 3px; margin: 18px auto 0; background: var(--primary); }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.header-inner { width: min(calc(100% - 48px), var(--section-width)); min-height: 82px; margin-inline: auto; display: flex; align-items: center; gap: 42px; }
.brand { color: var(--text); text-decoration: none; }
.brand-name, .brand-sub { display: block; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; line-height: 1.35; }
.brand-sub { color: var(--muted); font-size: .8rem; letter-spacing: .08em; line-height: 1.5; }
.global-nav { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.global-nav a { color: var(--text); font-size: 1rem; font-weight: 600; text-decoration: none; }
.global-nav a:hover { color: var(--primary); text-decoration: underline; }
.menu-button { display: none; }

.hero { background: #f7faf9; border-bottom: 1px solid var(--line); }
.hero-inner { min-height: 520px; padding: 96px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-area { margin: 0 0 10px; color: var(--primary); font-weight: 700; letter-spacing: .1em; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 7vw, 4.5rem); letter-spacing: .08em; }
.hero-location { margin: 0 0 38px; color: var(--muted); font-size: 1.3rem; font-weight: 600; }
.hero-actions { width: min(100%, 620px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.button { min-height: 62px; padding: 14px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; text-align: center; }
.button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: var(--white); background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-outline { color: var(--primary-dark); background: var(--white); border-color: var(--primary); }
.button-outline:hover { background: var(--primary-soft); }
.button-large { font-size: 1.15rem; }

.notice-section { padding: 38px 0; }
.notice-box { padding: 26px 30px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; border: 1px solid var(--line); }
.notice-box h2 { margin: 0; font-size: 1.25rem; letter-spacing: .05em; }
.notice-box p { margin: 0; padding-left: 28px; border-left: 1px solid var(--line); color: var(--muted); }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-item { min-height: 170px; padding: 34px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--line); text-align: center; }
.service-item span { margin-bottom: 8px; color: var(--primary); font-size: .9rem; font-weight: 700; }
.service-item h3 { margin: 0; font-size: 1.7rem; letter-spacing: .05em; }

.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.hours-table { width: 100%; min-width: 720px; border-collapse: collapse; border-spacing: 0; text-align: center; }
.hours-table th, .hours-table td { padding: 18px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hours-table th:last-child, .hours-table td:last-child { border-right: 0; }
.hours-table tbody tr:last-child th, .hours-table tbody tr:last-child td { border-bottom: 0; }
.hours-table thead th { color: var(--white); background: var(--primary); font-size: 1rem; }
.hours-table thead th:first-child { min-width: 180px; }
.hours-table tbody th { white-space: nowrap; background: var(--primary-soft); font-size: 1.05rem; }
.hours-table tbody td span[aria-label="診療"], .open-mark { color: var(--primary); }
.hours-notes { margin-top: 22px; display: flex; justify-content: space-between; gap: 24px; }
.hours-notes p { margin: 0; }

.access-grid { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); }
.access-info { padding: 42px; }
.access-info dl { margin: 0 0 30px; }
.access-info dl div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.access-info dl div:first-child { padding-top: 0; }
.access-info dt { margin-bottom: 4px; color: var(--primary-dark); font-weight: 700; }
.access-info dd { margin: 0; }
.text-link { display: inline-block; font-weight: 700; }
.map-wrap { min-height: 460px; background: #e8efee; }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

.contact-section { padding: 96px 0; color: var(--white); background: var(--primary-dark); text-align: center; }
.contact-section h2 { margin-bottom: 38px; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: .06em; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-button { min-height: 112px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--primary); border-radius: 8px; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.contact-phone { color: var(--white); background: var(--primary); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.contact-phone:hover { background: #115954; }
.contact-phone strong { margin-top: 6px; color: var(--white); font-size: 1.35rem; letter-spacing: .04em; }
.contact-email { color: var(--primary-dark); background: var(--white); }
.contact-email:hover { background: var(--primary-soft); }
.contact-email-fallback { margin: 12px 8px 0; color: #dce9e7; font-size: .84rem; line-height: 1.65; }
.contact-email-fallback a { color: var(--white); font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 3px; user-select: text; }
.contact-note { max-width: 760px; margin: 18px auto 0; color: #e3efee; font-size: .95rem; line-height: 1.8; text-align: left; }

.site-footer { background: #f2f6f5; }
.footer-inner { min-height: 150px; padding-top: 34px; padding-bottom: 34px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner strong { display: block; margin-bottom: 6px; font-size: 1.2rem; }
.footer-inner address { color: var(--muted); font-style: normal; }
.footer-contact { margin: 8px 0 0; color: var(--muted); }
.footer-contact a, .policy-contact a { overflow-wrap: anywhere; }
.footer-bottom { padding: 16px 24px; color: #dce9e7; background: #173b39; text-align: center; }
.mobile-cta { display: none; }

/* プライバシーポリシー */
.simple-header .header-inner { justify-content: space-between; }
.simple-header .header-actions { margin-left: auto; display: flex; gap: 10px; }
.simple-header .header-actions .button { min-height: 48px; padding: 10px 18px; }
.subpage-main { min-height: 65vh; }
.subpage-title { padding: 64px 0 58px; background: #f7faf9; text-align: center; }
.subpage-title .section-label { margin: 0 0 8px; color: var(--primary); font-size: .85rem; font-weight: 700; letter-spacing: .14em; }
.subpage-title h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.policy { padding-top: 70px; padding-bottom: 90px; }
.policy > p:first-child { margin-bottom: 46px; }
.policy section { margin-bottom: 38px; }
.policy h2 { margin-bottom: 12px; padding-left: 14px; border-left: 4px solid var(--primary); font-size: 1.3rem; }
.policy section p { margin-bottom: 0; color: var(--muted); }
.policy-contact { margin-top: 16px; padding: 22px; background: #f7faf9; font-style: normal; }
.policy-date { margin-top: 52px; color: var(--muted); text-align: right; }
.back-link { font-weight: 700; }
.simple-footer { color: #e3efee; background: #173b39; }
.footer-simple-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-simple-inner span { font-size: .95rem; }

@media (max-width: 820px) {
  html { scroll-padding-top: 74px; }
  .header-inner { width: calc(100% - 32px); min-height: 74px; }
  .menu-button { width: 48px; height: 48px; margin-left: auto; padding: 12px; display: block; border: 0; background: transparent; cursor: pointer; }
  .menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--primary-dark); transition: transform .15s, opacity .15s; }
  .menu-button[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav { position: fixed; inset: 74px 0 auto; max-height: calc(100vh - 74px); margin: 0; padding: 12px 24px 24px; display: grid; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; }
  .global-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .global-nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .access-grid { grid-template-columns: 1fr; }
  .map-wrap, .map-wrap iframe { min-height: 380px; }
  .simple-header .header-actions .button.button-outline { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); font-size: 1.0625rem; }
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: .78rem; }
  .hero-inner { min-height: 450px; padding: 72px 0 78px; }
  .hero-area { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.2rem, 12vw, 3rem); letter-spacing: .05em; }
  .hero-location { margin-bottom: 32px; font-size: 1.1rem; }
  .hero-actions { grid-template-columns: 1fr; gap: 12px; }
  .button { min-height: 60px; }
  .notice-section { padding: 24px 0; }
  .notice-box { padding: 22px; grid-template-columns: 1fr; gap: 12px; }
  .notice-box p { padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-item { min-height: 140px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 2rem; }
  .hours-table { min-width: 660px; }
  .hours-table th, .hours-table td { padding: 16px 11px; }
  .hours-notes { display: grid; gap: 6px; }
  .access-info { padding: 28px 22px; }
  .map-wrap, .map-wrap iframe { min-height: 330px; }
  .contact-section { padding: 72px 0; }
  .contact-section h2 { font-size: 1.7rem; letter-spacing: .04em; }
  .contact-actions { grid-template-columns: 1fr; gap: 12px; }
  .contact-button { min-height: 100px; }
  .contact-note { font-size: .9rem; }
  .footer-inner { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 22px; }
  .mobile-cta { position: fixed; z-index: 99; left: 0; right: 0; bottom: 0; height: calc(70px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: 1fr 1fr; background: var(--white); box-shadow: 0 -3px 16px rgba(18, 55, 53, .16); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; }
  .mobile-cta svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-phone { color: var(--white); background: #315d5a; }
  .mobile-email { color: var(--primary-dark); background: var(--white); border-top: 2px solid var(--primary); }
  .subpage-title { padding: 46px 0 42px; }
  .policy { padding-top: 48px; padding-bottom: 64px; }
  .policy > p:first-child { margin-bottom: 36px; }
  .footer-simple-inner { padding-top: 32px; padding-bottom: 32px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
  .brand-sub { display: none; }
  .simple-header .header-actions .button { padding-inline: 13px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-cta, .contact-section { display: none !important; }
  body { padding: 0; color: #000; }
  .section { padding: 36px 0; }
}
