:root {
  --canvas: #ffffff;
  --canvas-alt: #f5f8f8;
  --surface: #ffffff;
  --ink: #122c31;
  --muted: #53666a;
  --brand: #07515b;
  --brand-deep: #063f48;
  --soft: #e4f0f1;
  --accent: #e67817;
  --line: #d8e0e1;
  --radius: 12px;
  --frame: min(100% - 40px, 1180px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--brand); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.frame { width: var(--frame); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 60; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 16px; }
.brand { margin-right: auto; color: var(--brand-deep); line-height: 1.05; text-decoration: none; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -.025em; }
.brand span { display: block; margin-top: 6px; color: var(--accent); font-size: .73rem; }
.menu-button { display: block; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
.menu-button span, .menu-button::before, .menu-button::after { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; content: ""; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.nav { position: fixed; inset: 77px 0 auto; display: none; max-height: calc(100dvh - 77px); overflow: auto; padding: 22px max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav[data-open="true"] { display: flex; height: calc(100dvh - 77px); }
body.nav-open { overflow: hidden; }
.nav a { min-height: 48px; display: flex; align-items: center; padding: 6px; font-size: .92rem; font-weight: 700; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); }
.lang { margin-top: 10px; padding-top: 14px !important; border-top: 1px solid var(--line); color: var(--accent); }
.contact-link { justify-content: center; margin-top: 8px; border-radius: 999px; background: var(--brand); color: white; }
.contact-link:hover, .nav a.contact-link[aria-current="page"] { background: var(--brand-deep); color: white; }

main { min-height: 70vh; }
.hero { overflow: clip; background: var(--surface); }
.hero-grid { display: flex; flex-direction: column; gap: 34px; }
.hero .hero-grid { padding-top: 52px; padding-bottom: 28px; }
.hero-copy { animation: arrive .6s cubic-bezier(.22,1,.36,1) both; }
.hero h1, .page-head h1 { margin: 0; color: var(--brand-deep); font-size: clamp(2.65rem, 12vw, 4.25rem); line-height: .99; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 { max-width: 12ch; }
.hero h1::after { width: 64px; height: 2px; display: block; margin-top: 28px; background: var(--accent); content: ""; }
.hero h1 em { color: inherit; font-style: normal; }
.hero .intro { max-width: 34ch; margin: 24px 0 0; color: var(--ink); font-size: 1.06rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 24px; border: 1px solid var(--brand); border-radius: 2px; background: var(--brand); color: white; font-weight: 800; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button.secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.button:hover { background: var(--brand-deep); color: white; transform: translateY(-1px); }
.button.secondary:hover { background: var(--accent); color: white; }
.hero-meta { margin: 22px 0 0; color: var(--muted); font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-photo { overflow: hidden; border-radius: var(--radius); animation: arrive .72s .05s cubic-bezier(.22,1,.36,1) both; }
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 40%; }
.profile-grid { display: flex; flex-direction: column; gap: 32px; }

.clinic-ribbon { display: grid; grid-template-columns: 1fr; background: var(--surface); border-top: 1px solid var(--line); }
.clinic-ribbon img { width: 100%; height: 170px; object-fit: cover; }
.clinic-ribbon a { grid-column: 1 / -1; min-height: 104px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--brand-deep); color: white; font-size: 1.35rem; text-decoration: none; }
.clinic-ribbon a:hover { background: var(--brand); color: white; }
.clinic-ribbon .icon { color: var(--accent); transition: transform .2s ease; }

.section { padding: clamp(72px, 12vw, 124px) 0; }
.section.alt { background: var(--surface); }
.welcome { display: grid; gap: 32px; }
.welcome-mark { color: var(--brand); font-size: 8rem; font-weight: 800; line-height: .58; letter-spacing: -.1em; }
.section-heading { display: block; margin-bottom: 34px; }
.section-heading h2 { max-width: 15ch; margin: 0; color: var(--brand-deep); font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
.section-heading > a { width: fit-content; display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--brand); font-weight: 700; text-decoration: none; }
.section-heading > a .icon { color: var(--accent); }
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { text-wrap: pretty; }
.prose p { margin-block: 0 1.35em; }
.prose li + li { margin-top: .45em; }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .55em; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.prose h4 { font-size: 1.35rem; }
.prose img { margin: 32px auto; border-radius: var(--radius); }
.prose strong { font-weight: 750; }
.articles-section { background: var(--canvas-alt); border-top: 1px solid var(--line); }
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 28px; align-items: center; gap: 14px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.article-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.article-row h2 { margin: 0; color: var(--brand-deep); font-size: 1.28rem; line-height: 1.18; letter-spacing: -.025em; }
.article-row p { display: none; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.article-row .icon { grid-column: 3; grid-row: 1; color: var(--accent); transition: transform .2s ease; }

.page-head { padding: 64px 0 42px; }
.page-head h1 { max-width: 15ch; }
.page-head h1::after { width: 64px; height: 2px; display: block; margin-top: 28px; background: var(--accent); content: ""; }
.page-head p { max-width: 58ch; margin: 22px 0 0; color: var(--muted); font-size: 1rem; }
.page-visual, .article-cover { margin-top: 0; margin-bottom: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.page-visual img, .article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 8px; background: var(--soft); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.article-layout { display: flex; flex-direction: column; gap: 48px; padding-top: 42px; padding-bottom: 80px; }
.article-aside { padding: 32px 0 0; border-top: 1px solid var(--line); }
.article-aside strong { display: block; margin: 0 0 18px; color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.related-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.related-item { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.related-item img { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 8px; }
.related-item span { color: var(--brand-deep); font-size: .92rem; font-weight: 700; line-height: 1.3; }
.related-item:hover span { color: var(--brand); }
.related-all { width: fit-content; display: inline-flex; color: var(--brand); font-weight: 700; text-decoration: none; }
.contact-grid { display: grid; gap: 28px; padding-top: 42px; padding-bottom: 56px; }
.address { padding: 30px; border-radius: var(--radius); background: var(--brand-deep); color: white; }
.address h2 { margin-top: 0; }
.address p { margin: 0 0 6px; }
.address a { color: white; }
.address .button { margin-top: 20px; }
.reach h2 { margin-top: 0; }
.contact-method { width: fit-content; min-height: 50px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; color: var(--brand-deep); font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.contact-method .icon { color: var(--accent); }
.contact-method:hover { color: var(--brand); }
.contact-note { margin: 14px 0 0; color: var(--muted); }
.map { padding-bottom: 80px; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; border-radius: var(--radius); }

.site-footer { padding: 42px 0 max(42px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { color: var(--brand-deep); font-size: 1.05rem; font-weight: 800; }
.disclaimer { max-width: 72ch; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.back-top { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: .82rem; font-weight: 700; text-decoration: none; }
.back-top .icon { width: 20px; color: var(--accent); }
@keyframes arrive { from { opacity: .01; transform: translateY(16px); } }

@media (min-width: 640px) {
  :root { --frame: min(100% - 56px, 1180px); }
  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
  .section-heading > a { margin: 0 0 6px; }
  .article-row p { display: block; grid-column: 2; }
  .article-row .icon { grid-row: 1 / 3; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 861px) {
  body { font-size: 17px; }
  .header-inner { min-height: 94px; gap: 28px; }
  .brand strong { font-size: 1.2rem; }
  .brand span { font-size: .8rem; }
  .menu-button { display: none; }
  .nav { position: static; display: flex; max-height: none; overflow: visible; padding: 0; flex-direction: row; align-items: center; gap: clamp(18px, 2.1vw, 34px); background: transparent; border: 0; }
  .nav a { min-height: auto; display: inline; padding: 0; font-size: .88rem; }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 12px; }
  .lang { margin: 0 0 0 4px; padding: 0 !important; border: 0; }
  .contact-link { margin: 0; padding: 11px 17px !important; color: white; }
  .header-inner, .hero .hero-grid { width: min(100% - 80px, 1490px); }
  .hero .hero-grid { display: grid; grid-template-columns: minmax(440px, .82fr) minmax(0, 1.18fr); align-items: stretch; gap: 0; padding-top: 0; padding-bottom: 0; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; min-height: 610px; padding: 72px clamp(48px, 4vw, 72px) 72px 0; }
  .hero h1 { max-width: none; font-size: clamp(4rem, 4.6vw, 4.65rem); }
  .hero .intro { font-size: 1.18rem; }
  .hero .hero-photo { height: 610px; border-radius: 0; }
  .hero .hero-photo img { height: 100%; min-height: 0; aspect-ratio: auto; }
  .clinic-ribbon { width: min(100% - 56px, 1440px); margin: 44px auto 0; grid-template-columns: repeat(12, 1fr); border: 0; }
  .clinic-ribbon img { height: 330px; }
  .clinic-operatory { grid-column: 1 / span 6; }
  .clinic-ribbon a { grid-column: 7 / span 6; min-height: 330px; padding: 0 clamp(48px, 6vw, 92px); font-size: clamp(2rem, 3.2vw, 3.3rem); }
  .welcome { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(24px, 3vw, 48px); }
  .welcome-mark { font-size: 11rem; }
  .profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 460px); align-items: start; gap: clamp(48px, 6vw, 96px); }
  .profile-grid .prose { max-width: none; }
  .article-row { grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr) 36px; grid-template-rows: auto auto; gap: 12px 38px; padding: 10px 0; }
  .article-row img { grid-column: 1; grid-row: 1 / 3; width: 100%; height: 188px; border-radius: 10px; }
  .article-row h2 { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(1.5rem, 2.1vw, 2rem); }
  .article-row p { grid-column: 2; grid-row: 2; align-self: start; font-size: .98rem; }
  .article-row .icon { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .page-head { padding: 92px 0 56px; }
  .page-head h1 { font-size: clamp(3.6rem, 6vw, 5.5rem); }
  .page-head p { font-size: 1.1rem; }
  .page-visual img, .article-cover img { aspect-ratio: 16/7; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(50px, 8vw, 100px); align-items: start; padding-bottom: 110px; }
  .article-aside { position: sticky; top: 126px; padding: 0; border: 0; }
  .address { padding: 44px; }
  .map iframe { height: 420px; }
  .footer-inner { grid-template-columns: .55fr 1fr auto; gap: 36px; align-items: start; }
}

@media (hover: hover) {
  .article-row:hover .icon, .clinic-ribbon a:hover .icon { transform: translateX(6px); }
  .gallery figure:hover img { transform: scale(1.025); }
}
@media (pointer: coarse) {
  .button { min-height: 52px; padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
