/* =============================================
   AGAクリニックポータル用CSS
   参考デザインシステムに準拠
   ============================================= */

/* カラーパレット - 参考サイトに準拠 */
:root {
  /* メインカラー */
  --primary-color: #3BA6C9;
  --primary-dark: #2B8FB0;
  --primary-light: #E8F4F8;
  
  /* アクセントカラー */
  --accent-color: #FE9B00;
  --accent-dark: #E68A00;
  --accent-light: #FFF3E0;
  
  /* テキストカラー */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #FFFFFF;
  
  /* 背景色 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-gray: #FAFAFA;
  --bg-blue-light: #F0F8FB;
  
  /* ボーダー */
  --border-color: #DDDDDD;
  --border-light: #EEEEEE;
  
  /* その他 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* ベースリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* リンク基本スタイル */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.7;
}

/* コンテナ */
.container {
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   パンくずリスト
   ============================================= */
.breadcrumbs {
  background: var(--bg-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  font-size: 14px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.breadcrumb-item .separator {
  margin: 0 8px;
  color: var(--text-light);
}

.breadcrumb-item:last-child {
  color: var(--text-primary);
}

/* =============================================
   ページヘッダー
   ============================================= */
.page-header {
  background: var(--bg-primary);
  padding: 40px 0 30px;
  text-align: center;
  border-bottom: 3px solid var(--primary-color);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.page-title .count {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-color);
  margin-left: 10px;
}

.page-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* =============================================
   AGA比較表（縦型・参考サイト準拠）
   ============================================= */
.aga-comparison-section {
    background: var(--bg-primary);
    padding: 40px 0;
    margin: 30px 0;
}

.comparison-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.comparison-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

/* テーブルコンテナ */
.comparison-table-container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
}

/* 縦型比較表 */
.aga-comparison-table-vertical {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

/* 最初の3列を表示、他はスクロール */
.aga-comparison-table-vertical th.row-header {
    width: 150px;
    min-width: 150px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-gray);
}

.aga-comparison-table-vertical td {
    width: 200px;
    min-width: 200px;
}

/* ヘッダー行 */
.clinic-name-row {
    background: var(--bg-blue-light);
}

.clinic-name-row th {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: 700;
    padding: 15px;
    text-align: center;
}

.clinic-name-cell {
    background: var(--bg-blue-light);
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid var(--border-color);
    position: relative;
}

.clinic-name-cell a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.clinic-name-cell a:hover {
    color: var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-color);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 行ヘッダー */
.row-header {
    background: var(--bg-gray);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

.sub-header {
    padding-left: 20px;
    font-size: 13px;
}

.sub-header small {
    display: block;
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 2px;
}

/* データセル */
.data-cell {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.price-highlight {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 16px;
}

/* セクションヘッダー */
.section-header th {
    background: var(--primary-light);
    padding: 10px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 可否マーク */
.available-mark {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.unavailable-mark {
    color: var(--text-light);
    font-size: 16px;
}

/* アクセス情報 */
.access-cell {
    font-size: 13px;
    color: var(--text-secondary);
}

/* アクション行 */
.action-row {
    background: var(--bg-gray);
}

.action-cell {
    padding: 15px;
    text-align: center;
}

.comparison-detail-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.comparison-detail-btn:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-1px);
}

/* 注記 */
.comparison-notes {
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
}

.comparison-notes .note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.scroll-hint {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .scroll-hint {
        display: block;
    }
}

@media (max-width: 768px) {
    .aga-comparison-table-vertical th.row-header {
        width: 120px;
        min-width: 120px;
        font-size: 12px;
    }
    
    .aga-comparison-table-vertical td {
        width: 150px;
        min-width: 150px;
    }
    
    .row-header {
        padding: 10px;
    }
    
    .data-cell {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .price-highlight {
        font-size: 14px;
    }
    
    .clinic-name-cell {
        font-size: 13px;
    }
}

/* スクロールバーのカスタマイズ */
.comparison-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-gray);
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =============================================
   地図セクション
   ============================================= */
.area-map-section {
  background: var(--bg-primary);
  padding: 40px 30px;
  margin: 30px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.map-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.map-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.integrated-map {
  width: 100%;
  height: 450px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

/* =============================================
   クリニック一覧
   ============================================= */
.clinic-list {
  margin: 40px 0;
}

.clinic-list .section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.clinic-list .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-color);
}

/* AGAクリニックカード - 新デザイン */
.aga-clinic-card {
  background: var(--bg-primary);
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.aga-clinic-card:hover {
  box-shadow: var(--shadow-lg);
}

/* クリニックヘッダー */
.clinic-header-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 25px 30px;
}

.clinic-main-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.clinic-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: var(--text-white);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

/* クリニック画像 */
.clinic-image-section {
  padding: 30px;
  text-align: center;
  background: var(--bg-gray);
}

.clinic-main-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* セクション共通スタイル */
.clinic-highlights-section,
.clinic-plans-section,
.clinic-description-section,
.clinic-info-section,
.clinic-access-section {
  padding: 30px;
  border-bottom: 1px solid var(--border-light);
}

.clinic-access-section {
  border-bottom: none;
}

.section-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-left: 35px;
}

.section-subtitle i {
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 24px;
}

/* おすすめポイント */
.highlights-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-content ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.highlights-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 20px;
  font-weight: bold;
  top: -2px;
}

/* おすすめプラン */
.plans-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.plans-content table th {
  background: var(--bg-blue-light);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-color);
}

.plans-content table td {
  padding: 15px;
  border: 1px solid var(--border-light);
  font-size: 15px;
}

.plans-content .price {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 18px;
}

/* 説明文 */
.description-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* 基本情報テーブル */
.clinic-info-table {
  width: 100%;
  border-collapse: collapse;
}

.clinic-info-table th {
  background: var(--bg-gray);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  width: 30%;
  border: 1px solid var(--border-light);
}

.clinic-info-table td {
  padding: 15px;
  border: 1px solid var(--border-light);
  font-size: 15px;
}

.phone-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 18px;
}

.official-link {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-color);
  color: var(--text-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.official-link:hover {
  background: var(--accent-dark);
  color: var(--text-white);
}

/* 診療時間表示 */
.schedule-mini {
  font-size: 14px;
  overflow-x: auto;
}

.schedule-mini table {
  min-width: 100%;
  border-collapse: collapse;
}

.schedule-mini td,
.schedule-mini th {
  padding: 8px;
  border: 1px solid var(--border-light);
  text-align: center;
  font-size: 13px;
}

/* アクセス */
.access-content {
  font-size: 16px;
  line-height: 1.8;
}

.access-content p {
  margin-bottom: 10px;
}

.access-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* アクションボタン */
.clinic-action-section {
  padding: 30px;
  background: var(--bg-gray);
  text-align: center;
}

.clinic-action-section .detail-button {
  display: inline-block;
  padding: 15px 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.clinic-action-section .detail-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-white);
}

/* =============================================
   エリア一覧セクション
   ============================================= */
.area-list-section {
  background: var(--bg-primary);
  padding: 40px 30px;
  margin: 30px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.area-list-section .section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.area-list-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

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

.area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.area-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.area-count {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* =============================================
   検索セクション
   ============================================= */
.search-section {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.search-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 25px;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-button {
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background: var(--primary-dark);
}

/* =============================================
   ページネーション
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-link.current {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
	  width:100%;
  }
  
  .page-header {
    padding: 30px 0 20px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .page-title .count {
    font-size: 18px;
  }
  
  .comparison-title,
  .map-section-title,
  .clinic-list .section-title {
    font-size: 20px;
  }
  
  .aga-comparison-section,
  .area-map-section,
  .area-list-section,
  .search-section {
    padding: 25px 20px;
    margin: 20px 0;
  }
  
  .clinic-main-title {
    font-size: 20px;
  }
  
  .clinic-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .section-subtitle {
    font-size: 18px;
  }
  
  .clinic-highlights-section,
  .clinic-plans-section,
  .clinic-description-section,
  .clinic-info-section,
  .clinic-access-section {
    padding: 20px;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-button {
    width: 100%;
  }
  
  .area-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .integrated-map {
    height: 350px;
  }
  
  /* テーブルのレスポンシブ対応 */
  .aga-comparison-table {
    font-size: 12px;
  }
  
  .aga-comparison-table th,
  .aga-comparison-table td {
    padding: 10px 5px;
  }
  
  .clinic-info-table th,
  .clinic-info-table td {
    padding: 12px;
    font-size: 14px;
  }
}

/* =============================================
   ユーティリティ
   ============================================= */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* スムーススクロール用 */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aga-clinic-card {
  animation: fadeIn 0.5s ease-out;
}

/* Font Awesome アイコンの基本設定 */
.fas, .fa {
  margin-right: 5px;
}

/* =============================================
   基本情報テーブル内の料金テーブル
   ============================================= */
.treatment-methods {
    font-size: 15px;
    line-height: 1.8;
}

.treatment-methods ul {
    margin: 0;
    padding-left: 20px;
}

.fee-section {
    margin-bottom: 20px;
}

.fee-section:last-child {
    margin-bottom: 0;
}

.fee-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    padding: 5px 10px;
    background: var(--bg-blue-light);
    border-left: 3px solid var(--primary-color);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 14px;
}

.fee-table tr {
    border-bottom: 1px solid var(--border-light);
}

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

.fee-table td {
    padding: 8px 10px;
    border: none;
}

.fee-label {
    color: var(--text-secondary);
    width: 60%;
}

.fee-value {
    color: var(--accent-color);
    font-weight: 700;
    text-align: right;
    font-size: 16px;
}

/* オンライン診療対応表示 */
.online-available {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.online-available i {
    font-size: 18px;
}

.online-unavailable {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.online-unavailable i {
    font-size: 18px;
}

/* 休診日の注記 */
.closed-days-note {
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .fee-table {
        font-size: 13px;
    }
    
    .fee-label {
        width: 55%;
        font-size: 12px;
    }
    
    .fee-value {
        font-size: 14px;
    }
    
    .fee-title {
        font-size: 13px;
    }
}

/* =============================================
   口コミセクション
   ============================================= */
.clinic-reviews-section {
    padding: 30px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-gray);
}

.clinic-reviews-section .section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 35px;
    flex-wrap: wrap;
}

.clinic-reviews-section .section-subtitle i {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 24px;
}

/* 平均評価バッジ */
.average-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
}

.average-rating-badge .rating-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.average-rating-badge .review-count {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 口コミリストコンテナ */
.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

/* スクロールバーのカスタマイズ */
.reviews-list-container::-webkit-scrollbar {
    width: 6px;
}

.reviews-list-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.reviews-list-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.reviews-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 個別の口コミカード */
.review-item-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.review-item-card:hover {
    box-shadow: var(--shadow-sm);
}

/* 口コミヘッダー */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    font-size: 36px;
    color: var(--text-light);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.reviewer-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 評価と日付 */
.review-rating-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating .star {
    color: var(--text-light);
    font-size: 16px;
}

.review-rating .star.filled {
    color: #FFC107;
}

.review-rating .star.half {
    position: relative;
    color: var(--text-light);
}

.review-rating .star.half::before {
    content: '★';
    position: absolute;
    color: #FFC107;
    overflow: hidden;
    width: 50%;
}

.rating-number {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    margin-left: 5px;
}

.review-date {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-date i {
    font-size: 12px;
}

/* 受診内容 */
.review-treatment-type {
    background: var(--bg-blue-light);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    display: inline-block;
}

.treatment-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.treatment-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* 口コミ本文 */
.review-content {
    margin-bottom: 15px;
    line-height: 1.8;
}

.review-content p {
    color: var(--text-primary);
    font-size: 15px;
    margin: 0;
}

/* 詳細評価グリッド */
.review-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.review-details-grid .detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-details-grid .detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.review-details-grid .detail-rating {
    display: flex;
    gap: 2px;
}

.review-details-grid .detail-rating .star {
    color: var(--text-light);
    font-size: 14px;
}

.review-details-grid .detail-rating .star.filled {
    color: #FFC107;
}

.review-details-grid .detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* もっと見る */
.reviews-more-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.reviews-more-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .clinic-reviews-section {
        padding: 20px;
    }
    
    .clinic-reviews-section .section-subtitle {
        font-size: 18px;
        padding-left: 30px;
    }
    
    .average-rating-badge {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-rating-date {
        align-items: flex-start;
        width: 100%;
    }
    
    .reviews-list-container {
        max-height: 600px;
        padding-right: 5px;
    }
    
    .review-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* 小さい星評価（セクションタイトル用） */
.rating-stars-small .star {
    font-size: 14px !important;
}

/* =============================================
   AGAクリニックの選び方セクション
   ============================================= */
.aga-selection-guide {
    background: var(--bg-primary);
    padding: 60px 30px;
    margin: 40px 0;
}

.guide-main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.guide-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
}

.guide-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.guide-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* 選定ポイント */
.selection-point {
    max-width: 900px;
    margin: 0 auto 50px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.point-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.point-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.point-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.point-content p {
    margin-bottom: 20px;
}

/* 利点リスト */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 20px;
}

.benefits-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
}

.benefits-list li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 16px;
}

/* オンライン診療対応表 */
.online-consultation-table-wrapper {
    margin: 30px 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.table-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.table-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.online-consultation-comparison {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    min-width: 500px;
}

.online-consultation-comparison thead {
    background: var(--primary-color);
    color: var(--text-white);
}

.online-consultation-comparison th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--primary-dark);
}

.online-consultation-comparison th.fixed-header {
    width: 60%;
}

.online-consultation-comparison tbody tr {
    border-bottom: 1px solid var(--border-light);
}

.online-consultation-comparison tbody tr:hover {
    background: var(--bg-gray);
}

.online-consultation-comparison td {
    padding: 12px 15px;
    font-size: 14px;
}

.clinic-name-cell a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.clinic-name-cell a:hover {
    color: var(--primary-color);
}

.status-cell {
    text-align: center;
}

.status-available {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-available i {
    font-size: 8px;
}

.status-unavailable {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.table-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

/* チェックポイント */
.check-points {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 25px 0;
}

.check-points h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-points h4 i {
    color: var(--accent-color);
}

.check-points ul {
    list-style: none;
    padding: 0;
}

.check-points ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.check-points ul li:last-child {
    border-bottom: none;
}

.check-points ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 重要ポイント */
.important-points {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.important-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
}

.important-points li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
    font-size: 14px;
}

/* 警告テキスト */
.warning-text {
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-top: 25px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.warning-text i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* アクセスポイント */
.access-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.access-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 20px;
}

.access-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-item h4 i {
    color: var(--primary-color);
    font-size: 18px;
}

.access-item ul {
    list-style: none;
    padding: 0;
}

.access-item ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.access-item ul li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ヒントボックス */
.tip-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 30px;
}

.tip-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-box h4 i {
    font-size: 18px;
}

.tip-box p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .aga-selection-guide {
        padding: 40px 20px;
    }
    
    .guide-main-title {
        font-size: 22px;
    }
    
    .selection-point {
        padding: 25px 20px;
    }
    
    .point-title {
        font-size: 18px;
    }
    
    .point-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .online-consultation-table-wrapper {
        padding: 20px 15px;
    }
    
    .table-title {
        font-size: 16px;
    }
    
    .access-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



/* オンライン診療対応表 */
.online-consultation-table-wrapper {
    margin: 30px 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.table-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.table-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.online-consultation-comparison {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

/* 固定列（左側） */
.fixed-column {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 120px;
    white-space: nowrap;
    border-right: 2px solid var(--primary-dark);
}

/* ヘッダー行 */
.header-row {
    background: var(--bg-gray);
    border-bottom: 2px solid var(--border-color);
}

.header-row .clinic-name-cell {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    min-width: 200px;
    text-align: center;
    vertical-align: middle;
    background: var(--bg-gray);
    border-right: 1px solid var(--border-light);
}

.header-row .clinic-name-cell:last-child {
    border-right: none;
}

.clinic-name-cell a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.clinic-name-cell a:hover {
    color: var(--primary-color);
}

/* データ行 */
.data-row {
    background: var(--bg-primary);
}

.data-row .status-cell {
    padding: 20px;
    text-align: center;
    vertical-align: middle;
    font-size: 20px;
    font-weight: 700;
    border-right: 1px solid var(--border-light);
}

.data-row .status-cell:last-child {
    border-right: none;
}

.status-available {
    color: var(--primary-color);
}

.status-unavailable {
    color: var(--text-light);
}

/* テーブルノート */
.table-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

.scroll-hint-mobile {
    display: none;
    text-align: center;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 10px;
    font-weight: 600;
}

/* スクロールバーのカスタマイズ */
.table-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-gray);
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .online-consultation-table-wrapper {
        padding: 20px 15px;
    }
    
    .table-title {
        font-size: 16px;
    }
    
    .fixed-column {
        min-width: 100px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .header-row .clinic-name-cell {
        min-width: 150px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .data-row .status-cell {
        padding: 15px;
        font-size: 18px;
    }
    
    .scroll-hint-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .fixed-column {
        min-width: 80px;
        padding: 10px;
        font-size: 12px;
    }
    
    .header-row .clinic-name-cell {
        min-width: 120px;
        padding: 10px;
        font-size: 12px;
    }
    
    .data-row .status-cell {
        padding: 12px;
        font-size: 16px;
    }
}

/* 比較表のスタイル改善 */
.treatment-methods-cell {
    font-size: 14px;
    line-height: 1.6;
}

.price-list {
    text-align: left;
}

.price-item {
    margin-bottom: 5px;
    font-size: 13px;
}

.price-label {
    font-weight: normal;
    color: #666;
}

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

.schedule-cell {
    font-size: 13px;
    line-height: 1.5;
}

.official-site-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2196F3;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.official-site-btn:hover {
    background-color: #1976D2;
}