/* ========================================
   ジャンルトップページ - 医療系デザイン
======================================== */

.genre-top-page {
    background: #fff;
    padding-bottom: 40px;
}

.genre-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   パンくずリスト
======================================== */
.breadcrumb {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: #333;
}

.breadcrumb-current {
    color: #999;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
    list-style: none;
}

/* ========================================
   ヒーローセクション
======================================== */
.genre-hero {
    background: #fafafa;
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #4A90E2;
}

.hero-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.hero-icon {
    font-size: 24px;
}

.hero-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stats-number {
    font-size: 32px;
    font-weight: bold;
    color: #2c7be5;
    line-height: 1;
}

.stats-label {
    font-size: 13px;
    color: #666;
}

/* ========================================
   絞り込みボックス
======================================== */
.filter-section {
    margin-bottom: 24px;
}

.filter-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 16px 20px;
}

.filter-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.filter-title svg {
    color: #666;
    width: 16px;
    height: 16px;
}

.pref-group {
    margin-bottom: 12px;
}

.pref-group:last-child {
    margin-bottom: 0;
}

.pref-group-title {
    font-size: 12px;
    font-weight: bold;
    color: #888;
    margin: 0 0 8px 0;
}

.pref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pref-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
}

.pref-tag:hover {
    background: #e8f4fc;
    border-color: #2c7be5;
    color: #2c7be5;
}

.pref-tag.active {
    background: #2c7be5;
    border-color: #2c7be5;
    color: #fff;
}

.pref-count {
    font-size: 10px;
    color: #999;
}

.pref-tag.active .pref-count {
    color: rgba(255, 255, 255, 0.8);
}

.pref-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ccc;
    color: #666;
    font-size: 12px;
    cursor: pointer;
}

.pref-toggle-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.all-prefs {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dotted #ddd;
}

.filter-active {
    margin-top: 12px;
    padding: 10px 12px;
    background: #e8f4fc;
    border: 1px solid #b8daff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.clear-filter {
    color: #c00;
    text-decoration: none;
    font-size: 12px;
}

.clear-filter:hover {
    text-decoration: underline;
}

/* ========================================
   コンテンツボックス
======================================== */
.genre-about-section,
.tips-section,
.price-section,
.faq-section {
    margin-bottom: 24px;
}

.content-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px 24px;
}

.content-box-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #2c7be5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-box-title .icon {
    font-size: 18px;
}

.content-box-body {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.content-box-body h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #2c7be5;
}

.content-box-body p {
    margin: 0 0 14px;
}

.content-box-body ul,
.content-box-body ol {
    padding-left: 20px;
    margin: 0 0 14px;
}

.content-box-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-box-body li strong {
    color: #222;
}

/* ポイントリスト */
.point-list {
    padding-left: 20px;
    list-style: decimal;
}

.point-list li {
    margin-bottom: 16px;
}

.point-list li strong {
    color: #2c7be5;
    display: block;
    margin-bottom: 4px;
}

/* 料金テーブル */
.note-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px !important;
    padding: 8px 12px;
    background: #fffbe6;
    border-left: 3px solid #f0ad4e;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.price-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table td.price {
    text-align: right;
    font-weight: bold;
    color: #c00;
    white-space: nowrap;
}

/* FAQ */
.faq-list {
    margin: 0;
}

.faq-list dt {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px;
    padding: 0;
}

.faq-list dd {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px;
    padding: 10px 14px;
    background: #f9f9f9;
    border-left: 3px solid #2c7be5;
    line-height: 1.7;
}

.faq-list dd:last-child {
    margin-bottom: 0;
}

/* ========================================
   クリニックセクション
======================================== */
.clinics-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.results-count {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.clinics-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* クリニックカード - リスト形式 */
.clinic-card {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.clinic-card:last-child {
    border-bottom: none;
}

.card-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #ddd;
}

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

.card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
    background: #f5f5f5;
}

.card-body {
    flex: 1;
    min-width: 0;
}

.card-area {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 6px;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-title a:hover {
    color: #2c7be5;
    text-decoration: underline;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.card-rating .star-rating {
    display: flex;
}

.card-rating .star {
    color: #f5a623;
    font-size: 12px;
}

.card-rating .star-empty {
    color: #ddd;
}

.rating-number {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.review-count {
    font-size: 11px;
    color: #999;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.tag {
    font-size: 10px;
    padding: 2px 6px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
}

.card-link {
    display: inline-block;
    color: #2c7be5;
    font-size: 12px;
    text-decoration: none;
}

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

/* ========================================
   都道府県リンク
======================================== */
.area-links-section {
    margin-bottom: 30px;
    padding: 20px 24px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

.area-links-section .section-title {
    font-size: 15px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.area-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.area-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.15s;
}

.area-link-item:hover {
    background: #2c7be5;
    border-color: #2c7be5;
    color: #fff;
}

.area-name {
    font-weight: 500;
}

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

.area-link-item:hover .area-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   ページネーション
======================================== */
.pagination {
    margin-top: 24px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

.pagination a:hover {
    background: #2c7be5;
    border-color: #2c7be5;
    color: #fff;
}

.pagination .current {
    background: #2c7be5;
    border-color: #2c7be5;
    color: #fff;
}

.pagination .dots {
    background: transparent;
    border: none;
}

/* ========================================
   結果なし
======================================== */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.no-results p {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

.no-results .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2c7be5;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.no-results .btn:hover {
    background: #1a68d1;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
    .genre-container {
        padding: 0 16px;
    }
    
    .genre-hero {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 18px;
    }
    
    .stats-number {
        font-size: 28px;
    }
    
    .area-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .content-box {
        padding: 16px;
    }
    
    .clinic-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .card-image {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .area-links-grid {
        grid-template-columns: 1fr;
    }
    
    .pref-tags {
        gap: 4px;
    }
    
    .pref-tag {
        padding: 5px 8px;
        font-size: 11px;
    }
}
/* ========================================
   PR枠
======================================== */
.pr-section {
    margin-bottom: 30px;
}

.pr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
}

.pr-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

.pr-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.pr-grid {
    background: #fff9f5;
    border: 2px solid #ffe0d0;
    padding: 16px;
}

.pr-card {
    position: relative;
    border: 1px solid #ffcbb3 !important;
    background: #fff !important;
}

.pr-card .pr-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 3px 8px;
    background: #ff6b35;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
}

.pr-card:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

/* 優先表示マーク（任意） */
.priority-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #2c7be5;
    color: #fff;
    font-size: 10px;
    border-radius: 3px;
    margin-left: 6px;
}

/* ========================================
   ページネーション
======================================== */
.pagination {
    margin: 60px 0 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers li {
    display: inline-block;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a.page-numbers:hover {
    background: #f5f5f5;
    border-color: #4A90E2;
    color: #4A90E2;
}

.pagination span.current {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
    cursor: default;
}

.pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination a.prev,
.pagination a.next {
    padding: 0 20px;
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pagination {
        margin: 40px 0 30px;
    }
    
    .pagination .page-numbers {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a.page-numbers,
    .pagination span.page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .pagination a.prev,
    .pagination a.next {
        padding: 0 16px;
    }
}