:root {
    --main-color: #003366;
}

/* 全体設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding-top: 60px; /* 固定ヘッダーの高さ分 */
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
    align-items: center;
    justify-content: space-between;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none; /* 全幅にする */
    width: auto; /* 全幅にする */
    padding: 5px 3%; /* 左右の余白を調整 */
}

header .logo h1 {
    margin: 0;
    font-size: 24px;
    color: var(--main-color); /* プライマリーカラー：紺色 */
}

header .logo a {
    text-decoration: none;
    color: inherit; /* 親要素の文字色を継承 */
}


header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin: 10px;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px;
}

header nav ul li a:hover {
    color: #FFF;
    background-color: var(--main-color) ;
}

header .contact-info {
    display: flex;
    align-items: center;
}


header .phone-number  {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    background-color: var(--main-color);
    padding: 20px 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

header .contact-info .phone-number:hover {
    background-color: #83ca23;
}

.cta-button {
    font-size: 1.2em; 
    font-weight: bold; 
    display: inline-block;
    background-color: #f6d719;
    color: #000;
    padding: 20px 15px;
    text-decoration: none;
    border-radius: 0; /* 角張デザイン */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #83ca23;
    color: #FFF;
}

/* 最終CTAセクション */
.final-cta {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.final-cta.lazyloaded {
    background-image: url('../image/final_cta_banner.png');
}

.final-cta .overlay {
    background-color: rgba(0, 0, 0, 0.2); /* オーバーレイ */
}

.final-cta .overlay h3 {
    font-size: 30px;
    margin-bottom: 40px;
}

/* 各セクションの見出し下のスタイル */
.section-divider {
    width: 100px; /* 線の長さ */
    height: 5px; /* 線の太さ */
    background-color: #f6d719; /* 黄色 */
    margin: 5px auto; /* 中央揃え */
}

.section-english-title {
    color: #fe9a41; /* 灰色 */
    font-size: 18px; /* フォントサイズ */
    text-align: center;
    margin-top: 5px;
    margin-bottom: 30px;
    font-weight: 800;
}

/* お申込みフォームセクション */
.contact-form {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.contact-form h2 {
    font-size: 32px;
    color: var(--main-color);
    text-align: center;
    margin: 0px;
}

.contact-form h3 {
    font-size: 32px;
    color: var(--main-color);
    margin: 0px;
    text-align: center;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.contact-form .required {
    color: #d9534f;
    margin-left: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: calc(100% - 22px); /* Padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0; /* 角張デザイン */
    font-size: 16px;
}

.contact-form .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.contact-form #document_download_options .radio-group {
    flex-direction: column;
    align-items: flex-start;
}

.contact-form .checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-form .checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.contact-form .checkbox-item label {
    margin-bottom: 0;
}

.contact-form .radio-group input[type="radio"],
.contact-form .radio-group input[type="checkbox"] {
    display: inline-block; /* インラインブロック要素にする */
    vertical-align: middle; /* チェックボックスとテキストを垂直方向に中央揃え */
}

.contact-form .radio-group label {
    display: inline-block; /* ラベルもインラインブロック要素にする */
    vertical-align: middle;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: center;
}

.contact-form .checkbox-group label {
    margin-bottom: 0;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 0; /* 角張デザイン */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #002244;
}

@media (max-width: 768px) {
    .contact-form .container {
        width: 95%;
    }

    .contact-form .radio-group label{
        font-size: 14px;
    }
}

/* フッター */
footer {
    background-color: var(--main-color); /* 暗い背景色 */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer .footer-logo h3 {
    margin: 0;
    font-size: 24px;
    margin-bottom: 20px;
}

footer .footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

footer .footer-nav ul li {
    margin: 0 15px;
    font-size: 14px;
}

footer .footer-nav ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

footer .footer-nav ul li a:hover {
    color: #ccc;
}

footer .copyright {
    font-size: 14px;
    color: #ccc;
}

/* レスポンシブデザイン */
/* ハンバーガーメニュー */
.hamburger {
    display: none; /* デスクトップでは非表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* ヘッダーより前面に */
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--main-color);
    transition: all 0.3s ease-in-out;
}

.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px; /* 固定ヘッダーの高さ分を調整 */
    }

    header {
        padding: 10px 0;
    }

    header .container {
        flex-direction: row; /* モバイルでも横並び */
        justify-content: space-between; /* 要素を左右に配置 */
        align-items: center;
        padding: 5px 3%;
    }

    header .logo {
        flex-grow: 1; /* ロゴが残りのスペースを占める */
    }

    header .logo h1 {
    font-size: 14px;
    }

    header nav {
        display: none; /* ハンバーガーメニューで制御するため非表示に */
        position: fixed;
        top: 40px; /* ヘッダーの高さ分 */
        width: 100%;
        height: calc(100% - 40px); /* 残りの高さ */
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999; /* ヘッダーの下 */
        overflow-y: auto; /* コンテンツが多い場合にスクロール可能に */
    }

    header nav.is-active {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }

    header nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    header nav ul li a {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
    }

    header .contact-info {
        display: none; /* ハンバーガーメニューで制御するため非表示に */
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    header .contact-info.is-active {
        display: flex;
    }

    header .contact-info .phone-number,
    .cta-button {
        width: calc(100% - 30px); /* 左右のパディング分を考慮 */
        text-align: center;
        margin: 10px auto; /* 中央揃え */
    }

    .hamburger {
        display: flex; /* モバイルで表示 */
    }

    .final-cta .overlay h3 {
        font-size: 28px;
    }

    .contact-form form {
        padding: 20px;
    }

    footer .footer-logo h3 {
        font-size:18px;
    }
}
/* ===== HERO ===== */
/* ヒーローセクション */
.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 ===== */
/* メッセージセクション */
.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 ===== */
/* 比較表セクション */
.comparison-table {
    padding: 60px 0;
    background-color: #fff;
}

.comparison-table h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 40px;
    text-align: center;
}

.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;
}

.comparison-table .simulation-conditions {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

.comparison-table .simulation-conditions li {
    margin-bottom: 5px;
}

/* 前提条件を左右に並べるコンテナ */
.simulation-conditions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start; /* 上揃え */
    margin-bottom: 24px;
}
.simulation-conditions-left,
.simulation-conditions-right {
    text-align: left;
}

/* 比較テーブル：等高にする設定 */
.comparison-tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-auto-rows: 1fr; /* 各行を同じ高さにする */
}

.comparison-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    grid-auto-rows: auto 1fr;
    grid-template-areas:
        "cond-left cond-right"
        "table-left table-right";
}

.condition.left { grid-area: cond-left; }
.condition.right { grid-area: cond-right; }

.comparison-table-wrapper.left { grid-area: table-left; }
.comparison-table-wrapper.right { grid-area: table-right; }

.comparison-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

/* comparison-column 内ではテーブルラッパーを伸ばしてテーブル上部を揃える */
.comparison-column .comparison-table-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* 各カラムを縦方向に伸ばすflexコンテナにして、中のテーブルが高さを埋めるようにする */
.comparison-table-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.comparison-table-wrapper h4 {
    font-size: 24px;
    color: var(--main-color);
    margin-bottom: 20px;
}

.comparison-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: 1px solid #ddd;
    flex: 1 1 auto; /* 残り高さを埋める */
}

/* テーブル内のテキスト折り返しを安定化 */
.comparison-table-wrapper th,
.comparison-table-wrapper td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.comparison-table-wrapper th {
    background-color: var(--main-color);
    color: #FFF;
}

/* 下側の説明テキストやリストをそのまま表示（必要なら下寄せにできる） */
.comparison-table-wrapper ul {
    list-style: disc;
    padding-left: 20px;
}

.comparison-table-wrapper li {
    margin-bottom: 5px;
}

/* 要約など下に寄せたい要素があれば .summary を利用して下端に固定 */
.comparison-table-wrapper .summary {
    margin-top: auto;
}

/* ===== FANCY CARD / FANCY LIST ===== */
/* --- モダンなカード（fancy-card / fancy-list）--- */
.fancy-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,252,255,0.98));
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(13,26,56,0.06);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13,26,56,0.05);
  margin: 20px 0px;
}

/* 左のアクセントライン */
.fancy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #83ca23;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* 赤ライン（A先生の課題用）*/
.fancy-card.fancy-card--danger::before {
  background: #e74c3c;
}

/* カードヘッダー */
.fancy-card-header {
  font-size: 16px;
  color: var(--main-color);
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 6px; /* アクセントライン分の余白を確保 */
}

/* fancy-list（アイコン付き） */
.fancy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fancy-list li {
  position: relative;
  line-height: 1.7;
  transition: transform 0.18s ease, background-color 0.18s ease;
  border-radius: 8px;
}

/* 強調部分の色 */
.fancy-list li strong {
  color: var(--main-color);
  font-weight: 700;
}

/* ===== CASES ===== */
/* 事例セクション */
.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 ===== */
/* メリットセクション */
.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: 18px;
    color: #FFF;
    margin-bottom: 10px;
    padding: 8px 0px;
    background-color: var(--main-color);
}

.benefits .benefit-item p {
    font-size: 16px;
    color: #555;
}

/* ===== MIDDLE CTA ===== */
/* 中間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 ===== */
/* 実績セクション */
.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 ===== */
/* 診療科目別導入事例セクション */
.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 ===== */
/* 提携専門家セクション */
.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 & ACCORDION ===== */
/* 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;
}

/* ===== RESPONSIVE (mobile) ===== */
/* モバイル表示 */
@media (max-width: 768px) {
    .comparison-tables-container,
    .comparison-columns {
        grid-template-columns: 1fr; /* 縦に並べる */
        grid-template-areas:
            "cond-left"
            "table-left"
            "cond-right"
            "table-right";
        grid-auto-rows: auto; /* モバイルでは自動高さ */
    }

    .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;
    }

    .fancy-card { 
        padding: 14px; border-radius: 10px; 
    }

    .fancy-list li::before { 
        width: 30px; 
        height: 30px; 
        left: 10px; 
        background-size: 60%; 
    }

    .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%;
    }
}

/* ===== ANIMATION ===== */
/* アニメーション用クラス */
.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);
}

