/* ============================================
   エリアページ専用CSS
   参考サイト風のシンプルデザイン
============================================ */

/* コンテナ */
.area-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* パンくずリスト */
.area-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px 0;
}

.area-breadcrumb a {
    color: #4A90E2;
    text-decoration: none;
}

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

/* ページヘッダー */
.area-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.area-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.area-count {
    font-size: 14px;
    color: #666;
}

/* ジャンル切り替え */
.genre-switch {
    margin-bottom: 30px;
}

.genre-tabs-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.genre-tab {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.genre-tab:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.genre-tab.active {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}

/* セクションタイトル */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4A90E2;
}

/* 子エリア一覧 */
.child-areas-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.child-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.child-area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.child-area-item:hover {
    border-color: #4A90E2;
    background: #f0f7ff;
}

.child-area-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.child-area-count {
    font-size: 12px;
    color: #999;
}

/* クリニック一覧セクション */
.clinics-list-section {
    margin-bottom: 40px;
}

.clinics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   クリニックカード
============================================ */
.clinic-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.clinic-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clinic-card-inner {
    display: flex;
    gap: 20px;
}

/* 画像エリア */
.clinic-card-image {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    background: #f5f5f5;
}

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

.clinic-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #e8e8e8;
    color: #999;
    text-decoration: none;
}

.clinic-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background: #FF6B6B;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

/* 情報エリア */
.clinic-card-body {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.clinic-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.clinic-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.clinic-card-title a:hover {
    color: #4A90E2;
}

/* 基本情報 */
.clinic-card-info {
    margin-bottom: 12px;
}

.clinic-info-item {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #666;
}

.info-icon {
    flex-shrink: 0;
}

.info-text {
    line-height: 1.6;
}

.info-sub {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ジャンルタグ */
.clinic-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.genre-tag {
    padding: 4px 10px;
    background: #E8F4FF;
    color: #4A90E2;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

/* 料金情報 */
.clinic-card-price {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-label {
    color: #666;
}

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

/* 特徴タグ */
.clinic-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    padding: 3px 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    font-size: 11px;
    border-radius: 3px;
}

/* アクションボタン */
.clinic-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-detail,
.btn-website {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-detail {
    background: #4A90E2;
    color: #fff;
}

.btn-detail:hover {
    background: #3A7BC8;
}

.btn-website {
    background: #fff;
    color: #4A90E2;
    border: 1px solid #4A90E2;
}

.btn-website:hover {
    background: #E8F4FF;
}

/* メッセージ */
.no-clinics-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-clinics-message p {
    margin-bottom: 10px;
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 768px) {
    .area-container {
        padding: 15px;
    }
    
    .area-title {
        font-size: 22px;
    }
    
    .child-areas-grid {
        grid-template-columns: 1fr;
    }
    
    .clinic-card-inner {
        flex-direction: column;
    }
    
    .clinic-card-image {
        width: 100%;
        height: 200px;
    }
    
    .clinic-card-body {
        padding: 15px;
    }
    
    .clinic-card-actions {
        flex-direction: column;
    }
}

/* ========================================
   統合絞り込みボックス
======================================== */

.unified-filter-box {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filter-title svg {
    color: #4A90E2;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #4A90E2;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    background: #f0f7ff;
    border-color: #4A90E2;
}

.toggle-icon {
    transition: transform 0.3s;
}

.unified-filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.unified-filter-content.open {
    max-height: 800px;
    margin-top: 20px;
}

/* フィルターセクション */
.filter-section {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section:first-child {
    padding-top: 0;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 16px;
}

/* ジャンルタブ（インライン版） */
.genre-tabs-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.genre-tab-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.genre-tab-inline:hover {
    background: #f0f7ff;
    border-color: #4A90E2;
    color: #4A90E2;
}

.genre-tab-inline.active {
    background: #4A90E2;
    border-color: #4A90E2;
    color: #fff;
}

/* エリアフィルターオプション */
.filter-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-option:hover {
    background: #f0f7ff;
    border-color: #4A90E2;
}

.filter-option.active {
    background: #e6f2ff;
    border-color: #4A90E2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.option-name {
    font-size: 14px;
    font-weight: 600;
}

.option-count {
    font-size: 13px;
    color: #666;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
}

.filter-option.active .option-count {
    background: #4A90E2;
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .genre-tabs-inline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-options {
        grid-template-columns: 1fr;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}