:root {
    --bg: #ececec;
    --canvas: #ffffff;
    --line: #76b32d;
    --green: #5a9c16;
    --blue: #38b6ee;
    --orange: #f49520;
    --text: #2c2c2c;
    --muted: #666666;
    --soft-text: #66757f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.after-psi {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.75;
    text-size-adjust: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font: inherit;
}

.top-link {
    display: block;
    padding: 12px 18px;
    background: #294d72;
    color: #fff;
    font-size: 0.9rem;
}

.demo-flag {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    width: min(360px, calc(100vw - 24px));
    padding: 12px 16px;
    border: 1px solid rgba(41, 77, 114, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(23, 44, 63, 0.16);
    color: #294d72;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.55;
    pointer-events: none;
}

.demo-canvas {
    width: 100%;
    margin: 0 0 48px;
    background: var(--canvas);
    border: 1px solid #9f9f9f;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.page-shell {
    width: min(1216px, calc(100% - 48px));
    margin: 0 auto;
}

.notice-stack {
    border-bottom: 1px solid #d9e4ef;
}

.notice,
.promo-banner {
    padding: 18px 18px 16px;
    text-align: center;
    font-size: 0.95rem;
}

.notice {
    border-bottom: 1px solid #ebe0a7;
    background: #fff8d6;
    color: #7b5b00;
}

.promo-banner {
    padding: 16px 20px;
    background: #eef8ff;
    color: #476277;
}

.notice strong,
.promo-banner strong {
    display: block;
    margin-bottom: 4px;
}

.notice strong {
    font-size: 1rem;
}

.promo-banner strong {
    color: #355569;
    font-size: 0.98rem;
}

.clinic-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #dfdfdf;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.header-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo img {
    width: min(236px, 100%);
    height: auto;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #608497;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #5e7b89;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-nav a {
    white-space: nowrap;
}

.hero-block {
    padding: 18px 0 0;
}

.hero-stage {
    position: relative;
    min-height: 441px;
    overflow: hidden;
    background: #f4f5f5;
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 34%, rgba(255, 255, 255, 0) 64%);
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 425px;
    object-fit: cover;
    background: #e9eef3;
}

.hero-copy,
.hero-schedule {
    position: absolute;
    z-index: 1;
}

.hero-copy {
    top: 34px;
    left: 28px;
    width: min(410px, 39%);
}

.hero-copy h1 {
    margin: 0;
    color: var(--green);
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.hero-copy p {
    margin: 18px 0 0;
    color: var(--orange);
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 700;
}

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

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-button:hover {
    transform: translateY(-1px);
}

.hero-button-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 20px rgba(56, 182, 238, 0.18);
}

.hero-button-secondary {
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--blue);
}

.hero-schedule,
.mobile-schedule {
    padding: 20px 18px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e1e5ea;
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(17, 44, 66, 0.08);
}

.hero-schedule {
    right: 44px;
    bottom: 24px;
    width: min(468px, calc(100% - 56px));
}

.hero-schedule h2,
.mobile-schedule h2 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    color: #62717c;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.schedule-table th,
.schedule-table td {
    padding: 7px 6px;
    border-bottom: 1px solid #edf1f4;
    text-align: center;
    font-size: 0.76rem;
    white-space: nowrap;
}

.schedule-table thead th {
    background: #f7fafc;
    color: #74828c;
    font-weight: 700;
}

.schedule-table tbody th {
    width: 96px;
    text-align: left;
    color: #6e7b85;
    font-weight: 700;
}

.schedule-table tbody td {
    color: #4e5965;
}

.schedule-note {
    margin: 10px 0 0;
    color: #7a8690;
    font-size: 0.82rem;
    line-height: 1.5;
}

.mobile-schedule-block {
    display: none;
}

.content-section {
    padding: 12px 0 22px;
}

.deferred-section {
    content-visibility: auto;
    contain-intrinsic-size: 860px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 16px 34px;
    font-size: 0;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--line);
}

.section-title span {
    padding: 5px 16px;
    background: var(--canvas);
    color: var(--green);
    font-size: clamp(1.7rem, 3.2vw, 2.25rem);
    line-height: 1.2;
    font-weight: 800;
}

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

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 46px;
}

.feature-item {
    text-align: center;
}

.feature-item img,
.service-card img {
    margin: 0 auto 12px;
}

.feature-item img {
    width: 98px;
    height: 98px;
    object-fit: contain;
}

.feature-item h3,
.service-card h3,
.staff-copy h3,
.access-copy h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.feature-item p,
.service-card p,
.staff-copy p,
.staff-copy li,
.access-copy p,
.access-copy li,
.staff-group figcaption,
.gallery-card figcaption,
.map-meta p {
    margin: 0;
    color: var(--muted);
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 46px;
}

.service-card {
    padding: 18px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.service-card img {
    width: 94px;
    height: 94px;
    object-fit: contain;
}

.gallery-shell,
.staff-intro,
.staff-group,
.access-layout {
    margin: 0 46px;
}

.gallery-shell {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border: 1px solid #e4e4e4;
    border-radius: 18px;
    background: #fafafa;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: #eff3f6;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #eff3f6;
}

.gallery-card figcaption {
    padding: 12px 14px 14px;
    font-size: 0.94rem;
    line-height: 1.6;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c8d8e1;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.gallery-dot.is-active {
    width: 32px;
    background: #76b32d;
}

.staff-intro {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.staff-profile {
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: #f2f2f2;
}

.staff-copy ul,
.access-copy ul {
    padding-left: 20px;
}

.staff-group {
    margin-top: 22px;
}

.staff-group img {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.staff-group figcaption {
    margin-top: 12px;
    text-align: center;
}

.access-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 425px;
    gap: 28px;
    align-items: start;
}

.map-panel {
    min-height: 318px;
    overflow: hidden;
    border: 1px solid #d7e2ea;
    border-radius: 20px;
    background: #edf5fb;
}

.map-link,
.map-meta {
    font-size: 0.88rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    color: #4f7080;
}

.map-panel iframe {
    display: block;
    width: 100%;
    height: 318px;
    border: 0;
}

.map-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid #d7e2ea;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.95));
    color: #60727e;
}

.page-footer {
    padding: 20px 24px 28px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

@media (max-width: 1080px) {
    .feature-grid,
    .service-grid,
    .access-layout,
    .staff-intro {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy {
        width: min(446px, 50%);
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

}

@media (max-width: 980px) {
    .hero-stage .hero-schedule {
        display: none;
    }

    .mobile-schedule-block {
        display: block;
        padding: 18px 0 0;
    }

    .hero-copy {
        width: min(360px, 44%);
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-copy p {
        font-size: 0.98rem;
    }
}

@media (max-width: 820px) {
    .demo-canvas {
        width: min(100%, calc(100% - 20px));
        margin-top: 10px;
    }

    .page-shell,
    .feature-grid,
    .service-grid,
    .gallery-shell,
    .staff-intro,
    .staff-group,
    .access-layout {
        margin-left: 18px;
        margin-right: 18px;
        padding-left: 0;
        padding-right: 0;
    }

    .header-shell {
        padding: 10px 0;
        position: relative;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .page-nav {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        display: none;
        min-width: 220px;
        padding: 12px 14px;
        border: 1px solid #d8d8d8;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
        z-index: 5;
    }

    .page-nav.is-open {
        display: flex;
    }

    .hero-stage {
        min-height: auto;
    }

    .hero-photo {
        height: 520px;
    }

    .hero-stage::after {
        inset: auto 0 0 0;
        height: 64%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 34%, rgba(255, 255, 255, 0.92) 100%);
    }

    .hero-copy {
        position: absolute;
        top: auto;
        right: 0;
        bottom: 22px;
        left: 0;
        width: auto;
        display: block;
        padding: 0 18px;
    }

    .hero-copy p {
        max-width: 18ch;
    }

    .hero-actions {
        margin-top: 14px;
        padding-top: 0;
    }

    .feature-grid,
    .service-grid,
    .access-layout,
    .staff-intro {
        grid-template-columns: 1fr;
    }

    .staff-profile {
        width: min(220px, 100%);
        margin: 0 auto;
    }

    .section-title {
        margin-inline: 18px;
    }

    .map-panel iframe {
        height: 280px;
    }

    .map-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-copy p {
        font-size: 0.96rem;
    }

    .section-title span {
        font-size: 1.5rem;
    }

    .hero-button {
        width: 100%;
    }

    .notice,
    .promo-banner {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .demo-flag {
        right: 12px;
        bottom: 12px;
        width: min(320px, calc(100vw - 24px));
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}
