/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

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

/* レイアウト */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 95%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    border-radius: 8px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #4CB6BE;
    margin-bottom: 0;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    white-space: nowrap;
}

.contact-link {
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid #4CB6BE;
    border-radius: 4px;
    color: #4CB6BE;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.contact-link:hover {
    background-color: #4CB6BE;
    color: #fff;
}

/* アニメーション定義 */
@keyframes fadeInUp {
    0% {
        opacity: 0.3;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('images/メイン画像.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    animation: fadeInUp 2s ease-out forwards;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #333;
}

.en-copy {
    font-size: 1rem;
    color: #4CB6BE;
    margin-bottom: 40px;
}

.opening-info {
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.opening-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E74C3C;
    margin-bottom: 10px;
}

.opening-place {
    font-size: 1.2rem;
    color: #333;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #4CB6BE;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 50px;
}

/* 当院について */
.about {
    background-color: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* 医師紹介 */
.doctor-profile {
    background-color: #f8f8f8;
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 30px;
    background-color: #eee;
}

.profile-text {
    text-align: center;
}

.profile-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4CB6BE;
}

.qualifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.qualification {
    background-color: #E9F5F3;
    color: #4CB6BE;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.career {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.career h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #4CB6BE;
    text-align: center;
}

.career ul {
    list-style-type: none;
}

.career li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.career li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CB6BE;
}

/* 診療科目 */
.medical-departments {
    background-color: #fff;
}

.departments-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.department {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.department:hover {
    transform: translateY(-5px);
}

.department-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.department-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.department h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #4CB6BE;
}

.department p {
    font-size: 0.95rem;
    color: #666;
}

/* アクセス・診療時間 */
.access {
    background-color: #f8f8f8;
}

.access-info {
    max-width: 800px;
    margin: 0 auto;
}

.address {
    text-align: center;
    margin-bottom: 40px;
}

.address p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hours {
    max-width: 600px;
    margin: 0 auto;
}

.hours-table {
    width: 100%;
    border-top: 1px solid #ddd;
}

.hours-row {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.hours-label {
    width: 120px;
    font-weight: 500;
}

.hours-time {
    flex: 1;
}

.time-period {
    display: inline-block;
    margin-right: 30px;
}

.period {
    display: inline-block;
    background-color: #4CB6BE;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 10px;
}

/* お問い合わせ */
.contact-section {
    background-color: #fff;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 500;
    color: #4CB6BE;
    margin: 20px 0;
}

.note {
    font-size: 0.9rem;
    color: #999;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.copyright {
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero {
        background-position: center bottom;
    }
    
    .hero h2 {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .section-inner {
        padding: 50px 20px;
    }
    
    .departments-list {
        flex-direction: column;
        align-items: center;
    }
    
    .department {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .hours-row {
        flex-direction: column;
    }
    
    .hours-label {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .time-period {
        display: block;
        margin-bottom: 10px;
    }
    
    .qualifications {
        flex-direction: column;
        align-items: center;
    }
    
    .en-copy {
        font-size: 0.85rem;
    }
    
    .opening-info {
        padding: 20px;
    }
    
    .career h4 {
        font-size: 1.1rem;
    }
    
    .career li {
        font-size: 0.9rem;
    }
    
    .logo {
        display: block;
        text-align: left;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        white-space: normal;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .contact-link {
        font-size: 0.65rem;
        padding: 5px 8px;
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 60px;
        background-position: center bottom;
    }
    
    .hero h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .opening-date {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .contact-email {
        font-size: 1.2rem;
    }
    
    .en-copy {
        font-size: 0.8rem;
    }
    
    .career h4 {
        font-size: 1rem;
    }
    
    .career li {
        font-size: 0.85rem;
    }
}

/* スクロールアニメーション */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
