/* ==========================================================================
   1. 基本設定（変数・リセット）
   ========================================================================== */
:root {
    --mint-main: #4db6ac;
    --mint-light: #f0fafa;
    --mint-blue: #e0f2f1;
    --mint-dark: #00897b;
    --mint-dark-text:#007267;
    --text-color: #333;
    --alert-red: #d32f2f;
    --bg-white: #ffffff;
    --accent-orange: #e67e22;
    
    /* フッター・その他共用 */
    --footer-bg: #78ccc4cd;
    --text-footer: #333;
    --text-soft-white: rgba(255, 255, 255, 0.9);
    --border-light: rgba(255, 255, 255, 0.3);
    --accent-light: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: #fcfdfd;
}

@media (min-width: 769px) {
            body {
                padding-bottom: 0;
            }
        }
    

a {
    color: var(--mint-dark-text);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* レイアウト共通 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 40px;
}

/* ==========================================================================
   2. ヘッダー・ナビゲーション
   ========================================================================== */
header {
    width: 100%;
    background-color: #fff;
    position: static; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

header img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain;
}

.contact-area {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.address-text {
    font-size: 0.85rem;
    color: #666;
}

.tel-display-box {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--mint-blue);
    padding: 8px 25px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none !important;
}

.tel-label-sub {
    font-size: 0.9rem;
    color: #444;
    margin-right: 10px;
}

.tel-number-large {
    font-size: 1.6rem;
    font-weight: bold;
    color:var(--mint-dark-text);
    line-height: 1;
}

.tel-display-box:hover {
    opacity: 0.8;
    background-color: #f9f9f9;
}

/* PC用ナビゲーション */
.header-nav-row {
    background: var(--mint-blue);
}

.nav-container {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.nav-container li {
    margin: 0 30px;
    text-align: center;
}

.nav-container a {
    display: block;
}

.en-text {
    font-size: 0.65rem;
    color: var(--mint-dark-text);
    font-weight: bold;
    display: block;
}

.ja-text {
    font-size: 0.95rem;
    color: #333;
    font-weight: bold;
}

 @media (min-width: 768px) {
.menu-trigger { display: none; }
 

.mobile-nav-container {
    display: none;
}
}


/* ==========================================================================
   3. 共通コンポーネント（ボタン・見出し・ラベル）
   ========================================================================== */
h2 {
    color: var(--mint-dark-text);
    border-bottom: 2px solid var(--mint-blue);
    padding-bottom: 10px;
    margin: 40px 0 25px;
    font-size: 1.8rem;
    text-align: center;
}

h3 {
    color: var(--mint-dark-text);
    margin: 30px 0 15px;
}

/* Page header styles */
.page-header {
    background-color: #f0faf9;
    padding: 30px 5%;
    margin-bottom: 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--mint-dark-text);
    margin: 0 0 15px 0;
    font-weight: bold;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

/* ボタン共通 */
.btn {
    min-width: 180px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
    text-align: center;
}

.btn-main {
    background: var(--mint-dark);
    color: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-main:hover {
    transform: translateY(-3px);
    background: var(--mint-main);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.btn-outline {
    border: 2px solid var(--mint-dark);
    color: var(--mint-dark);
    background: transparent;
}

.btn-white {
    background: rgba(255,255,255,0.9);
    color: var(--mint-dark) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    background: #ffffff;
}

/* 特徴ボックス・注意書き */
.feature-box {
    background: var(--mint-light);
    border: 1px dashed var(--mint-dark);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.alert-mini {
    color: var(--alert-red);
    font-weight: bold;
    background: #fff5f5;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ==========================================================================
   4. ページ固有スタイル：ホーム (index.html)
   ========================================================================== */
.hero {
    position: relative;
    height: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.hero-bg, .slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg img, .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.section-news { padding: 60px 5%; background: var(--bg-white); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.news-card { padding: 20px; border-bottom: 2px solid var(--mint-blue); }
.news-card h4 { color: var(--text-color); }
.news-date { font-size: 0.9rem; color: #4e4e4e; display: block; margin-bottom: 5px; }
.news-card-link {
    display: block;           /* カード全体をクリック可能にする */
    text-decoration: none;    /* リンクの下線を消す */
    color: inherit;           /* 文字の色をそのままにする */
    transition: transform 0.2s, opacity 0.2s; /* 動きをなめらかにする */
}

/* 2. マウスを乗せた時の変化（ふわっと浮く感じ） */
.news-card-link:hover {
    background-color: #f9f9f9;    /* 背景をほんのり明るく */
    transform: translateY(-5px);  /* 上に5pxふわっと浮かす */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 下に影を入れて立体感を出す */            /* 少し透けさせる */
}

/* 3. クリックした瞬間の変化（ギュッと押し込まれる感じ） */
.news-card-link:active {
    transform: scale(0.97);   /* 3%だけ小さくする */
    opacity: 0.9;             /* 少し色を濃く戻す */
}

.section-access { padding: 60px 5%; background: var(--mint-blue); }
.access-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.dept-box { background: #fff; padding: 20px; border-radius: 15px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.dept-title { font-size: 1.0rem; color: var(--mint-dark-text); margin-bottom: 10px; border-bottom: 2px solid var(--mint-blue); display: inline-block; }
.info-card { background: #fff; padding: 25px; border-radius: 15px; border: 1px solid #c8ece9; }
.tel-link { color: var(--mint-dark-text ); font-weight: bold; text-decoration: none; font-size: 1.1rem; }


/* 診療案内アイコン */
.service-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
        }

        .service-panel {
            background: var(--bg-white);
            border: 1px solid var(--mint-blue);
            padding: 30px 15px;
            border-radius: 20px;
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: var(--card-shadow);
        }

        .service-panel:hover {
            transform: translateY(-5px);
            box-shadow: var(--card-hover-shadow);
            border-color: var(--mint-main);
        }

        /* アイコンエリア */
        .service-icon {
            width: 50px;
            height: 50px;
            background: var(--mint-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            color: var(--mint-dark);
        }

        .service-panel h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--text-color);
        }

        .service-link {
            font-size: 0.85rem;
            color: var(--mint-dark-text);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .service-link::after {
            content: '→';
            font-size: 1rem;
            transition: transform 0.3s ease;
        }

        .service-panel:hover .service-link::after {
            transform: translateX(4px);
        }

/* 診療時間テーブル共通 */
.schedule-table-common { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.schedule-table-common th, .schedule-table-common td { border: 1px solid var(--mint-blue); padding: 8px; text-align: center; }
.schedule-table-common th { background: var(--mint-dark); color: white; font-size: 0.8rem; }
.schedule-table-common td { font-size: 1.0rem; font-weight: bold; color: var(--mint-dark); }
.table-common-note { font-size: 0.85rem; color: #666; margin-top: 8px; }

/* ==========================================================================
   5. ページ固有スタイル：初めての方へ (first.html)
   ========================================================================== */
.alert-red-box {
    background-color: #fff5f5;
    border: 1px solid #ffcdd2;
    padding: 25px 20px;
    border-radius: 4px;
    margin-bottom: 50px;
    text-align: center;
}

.alert-red-box p {
    color: var(--alert-red);
    font-weight: bold;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.alert-red-box .tel-link {
    color: var(--alert-red);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    display: block;      /* ブロック要素にすることで一行を占有し、中央寄せが効くようになります */
    margin: 0 auto;      /* 念のため左右中央を確保 */
    width: fit-content;
   
}

.check-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.check-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--mint-dark);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}




/* 番号とコンテンツを横並びにする */
.flow-step-vertical {
    display: flex;
    align-items: flex-start; /* 上揃えにする */
    gap: 15px;               /* 番号と文字の間のスペース */
    margin-bottom: 20px;     /* ステップごとの間隔 */
}

/* 番号部分のスタイル（丸の形を維持） */
.step-num {
    flex-shrink: 0;          /* 番号が潰れないように固定 */
    width: 30px;
    height: 30px;
    background-color: #43817a; /* 画像の緑色に合わせる */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 右側のテキストエリア */
.step-content h4 {
    margin: 0 0 8px 0;       /* 下に少しだけ余白を作る */
    line-height: 1.4;
}

.step-content p {
    margin: 0;
    line-height: 1.6;
}



/* ==========================================================================
   6. ページ固有スタイル：お知らせ (news.html)
   ========================================================================== */
.news-article {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--mint-blue);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.news-title { font-size: 1.4rem; color: var(--text-color); margin-bottom: 15px; font-weight: bold; line-height: 1.4; }
.news-body { font-size: 1rem; line-height: 1.8; color: var(--text-color); border-top: 1px dotted #ccc; padding-top: 15px; }

.news-category {
    display: inline-block;
    background: var(--mint-main);
    color: #fff;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: bold;
}
.news-category.important { background: var(--alert-red) !important; }

/* ==========================================================================
   7. ページ固有スタイル：医院紹介 (clinic.html)
   ========================================================================== */
.clinic-section { margin-bottom: 60px; scroll-margin-top: 100px; }
.clinic-section h2 { margin-bottom: 25px; text-align: left; border-bottom: 2px solid var(--mint-blue); padding-bottom: 10px; }

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 1px solid var(--mint-blue); }
.info-table th, .info-table td { padding: 15px; border-bottom: 1px solid var(--mint-blue); text-align: left; }
.info-table th { width: 30%; background-color: #f9fdfd; color: var(--mint-dark-text); }

.time-table-clinic-container {
    margin: 20px 0;
    overflow-x: auto; /* スマホ用横スクロール */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.schedule-table-clinic {
    width: 100%;
    min-width: 650px; /* 崩れ防止の最小幅 */
    border-collapse: collapse;
    table-layout: fixed; /* 列の幅を固定・均等にする重要設定 */
    background: #fff;
}

/* ヘッダー設定 */
.schedule-table-clinic th {
    background-color: #f8fdfd;
    color:var(--mint-dark);
    font-weight: bold;
    padding: 15px 5px;
    border-bottom: 2px solid #d1e8e8;
    border-right: 1px solid #eee;
}

/* 1列目（診療科目・時間）の幅と設定 */
.schedule-table-clinic .col-dept-clinic {
    width: 170px; /* ここで1列目の幅を固定 */
    background-color: #fafafa;
    text-align: left;
    padding-left: 15px;
    font-weight: bold;
}

/* 診療時間ラベルを強制改行 */
.time-label-clinic {
    display: block;
    font-size: 0.85em;
    color: #777;
    font-weight: normal;
    margin-top: 4px;
}

/* 曜日のセル（●が入る場所） */
.schedule-table-clinic td {
    padding: 12px 5px;
    text-align: center; /* 左右中央 */
    vertical-align: middle; /* 上下中央 */
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}



/* 記号の調整 */
.mark-clinic {
    color: var(--mint-dark);
    font-size: 1.2em;
}
.closed-clinic {
    color: #ccc;
}

/* 注意書き */
.note-box-clinic {
    margin-top: 15px;
    padding: 15px;
    background: #fdfdfd;
    border-left: 4px solid var(--mint-dark);
    font-size: 0.9em;
    line-height: 1.6;
}


.note-box {
    margin-top: 15px; padding: 15px; background-color: #f0faf9; border-left: 4px solid var(--mint-main); font-size: 0.9rem;
}

.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.policy-card { background: #fff; border: 1px solid var(--mint-blue); padding: 20px; border-radius: 12px; border-top: 4px solid var(--mint-dark); }

.privacy-box { background: #f4fbfb; padding: 25px; border-radius: 10px; font-size: 0.9rem; }
.privacy-list { padding-left: 20px; margin: 10px 0 0; }

/* ==========================================================================
   8. ページ固有スタイル：診療内容 (services.html)
   ========================================================================== */
.services-nav { background: #f0fafa; padding: 25px; border-radius: 15px; margin-bottom: 40px; }
.services-nav ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.services-nav a { text-decoration: none; color: var(--mint-dark-text); font-size: 1.1rem; font-weight: bold; display: block; padding: 8px; border-bottom: 2px solid transparent; transition: 0.3s; }
.services-nav a:hover { border-bottom: 2px solid var(--mint-dark); background: #fff; border-radius: 5px; }

.service-detail-item {
    margin-bottom: 80px; scroll-margin-top: 100px; background: #fff;
    padding: 40px; border-radius: 20px; border-top: 6px solid var(--mint-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.service-detail-item h3 { margin-top: 0; color: var(--mint-dark-text); font-size: 1.3rem; margin-bottom: 20px; border-bottom: 2px solid var(--mint-blue); padding-bottom: 10px; text-align: left; }
.sub-title { color: var(--text-color); border-left: 4px solid var(--mint-blue); padding-left: 10px; margin: 25px 0 15px; font-weight: bold; }
.step-flex { display: flex; gap: 15px; margin-bottom: 15px; }
.step-num { background: var(--mint-dark); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.8rem; }


.check-list-md {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.check-list-md li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.0rem;
    color: var(--text-color);
}

.check-list-md li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--mint-dark);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}



/* ==========================================================================
   9. ページ固有スタイル：医師紹介 (doctors.html)
   ========================================================================== */
.greeting-section { background-color: #fff; padding: 40px; border-radius: 20px; border: 2px solid var(--mint-blue); margin-bottom: 60px; text-align: center; }
.greeting-section h2 { border: none; padding: 0; margin-bottom: 20px; }
.greeting-text { font-size: 1.1rem; line-height: 2; max-width: 800px; margin: 0 auto; }

.doctor-profile { display: flex; gap: 40px; background: #fff; padding: 30px; border-radius: 15px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); align-items: flex-start; }
.doctor-photo { flex: 0 0 220px; }
.doctor-photo img { width: 100%; border-radius: 15px; border: 4px solid var(--mint-blue); object-fit: cover; }
.doctor-info { flex: 1; }
.doctor-name { font-size: 1.4rem; color: var(--mint-dark-text); margin: 0 0 15px 0; border-bottom: 2px solid var(--mint-blue); padding-bottom: 10px; }
.doctor-meta span { display: inline-block; background: var(--mint-blue); padding: 3px 12px; border-radius: 5px; margin-right: 10px; font-size: 0.9rem; font-weight: bold; }

/* ==========================================================================
   10. ページ固有スタイル：アクセス (access.html)
   ========================================================================== */
.map-top { margin-bottom: 30px; overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            border-radius: 15px;}
.map-shortcut { text-align: center; margin: 20px 0 60px; }

.btn-map {
    display: inline-block; background-color: #4285F4; color: #fff; padding: 15px 30px;
    text-decoration: none; border-radius: 50px; font-weight: bold;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3); transition: 0.3s;
}
.btn-map:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
            opacity: 1;
        }


.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 60px; }
.access-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    border-left: 6px solid var(--mint-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.access-card h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            color: var(--mint-dark-text);
            font-size: 1.25rem;
        }

 .access-card p {
            font-size: 1rem;
            color: var(--text-color);
        }


.icon {
    stroke:var(--text-color);
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}






/* 全体のフォント設定（読みやすさ重視） */
.parking-guide {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

/* セクションタイトル */
.section-title {
    color: var(--mint-dark-text); 
    border-bottom: 2px solid var(--mint-blue);
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* 画像のレスポンシブ対応 */
.map-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 0;
}

.map-image {
    width: 100%;     /* 画面幅に合わせて広がる */
    max-width: 500px;  /* パソコンで見ても大きくなりすぎない上限 */
    height: auto;      /* 比率を維持 */
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .map-image {
        /* スマホの画面内で地図が場所を取りすぎないよう、高さを最大300px程度に制限 */
        max-width: 300px; 
        width: auto;      /* 高さを固定した際に横幅が伸びないように設定 */
        margin-bottom: 10px;
    }
}
/* 駐車場詳細の説明エリア */
.parking-details {
    background-color: #f9fffb; /* ごく薄いミントグリーン */
    padding: 20px;
    border-radius: 12px;
}

.parking-item {
    margin-bottom: 20px;
}

/* 第1・第2などのラベル */
.parking-label {
    display: inline-block;
    background-color: var(--mint-main);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.parking-item p {
    margin: 5px 0 0;
    line-height: 1.6;
    font-size: 1.1rem; /* 高齢者向けに少し大きめ */
}

.parking-info-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

/* スマホ閲覧時の調整 */
@media (max-width: 600px) {
    .section-title {
        font-size: 1.3rem;
    }
    .parking-label {
        font-size: 1rem;
    }
    .parking-item p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   11. フッター
   ========================================================================== */
/* フッター全体の基本設定 */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--text-footer) !important;
    padding: 70px 20px 30px;
    margin-top: 80px;
    line-height: 1.7;
}

/* コンテナ設定 */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* 各セクションの調整 */

.footer-section h3 {
    color: var(--text-footer) !important;
    font-weight: bold;
    border-bottom: 2px solid rgba(0, 0, 0, 0.606); /* 下線の太さ・種類・色 */
    display: inline-block; /* 線を文字の幅に合わせる（重要！） */
    padding-bottom: 5px;   /* 文字と線の間の隙間 */
    margin-bottom: 20px;
}
.footer-section { 
    flex: 1; 
    min-width: 280px; 
    max-width: 100%;  
    box-sizing: border-box; 
}

/* 中央セクション（診療時間）の幅 */
.footer-section:nth-child(2) {
    flex: 1.4; 
    min-width: 350px;
}

/* 左側セクション：医院情報の配置を以前のスタイルへ */
.footer-logo {
    margin-bottom: 25px;
}

.footer-info p {
    display: flex; /* アイコンと文字を横に並べる */
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    color:var(--text-footer) !important;
}

.footer-info a {
    color:var(--text-footer) !important;
    text-decoration: none;
}

/* 電話番号の大きなテキスト */
.tel-text { 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-top: 20px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.tel-link {
    color:var(--text-footer) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* アイコンの色 */
.site-footer .icon {
    stroke: var(--text-footer);
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    margin-top: 4px; /* テキストの1行目と高さを合わせる */
}

/* 診療時間表（中央） */
.schedule-wrapper-footer {
    width: 100%;
    overflow-x: auto;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.schedule-table-footer {
    width: 100%;
    min-width: 450px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.8rem;
}

.schedule-table-footer th,
.schedule-table-footer td {
    padding: 10px 2px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-footer) !important;
}

.schedule-table-footer .col-time-footer {
    width: 100px;
    background-color: rgba(255, 255, 255, 0.495);
}

/* 右側：メニューリンク */
.footer-links-list { 
    list-style: none; 
    padding: 0; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}

.footer-links-list li a { 
    color: var(--text-footer) !important; 
    text-decoration: none;
    font-size: 0.9rem; 
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    transition: 0.3s;
}


.footer-bottom {
    width: 100%;            /* 横幅いっぱい確保 */
    text-align: center;     /* 文字を中央寄せ */
    margin-top: 80px;       /* 上との余白 */
    padding-top: 25px;      /* 枠線内の余白 */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* 上に薄い境界線 */
    font-size: 0.85rem;
    color: var(--text-footer) !important;         /* 文字色を濃いグレーに統一 */
    clear: both;            /* 他の要素の回り込みを解除 */
    display: block;         /* ブロック要素として確実に一行占有 */
}


 /* PC表示ではバーを隠す */
        @media (min-width: 769px) {
            .mobile-action-bar {
                display: none;
            }
            body {
                padding-bottom: 0;
            }
        }

/* ==========================================================================
   12. モバイル・レスポンシブ調整（添削版）
   ========================================================================== */

@media (max-width: 768px) {
    /* --- レイアウトの最適化 --- */
    body {
            font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
            color: var(--text-color);
            background-color: #fcfdfd;
            margin: 0;
            padding: 0;
            /* 下部のバーで隠れないよう余白を確保 */
            padding-bottom: 100px; 
        }


    .container, .main {
        padding: 40px 20px; /* 余白を狭めてコンテンツ幅を確保 */
    }

    /* --- ヘッダー周り --- */


    .header-main {
        padding: 10px 15px;
    }
    header img {
        height: 50px !important; /* 少し大きくして視認性アップ */
    }
    .contact-area,
    .header-nav-row {
        display: none;/* 不要なテキストを非表示 */
    }


/* --- ハンバーガーメニューの基本スタイル --- */

    /* ハンバーガーボタンを表示 */
    .menu-trigger  {
         display: flex;
        flex-direction: column;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 2100;
    }
.hamburger-icon {
        width: 30px;
        height: 18px;
        position: relative;
        margin-bottom: 4px;
    }

    .hamburger-icon span {
        display: block;
        position: absolute;
        width: 100%;
        height: 1.5px;
        background-color: var(--mint-dark);
        transition: 0.3s;
    }

    .hamburger-icon span:nth-child(1) { top: 0; }
    .hamburger-icon span:nth-child(2) { top: 7px; }
    .hamburger-icon span:nth-child(3) { top: 14px; }

    .menu-text {
        font-size: 10px;
        font-weight: bold;
        color: var(--mint-dark);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1;
        margin-top: 2px;
    }

    /* アクティブ時のアニメーション */
    .menu-trigger.active .hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-trigger.active .hamburger-icon span:nth-child(2) { opacity: 0; }
    .menu-trigger.active .hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ドロワーメニュー */
    .mobile-nav-container {
        display: block; /* モバイル時のみ表示 */
        position: fixed;
        top: 0;
        left: -100%; 
        width: 80%;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 60px 30px 40px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .mobile-nav-container.active {
        left: 0;
    }

    .mobile-nav-container ul {
        list-style: none;
    }

    .mobile-nav-container li {
        border-bottom: 1px solid var(--mint-blue);
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .mobile-nav-container a {
                display: flex;
                align-items: center; /* 垂直方向の中央揃え */
                justify-content: flex-start;
                padding: 10px 0;
                width: 100%;
                text-decoration: none;
            }

            /* 日本語テキスト */
            .mobile-nav-container .ja-text {
                font-size: 1rem;
                color: var(--text-color);
                font-weight: bold;
                order: 1; /* HTMLの順序に関わらず最初に配置 */
            }

            /* 英語テキスト */
            .mobile-nav-container .en-text {
                font-size: 0.7rem;
                color: var(--mint-dark-text);
                font-weight: normal;
                margin-left: 12px; /* 日本語との間隔 */
                order: 2; /* 日本語の次に配置 */
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }



    /* 背景オーバーレイ */
    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    #overlay.show {
        opacity: 1;
        visibility: visible;
    }






    /* --- ヒーローエリア --- */
    .hero {
        height: 400px; /* スマホでは高さを抑える */
    }
    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
    .hero p {
        display: none;
    }

    .hero-btns {
        flex-direction: column; /* ボタンを縦に並べて押しやすく */
        gap: 15px; 
        margin-top: 25px;
    }
    .btn {
        padding: 10px 18px; 
        font-size: 0.8rem;
    }

    /* Page header styles */
    .page-header {
    background-color: #f0faf9;
    padding: 20px 5%;
    margin-bottom: 15px;
    text-align: center;
    }

    .page-header h1 {
    font-size: 1.5rem;
    color: var(--mint-dark);
    margin: 0 0 15px 0;
    font-weight: bold;
    }

    .page-header p {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
    }
  

    h2 {
    color: var(--mint-dark);
    border-bottom: 2px solid var(--mint-main);
    padding-bottom: 10px;
    margin: 40px 0 25px;
    font-size: 1.2rem;
    text-align: center;
    }

    
    /* --- コンテンツ要素 --- */
    .news-grid, .access-container, .policy-grid, .service-grid {
        grid-template-columns: 1fr; /* 1列に固定 */
    }
    /* --- 初めての方へ --- */
    .alert-red-box {
    background-color: #fff5f5;
    border: 1px solid #ffcdd2;
    padding: 15px 10px;
    border-radius: 4px;
    margin-bottom: 40px;
    text-align: center;
}

.alert-red-box p {
    color: var(--alert-red);
    font-weight: bold;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.alert-red-box .tel-link {
    color: var(--alert-red);
    font-size: 1.4rem;
}

.step-content p {
    font-size: 0.9rem;
}

/* お知らせ */
.news-article .news-title {
    font-size: 1.0rem; 
    }

.news-body h3,p{
    font-size: 0.9rem;
}
    
/* 診療案内 */

    .services-nav a { 
    text-align: center; /* 中央寄せにすると2列で見栄えが良いです */
    }
    .services-nav ul {
        /* 強制的に1行2列（1fr 1fr）にする */
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }

    .services-nav a {
        font-size: 1.0rem; /* 文字が溢れないよう少し小さめに調整 */
        border-radius: 7px;
        padding: 8px 5px;
    }

    .check-list-md li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
   
}

.check-list-md li::before {
    font-size: 0.7rem;
    
}


    /* 医師紹介 */
    .doctor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .doctor-photo {
        width: 100%;
        max-width: 250px;
        margin-bottom: 20px;
    }

    /* --- テーブル対策 --- */
    /* 診療時間などのテーブルがはみ出さないように */
    .time-table-clinic-container, 
    .schedule-wrapper-footer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .schedule-table-clinic, 
    .schedule-table-footer {
        min-width: 500px; /* 最小幅を維持して崩れを防ぐ */
    }

    /* --- フッター --- */
    .site-footer {
        padding-top: 40px;
    }
    .footer-container {
        flex-direction: column;
        text-align: left; /* 中央寄せより左寄せの方が読みやすい場合が多い */
    }
    .footer-section {
        min-width: 100%;
    }
    .footer-links-list {
        grid-template-columns:  1fr 1fr; /* メニューも2列 */
    }


    /* --- モバイル固定アクションバー --- */
    .mobile-action-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            /* 確実に最前面に表示 */
            z-index: 2147483647; 
            /* 変数ではなく直接指定でフォールバック */
            background-color: #e4f7f6 !important; 
            border-top: 2px solid var(--mint-main);
            box-shadow: 0 -5px 20px rgba(0, 77, 70, 0.2);
            /* iPhoneのホームバー対策 */
            padding-bottom: env(safe-area-inset-bottom, 0px); 
            display: block;
            visibility: visible !important;
            opacity: 1 !important;
        }
   
    .action-bar-container {
            display: flex;
            height: 65px;
            max-width: 600px;
            margin: 0 auto;
            align-items: stretch;
            background-color: transparent;
        }

        .action-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #00897b;
            padding: 10px 0;
            background: transparent;
        }
        /* タップ時の反応 */
        .action-item:active {
            background-color: rgba(77, 182, 172, 0.2);
        }

        .border-r {
            border-right: 1px solid rgba(0, 0, 0, 0.08);
        }

        /* SVGアイコンの安定化 */
        .icon-svg {
            display: block;
            width: 26px;
            height: 26px;
            fill: #00897b !important; 
            margin-bottom: 4px;
        }

        .action-item .label {
            display: block;
            font-size: 10px;
            font-weight: 700;
            line-height: 1.2;
            text-align: center;
        }
    /* タップ時のフィードバック */
        .tap-scale:active {
            transform: scale(0.92);
            transition: transform 0.1s ease;
        }
  

    body {
        padding-bottom: 65px; /* バーの高さ分余白を作る */
    }



}

 /* indexページの診療案内アイコン */
        @media (max-width: 768px) {
            .service-grid {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }
            .service-panel {
                padding: 20px 10px;
            }
            .section-title h2 {
                font-size: 1.6rem;
            }
        }
         @media (min-width: 768px) {
            .service-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 24px;
            }
            .section-services {
                padding: 100px 40px;
            }
        }