/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4FB4D8;
    --primary-light: #7FCCE5;
    --primary-dark: #2A8CA8;
    --accent-color: #8FD14F;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-cream: #F8F8F8;
    --bg-light-blue: #E8F6FA;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--bg-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: url('../img/common/bg-header-footer.png') var(--bg-white);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: auto;
    background: transparent;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-medium);
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.phone-link {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link i {
    font-size: 1rem;
}

.phone-link:hover {
    color: var(--primary-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav ul {
    padding: 1rem 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 1rem 20px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

/* スマホ：下から上への白グラデ（hero-overlay-spはmedia内で上書き） */

.hero-content {
    position: absolute;
    z-index: 2;
    text-align: left;
    color: var(--text-dark);
    padding: 2rem 2rem 2rem 8%;
    max-width: 600px;
    left: 0;
    top: 3rem;
    transform: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease;
}

/* PC: 各行を1行ずつ表示（折り返しなし） */
.hero-title__line {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.3s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    position: relative;
    border-radius: 2px;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }
    50% {
        top: 40px;
        opacity: 0.5;
    }
    100% {
        top: 50px;
        opacity: 0;
    }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.section-subtitle.center {
    text-align: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background: var(--bg-cream);
    padding: 0;
    margin: 0;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.about-text p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background: var(--bg-light-blue);
}

.features-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-number {
    display: none;
}

.feature-number::before {
    content: '';
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    opacity: 0.3;
}

.feature-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-content {
    width: 100%;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-medium);
    text-align: left;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
}

.feature-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.feature-link:hover::after {
    width: 100%;
}

.feature-link:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   Clinic Environment Section
   ========================================================================== */
.clinic-environment {
    background: var(--bg-white);
    margin-bottom: 0;
    padding-bottom: 0;
}

.clinic-environment > .container {
    max-width: 100%;
    padding: 0;
}

.environment-content {
    position: relative;
    margin-top: 3rem;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 500px;
    display: flex;
    align-items: stretch;
}

.environment-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.environment-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.environment-text-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to right, rgba(79, 180, 216, 0.82) 0%, rgba(79, 180, 216, 0.55) 60%, transparent 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 60%;
    justify-content: center;
}

.env-item {
    position: relative;
    padding-left: 4rem;
}

.env-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.env-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.env-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--bg-white);
}

/* ==========================================================================
   Director Section
   ========================================================================== */
.director {
    background: var(--bg-light-blue);
    margin-top: 0;
    padding-top: 4rem;
}

.director-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 3rem;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    align-items: stretch;
}

.director-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.director-header {
    margin-bottom: 2rem;
}

.director-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.director-labels {
    display: flex;
    gap: 1rem;
}

.label {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.director-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.detail-section ul {
    list-style: none;
}

.detail-section li {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-medium);
    position: relative;
    padding-left: 1rem;
}

.detail-section li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.director-message {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.director-message h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.director-message p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-medium);
}

/* ==========================================================================
   Notice Section
   ========================================================================== */
.notice {
    background: var(--bg-white);
}

.notice-box {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.notice-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.notice-content p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.notice-detail {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.notice-detail h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.notice-detail p {
    font-size: 0.8rem;
    line-height: 1.7;
    margin: 0;
}

.notice-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    text-align: right;
}

.notice-date,
.notice-clinic {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.access {
    background: #c8e8f5;
    background: -webkit-linear-gradient(to right, #d8f4f2, #d0e4f7, #c8cef0);
    background: linear-gradient(to right, #d8f4f2, #d0e4f7, #c8cef0);
}

.access-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.access-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    justify-content: center;
}

.info-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
}

.info-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-color);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.schedule-table th,
.schedule-table td {
    padding: 0.9rem 0.5rem;
    text-align: center;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.schedule-title-row th {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    padding-left: 0;
    background: transparent;
    border-bottom: 2px solid var(--border-color);
}

.schedule-day-row th {
    background: transparent;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table td {
    font-size: 1rem;
    color: var(--text-dark);
}

.time-label {
    text-align: left !important;
    padding-left: 0 !important;
    color: var(--text-medium);
    font-size: 0.95rem;
    white-space: nowrap;
}

.cell-circle { color: var(--primary-color); }
.cell-triangle { color: var(--primary-color); }
.cell-closed { color: var(--text-light); font-size: 0.9rem; }

.time-note {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.schedule-note {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 1rem;
}

.address {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.access-detail,
.access-note {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.access-image-inline {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}

.access-image-inline img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 5rem 0;
}

.contact .section-title.white {
    color: var(--bg-white);
}

.contact-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-web,
.btn-phone {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-web {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-web:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    border-color: var(--bg-white);
    transform: translateY(-3px);
}

.btn-phone {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-phone:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    border-color: var(--bg-white);
    transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: url('../img/common/bg-header-footer.png') var(--bg-cream);
    background-size: cover;
    background-position: center;
    color: var(--text-medium);
    padding: 2rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.footer-logo img {
    width: 40px;
    height: auto;
}

.footer-logo span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-medium);
    white-space: nowrap;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.footer-phone {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-medium);
    white-space: nowrap;
}

.footer-phone i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ==========================================================================
   Reveal Animation
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .director-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .director-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .access-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 横スクロール防止 */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .header-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    /* ── モバイルメニュー：透け防止・全画面 ── */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        padding-top: 76px;
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
        z-index: 999;
        overflow-y: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    /* メニュー文字サイズ統一（小さめ） */
    .mobile-nav a {
        display: block;
        padding: 0.9rem 20px;
        color: var(--text-dark);
        font-weight: 500;
        font-size: 0.95rem;
    }

    /* ── ヒーロー：横長感を活かして縦幅短縮・ボタン非表示 ── */
    .hero {
        height: 52vw;
        min-height: 220px;
        max-height: 340px;
    }

    .hero-content {
        padding: 1.2rem 1.5rem 1.2rem 5%;
        max-width: 70%;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-title {
        font-size: 1.3rem;
        white-space: normal;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.6;
    }

    /* スマホではボタンとScrollインジケーターを非表示 */
    .hero-buttons,
    .hero-scroll {
        display: none;
    }

    .section-title {
        font-size: 1.4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    /* ── 院内環境：スマホでは画像の上にテキストを重ねず、縦並びに ── */
    .clinic-environment > .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .environment-content {
        height: auto;
        flex-direction: column;
    }

    .environment-bg {
        position: relative;
        height: 220px;
    }

    .environment-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .environment-text-overlay {
        position: relative;
        max-width: 100%;
        background: rgba(79, 180, 216, 0.95);
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    /* ── 院長挨拶：ボックス2重解消・テキスト幅確保 ── */
    .director-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .director-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .director-details {
        grid-template-columns: 1fr;
    }

    .director-message {
        padding: 1rem 1.2rem;
    }

    .director-message p {
        font-size: 0.95rem;
        line-height: 1.9;
        word-break: normal;
        overflow-wrap: break-word;
    }

    /* ── アクセス・診療時間：センター配置 ── */
    .access-content {
        gap: 2rem;
    }

    .access-main {
        grid-template-columns: 1fr;
    }

    .info-item {
        width: 100%;
        box-sizing: border-box;
    }

    .about-text {
        padding: 2rem;
    }
    
    .notice-box {
        padding: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-web,
    .btn-phone {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .schedule-table {
        font-size: 0.78rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.6rem 0.15rem;
    }

    .schedule-day-row th {
        font-size: 0.72rem;
        word-break: keep-all;
        white-space: nowrap;
    }

    /* CTAボタングループ：センター・縦並び */
    .cta-btn-group {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.88rem;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(0.8rem, 4.2vw, 1.1rem);
        white-space: nowrap;
    }

    .hero-content {
        max-width: 80%;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .phone-link {
        font-size: 1rem;
    }
}
.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   共通CTAボタン
   ========================================================================== */
.cta-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.cta-btn--fill,
.cta-btn--outline {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn--fill:hover,
.cta-btn--outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.cta-btn i {
    margin-right: 6px;
}

.cta-btn-group {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

/* ==========================================================================
   スマホ固定ボタン（電話予約・WEB予約）
   ========================================================================== */
.sp-hero-lead {
    display: none;
}

.sp-fixed-buttons {
    display: none;
}

@media (max-width: 768px) {
    /* ====== hero スマホ専用 ====== */
    .hero {
        height: calc(100svh - 52px);
        min-height: 480px;
        align-items: stretch;
    }

    /* グラデ: 下40%は白くしてサブコピーを確実に読めるように */
    .hero-overlay {
        background: linear-gradient(to top,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 25%,
            rgba(255, 255, 255, 0) 48%
        );
    }

    /* hero-content: 絶対配置を解除してhero全体をグリッド的に使う */
    .hero-content {
        position: absolute;
        inset: 0;
        top: 0;
        left: 0;
        transform: none;
        padding: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
    }

    /* メインコピー: 縦書き2列、左上に配置 */
    .hero-title {
        display: flex;
        flex-direction: row-reverse;
        gap: 0.5em;
        margin: 0;
        padding: 0.6rem 0 0 6%;
        animation: none;
        flex-shrink: 0;
        align-self: flex-start;
    }

    /* 各行を縦書きに + 白ハイライト帯 */
    .hero-title__line {
        display: block;
        font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
        font-size: clamp(1.5rem, 6.5vw, 1.9rem);
        font-weight: 600;
        writing-mode: vertical-rl;
        line-height: 1.5;
        letter-spacing: 0.1em;
        white-space: nowrap;
        color: var(--text-dark);
        text-shadow: none;
        background: rgba(255, 255, 255, 0.82);
        padding: 0.25em 0.2em;
    }

    /* <br>は不要 */
    .hero-title br {
        display: none;
    }

    /* サブテキスト: 中央配置・折り返しなしサイズ */
    .hero-subtitle {
        font-size: 0.78rem;
        font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
        font-weight: 500;
        line-height: 1.9;
        color: #333;
        text-align: center;
        opacity: 1;
        margin: 0;
        padding: 0 6% 1.2rem;
        animation: none;
        align-self: flex-end;
        width: 100%;
    }

    /* ボタン非表示（固定CTAのみ） */
    .hero-buttons {
        display: none;
    }

    /* scrollインジケーター非表示 */
    .hero-scroll {
        display: none;
    }

    .sp-fixed-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    }

    .sp-fixed-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 0;
        font-size: 0.95rem;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.05em;
    }

    .sp-fixed-btn i { font-size: 1rem; }

    .sp-fixed-btn--tel {
        background: var(--primary-color);
        color: #fff;
    }

    .sp-fixed-btn--web {
        background: var(--primary-color);
        color: #fff;
        border-left: 1px solid rgba(255, 255, 255, 0.5);
        border-top: none;
    }

    .footer {
        padding-bottom: calc(1rem + 52px);
    }

    /* sp-hero-lead 共通 */
    .sp-hero-lead {
        display: block;
        background: var(--bg-white);
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .sp-hero-lead p {
        font-size: 0.88rem;
        line-height: 1.8;
        color: var(--text-medium);
        margin: 0;
    }
}
