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

:root {
    /* Colors inspired by clean, elegant clinics */
    --primary-color: #5bade1;
    --primary-hover: #4a9cd0;
    --secondary-color: #f0f5f8;
    --accent-color: #7fa4b8;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --bg-light: #fafafa;
    --white: #ffffff;
    
    /* Typography */
    --font-family-base: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    --font-family-serif: 'Noto Serif JP', serif;
    
    /* Layout */
    --max-width: 1100px;
    --header-height: 90px;
    
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 105%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family-base);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 1px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

.header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.logo-main {
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 0.15em;
}


.nav-links {
    display: flex;
    gap: 35px;
    margin-left: auto;
    margin-right: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-main);
    position: relative;
    padding-bottom: 5px;
}

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

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
}

.header-line-icon {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-line-icon:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-header-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2ecdb1, #2e8fcd);
    color: var(--white);
    padding: 0 25px;
    height: 50px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 143, 205, 0.2);
}

.btn-header-tel:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 143, 205, 0.3);
    color: var(--white);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #00B900;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    border: none;
    transition: all 0.3s ease;
}

.btn-line:hover {
    background-color: #33C733;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color) 0%, rgba(244, 247, 248, 0) 40%);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 60px 50px;
    max-width: 650px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 2;
    color: var(--text-main);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

.hero-actions .btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #2e8fcd;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 1px solid #2e8fcd;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-actions .btn-hero:hover {
    background-color: #2e8fcd;
    color: var(--white);
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #dbf3ef, #f0f5f8);
}

.features-section .feature-icon {
    color: #2e8fcd;
}

.features-section .feature-title {
    color: #2e8fcd;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 3px solid transparent;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
}

.feature-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Services Section */
.services-section {
    background-color: var(--white);
}

.services-section .section-title {
    color: #2e8fcd;
}

.services-section .btn-primary {
    background-color: #2e8fcd;
    border-color: #2e8fcd;
}

.services-section .btn-primary:hover {
    background-color: #ffffff;
    border-color: #2e8fcd;
    color: #2e8fcd;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.service-card:hover {
    /* ホバー効果を削除 */
}

.service-img {
    width: 120px;
    height: 120px;
    background-color: #2e8fcd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 30px auto 0;
}

.service-body {
    padding: 30px;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #2e8fcd;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    text-align: center;
}

.service-text {
    font-size: 16px;
    color: var(--text-muted);
}

/* Information Section (Time & Access) */
.info-section {
    background: linear-gradient(135deg, #dbf3ef, #f0f5f8);
}

.info-section .section-title {
    color: #2e8fcd;
}

.info-wrap {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.info-block {
    flex: 1;
    min-width: 300px;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.9rem;
    background-color: #ffffff;
}

.timetable th, .timetable td {
    border: 1px solid #e0e0e0;
    padding: 12px 8px;
    text-align: center;
}

.timetable th {
    background-color: var(--secondary-color);
    font-weight: 400;
    color: #2e8fcd;
}

.timetable td.closed {
    color: #e57373;
}

.contact-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--secondary-color);
}

.contact-box h3 {
    font-weight: 400;
    margin: -40px -40px 25px -40px;
    padding: 15px;
    background-color: #2e8fcd;
    color: var(--white);
    border-radius: 8px 8px 0 0;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.tel-link {
    display: block;
    font-size: 2.2rem;
    font-weight: 400;
    color: #2e8fcd;
    margin: 20px 0;
    letter-spacing: 0.05em;
}

.tel-link i {
    font-size: 1.8rem;
    margin-right: 10px;
}

/* News Section */
.news-section .section-title {
    color: #2e8fcd;
}

.news-section .btn-outline {
    color: #2e8fcd;
    border-color: #2e8fcd;
}

.news-section .btn-outline:hover {
    background-color: #2e8fcd;
    color: var(--white);
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.news-date {
    color: var(--text-muted);
    font-weight: 400;
    min-width: 100px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.news-category {
    background: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.news-category.secondary {
    background: #42d9be;
}

.news-link {
    color: var(--text-main);
    font-size: 16px;
    flex: 1;
}

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

/* Info List for Access */
.info-list {
    list-style: none;
}

.info-item {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    min-width: 100px;
    font-weight: 500;
    color: #2e8fcd;
}

.info-value {
    flex: 1;
    color: var(--text-main);
    font-size: 16px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #505050, #888888);
    color: #ffffff;
    padding: 60px 0 20px;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer-info p {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 16px;
    color: #ffffff;
}

.footer-links a:hover {
    color: #e0e0e0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: 15px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -20px;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Components specific to pages */
.page-header {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    overflow: hidden;
    margin-bottom: 60px;
    margin-top: var(--header-height);
}

.page-header-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    overflow: hidden;
}
.page-header-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color) 0%, rgba(244, 247, 248, 0) 25%);
    z-index: 2;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 15px 50px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.4;
}

.breadcrumb a,
.breadcrumb span {
    flex-shrink: 0;
}

.breadcrumb span:last-child {
    flex-shrink: 1;
    white-space: normal;
    word-break: break-all;
}


/* Utility Classes */
.sp-br {
    display: none;
}


.about-greeting-img {
    background: var(--border-color);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.department-card {
    background: white;
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.department-card p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--primary-color);
}

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

.gallery-item-img {
    width: 100%;
    height: 300px;
    background: #E2E8F0;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 992px) {
    .page-header {
        height: 180px;
        margin-bottom: 40px;
    }

    .page-header-image {
        width: 100%;
        left: 0;
        right: 0;
    }

    .page-header-image::after {
        background: linear-gradient(to right, var(--secondary-color) 0%, rgba(244, 247, 248, 0) 40%);
    }
    
    .page-header .container {
        text-align: left;
    }
    
    .page-title {
        font-size: 1.8rem;
        padding: 10px 20px;
    }

    .header .container {
        padding: 0 15px;
        justify-content: flex-start;
    }
    
    .header-contact {
        margin-left: auto;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .btn-header-tel {
        padding: 0 15px;
        font-size: 0.9rem;
        height: 40px;
    }
    
    .header-line-icon {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: fixed;
        top: var(--header-height);
        left: 100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        transition: left 0.3s ease;
        margin: 0;
        padding: 40px 20px;
        gap: 20px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    
    .nav-links li a {
        font-size: 1.1rem;
        display: block;
    }

    .hero-image-wrapper {
        width: 100%;
        position: relative;
        height: 300px;
    }
    
    .hero {
        flex-direction: column;
        height: auto;
    }
    
    .hero-content {
        margin: -50px 20px 40px;
        max-width: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .features-grid, .services-grid {
        grid-template-columns: 1fr;
    }

    .info-wrap {
        flex-direction: column;
        gap: 30px;
    }

    .timetable {
        font-size: 0.8rem;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #access {
        flex-direction: column;
    }

    #access > div:first-child {
        padding: 20px !important;
        min-height: auto;
    }

    #access > div:last-child {
        padding: 0 !important;
        aspect-ratio: 1 / 1;
        min-height: auto;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .department-card {
        padding: 15px 10px;
    }
    
    .department-card i {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .department-card p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item-img {
        height: 200px;
    }

    .about-greeting-img {
        height: 250px;
    }

    .sp-br {
        display: block;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .btn-header-tel {
        font-size: 0;
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .btn-header-tel i {
        margin-right: 0 !important;
        font-size: 1.1rem;
    }

    .logo-main {
        font-size: 1.6rem;
        letter-spacing: 0.05em;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
}

/* Subpage CTA Section */
.page-cta {
    background-color: #f4f7f9;
    padding: 50px 0;
    border-top: 1px solid #e2e8f0;
}
.page-cta-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
    justify-content: space-between;
}
.page-cta-info {
    flex: 1.3;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-cta-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.page-cta-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}
.page-cta-table-wrap {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}
.page-cta-table-wrap .timetable {
    margin-bottom: 0;
}
.page-cta-table-wrap .timetable th, .page-cta-table-wrap .timetable td {
    padding: 8px 6px;
    font-size: 0.8rem;
}
.page-cta-contact {
    flex: 0.7;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    text-align: center;
}
.page-cta-contact h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 5px;
}
.page-cta-contact .tel-link {
    font-size: 1.8rem;
    color: #2e8fcd;
    margin: 8px 0;
    font-weight: 500;
}
.page-cta-contact .tel-link i {
    font-size: 1.5rem;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .page-cta {
        padding: 40px 0;
    }
    .page-cta-container {
        flex-direction: column;
        gap: 30px;
    }
    .page-cta-info, .page-cta-contact {
        width: 100%;
        min-width: 0;
    }
}

.header-line-link:hover {
    opacity: 0.7;
}

