/* ヒーローセクション */
.hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    position: relative;
    text-align: left; /* 左寄せ */
}
.hero.lazyloaded {
    background-image: url('../image/hero_section.jpg'); /* 仮画像 */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* オーバーレイ */
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 95%;
}

.hero-content {
    max-width: 60%; /* 左側にコピースペース */
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero .cta-buttons .cta-button {
    margin: 5px;
}


.cta-buttons .cta-button.secondary {
    background-color: var(--main-color);
    color: #fff;
}

.hero .cta-buttons .cta-button.secondary:hover {
    background-color: #ca613e;
    color: #000;
}

/* メッセージセクション */
.message {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.message h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 40px;
}

.message p {
    font-size: 18px;
    margin-bottom: 20px;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}


.message-image img {
    width: 300px;
    height: auto;
    display: block;
    border-radius: 0; /* 角張デザイン */
}


.message-text h4 {
    font-size: 24px;
    color: var(--main-color);
    margin: 10px 0;
    line-height: 1.5;
}

.message-text p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
}


/* 比較表セクション */
.comparison-table {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.comparison-table h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 40px;
}

.comparison-table table {
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    border: 1px solid #ddd;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.comparison-table th {
    background-color: var(--main-color);
    color: #FFF;
}

.comparison-table .note {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

/* 事例セクション */
.cases {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d1a38; /* 背景色 */
}


.cases .case-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.cases .case-image {
    display: flex;
    justify-content: center;
    width: 33%;
}

.cases .case-text-container {
    flex: 1;
    background-color: #003366; /* メインカラー */
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.cases h3{
    text-align: center;
    font-size: 36px;
    color: #FFF;
    margin-top: 10px;
    margin-bottom: 0px;
}


.cases .case-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cases .card {
    background-color: #fff;
    color: #333;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-align: left;

}

.cases .card p {
    font-size: 18px;
    margin: 5px 10px;
    line-height: 1.5;
}

.cases .card span {
    font-size: 14px;
    color: #666;
    display: block;
    text-align: right;
}

/* メリットセクション */
.benefits {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.benefits h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 40px;
}

.benefits .benefit-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.benefits .benefit-item {
    width: 25%;
    text-align: center;
}

.benefits .benefit-item i {
    font-size: 80px;
    color: var(--main-color);
    margin-bottom: 20px;
    display: block;
    margin: 0 auto;
}

.benefits .benefit-item h4 {
    font-size: 24px;
    color: #FFF;
    margin-bottom: 10px;
    background-color: var(--main-color);
}

.benefits .benefit-item p {
    font-size: 16px;
    color: #555;
}

.benefits table {
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    border: 1px solid #ddd;
}

.benefits th,
.benefits td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.benefits th {
    background-color: var(--main-color);
    color: #FFF;;
}

.benefits .note {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

/* 中間CTAセクション */
.middle-cta {
    background-color: var(--main-color); /* プライマリーカラー：紺色 */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.middle-cta h3 {
    font-size: 36px;
    margin-bottom: 40px;
}

.middle-cta .services {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.middle-cta .service-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    width: 25%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.middle-cta .service-item i {
    font-size: 48px; /* アイコンのサイズ */
}

.middle-cta .service-item h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.middle-cta .service-item p {
    font-size: 16px;
}

/* 実績セクション */
.achievements {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.achievements h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 40px;
}

.achievements .stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.achievements .stat-item {
    background-color: #fff;
    padding: 20px; /* パディングを減らす */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 影を追加 */
    text-align: center;
    width: 45%; /* 幅を柔軟に */
    max-width: 250px; /* 最大幅を設定 */
}

.achievements .stat-item i {
    font-size: 60px; /* アイコンのサイズを大きく */
    color: var(--main-color); /* メインカラーを適用 */
    margin-bottom: 15px;
}

.achievements .stat-item h4 {
    font-size: 20px; /* 項目名のフォントサイズを調整 */
    color: #555;
    margin: 5px;
}

.achievements .stat-item h3 {
    font-size: 36px; /* 数字のフォントサイズを調整 */
    color: var(--main-color);
    margin: 10px;
}

.achievements .stat-item p {
    font-size: 14px; /* 説明文のフォントサイズを調整 */
    color: #888;
}

/* 診療科目別導入事例セクション */
.medical-cases {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.medical-cases h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 40px;
}

.medical-cases .case-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.medical-cases .card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    width: calc(33% - 20px); /* 3列表示でギャップを考慮 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.medical-cases .card img {
    width: 100%;
    height: auto;
    border-radius: 0; /* 角張デザイン */
    margin-bottom: 20px;
}

.medical-cases .card h4 {
    font-size: 24px;
    color: var(--main-color);
    margin: 10px;
}

.medical-cases .card p {
    font-size: 14px;
    color: #555;
    margin: 10px;
    text-align: left;
}

/* 提携専門家セクション */
.partners {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.partners h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 0px;
}

.partners .partner-cards {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* 横1列にする */
    gap: 30px;
}

.partners .card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: calc(25% - 20px); /* 3列表示でギャップを考慮 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.partners .card img {
    width: 120px;
    height: 120px;
    border-radius: 0; /* 角張デザイン */
    margin-bottom: 10px;
}

.partners .card h4 {
    font-size: 24px;
    color: var(--main-color);
    margin: 10px;
}

.partners .card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

/* FAQセクション */
.faq {
    padding: 60px 0;
    background-color: #fff;
}

.faq h3 {
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 0px;
    text-align: center;
}

.faq .faq-item {
    text-align: left;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 20px;
}

.faq .faq-item h4 {
    font-size: 20px;
    color: var(--main-color);
    margin-bottom: 10px;
}

.faq .faq-item p {
    font-size: 16px;
    color: #555;
}

/* アコーディオンのスタイル */
.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.accordion-header {
    background-color: #f2f2f2;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h4 {
    margin: 0;
    font-size: 20px;
    color: var(--main-color);
}

.accordion-header::after {
    content: '+';
    font-size: 24px;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: none; /* デフォルトで非表示 */
    overflow: hidden;
}

.accordion-content p {
    margin: 0;
}



/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero.lazyloaded {
        background-image: url('../image/hero_section_mobile.jpg');
    }

    .hero .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero .cta-buttons .cta-button {
        margin: 0px;
    }

    .message-content {
        flex-direction: column;
        gap: 20px;
    }

    .message h3 {
        font-size: 20px;
    }

    .message-image,
    .message-text {
        flex: none;
    }

    .message-text h4 {
        font-size: 18px;
    }

    .comparison-table h3 {
        font-size: 22px;
    }

    .cases .case-image {
        display: none;
    }

    .cases .case-text-container {
        padding: 20px;
    }

    .cases .case-cards,
    .achievements .stats { 
        flex-direction: column;
        align-items: center;
    }

    .cases .card  {
        flex-direction: column;
        align-items: center;
    }

    .benefits h3 {
        font-size: 22px;
    }

    .benefits .benefit-item {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .middle-cta h3 {
        font-size: 24px;
    }

    .middle-cta .services {
        flex-direction: column;
        align-items: center;
    }

    .middle-cta .service-item {
        width: 95%;
    }

    .achievements h3 {
        font-size: 24px;
    }

    .achievements .stat-item {
        max-width: none;
        width: 95%;
    }

    .partners .partner-cards,
    .medical-cases .case-cards {
        flex-direction: column;
        align-items: center;
    }

    .partners .card,
    .medical-cases .card {
        width: 95%;
    }


}

/* アニメーション用クラス */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px); /* 下から少しスライドする効果 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
