/**
 * くらしの歯科 - メインスタイルシート
 * ===================================
 * 全ページ共通のCSSを1ファイルにまとめています
 */

/* ===========================================
   1. リセット & 基本設定
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    cursor: pointer;
}

:root {
    --primary: #5bb5a2;
    --primary-dark: #4a9a89;
    --primary-light: #7bc9b8;
    --secondary: #b5a642;
    --secondary-dark: #9a8d38;
    --bg-light: #F0F8F8;
    --bg-lighter: #F0F8F8;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 5px;
    --radius-lg: 10px;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
}

/* 背景の幾何学図形装飾 */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 左上の丸 */
.bg-shapes .circle-top-left {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: #E7F2F2;
    border-radius: 50%;
}

/* 右上の丸 */
.bg-shapes .circle-top-right {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: #E7F2F2;
    border-radius: 50%;
}

/* 左下の三角 */
.bg-shapes .triangle-bottom-left {
    position: absolute;
    bottom: 50px;
    left: 300px;
    width: 0;
    height: 0;
    border-left: 300px solid transparent;
    border-right: 300px solid transparent;
    border-bottom: 480px solid #E7F2F2;
    transform: rotate(-15deg);
}

/* コンテンツを前面に */
body > * {
    position: relative;
    z-index: 1;
}

/* ===========================================
   2. ヘッダー（2段構成）
   =========================================== */
.site-header {
    background: transparent;
    position: relative;
    z-index: 100;
}

/* 1段目：ロゴ */
.header-row-1 {
    padding: 1.25rem 0 1rem 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.header-row-1 .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-direction: row;
}

.header-row-1 .logo img {
    height: 25px;
    width: auto;
    display: block;
}

/* 2段目：ナビゲーション */
.header-row-2 {
    background: #fff;
}

.header-nav {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 600px;
    margin: 0 auto;
}

.header-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.header-nav a:hover {
    background: rgba(91, 181, 162, 0.1);
    border-bottom-color: var(--primary);
}

/* ===========================================
   3. フッター
   =========================================== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    margin: 3rem 0 0;
}

.site-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ===========================================
   4. メインコンテンツ
   =========================================== */
.main-content {
    min-height: calc(100vh - 300px);
}

/* ===========================================
   5. ユーティリティクラス
   =========================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===========================================
   6. カード
   =========================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

/* ===========================================
   7. ボタン
   =========================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 166, 66, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===========================================
   8. アラート
   =========================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===========================================
   9. フォーム（共通）
   =========================================== */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 181, 162, 0.2);
}

/* ===========================================
   10. テーブル
   =========================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: #f8f9fa;
    font-weight: 500;
}

.table tbody tr:hover {
    background: rgba(91, 181, 162, 0.05);
}

/* ===========================================
   11. ページネーション
   =========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* ===========================================
   12. TOPページ - ヒーローセクション
   =========================================== */
.hero {
    background: transparent;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    display: flex;
    justify-content: space-evenly;
    /* gap: 2rem; */
    align-items: center;
    width: 100%;
}

.hero-text {
    width: 300px;
    flex-shrink: 0;
}

.hero .logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #fff;
}

.logo-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.hero-logo-img {
    max-width: 300px;
    height: auto !important;
}

.hero-image {
    flex-shrink: 0;
    width: 280px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #5bb5a2;
}

/* ===========================================
   13. TOPページ - 検索セクション
   =========================================== */
.search-section {
    max-width: 1000px;
    margin: -60px auto 3rem;
    position: relative;
}
@media (max-width: 768px) {
    .search-section {
        padding: 1rem;
            margin: -60px auto 1rem;
    }
}
.search-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: visible;
}

/* タブ */
.search-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.search-tab {
    flex: 1;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    background: #f8f9fa;
}

.search-tab:hover {
    background: #fff;
    color: #5bb5a2;
}

.search-tab.active {
    background: #fff;
    color: #5bb5a2;
    border-bottom-color: #5bb5a2;
}

/* 検索フォーム */
.search-forms {
    padding: 2rem 1rem;
    overflow: visible;
}

.search-form {
    display: none;
}

.search-form.active {
    display: block;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 入力欄ラッパー（×ボタン用） */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-input {
    padding-right: 2.5rem;
}

.input-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: #ccc;
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.input-clear:hover {
    background: #999;
}

.input-wrapper .form-input:not(:placeholder-shown)+.input-clear {
    display: flex;
}

/* サジェストドロップダウン */
.suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggest-dropdown.show {
    display: block;
}

.suggest-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover,
.suggest-item.active {
    background: #f0f9f7;
}

.suggest-item-label {
    font-size: 0.95rem;
    color: #333;
}

.suggest-item-type {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.suggest-loading {
    padding: 1rem;
    text-align: center;
    color: #999;
}

/* 検索ボタン */
.search-btn-wrap {
    text-align: center;
}

.search-btn {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: #b5a642;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    width: 100%;
}
@media (max-width: 768px) {
    .search-btn {
        padding: 1rem 2rem;
    }
}

.search-btn:hover {
    background: #9a8d38;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 166, 66, 0.4);
}

/* ===========================================
   14. TOPページ - NEWSセクション
   =========================================== */
.news-section {
    background: transparent;
    padding: 5rem 1rem;
}
@media (max-width: 768px) {
    .news-section {
        padding: 2rem 1rem;
    }
}

.news-section-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.news-section-left {
    flex: 0 0 40%;
    text-align: center;
}

.news-section-right {
    flex: 1;
}

.news-section-illust {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
}

.news-section-illust img {
    width: 100%;
    height: auto;
}

.news-section-lead {
    line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .news-section .section-title{
        margin-bottom: 1rem;
    }
    .news-section-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .news-section-left {
        flex: none;
        width: 100%;
    }
    
    .news-section-right {
        width: 100%;
    }
    
    .news-section-illust {
        width: 80px;
        margin-bottom: 1rem;
    }
}

/* ===========================================
   14.3. TOPページ - 重要なお知らせセクション
   =========================================== */
.important-news-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.important-news-banner {
    display: flex;
    align-items: center;
    background: #419b89;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 107, 125, 0.25);
}

.important-news-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 107, 125, 0.35);
}

.important-news-illust {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    margin-right: 1rem;
}

.important-news-illust img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.important-news-content {
    flex: 1;
    min-width: 0;
}

.important-news-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.important-news-arrow {
    flex-shrink: 0;
    margin-left: 1rem;
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #1688AA;
    transition: background 0.3s ease;
}

.important-news-banner:hover .arrow-circle {
    background: rgba(255, 255, 255, 0.25);
}

/* スマホ対応 */
@media (max-width: 600px) {
    .important-news-section {
        padding: 0 0.75rem 1.5rem;
    }
    
    .important-news-banner {
        padding: 0.75rem;
    }
    
    .important-news-illust {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }
    
    .important-news-title {
        font-size: 0.85rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .arrow-circle {
        width: 32px;
        height: 32px;
    }
}

/* ===========================================
   14.4. TOPページ - 治療メニューセクション
   =========================================== */
.treatment-menu-section {
    padding: 3rem 1rem;
}

.treatment-menu-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.treatment-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1rem;
}

.treatment-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.treatment-menu-item:hover {
    transform: translateY(-4px);
}

.treatment-menu-icon-wrap {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
    padding: 1rem;
    gap: 0;
}

.treatment-menu-item:hover .treatment-menu-icon-wrap {
    box-shadow: 0 4px 16px rgba(91, 181, 162, 0.15);
}

.treatment-menu-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.treatment-menu-label {
    font-size: 0.8rem;
    color: #444;
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .treatment-menu-section {
        padding: 2rem 0.75rem;
    }

    .treatment-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 0.25rem;
    }

    .treatment-menu-icon-wrap {
        width: 100px;
        height: 100px;
    }

    .treatment-menu-icon {
        width: 60px;
        height: 60px;
    }

    .treatment-menu-label {
        font-size: 0.65rem;
    }
}

/* ===========================================
   14.5. TOPページ - 医院マップセクション
   =========================================== */
.map-section {
    background: transparent;
    padding: 5rem 1rem;
}

.map-section-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.map-section-left {
    flex: 0 0 40%;
    text-align: center;
}

.map-section-right {
    flex: 1;
}


.map-section-illust {
    width: 160px;
    height: auto;
    margin: 0 auto 1.5rem;
}

.map-section-illust img {
    width: 100%;
    height: auto;
}

.map-section-lead {
    line-height: 1.8;
    color: #666;
}

.map-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5bb5a2;
    margin: 0 5px;
}

#clinic-map {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#clinic-map-dummy {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#clinic-map-dummy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .map-section {
        padding: 2rem 1rem;
    }
    
    .map-section-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .map-section-left {
        flex: none;
        width: 100%;
    }
    
    .map-section-right {
        width: 100%;
    }
    
    .map-section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .map-section-illust {
        width: 120px;
        margin-bottom: 1rem;
    }
    
    .map-section-lead {
        font-size: 0.85rem;
    }
}

/* Google Maps InfoWindow カスタマイズ */
.map-info-window {
    max-width: 280px;
    font-family: 'Noto Sans JP', sans-serif;
}

.map-info-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f5f5f5;
}

.map-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-info-body {
    padding: 0.75rem;
}

.map-info-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.4rem 0;
    line-height: 1.4;
}

.map-info-address {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.6rem 0;
    line-height: 1.4;
}

.map-info-link {
    display: inline-block;
    font-size: 0.8rem;
    color: #5bb5a2;
    text-decoration: none;
    font-weight: 500;
}

.map-info-link:hover {
    text-decoration: underline;
}

/* Google Maps InfoWindow デフォルトスタイルの上書き */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-tc {
    display: none;
}

/* InfoWindow内のスクロールバー非表示 */
.gm-style .gm-style-iw-d::-webkit-scrollbar {
    display: none;
}

/* マップ レスポンシブ */
@media (max-width: 768px) {
    #clinic-map {
        height: 350px;
    }
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8ec8d1;
}

.news-list {
    list-style: none;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 3rem 0;
}

.news-item {
    border-bottom: 1px solid #f1f8f8;
}
.news-item:last-child{
    border-bottom: none;
}

.news-item a {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

.news-item a:hover {
    background: #f0f9f7;
}

.news-date {
    color: #888;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.news-title {
    color: #333;
    font-size: 0.95rem;
}

.section-more {
    text-align: right;
    margin-top: 1rem;
}

.more-link {
    color: #5ba3b0;
    text-decoration: none;
    font-size: 0.9rem;
}

.more-link:hover {
    text-decoration: underline;
}

.no-data {
    color: #999;
    text-align: center;
    padding: 2rem;
}

/* ===========================================
   15. TOPページ - 特集セクション
   =========================================== */
.feature-section {
    background: transparent;
    padding: 5rem 1rem;
}
@media (max-width: 768px) {
    .feature-section {
        padding: 2rem 1rem;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 0 3rem 0;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-image {
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
}

.feature-body {
    padding: 1rem;
}

.feature-date {
    color: #888;
    font-size: 0.8rem;
}

.feature-title {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* ===========================================
   16. TOPページ - 高評価医院セクション
   =========================================== */
.top-rated-section {
    background: transparent;
    padding: 5rem 1rem;
}
@media (max-width: 768px) {
    .top-rated-section {
        padding: 2rem 1rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* TOPページのセクションタイトルは下線なし */
.section-header .section-title,
.map-section .section-title,
.feature-section .section-title,
.news-section .section-title {
    padding-bottom: 0;
    border-bottom: none;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

.section-header-illust {
    width: 120px;
    height: auto;
    margin: 0 auto 1rem;
}
.feature-section .section-header-illust{
    width: 100px;
}

.section-header-illust img {
    width: 100%;
    height: auto;
}

.section-header-lead {
    color: #666;
    line-height: 1.8;
    margin: 0 0 2rem 0;
}

.top-rated-swiper {
    padding: 1rem 0 3rem;
    overflow: visible;
}

.top-rated-swiper .swiper-wrapper {
    padding:0 0 1.5rem 0;
}

.clinic-slide-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.clinic-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.clinic-slide-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #5bb5a2 0%, #7bc9b8 100%);
    overflow: hidden;
}

.clinic-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-slide-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.clinic-slide-body {
    padding: 1.25rem;
}

.clinic-slide-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rating-stars {
    color: #f4b400;
    font-size: 1rem;
    letter-spacing: -2px;
}

.rating-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f4b400;
}

.rating-count {
    font-size: 0.85rem;
    color: #999;
}

.clinic-slide-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.clinic-slide-location {
    font-size: 0.9rem;
    color: #666;
}

/* Swiper カスタマイズ（TOP） */
.top-rated-swiper .swiper-button-prev,
.top-rated-swiper .swiper-button-next {
    color: #5bb5a2;
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-rated-swiper .swiper-button-prev::after,
.top-rated-swiper .swiper-button-next::after {
    font-size: 1.2rem;
}

.top-rated-swiper .swiper-pagination {
    bottom: 0 !important;
}

.top-rated-swiper .swiper-pagination-bullet {
    background: #5bb5a2;
}

.top-rated-swiper .swiper-pagination-bullet-active {
    background: #5bb5a2;
}

/* ===========================================
   17. 検索結果ページ - 共通
   =========================================== */
.search-section-results {
    max-width: 1000px;
    margin: 1rem auto 0;
    padding: 2rem 1rem;
}

.search-section-results .search-card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.search-section-results .search-form {
    display: block;
}

.search-section-results .search-forms {
    padding: 1.5rem;
}

.search-results {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.search-results-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid #5bb5a2;
}

.search-results-count {
    font-size: 1rem;
    color: #333;
}

.search-results-count strong {
    font-size: 1.25rem;
    color: #5bb5a2;
}

.nearby-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.nearby-notice-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.nearby-notice-title {
    font-size: 1.1rem;
    color: #6d4c00;
    margin-bottom: 0.5rem;
}

.nearby-notice-sub {
    font-size: 0.9rem;
    color: #8d6e00;
}

.nearby-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #5bb5a2;
}

.distance-badge {
    display: inline-block;
    margin-left: 0.5rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.doctor-area {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results-text {
    font-size: 1.1rem;
    color: #666;
}

/* ===========================================
   18. 検索結果ページ - 医院カード
   =========================================== */
.clinic-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

a.clinic-card,
a.clinic-card *,
a.clinic-card .clinic-card-inner,
a.clinic-card .clinic-image,
a.clinic-card .clinic-info,
a.clinic-card .clinic-name,
a.clinic-card .clinic-location,
a.clinic-card .clinic-description,
a.clinic-card .clinic-tags,
a.clinic-card .clinic-tag,
a.clinic-card .clinic-doctors,
a.clinic-card .doctor-badge {
    cursor: pointer !important;
}

a.clinic-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.clinic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.clinic-card-inner {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

.clinic-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #5bb5a2;
    overflow: hidden;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-info {
    flex: 1;
    min-width: 0;
}

.clinic-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.clinic-name a {
    color: inherit;
    text-decoration: none;
}

.clinic-name a:hover {
    color: #5bb5a2;
}

.clinic-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.clinic-location-icon {
    margin-right: 0.25rem;
}

/* 検索結果のレビュー表示 */
.clinic-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.clinic-rating .rating-stars {
    color: #f5a623;
    font-size: 0.95rem;
    letter-spacing: -1px;
}

.clinic-rating .rating-value {
    font-weight: 600;
    color: #333;
}

.clinic-rating .rating-count {
    color: #888;
    font-size: 0.85rem;
}

.clinic-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.clinic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.clinic-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f5f2;
    color: #5bb5a2;
    font-size: 0.8rem;
    border-radius: 20px;
}

.clinic-doctors {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.doctor-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.doctor-icon {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ===========================================
   19. 検索結果ページ - ドクターカード
   =========================================== */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

a.doctor-card,
a.doctor-card *,
a.doctor-card .doctor-card-inner,
a.doctor-card .doctor-avatar,
a.doctor-card .doctor-info,
a.doctor-card .doctor-name,
a.doctor-card .doctor-title,
a.doctor-card .doctor-clinic,
a.doctor-card .doctor-specialties,
a.doctor-card .specialty-tag,
a.doctor-card .doctor-card-footer {
    cursor: pointer !important;
}

a.doctor-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.doctor-card-inner {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: #e9f5f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    overflow: hidden;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No Image placeholder */
.no-image {
    width: 30% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto;
}

.clinic-image .no-image,
.doctor-avatar .no-image,
.doctor-detail-avatar .no-image,
.other-doctor-avatar .no-image,
.feature-image .no-image,
.ranking-image .no-image,
.clinic-slide-image .no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: auto;
}

.clinic-image,
.doctor-avatar,
.feature-image,
.ranking-image,
.clinic-slide-image {
    position: relative;
}

.doctor-info {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.doctor-name.highlight {
    color: #b5a642;
}

.doctor-title {
    font-size: 0.85rem;
    color: #5bb5a2;
    margin-bottom: 0.5rem;
}

.doctor-clinic {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doctor-clinic a {
    color: #333;
    text-decoration: none;
}

.doctor-clinic a:hover {
    color: #5bb5a2;
    text-decoration: underline;
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.specialty-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: #e8f5f2;
    color: #5bb5a2;
    border-radius: 12px;
}

.specialty-tag.highlight {
    background: #fff8e1;
    color: #b5a642;
    border: 1px solid #b5a642;
}

.doctor-card-footer {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.doctor-card-footer a {
    font-size: 0.85rem;
    color: #5bb5a2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doctor-card-footer a:hover {
    text-decoration: underline;
}

/* ===========================================
   19.5. 評価ランキングページ
   =========================================== */
.ranking-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.ranking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ranking-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.ranking-subtitle {
    font-size: 0.95rem;
    color: #666;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.ranking-rank {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e8f5f2;
    color: #5bb5a2;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
}

.rank-number.rank-top {
    background: linear-gradient(135deg, #f4b400 0%, #ffc107 100%);
    color: #fff;
}

.ranking-image {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.ranking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-noimage {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.ranking-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.ranking-rating .rating-stars {
    color: #f4b400;
    font-size: 0.9rem;
}

.ranking-rating .rating-value {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.ranking-rating .rating-count {
    color: #888;
    font-size: 0.85rem;
}

.ranking-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.ranking-description {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #ccc;
    transition: color 0.3s;
}

.ranking-card:hover .ranking-arrow {
    color: #5bb5a2;
}

@media (max-width: 600px) {
    .ranking-card {
        flex-wrap: wrap;
    }

    .ranking-rank {
        width: 40px;
    }

    .rank-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .ranking-image {
        width: 80px;
        height: 60px;
    }

    .ranking-info {
        flex-basis: calc(100% - 140px);
    }

    .ranking-name {
        font-size: 1rem;
    }

    .ranking-description {
        display: none;
    }

    .ranking-arrow {
        display: none;
    }
}

/* ===========================================
   20. 医院詳細ページ
   =========================================== */
.clinic-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.clinic-title-section {
    margin-bottom: 2rem;
}

.clinic-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.clinic-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.clinic-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.clinic-meta .meta-stars {
    color: #f4b400;
}

.clinic-meta .meta-rating {
    font-weight: 600;
    color: #333;
}

.clinic-meta .meta-count {
    color: #888;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: min-content;
    gap: 2rem;
    align-items: start;
}

/* PC: メインカラムに配置 (医院紹介、基本情報、在籍ドクター) */
.detail-card--intro,
.detail-card--info,
.detail-card--doctors {
    grid-column: 1;
}

/* PC: サイドバーに配置 (レビュー、対応症例) */
.detail-card--reviews {
    grid-column: 2;
    grid-row: 1 / span 4;
}

.detail-card--cases {
    grid-column: 2;
}

.detail-card {
    padding:0 0 1rem;
}

.detail-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #5bb5a2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clinic-page .clinic-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin-bottom: 0;
}

.cases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.case-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    /* background: #69bead; */
    color: #69bead;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid #69bead;
}

.case-tag:hover {
    background: #5bb5a2;
    color: #fff;
}

.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.doctor-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
}

.doctor-item .doctor-avatar {
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

.doctor-item .doctor-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

/* 医院詳細ページのドクターリンク */
.doctor-item-link {
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.doctor-item-link:hover {
    border-color: #5bb5a2;
    box-shadow: 0 4px 12px rgba(91, 181, 162, 0.15);
    transform: translateY(-2px);
}

.doctor-detail-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5bb5a2;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.doctor-item-link:hover .doctor-detail-arrow {
    opacity: 1;
}

.doctor-profile {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
}

.info-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #ddd;
    padding: 2rem 0;
}

.info-icon {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.info-label {
    width: 60px;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #888;
}

.info-content {
    color: #444;
}

.info-content a {
    color: #5bb5a2;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

/* 電話番号行（ボタン付き） */
.info-item-phone {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.3rem 1rem;
}

.info-item-phone .info-label {
    align-self: center;
}

.info-item-phone .info-content {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.info-item-phone .phone-call-btn {
    justify-self: end;
}

.phone-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 25px;
    color: #69bead;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.phone-call-btn:hover {
    background: #fef5f6;
    border-color: #e85a71;
    text-decoration: none;
}

.phone-icon {
    font-size: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5bb5a2;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Googleレビュー */
.google-rating-summary {
    text-align: center;
    margin-bottom: 1rem;
}

.google-rating-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f4b400;
}

.google-rating-stars {
    color: #f4b400;
    font-size: 1.2rem;
    margin: 0.25rem 0;
}

.google-rating-count {
    font-size: 0.85rem;
    color: #666;
}

/* .google-reviews {
    border-top: 1px solid #eee;
    padding-top: 1rem;
} */

.google-review-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    /* padding-bottom: 1rem; */
    /* border-bottom: 1px solid #f0f0f0; */
}

/* .google-review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
} */

.google-review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.google-review-stars {
    color: #f4b400;
    font-size: 0.85rem;
}

.google-review-author {
    font-size: 0.8rem;
    color: #999;
}

.google-review-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.google-reviews-link {
    display: block;
    text-align: center;
    color: #5bb5a2;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 1rem;
}

.google-reviews-link:hover {
    text-decoration: underline;
}

/* お問い合わせカード */
.contact-card {
    background: linear-gradient(135deg, #5bb5a2 0%, #7bc9b8 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.contact-card .detail-card-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.contact-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.contact-phone {
    display: block;
    background: #fff;
    color: #5bb5a2;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

.contact-phone:hover {
    background: #f0f9f7;
}

/* ===========================================
   21. 医院詳細 - 画像ギャラリー Swiper
   =========================================== */
.gallery-section {
    margin-bottom: 2rem;
    border-radius: 12px;
}

.gallery-swiper {
    border-radius: 8px;
    overflow: hidden;
}

.gallery-swiper .swiper-slide {
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-swiper .swiper-slide:hover img {
    transform: scale(1.05);
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    color: #5bb5a2;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
    font-size: 1rem;
}

.gallery-swiper .swiper-pagination {
    bottom: 0 !important;
}

.gallery-swiper .swiper-pagination-bullet {
    background: #5bb5a2;
}

/* ライトボックス */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
}

/* ===========================================
   22. NEWS一覧・詳細ページ
   =========================================== */
.news-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8ec8d1;
}

.news-page .news-list {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 3rem 0;
}

.news-page .news-item:last-child {
    border-bottom: none;
}

.news-page .news-item a {
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

.news-page .news-date {
    font-size: 0.9rem;
}

.news-page .news-title {
    font-size: 1rem;
}

.news-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin: 0 0 3rem 0;
}

.article-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-content {
    font-size: 1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

/* ===========================================
   23. 特集一覧・詳細ページ
   =========================================== */
.features-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.feature-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.feature-detail .article {
    overflow: hidden;
    padding: 0;
    margin: 0 0 3rem 0;
}

.article-image {
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    min-height: 200px;
}

.article-body {
    padding: 2rem;
}

/* ===========================================
   24. レスポンシブ対応
   =========================================== */
@media (max-width: 768px) {

    /* ヘッダー */
    .header-row-1 {
        padding: 0.75rem 0 0.25rem;
    }

    .header-row-1 .logo img {
        height: 20px;
    }

    .header-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .header-nav a {
        padding: 1rem 0.5rem;
        /* font-size: 0.8rem; */
        border-bottom: none;
        border: 1px solid #f1f8f8;
    }

    .header-nav a:hover {
        border-bottom: none;
    }

    /* ヒーロー */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 2rem 0;

    }
    .hero{
        min-height: 280px;
    }

    .hero .logo {
        align-items: center;
    }

    .hero-logo-img {
        max-width: 220px;
        width: 100%;
        display: block;
    }

    .hero-image {
        width: 180px;
        margin-top: 1.5rem;
    }

    /* 電話番号行（スマホ：横並び） */
    .info-item-phone {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .info-item-phone .info-label {
        width: auto;
        margin-right: 0.5rem;
        padding-top: 0;
        align-self: center;
    }

    .info-item-phone .info-content {
        flex: 1;
        align-self: center;
    }

    .info-item-phone .phone-call-btn {
        align-self: center;
    }

    /* 検索フォーム */
    .form-row {
        flex-direction: column;
    }

    .search-tab {
        font-size: 0.9rem;
        padding: 1rem 0.5rem;
    }

    .search-section-results {
        padding: 1rem;
    }

    .search-section-results .search-forms {
        padding: 1rem;
    }

    .search-section-results .form-row {
        margin-bottom: 1rem;
    }

    /* NEWS */
    .news-item a,
    .news-page .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    /* 特集 */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* 医院カード */
    .clinic-card-inner {
        flex-direction: column;
    }
    
    .clinic-image {
        width: 100%;
        height: 180px;
    }

    /* 医院詳細 */
    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* スマホでは全て1カラム、順番通りに表示 */
    .detail-card--intro,
    .detail-card--info,
    .detail-card--doctors,
    .detail-card--reviews,
    .detail-card--cases {
        grid-column: 1;
        grid-row: auto;
    }
    
    .clinic-header-content {
        flex-direction: column;
        align-items: center;
    }
    .section-header-illust{
        width: 100px;
        margin: 0 auto;
    }
    .feature-section .section-header-illust{
        width: 80px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    /* ドクター一覧 */
    .doctor-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   21. ドクター詳細ページ
   =========================================== */
.doctor-detail-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    padding: 10px 20px;
    background: #d9ebe7;
}

/* PC時：背景は全幅、中身は1000px */
@media (min-width: 768px) {
    .breadcrumb {
        position: relative;
        max-width: 1000px;
        margin: 0 auto;
        background: transparent;
    }
    
    .breadcrumb::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        background: #d9ebe7;
        z-index: -1;
    }
}

.breadcrumb a {
    color: #5bb5a2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #ccc;
}

/* ドクターヘッダー */
.doctor-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.doctor-detail-avatar {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(91, 181, 162, 0.2);
}

.doctor-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-detail-avatar {
    position: relative;
    background: #f5f5f5;
}

.doctor-detail-info {
    flex: 1;
}

.doctor-detail-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.doctor-detail-kana {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.doctor-detail-title {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #5bb5a2;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doctor-detail-clinic {
    font-size: 1rem;
    color: #666;
}

.doctor-detail-clinic a {
    color: #5bb5a2;
    text-decoration: none;
}

.doctor-detail-clinic a:hover {
    text-decoration: underline;
}

/* 保有資格リスト */
.qualifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qualification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    font-size: 0.95rem;
}

.qualification-icon {
    color: #444;
    font-weight: bold;
    flex-shrink: 0;
}

/* プロフィールテキスト */
.doctor-profile-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
}

/* 経歴リスト */
.career-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 3px solid #444;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.career-item {
    position: relative;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px dashed #e0e0e0;
}

.career-item:last-child {
    border-bottom: none;
}

.career-item::before {
    content: '';
    position: absolute;
    left: -1.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
}

/* 同じクリニックの他のドクター */
.other-doctors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.other-doctor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.other-doctor-card:hover {
    border-color: #5bb5a2;
    box-shadow: 0 4px 12px rgba(91, 181, 162, 0.15);
    transform: translateY(-2px);
}

.other-doctor-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.other-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-doctor-avatar {
    position: relative;
    background: #f5f5f5;
}

.other-doctor-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.other-doctor-title {
    font-size: 0.8rem;
    color: #888;
}

/* サイドバーのクリニックカード（search/caseと同じデザイン） */
.clinic-card-sidebar {
    display: block;
}

.clinic-card-sidebar .clinic-card-inner {
    flex-direction: column;
}

.clinic-card-sidebar .clinic-image {
    width: 100%;
    height: 160px;
    border-radius: 8px 8px 0 0;
}



.clinic-card-sidebar .clinic-name {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.clinic-card-sidebar .clinic-location {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.clinic-card-sidebar .clinic-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
}

.clinic-card-sidebar .clinic-tags {
    margin-top: 0.75rem;
}

.clinic-card-sidebar .clinic-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ドクター詳細 レスポンシブ */
@media (max-width: 768px) {
    .doctor-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .doctor-detail-avatar {
        width: 120px;
        height: 120px;
    }
    
    .doctor-detail-name {
        font-size: 1.4rem;
    }
    
    .other-doctors-list {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   22. スティッキーフッター（予約・公式ボタン）
   =========================================== */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.sticky-footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.sticky-btn-icon {
    font-size: 1.1rem;
}

.sticky-btn-outline {
    background: #fff;
    border: 2px solid #5bb5a2;
    color: #5bb5a2;
    flex-shrink: 0;
}

.sticky-btn-outline:hover {
    background: rgba(91, 181, 162, 0.1);
}

.sticky-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #e85a71 0%, #d64960 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(232, 90, 113, 0.3);
}

.sticky-btn-primary:hover {
    background: linear-gradient(135deg, #d64960 0%, #c4394f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 90, 113, 0.4);
}

.sticky-btn-disabled {
    flex: 1;
    background: #ccc;
    color: #888;
    border: none;
    cursor: not-allowed;
}

/* 詳細ページのボディにパディング追加（スティッキーフッター分） */
.clinic-page,
.doctor-detail-page {
    padding-bottom: 100px;
}

/* スティッキーフッター レスポンシブ */
@media (max-width: 480px) {
    .sticky-footer {
        padding: 0.6rem 0.75rem;
    }
    
    .sticky-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .sticky-btn-primary {
        font-size: 0.8rem;
    }
    
    .sticky-btn-icon {
        font-size: 1rem;
    }
}
