@charset "UTF-8";

/* ==========================================================================
   1. 全般的な設定・CSS変数（デザインシステム）
   ========================================================================== */
:root {
    /* カラーパレット */
    --primary-color: #00acc1;       /* メイン：クリーンなミントブルー */
    --primary-light: #e0f2f1;      /* 背景用ミント */
    --accent-color: #ff80ab;        /* アクセント：温かみのあるサクラピンク（予約ボタン用） */
    --text-main: #37474f;           /* 文字色：きつすぎないダークグレー */
    --text-sub: #78909c;            /* 補助文字色 */
    --bg-light: #f9fdfd;            /* 薄い背景色 */
    --white: #ffffff;
    
    /* トライアングル（角丸・フォント） */
    --radius-main: 20px;            /* 親しみやすさを出すための大きめの角丸 */
    --radius-sub: 8px;
    --font-base: 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. 緊急案内バー
   ========================================================================== */
.emergency-bar {
    background-color: #fff3e0; /* 優しい注意喚起のオレンジ */
    border-bottom: 1px solid #ffe0b2;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.emergency-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.emergency-text {
    color: #e65100;
    margin: 0;
}
.emergency-text i {
    margin-right: 5px;
}
.emergency-links a {
    color: var(--text-main);
    margin-left: 15px;
    text-decoration: underline;
}

/* ==========================================================================
   3. ヘッダー（ベース設定）
   ========================================================================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-light);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* ヘッダー左側：ロゴ・店舗切り替え */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo img {
    height: 44px;
}

/* 店舗セレクター */
.branch-selector {
    display: flex;
    background-color: #f5f7f8;
    padding: 3px;
    border-radius: var(--radius-sub);
}
.branch-btn {
    border: none;
    background: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-sub);
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
}
.branch-btn.is-active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ヘッダー右側：ナビ・CTA */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.global-nav ul {
    display: flex;
    gap: 20px;
}
.global-nav a {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}
.global-nav a.current::after,
.global-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* コンタクトボタン群 */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-tel {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 10px 14px;
    border-radius: var(--radius-sub);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.btn-reserve {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-sub);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(255, 128, 171, 0.3);
    white-space: nowrap;
}

/* ==========================================================================
   4. ヒーローセクション（メインビジュアル）
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, #f0fafb 100%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

/* 背景のドット装飾 */
.hero-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(#b2dfdb 20%, transparent 20%);
    background-size: 20px 20px;
    bottom: -50px;
    left: -50px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

/* 左側：テキストエリア */
.hero-sub-copy {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero-main-copy {
    font-size: 42px;
    line-height: 1.4;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-main-copy span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* マーカー風の下線装飾 */
.hero-main-copy span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 12px;
    background-color: rgba(255, 128, 171, 0.2);
    z-index: -1;
    border-radius: 10px;
}

.hero-description {
    font-size: 17px;
    color: #546e7a;
    margin-bottom: 35px;
    max-width: 540px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 32px;
    border-radius: var(--radius-sub);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 右側：ビジュアルエリア */
.hero-visual-area {
    position: relative;
    padding-bottom: 40px;
}

.hero-image-wrapper {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 172, 193, 0.08);
    border: 6px solid var(--white);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* リアルタイム空き状況パネル */
.status-panel {
    position: absolute;
    bottom: -10px;
    left: 30px;
    right: 30px;
    background-color: var(--white);
    border-radius: var(--radius-main);
    padding: 24px;
    box-shadow: 0 15px 35px rgba(55, 71, 79, 0.1);
    border: 1px solid var(--primary-light);
}

.status-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-panel-title i {
    color: var(--primary-color);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.status-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #eceff1;
    padding-bottom: 8px;
}

.status-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-branch {
    font-size: 14px;
    font-weight: 700;
}

/* 空き状況バッジの出し分け */
.status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.status-badge.is-available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.is-few {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-note {
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 0;
    text-align: right;
}

/* ==========================================================================
   5. フッター
   ========================================================================== */
.main-footer {
    background-color: #37474f;
    color: var(--white);
    padding: 60px 0 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}
.footer-info {
    max-width: 350px;
}
.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
}
.footer-desc {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}
.footer-law {
    font-size: 12px;
    color: #b0bec5;
    line-height: 1.5;
}

.footer-nav-group {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}
.footer-nav-col h4 {
    color: #80deea;
    font-size: 15px;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
}
.footer-nav-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav-col a {
    font-size: 14px;
    color: #cfd8dc;
}
.footer-nav-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-copyright {
    border-top: 1px solid #455a64;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #90a4ae;
}

/* ==========================================================================
   6. メディアクエリ（レスポンシブ・ブレイクポイント設定）
   ========================================================================== */

/* タブレット・大型スマホ対応（1024px以下） */
@media (max-width: 1024px) {
    /* ヘッダーのレイアウト変更 */
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .global-nav {
        width: 100%;
        overflow-x: auto; /* はみ出たメニューを横スクロール可能に */
        padding-bottom: 5px;
    }
    
    .global-nav ul {
        justify-content: space-between;
        padding: 0 5px;
    }

    .header-cta {
        width: 100%;
    }
    
    .btn-tel, .btn-reserve {
        flex: 1;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }

    /* ヒーローセクションのレイアウト変更 */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .status-panel {
        position: static;
        margin-top: 20px;
    }
}

/* 中型スマホ対応（768px以下） */
@media (max-width: 768px) {
    /* フッターのレイアウト調整 */
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-nav-group {
        gap: 30px;
    }
    .footer-nav-col {
        min-width: 140px;
    }
}

/* 小型スマホ対応（480px以下） */
@media (max-width: 480px) {
    /* 緊急バー */
    .emergency-container {
        flex-direction: column;
        text-align: center;
    }
    .emergency-links {
        margin-top: 5px;
    }
    
    /* ヘッダー左側を縦並びにして中央揃え */
    .header-left {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .branch-selector {
        width: 100%;
        justify-content: center;
    }
    
    .branch-btn {
        flex: 1;
        text-align: center;
        padding: 6px 5px;
        font-size: 11px;
    }

    /* キャッチコピーの文字サイズ縮小 */
    .hero-main-copy {
        font-size: 32px;
    }
}
/* ==========================================================================
   7. セクション共通タイトル（他セクションでも使い回せるパーツ）
   ========================================================================== */
.section-title-block {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.section-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* タイトル下の可愛い波線風の装飾（小児歯科らしさ） */
.section-main-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title-desc {
    font-size: 15px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   8. コンセプトセクション（私たちの3つの想い）
   ========================================================================== */
.concept-section {
    padding: 100px 0;
    background-color: var(--bg-light); /* ヒーローとメリハリを出すための薄い背景色 */
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 横に3連で並べる */
    gap: 30px;
}

.concept-card {
    background-color: var(--white);
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 172, 193, 0.03);
    border: 1px solid rgba(0, 172, 193, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時にふんわり浮き上がるアニメーション */
.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(55, 71, 79, 0.08);
}

.concept-card-image {
    position: relative;
    height: 220px;
    width: 100%;
}

.concept-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* カード画像の上に重なるおしゃれな数字バッジ */
.concept-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 172, 193, 0.3);
}

.concept-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.concept-card-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    line-height: 1.4;
}

.concept-card-body p {
    font-size: 14px;
    color: #546e7a;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================================================
   コンセプトセクション用レスポンシブ（メディアクエリ）
   ========================================================================== */
@media (max-width: 960px) {
    .concept-grid {
        grid-template-columns: 1fr; /* タブレット・スマホ時は縦に1列並びにする */
        gap: 30px;
        max-width: 500px;
        margin: 0 auto; /* 中央揃え */
    }
    
    .concept-section {
        padding: 70px 0; /* 上下の余白を少し縮める */
    }
    
    .section-main-title {
        font-size: 28px;
    }
}
/* ==========================================================================
   9. 診療案内セクション
   ========================================================================== */
.menu-section {
    padding: 100px 0;
    background-color: var(--white); /* 前のセクションが薄茶・薄青系なので、ここは白でメリハリを */
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3カラム並び */
    gap: 40px;
}

.menu-card {
    background-color: var(--white);
    border-radius: var(--radius-main);
    overflow: hidden;
    border: 2px solid var(--primary-light); /* 太めのマイルドな線で囲む */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* ホバー時に枠線の色を変えて少し持ち上げる */
.menu-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 172, 193, 0.05);
}

.menu-card-image {
    height: 240px;
    width: 100%;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 0; /* ダミー画像のaltテキストはみ出し防止策 */
}

.menu-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 保険診療・自由診療などのタグ */
.menu-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-ins {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    background-color: #eceff1;
    padding: 3px 10px;
    border-radius: 4px;
}

.menu-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}

.menu-text {
    font-size: 14px;
    color: #546e7a;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 💡ガイドライン用の極小注記テキスト（実務で必須の配慮） */
.menu-guideline-notice {
    font-size: 11px;
    color: #90a4ae;
    line-height: 1.4;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 下層ページへのリンクボタン（矢印付き） */
.menu-link {
    margin-top: auto; /* カードの最下部に固定 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: var(--radius-sub);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.menu-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* ホバー時にボタン内の矢印ピョコッと動かす演出 */
.menu-card:hover .menu-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   診療案内セクション用レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
    .menu-grid {
        grid-template-columns: 1fr; /* タブレット・スマホ時は縦1列 */
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .menu-section {
        padding: 70px 0;
    }
    
    .menu-card-image {
        height: 200px; /* スマホ時は少し画像の高さを抑える */
    }
}
/* ==========================================================================
   10. 院内設備セクション（ギャラリー風）
   ========================================================================== */
.facilities-section {
    padding: 100px 0;
    background-color: var(--bg-light); /* コンセプトエリアと同じ薄い背景色で交互のメリハリをつける */
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.facilities-item {
    background-color: var(--white);
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

/* 画像エリアとホバー時のおしゃれなオーバーレイ演出 */
.facilities-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--primary-light);
}

.facilities-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 0; /* altテキストはみ出し防止 */
    transition: transform 0.5s ease;
}

/* ホバーした時にうっすらミントブルーの膜をかける */
.facilities-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 172, 193, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.facilities-zoom {
    color: var(--white);
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* ホバー時の連動アニメーション */
.facilities-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 172, 193, 0.06);
}

.facilities-item:hover .facilities-image img {
    transform: scale(1.08); /* 画像を少しズームインさせるプロっぽい演出 */
}

.facilities-item:hover .facilities-overlay {
    opacity: 1;
}

.facilities-item:hover .facilities-zoom {
    transform: scale(1);
}

/* テキストエリア */
.facilities-info {
    padding: 25px;
}

.facilities-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.facilities-info p {
    font-size: 13.5px;
    color: #546e7a;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 下部のアクションボタン */
.facilities-action {
    text-align: center;
}

.btn-primary-ghost {
    display: inline-block;
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
    background-color: var(--white);
    padding: 14px 40px;
    border-radius: 50px; /* 丸みのある可愛い楕円ボタン */
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.03);
}

.btn-primary-ghost:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary-ghost i {
    font-size: 13px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-primary-ghost:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   院内設備セクション用レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    
    .facilities-section {
        padding: 70px 0;
    }
}
/* ==========================================================================
   11. 各店舗のご案内セクション
   ========================================================================== */
.access-section {
    padding: 100px 0;
    background-color: var(--white); /* 背景を白にしてすっきりと見せる */
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.access-card {
    background-color: var(--white);
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 172, 193, 0.1);
    display: flex;
    flex-direction: column;
}

/* 店舗名がのるカードのヘッダー部分 */
.access-card-head {
    background-color: var(--primary-color);
    padding: 24px;
    text-align: center;
    color: var(--white);
}

.access-card-head h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.access-station {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
}

/* カードの内部テキスト（テーブル形式） */
.access-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.access-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.access-table th,
.access-table td {
    padding: 12px 0;
    font-size: 13.5px;
    vertical-align: top;
    border-bottom: 1px dashed #eceff1;
}

.access-table th {
    width: 90px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
}

.access-table th i {
    margin-right: 4px;
    width: 16px;
    text-align: center;
}

.access-table td {
    color: var(--text-main);
}

.access-table tr:last-child th,
.access-table tr:last-child td {
    border-bottom: none; /* 最後の線の非表示 */
}

.table-note {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 700;
}

/* カード内の2連ボタン */
.access-card-buttons {
    margin-top: auto; /* ボタン群をカード最下部に固定 */
    display: flex;
    gap: 10px;
}

.btn-card-sub {
    flex: 1;
    text-align: center;
    border: 1px solid var(--text-sub);
    color: var(--text-main);
    padding: 10px 0;
    border-radius: var(--radius-sub);
    font-size: 13px;
    font-weight: 700;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.btn-card-sub:hover {
    background-color: #f5f7f8;
}

.btn-card-main {
    flex: 1.3; /* 予約ボタンの横幅を少しだけ広げて目立たせる */
    text-align: center;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 0;
    border-radius: var(--radius-sub);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 128, 171, 0.2);
    transition: all 0.3s ease;
}

.btn-card-main:hover {
    box-shadow: 0 6px 14px rgba(255, 128, 171, 0.4);
    opacity: 0.9;
}

/* ==========================================================================
   各店舗のご案内セクション用レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
    .access-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .access-section {
        padding: 70px 0;
    }
}
/* ==========================================================================
   12. 下層ページ共通ヘッダー（キービジュアル）
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00838f 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.page-header-sub {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
}

/* ==========================================================================
   13. 診療案内ページ専用スタイル
   ========================================================================== */
.treatment-intro-section {
    padding: 80px 0;
    background-color: var(--white);
}

.intro-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.intro-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 15.5px;
    color: #546e7a;
    margin-bottom: 15px;
}

.intro-image img {
    border-radius: var(--radius-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
}

/* 診療メニュー詳細リストのレイアウト（交互並び） */
.treatment-list-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.treatment-detail-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-main);
    box-shadow: 0 10px 30px rgba(0, 172, 193, 0.02);
}

/* 偶数番目のカードは左右反転にする（プロっぽい単調にさせない工夫） */
.treatment-detail-row.reverse {
    grid-template-columns: 1.1fr 1fr;
}
.treatment-detail-row.reverse .treatment-detail-img {
    order: 2; /* 画像を右側に配置 */
}

.treatment-detail-img {
    height: 100%;
    min-height: 280px;
}

.treatment-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sub);
    font-size: 0;
}

.treatment-detail-txt {
    position: relative;
    padding-top: 20px;
}

.treatment-num {
    font-family: 'Quicksand', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

.treatment-tag {
    display: inline-block;
    background-color: #f5f7f8;
    color: var(--text-sub);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.treatment-detail-txt h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.treatment-detail-txt p {
    font-size: 14.5px;
    color: #546e7a;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 特徴のチェックマークリスト */
.treatment-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.treatment-features li {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.treatment-features i {
    color: var(--accent-color);
}

/* 💡下層用：ガイドライン詳細記述ボックス（超重要パーツ） */
.guideline-box {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: var(--radius-sub);
    margin-top: 20px;
}

.guideline-box p {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.guideline-box ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
}

.guideline-box li {
    font-size: 12.5px;
    color: #546e7a;
    line-height: 1.5;
}

/* ==========================================================================
   診療案内ページ用レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
    .intro-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .treatment-detail-row,
    .treatment-detail-row.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .treatment-detail-row.reverse .treatment-detail-img {
        order: 0; /* スマホ時は画像が必ず上に来るようにリセット */
    }
    
    .treatment-detail-img {
        min-height: 200px;
        height: 200px;
    }
}
/* ==========================================================================
   15. 院長・スタッフ紹介ページ専用スタイル
   ========================================================================== */
.director-section {
    padding: 100px 0;
    background-color: var(--white);
}

.director-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* 画像とテキストの比率 */
    gap: 60px;
    align-items: start;
}

.director-image img {
    width: 100%;
    border-radius: var(--radius-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 6px solid #f5f7f8;
}

/* 院長テキスト周り */
.director-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.director-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.director-info h2 .en-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: var(--text-sub);
    font-weight: 500;
}

.director-message {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-main);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.director-message h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.director-message p {
    font-size: 14.5px;
    color: #546e7a;
    line-height: 1.7;
    margin-bottom: 12px;
}
.director-message p:last-child {
    margin-bottom: 0;
}

/* 略歴・資格のテーブルスタイル */
.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #edf2f4;
}

.profile-table th {
    width: 110px;
    font-weight: 700;
    color: var(--text-main);
    background-color: #f5f7f8;
    text-align: left;
    border-radius: 4px;
}

.profile-table td {
    color: #546e7a;
    line-height: 1.6;
}

/* スタッフ一覧グリッド */
.staff-list-section {
    padding: 80px 0 100px;
    background-color: var(--bg-light);
}

.staff-section-desc {
    text-align: center;
    max-width: 700px;
    margin: -10px auto 40px;
    font-size: 14.5px;
    color: #546e7a;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.staff-card {
    background-color: var(--white);
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.staff-img-wrapper {
    height: 260px;
    width: 100%;
}

/* ==========================================================================
   15. 院長・スタッフ紹介ページ専用スタイル（修正版）
   ========================================================================== */

/* 〜（中略）〜 */

/* ▼ ここを修正：スタッフカードの写真 ▼ */
.staff-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに広げる設定はそのまま */
    object-position: center top; /* ⭐この1行を追加：トリミング基準を「上」にする */
    font-size: 0;
}

/* 〜（中略）〜 */

.staff-card-body {
    padding: 25px;
    flex-grow: 1;
}

.staff-role {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.staff-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.staff-text {
    font-size: 13.5px;
    color: #546e7a;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   院長・スタッフ紹介ページ用レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
    .director-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .director-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .director-section {
        padding: 60px 0;
    }
}
/* ==========================================================================
   16. アクセス・診療時間ページ専用スタイル
   ========================================================================== */
.access-page-container {
    padding: 60px 0 100px;
}

.branch-info-block {
    background-color: var(--white);
    border-radius: var(--radius-main);
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 60px;
    overflow: hidden;
}
.branch-info-block:last-child {
    margin-bottom: 0;
}

/* 各店舗ブロックのヘッダー */
.branch-info-header {
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--primary-light);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.branch-info-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.branch-label-main {
    font-size: 11px;
    font-weight: 700;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
}

.branch-label-sub {
    font-size: 11px;
    font-weight: 700;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
}

/* 店舗ブロックの内部 */
.branch-info-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 情報：マップ */
    gap: 40px;
    padding: 35px;
}

.branch-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.branch-detail-table th,
.branch-detail-table td {
    padding: 18px 0;
    font-size: 14px;
    vertical-align: top;
    border-bottom: 1px dashed #edf2f4;
}

.branch-detail-table tr:last-child th,
.branch-detail-table tr:last-child td {
    border-bottom: none;
}

.branch-detail-table th {
    width: 100px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
}

.branch-detail-table th i {
    margin-right: 6px;
}

.branch-detail-table td {
    color: var(--text-main);
    line-height: 1.6;
}

.access-txt-sub {
    font-size: 12.5px;
    color: var(--text-sub);
    display: block;
    margin-top: 4px;
}

.tel-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

/* 🗓️ 診療時間マトリクス表のスタイル */
.timetable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    text-align: center;
}

.timetable th,
.timetable td {
    border: 1px solid #d1dbe0;
    padding: 8px 4px;
    font-size: 12px;
}

.timetable th {
    background-color: #f5f7f8;
    font-weight: 700;
    color: var(--text-main);
}

.timetable td {
    background-color: var(--white);
    color: var(--text-main);
}

/* 時間割の一番左（時間軸）の列 */
.timetable tbody tr td:first-child {
    background-color: #fafbfc;
    font-weight: 700;
    text-align: left;
    padding-left: 10px;
    width: 120px;
}

.timetable-note {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 8px;
    margin-bottom: 0;
}

/* 各店舗専用予約ボタン */
.branch-cta-row {
    margin-top: 15px;
}

.btn-branch-reserve {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--radius-sub);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 128, 171, 0.2);
    transition: all 0.3s ease;
}

.btn-branch-reserve:hover {
    box-shadow: 0 6px 16px rgba(255, 128, 171, 0.4);
    opacity: 0.9;
}

/* ==========================================================================
   16. アクセス・診療時間ページ専用スタイル（修正版）
   ========================================================================== */

/* 〜（中略：テーブル周りのCSS）〜 */

/* 右側：マップエリア */
.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: var(--radius-sub);
    overflow: hidden;
    /* ✅ ここは白にしておくと、縮小された画像の周りに余白ができます */
    background-color: var(--white);
    border: 1px solid var(--primary-light);
}

/* ▼ ここを修正：マップ画像本体 ▼ */
.map-wrapper img {
    width: 100%;
    height: 100%;
    /* ⭐ここを修正：cover から contain に変更 ⭐ */
    object-fit: contain;
    font-size: 0;
}

/* 〜（中略：レスポンシブ周りのCSS）〜 */

/* ==========================================================================
   アクセス・診療時間ページ用レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
    .branch-info-body {
        grid-template-columns: 1fr; /* タブレット・スマホ時は情報を縦に並べる */
        gap: 30px;
        padding: 20px;
    }
    
    .map-wrapper {
        height: 240px;
        min-height: 240px;
    }
    
    .access-page-container {
        padding: 30px 0 60px;
    }
    
    /* 横幅が非常に狭いスマホで時間割表をスクロールさせる設定（はみ出し防止） */
    .timetable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}