@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.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 {
    padding: 18px 18px 16px;
    border-bottom: 1px solid #d8d8d8;
    background: #fff8d6;
    color: #7b5b00;
    font-size: 0.95rem;
    text-align: center;
}

.notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.late-promo {
    padding: 16px 20px;
    border-bottom: 1px solid #d9e4ef;
    background: #eef8ff;
    color: #476277;
    text-align: center;
}

.late-promo strong {
    display: block;
    margin-bottom: 4px;
    color: #355569;
    font-size: 0.98rem;
}

.clinic-header {
    border-bottom: 1px solid #dfdfdf;
    background: #ffffff;
}

.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: #f5f5f5;
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.68) 33%, rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
}

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

.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.2s ease;
}

.hero-button-primary {
    background: var(--blue);
    color: #fff;
}

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

.hero-schedule {
    right: 44px;
    bottom: 24px;
    width: min(452px, calc(100% - 56px));
    padding: 20px 18px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1e5ea;
    border-radius: 18px;
}

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

.mobile-schedule {
    padding: 20px 18px 16px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 18px;
}

.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 {
    text-align: left;
    width: 96px;
    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;
}

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

.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,
.gallery-note,
.staff-copy p,
.staff-copy li,
.access-copy p,
.access-copy li,
.staff-group figcaption {
    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-block,
.staff-intro,
.staff-group,
.access-layout {
    margin: 0 46px;
}

.gallery-block {
    border: 1px solid #e4e4e4;
    background: #fafafa;
    padding: 20px;
}

.clinic-swiper {
    height: 480px;
}

.clinic-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff3f6;
}

.clinic-swiper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.clinic-swiper .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}

.clinic-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.gallery-note {
    margin-top: 16px;
    text-align: center;
}

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

.staff-profile {
    width: 100%;
    background: #f2f2f2;
}

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

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

.staff-group img {
    width: 100%;
}

.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-frame {
    min-height: 283px;
    background: #e6f0f8;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 283px;
    border: 0;
}

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

.hidden-heavy-assets {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.legacy-widget-mount {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 420px;
    max-height: 640px;
    overflow: auto;
    background: #ffffff;
}

.legacy-widget-card {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid #d7e2ea;
    background: #f9fcff;
}

.legacy-widget-card h3 {
    margin: 0 0 10px;
    color: #4d6574;
    font-size: 0.96rem;
}

.legacy-widget-row {
    display: grid;
    grid-template-columns: 92px 1fr 82px;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #e9eef2;
    color: #60727e;
    font-size: 0.8rem;
}

@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-block,
    .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 {
        content: "";
        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;
    }

    .clinic-swiper {
        height: 340px;
    }

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

@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%;
    }

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