:root {
    --bg: #fbfffc;
    --surface: #ffffff;
    --muted: #effdf3;
    --line: #c8f1d4;
    --text: #1d2a28;
    --sub: #52615e;
    --green: #06c755;
    --green-dark: #057a38;
    --green-action: #057a38;
    --teal: #00b900;
    --blue: #315f7a;
    --focus: #f5b83d;
    --radius: 8px;
    --shadow: 0 14px 36px rgba(6, 199, 85, .14);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0;
    font-feature-settings: "palt";
    padding-bottom: 0;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--green-dark);
    text-underline-offset: .22em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--teal);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .7em;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
    font-size: 1.65rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
    overflow-wrap: anywhere;
}

.skip-link {
    position: absolute;
    z-index: 100;
    top: .75rem;
    left: .75rem;
    transform: translateY(-150%);
    background: var(--green-dark);
    color: #fff;
    padding: .65rem 1rem;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(840px, calc(100% - 32px));
}

.section {
    padding: 72px 0;
}

.muted {
    background: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(1180px, calc(100% - 24px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    flex: 0 0 auto;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-tagline {
    display: block;
    color: var(--sub);
    font-size: .78rem;
    letter-spacing: .08em;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.site-nav ul,
.footer-links,
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: .42rem .7rem;
    border-radius: 6px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
    background: #e3faeb;
    color: var(--green-dark);
}

.site-nav .nav-phone {
    background: var(--green-action);
    color: #fff;
    padding-inline: 1rem;
}

.menu-toggle {
    display: none;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    padding: .45rem .8rem;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -7px;
}

.menu-bars::after {
    top: 7px;
}

.menu-label {
    margin-left: .45rem;
}

.breadcrumb {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 0;
    color: var(--sub);
    font-size: .95rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: .4rem;
    color: #81908c;
}

.hero {
    min-height: min(760px, calc(100vh - 96px));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    position: relative;
    isolation: isolate;
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 45, 38, .84), rgba(8, 45, 38, .44) 55%, rgba(8, 45, 38, .10));
}

.hero-media,
.hero-media picture,
.hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 104px;
    max-width: 820px;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.2rem);
    margin-bottom: .22em;
}

.hero-content p {
    font-size: clamp(1.18rem, 1.6vw, 1.38rem);
    line-height: 1.9;
    font-weight: 700;
}

.eyebrow {
    color: var(--teal);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.hero .eyebrow {
    color: #e7ffed;
}

.hero-actions,
.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .72rem 1.1rem;
    border: 1px solid var(--green);
    border-radius: 6px;
    background: var(--surface);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
}

.button.primary {
    background: var(--green-action);
    color: #fff;
}

.button.ghost {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
}

.button.full {
    width: 100%;
}

.quick-grid,
.two-column,
.split,
.news-layout,
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.quick-panel,
.callout,
.guide-card,
.profile-box,
.news-row {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-panel,
.callout,
.profile-box {
    padding: 28px;
    font-size: 1.04rem;
}

.quick-panel.accent {
    background: #f7fff9;
}

.schedule-box {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 1.04rem;
}

.schedule-table .time-col {
    width: 24%;
}

.schedule-table .day-col {
    width: 12.666%;
}

.schedule-table caption {
    text-align: left;
    font-weight: 800;
    padding: 16px 18px 10px;
    margin: 0;
    color: var(--green-dark);
}

.schedule-table th,
.schedule-table td {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: .78rem .42rem;
    text-align: center;
    vertical-align: middle;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
    border-right: 0;
}

.schedule-table th {
    background: #e4faeb;
    color: var(--green-dark);
    font-weight: 800;
}

.schedule-table thead th {
    font-size: .95rem;
}

.schedule-table tbody th {
    width: 27%;
    min-width: 0;
    text-align: left;
    background: #f7fff9;
}

.time-label,
.time-range {
    display: block;
}

.time-label {
    color: var(--green-dark);
    font-family: var(--font-serif);
    font-size: 1.16rem;
}

.time-range {
    margin-top: .15rem;
    color: var(--sub);
    font-family: var(--font-sans);
    font-size: .92rem;
    font-weight: 800;
}

.day-label {
    display: none;
}

.status-pill {
    display: inline-flex;
    min-width: 38px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .2rem .5rem;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
}

.is-open .status-pill {
    background: #d9f8e3;
    color: var(--green-dark);
}

.is-visit .status-pill {
    min-width: 0;
    background: #e4faee;
    color: var(--blue);
    font-size: .86rem;
}

.is-closed .status-pill {
    background: #f4eee6;
    color: #7a5540;
}

.schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--line);
    color: var(--sub);
    font-size: .94rem;
    font-weight: 800;
    list-style: none;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: .4rem;
    border-radius: 50%;
}

.legend-dot.open {
    background: var(--green);
}

.legend-dot.visit {
    background: var(--blue);
}

.legend-dot.closed {
    background: #9b7058;
}

.note,
.inline-note {
    color: #6b4a00;
    background: #fff7d8;
}

.note {
    padding: .7rem .85rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.inline-note {
    display: inline-block;
    border-radius: 999px;
    padding: .05rem .45rem;
    font-size: .85rem;
    font-weight: 800;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list div {
    display: grid;
    gap: 3px;
}

.info-list dt {
    color: var(--sub);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    font-weight: 700;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading.centered {
    width: min(760px, 100%);
    margin-inline: auto;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.visit-overview {
    background: #f7fff9;
}

.prep-grid,
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prep-card,
.info-card {
    min-width: 0;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.prep-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.prep-card.accent {
    background: #fffaf0;
}

.prep-card img {
    width: 100%;
    height: 150px;
    margin-bottom: 18px;
    object-fit: contain;
    object-position: center;
}

.prep-card p {
    flex: 1;
}

.info-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #ddfae6;
    color: var(--green-dark);
    font-weight: 900;
}

.guide-hero-image {
    width: min(320px, 100%);
    justify-self: end;
    object-fit: contain;
    background: #f7fff9;
    padding: 22px;
}

.flow-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-list li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.flow-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-action);
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 900;
}

.flow-list h3,
.info-card h3,
.prep-card h3 {
    margin-bottom: .45em;
}

.flow-list p,
.info-card p,
.prep-card p {
    margin-bottom: 0;
}

.infection-callout {
    background: #fff7d8;
}

.faq-list {
    width: min(920px, 100%);
    margin-inline: auto;
    display: grid;
    gap: 12px;
}

.faq-list details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 22px;
    color: var(--green-dark);
    font-weight: 900;
}

.faq-list p {
    margin: 0;
    padding: 0 22px 20px;
}

.feature-section {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0) 0%, rgba(232, 244, 239, .65) 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--teal), var(--blue));
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: #e4faeb;
    z-index: 0;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-illustration {
    width: 100%;
    height: 130px;
    object-fit: contain;
    object-position: center;
    margin: 2px 0 16px;
    filter: drop-shadow(0 10px 14px rgba(17, 67, 55, .10));
}

.feature-card:nth-child(1) {
    background: linear-gradient(180deg, #ffffff 0%, #effcf4 100%);
}

.feature-card:nth-child(2) {
    background: linear-gradient(180deg, #ffffff 0%, #effcf4 100%);
}

.feature-card:nth-child(3) {
    background: linear-gradient(180deg, #ffffff 0%, #f4fdf0 100%);
}

.feature-card:nth-child(4) {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.feature-card p {
    flex: 1;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #e3faeb;
    color: var(--green-dark);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 800;
}

.guide-card {
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.guide-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 92px;
    background: linear-gradient(135deg, #e1fbe8, #f7fff9);
    z-index: 0;
}

.guide-card > * {
    position: relative;
    z-index: 1;
}

.guide-illustration {
    width: 100%;
    height: 142px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 12px 14px rgba(17, 67, 55, .10));
}

.doctor-guide-image {
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius);
    filter: none;
}

.guide-card,
.feature-card,
.service-item,
.news-row,
.profile-box,
.message-card,
.article-body {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.guide-card:hover,
.feature-card:hover,
.service-item:hover,
.news-row:hover {
    transform: translateY(-4px);
    border-color: #9ee5b5;
    box-shadow: 0 18px 44px rgba(17, 67, 55, .14);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-icon {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    background: #f7fff9;
}

.text-link {
    font-weight: 800;
}

.news-list {
    display: grid;
    gap: 14px;
}

.news-row {
    padding: 18px 20px;
}

.news-row time,
.category,
.archive-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 .4rem .45rem 0;
    font-size: .9rem;
    font-weight: 800;
}

.category {
    color: var(--green-dark);
    background: #e3faeb;
    border-radius: 999px;
    padding: 0 .7rem;
}

.archive-label {
    color: #6b4a00;
    background: #fff0bb;
    border-radius: 999px;
    padding: 0 .7rem;
}

.news-row h2,
.news-row h3 {
    margin-bottom: .25rem;
}

.page-hero {
    padding: 72px 0 48px;
    background: linear-gradient(180deg, #effcf4 0%, var(--bg) 100%);
}

.page-hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.9;
    color: var(--text);
}

.rounded-media,
.doctor-photo,
.map-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-block {
    margin-top: 40px;
}

.map-image {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #fff;
}

.check-list {
    padding-left: 1.3rem;
}

.large-tel {
    font-size: 2rem;
    font-weight: 900;
}

.service-list {
    display: grid;
    gap: 28px;
}

.service-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.service-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    padding: 12px;
    border-radius: 50%;
    background: #f7fff9;
}

.doctor-section figure,
.doctor-card {
    margin: 0;
}

.doctor-section figcaption,
.doctor-card figcaption {
    color: var(--sub);
    margin-top: .6rem;
}

.greeting-hero {
    padding-bottom: 68px;
}

.greeting-hero-inner {
    align-items: center;
}

.doctor-card {
    position: relative;
    justify-self: end;
    width: min(360px, 100%);
}

.doctor-card .doctor-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.doctor-card figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    box-shadow: var(--shadow);
}

.doctor-card figcaption span,
.doctor-card figcaption strong {
    display: block;
}

.doctor-card figcaption span {
    color: var(--sub);
    font-size: .9rem;
    font-weight: 800;
}

.doctor-card figcaption strong {
    font-family: var(--font-serif);
    font-size: 1.35rem;
}

.greeting-message {
    width: min(920px, calc(100% - 32px));
}

.message-card {
    position: relative;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.message-card::before {
    content: "";
    position: absolute;
    inset: 18px auto 18px 0;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--green), var(--teal));
}

.profile-box {
    position: relative;
    overflow: hidden;
}

.profile-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.profile-box ul {
    margin-top: 0;
    padding-left: 1.3rem;
}

.profile-section .section-heading {
    margin-bottom: 32px;
}

.visual-profile-box {
    display: grid;
    align-content: start;
    gap: 18px;
}

.profile-visual {
    width: 100%;
    height: 190px;
    padding: 14px;
    object-fit: contain;
    background: linear-gradient(135deg, #f4fff7, #e4faeb);
    border: 1px solid #cff2d9;
    border-radius: var(--radius);
}

.profile-visual.compact {
    object-position: center bottom;
}

.profile-visual.doctor-visual {
    height: 230px;
    padding: 0;
    object-fit: contain;
    object-position: center bottom;
}

.profile-box .credential-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.credential-list li {
    position: relative;
    padding: .75rem .9rem .75rem 2.05rem;
    background: #f7fff9;
    border: 1px solid #cff2d9;
    border-radius: var(--radius);
    font-weight: 800;
}

.credential-list li::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: .9rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(14, 123, 131, .12);
}

.profile-data-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.profile-data-list div {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: .85rem;
    background: #f7fff9;
    border: 1px solid #cff2d9;
    border-radius: var(--radius);
}

.profile-data-list dt {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green-dark);
    font-weight: 900;
}

.profile-data-list dd {
    margin: 0;
    font-weight: 800;
}

.profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddfae6;
    color: var(--green-dark);
    font-family: var(--font-serif);
    font-size: .9rem;
    line-height: 1;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .28rem .72rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--green-dark);
    font-weight: 800;
}

.article-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.article-meta {
    margin-bottom: 18px;
}

.article-body {
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.archive-notice {
    border: 2px solid #f1d06b;
    background: #fff7d8;
    border-radius: var(--radius);
    padding: 1rem;
    font-weight: 800;
}

.prose h2 {
    margin-top: 1.6em;
    font-size: 1.35rem;
}

.back-link {
    margin-top: 40px;
}

.site-footer {
    background: #04592a;
    color: #edfff2;
    padding: 46px 0 28px;
}

.site-footer a {
    color: #fff;
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-name {
    font-size: 1.35rem;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: .35rem;
}

.copyright {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 0;
    color: #cdf5d9;
    font-size: .9rem;
}

.mobile-actions {
    display: none;
}

@media (max-width: 980px) {
    .header-inner {
        flex-wrap: wrap;
        align-content: center;
        min-height: 68px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav {
        flex-basis: 100%;
        display: block;
        padding: 0 0 14px;
    }

    .js .site-nav {
        display: none;
    }

    .js body.menu-open .site-nav {
        display: block;
    }

    .site-nav ul {
        display: grid;
        gap: 6px;
    }

    .site-nav a {
        width: 100%;
        justify-content: flex-start;
    }

    .quick-grid,
    .two-column,
    .split,
    .news-layout,
    .profile-grid,
    .card-grid,
    .prep-grid,
    .info-card-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: min(680px, calc(100vh - 88px));
    }
}

@media (max-width: 700px) {
    body {
        padding-bottom: 78px;
        font-size: 17px;
    }

    .container,
    .breadcrumb {
        width: calc(100vw - 32px);
    }

    .header-inner {
        width: calc(100vw - 24px);
        gap: 8px;
    }

    .brand {
        gap: 8px;
        flex: 1 1 auto;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .brand-name {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .brand-tagline {
        font-size: .72rem;
    }

    .menu-toggle {
        flex: 0 0 56px;
        justify-content: center;
        padding-inline: .7rem;
    }

    .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    h1 {
        font-size: 2.25rem;
    }

    .section {
        padding: 52px 0;
    }

    .page-hero .lead {
        overflow-wrap: anywhere;
    }

    .page-hero .split {
        gap: 26px;
    }

    .guide-hero-image {
        width: min(240px, 100%);
        justify-self: center;
        padding: 16px;
    }

    .prep-card,
    .info-card {
        padding: 20px;
    }

    .hero-content {
        width: calc(100vw - 32px);
        max-width: none;
        padding: 72px 0 84px;
    }

    .hero-content h1 {
        font-size: 3.1rem;
    }

    .hero-content h1,
    .hero-content p {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .hero-actions,
    .stack-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .stack-actions .button {
        width: 100%;
    }

    .quick-panel,
    .callout,
    .guide-card,
    .feature-card,
    .profile-box,
    .news-row,
    .service-item {
        padding: 20px;
    }

    .quick-panel h2 {
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.35;
        margin-bottom: .85em;
        overflow-wrap: anywhere;
    }

    .message-card,
    .article-body {
        padding: 24px;
    }

    .doctor-card {
        justify-self: stretch;
    }

    .profile-visual {
        height: 164px;
    }

    .profile-visual.doctor-visual {
        height: 190px;
    }

    .profile-data-list div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-data-list dt {
        min-height: 36px;
    }

    .schedule-table {
        display: grid;
        gap: 10px;
        padding: 0 12px 12px;
        min-width: 0;
    }

    .schedule-table colgroup {
        display: none;
    }

    .schedule-table caption {
        display: block;
        width: 100%;
        padding: 16px 16px 10px;
        font-size: clamp(1rem, 4.8vw, 1.14rem);
        line-height: 1.45;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table th,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .schedule-table th,
    .schedule-table td {
        border: 0;
        text-align: left;
        padding: .7rem .85rem;
    }

    .schedule-table th {
        background: #e3faeb;
    }

    .schedule-table tbody th {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: .95rem 1rem;
    }

    .schedule-table tbody .time-label,
    .schedule-table tbody .time-range {
        margin: 0;
        white-space: nowrap;
    }

    .schedule-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-top: 1px solid #e0f5e6;
    }

    .day-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #effdf3;
        color: var(--green-dark);
        font-weight: 900;
    }

    .status-pill {
        flex: 0 0 auto;
        min-width: 76px;
        white-space: nowrap;
    }

    .schedule-legend {
        padding-inline: 12px;
    }

    .service-item {
        grid-template-columns: 1fr;
    }

    .service-image {
        width: 132px;
        height: 132px;
    }

    .footer-inner {
        display: grid;
    }

    .mobile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 253, 248, .96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(10px);
    }

.mobile-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 48px;
        border-radius: 6px;
        background: var(--green-action);
        color: #fff;
        font-weight: 900;
        text-decoration: none;
    }
}

.preview-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: #057a38;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
