/* =============================================
   ビジネスパーソン向けメンタルクリニックポータル用CSS
   DoctorsFile風 ソリッドデザイン - モバイルファースト
   ============================================= */

/* カラーパレット - よりソリッドな配色に変更 */
:root {
  /* メインカラー */
  --primary-color: #00A0E9;
  --primary-dark: #0080C9;
  --primary-light: #E6F4FB;
  
  /* セカンダリカラー */
  --secondary-color: #FF6B35;
  --secondary-light: #FFF0EA;
  
  /* テキストカラー */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  
  /* 背景色 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-gray: #FAFAFA;
  
  /* ボーダー */
  --border-color: #E0E0E0;
  --border-light: #F0F0F0;
  
  /* アクセントカラー（バッジ用） */
  --badge-certification: #FF6B35;
  --badge-today: #00A0E9;
  --badge-night: #6B46C1;
  --badge-weekend: #E91E63;
  --badge-online: #00BCD4;
  
  /* その他 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
  
  /* 評価の星色 */
  --star-color: #FFC107;
  --star-empty: #E0E0E0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item .separator {
  margin: 0 0.5rem;
  color: var(--text-light);
  font-size: 0.75rem;
}

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

/* =============================================
   ページヘッダー
   ============================================= */
.page-header {
  background: var(--bg-primary);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #5cd907;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.page-title .count {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 0.125rem 0.75rem;
  border-radius: 20px;
  margin-left: 0.5rem;
}

.page-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* エリア説明文セクション */
.area-description-section {
  background: var(--bg-primary);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
}

.area-description-section p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   平均診療費表示
   ============================================= */
.average-cost-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.average-cost-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.average-cost-value {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cost-range {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* =============================================
   エリア統計セクション（新規追加）
   ============================================= */
.area-statistics-section {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.statistics-title {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.statistics-grid {
  display: grid;
  gap: 1.5rem;
}

.stat-category {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
}

.stat-category.full-width {
  grid-column: 1 / -1;
}

.stat-category-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary-color);
}

.stat-items {
  display: grid;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.stat-item.highlight {
  background: var(--primary-light);
  border: 1px solid var(--primary-color);
}

.stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-unit {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-percentage {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* 予約難易度の内訳 */
.booking-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: grid;
  gap: 0.5rem;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.breakdown-stars {
  display: flex;
  gap: 0.0625rem;
  width: 80px;
}

.breakdown-stars .star {
  color: var(--star-empty);
  font-size: 0.875rem;
}

.breakdown-stars .star.filled {
  color: var(--star-color);
}

.breakdown-label {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.breakdown-count {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

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

.section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

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

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

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

.station-item {
  position: relative;
  padding-left: 2rem;
}

.station-item::before {
  content: "🚃";
  position: absolute;
  left: 0.75rem;
  font-size: 0.875rem;
}

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

.area-count {
  background: var(--primary-color);
  color: var(--bg-primary);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* =============================================
   検索セクション
   ============================================= */
.search-section {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.search-title {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.1);
}

.search-button {
  padding: 0.625rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* =============================================
   クリニック一覧
   ============================================= */
.clinic-list {
  margin-bottom: 2rem;
}

.clinic-list .section-title {
  background: var(--bg-primary);
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 3px solid #23bd0a;
}

.result-count {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

/* クリニックカード - DoctorsFile風 */
.clinic-card {
  background: var(--bg-primary);
  margin-bottom: 1px;
  transition: var(--transition);
  position: relative;
}

.clinic-card:hover {
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.clinic-card:hover .detail-button {
  background: var(--primary-dark);
}

/* クリニックヘッダー部分 */
.clinic-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.clinic-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

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

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

/* ビジネスバッジ - よりコンパクトに */
.business-badges {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
}

.business-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--bg-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1;
}

.business-badge.certification {
  background: var(--badge-certification);
}

.business-badge.online {
  background: var(--badge-online);
}

.business-badge.today {
  background: var(--badge-today);
}

.business-badge.night {
  background: var(--badge-night);
}

.business-badge.weekend {
  background: var(--badge-weekend);
}

/* クリニック説明文 */
.clinic-description {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
}

/* クリニック情報グリッド */
.clinic-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0 1.25rem 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
}

/* アイコン部分 */
.info-item::before {
  content: '';
  flex-shrink: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  display: inline-block;
  width: 1rem;
  text-align: center;
}

.info-item.address::before {
  content: "📍";
}

.info-item.phone::before {
  content: "📞";
}

.info-item.access::before {
  content: "🚃";
}

.info-item.departments::before {
  content: "🏥";
}

.info-item.hours::before {
  content: "🕐";
}

.info-item.cost::before {
  content: "💰";
}

.info-item.wait-time::before {
  content: "⏱️";
}

.info-item.booking::before {
  content: "📅";
}

/* 情報テキスト部分 */
.info-item > div,
.info-item > a {
  flex: 1;
  line-height: 1.4;
}

/* 電話番号のリンクスタイル */
.info-item.phone a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

/* 最寄り駅 */
.info-item.access > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.station-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

.station-separator {
  margin: 0 0.25rem;
  color: var(--text-light);
}

/* 予約の取りやすさ部分 */
.info-item.booking > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.booking-stars {
  display: inline-flex;
  gap: 0.0625rem;
}

.star {
  color: var(--star-empty);
  font-size: 0.75rem;
}

.star.filled {
  color: var(--star-color);
}

/* PHP側の余計なスパンを非表示 */
.info-icon {
  display: none;
}

/* 診療費・待ち時間などの強調情報 */
.info-item.cost,
.info-item.wait-time {
  font-weight: 500;
  color: var(--text-primary);
}

/* =============================================
   診療時間テーブル（一覧ページ用コンパクト版）
   ============================================= */
.clinic-schedule {
  padding: 0.75rem 1.25rem;
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
}

.schedule-wrapper.compact {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}

/* コンパクト版テーブル基本スタイル */
.clinic-schedule .hour_table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 0.6875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  margin: 0;
}

/* ヘッダー行 */
.clinic-schedule .hour_table thead tr {
  background: var(--bg-secondary);
}

.clinic-schedule .hour_table thead th,
.clinic-schedule .hour_table thead td {
  padding: 0.375rem 0.25rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.625rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.clinic-schedule .hour_table thead th:first-child {
  background: var(--text-secondary);
  color: var(--bg-primary);
  font-size: 0.625rem;
  min-width: 40px;
}

/* 曜日のスタイル */
.clinic-schedule .hour_table thead td {
  min-width: 28px;
}

/* 土曜日 */
.clinic-schedule .hour_table thead td.hour_sat {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

/* 日曜・祝日 */
.clinic-schedule .hour_table thead td.hour_sun,
.clinic-schedule .hour_table thead td.hour_hol {
  color: #E91E63;
  background: var(--bg-secondary);
}

/* 診療時間の列（左側） */
.clinic-schedule .hour_table tbody th {
  background: var(--bg-secondary);
  padding: 0.375rem 0.5rem;
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.625rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

/* データセル */
.clinic-schedule .hour_table tbody td {
  padding: 0.25rem;
  text-align: center;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  height: 24px;
}

/* 診療可能マーク（シンプルな丸） */
.clinic-schedule .hour_mark_normal {
  background: var(--bg-primary);
}

.clinic-schedule .hour_mark_normal::before {
  content: "●";
  color: var(--primary-color);
  font-size: 0.625rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 診療不可（横線） */
.clinic-schedule .hour_mark_none {
  background: var(--bg-primary);
}

.clinic-schedule .hour_mark_none::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 1px;
  background: #CCC;
}

/* 土曜日の列 */
.clinic-schedule .hour_table tbody td.hour_sat {
  background: #F0F8FF;
}

/* 日曜・祝日の列 */
.clinic-schedule .hour_table tbody td.hour_sun,
.clinic-schedule .hour_table tbody td.hour_hol {
  background: #FFF0F5;
}

/* 休診日や備考情報 */
.clinic-schedule .closed-days-info {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.clinic-schedule .closed-days-info strong {
  font-weight: 500;
  color: var(--text-secondary);
}

/* スクロールヒント（モバイル用） */
@media (max-width: 767px) {
  .clinic-schedule {
    position: relative;
  }
  
  .schedule-wrapper.compact::after {
    content: "→";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-light);
    background: linear-gradient(to right, transparent, var(--bg-gray) 20%);
    padding-left: 1rem;
    pointer-events: none;
  }
}

/* 下部アクション - 診療時間表示時の調整 */
.clinic-card:has(.clinic-schedule) .clinic-footer {
  border-top: none;
}

/* クリニックタグとアクション部分 */
.clinic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
}

.tag {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.clinic-action {
  padding: 0.75rem 1.25rem;
  background: var(--bg-gray);
  text-align: right;
  border-top: 1px solid var(--border-light);
}

/* 診療時間がある場合のタグとアクションの調整 */
.clinic-card:has(.clinic-schedule) .clinic-tags {
  border-top: none;
}

.clinic-card:has(.clinic-schedule) .clinic-action {
  border-top: none;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  background: var(--primary-color);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.detail-button::after {
  content: "→";
  font-size: 0.875rem;
}

/* =============================================
   FAQ・初診の流れセクション
   ============================================= */
.common-info-section {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.common-info-section h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
  font-weight: 700;
}

.common-info-section h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.common-info-section p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.common-info-section ul,
.common-info-section ol {
  margin-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.common-info-section li {
  margin-bottom: 0.5rem;
}

/* =============================================
   ページネーション
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  background: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  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(--bg-primary);
  border-color: var(--primary-color);
}

/* =============================================
   結果なし
   ============================================= */
.no-results {
  background: var(--bg-primary);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* =============================================
   関連エリア
   ============================================= */
.related-areas {
  background: var(--bg-primary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* =============================================
   CTAボタン
   ============================================= */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.cta-secondary {
  background: var(--bg-primary);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.cta-secondary:hover {
  background: var(--primary-light);
}

/* =============================================
   レスポンシブ - タブレット以上
   ============================================= */
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .page-header {
    padding: 2.5rem 2rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .area-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  
  /* エリア統計グリッド */
  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-items {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  /* クリニック情報を2カラムに */
  .clinic-info {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
  }
  
  /* 特定の項目は全幅 */
  .info-item.access,
  .info-item.cost,
  .info-item.wait-time,
  .info-item.booking {
    grid-column: 1 / -1;
  }
  
  .clinic-header {
    padding: 1.5rem 2rem 1rem;
  }
  
  .business-badges {
    padding: 0 2rem;
  }
  
  .clinic-description {
    padding: 0 2rem;
  }
  
  .clinic-info {
    padding: 0 2rem 1.25rem;
  }
  
  .clinic-schedule {
    padding: 1rem 2rem;
  }
  
  .clinic-tags {
    padding: 1rem 2rem;
  }
  
  .clinic-action {
    padding: 1rem 2rem;
  }
  
  /* レスポンシブ時の診療時間テーブル調整 */
  .clinic-schedule .hour_table {
    font-size: 0.75rem;
  }
  
  .clinic-schedule .hour_table thead th,
  .clinic-schedule .hour_table thead td {
    padding: 0.5rem 0.375rem;
    font-size: 0.6875rem;
  }
  
  .clinic-schedule .hour_table tbody th {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
  }
  
  .clinic-schedule .hour_table tbody td {
    padding: 0.375rem;
    height: 28px;
  }
  
  .clinic-schedule .hour_mark_normal::before {
    font-size: 0.75rem;
  }
  
  .clinic-schedule .closed-days-info {
    font-size: 0.6875rem;
  }
}

/* =============================================
   レスポンシブ - デスクトップ
   ============================================= */
@media (min-width: 1024px) {
  .area-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  /* エリア統計セクション */
  .area-statistics-section {
    padding: 2rem;
  }
  
  .statistics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stat-category {
    padding: 1.5rem;
  }
  
  .stat-category.full-width {
    grid-column: 1 / -1;
    
    .stat-items {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }
  
  .booking-breakdown {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  /* デスクトップでも2カラム維持（見やすさ重視） */
  .clinic-info {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
  }
  
  .clinic-name {
    font-size: 1.25rem;
  }
}

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

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

.stat-item {
  animation: fadeIn 0.4s ease-out;
}

.stat-item:nth-child(2) { animation-delay: 0.1s; }
.stat-item:nth-child(3) { animation-delay: 0.2s; }
.stat-item:nth-child(4) { animation-delay: 0.3s; }
.stat-item:nth-child(5) { animation-delay: 0.4s; }
.stat-item:nth-child(6) { animation-delay: 0.5s; }

/* =============================================
   アクセシビリティ
   ============================================= */
.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* フォーカススタイル */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* =============================================
   印刷用スタイル
   ============================================= */
@media print {
  .search-section,
  .pagination,
  .detail-button,
  .business-badges {
    display: none;
  }
  
  * {
    box-shadow: none !important;
  }
  
  .clinic-info {
    display: block !important;
  }
  
  .info-item {
    margin-bottom: 0.5rem;
  }
  
  .area-statistics-section {
    page-break-inside: avoid;
  }
  
  .stat-category {
    page-break-inside: avoid;
  }
}

/* =============================================
   ユーティリティクラス
   ============================================= */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break-word {
  word-wrap: break-word;
  word-break: break-word;
}

/* エリア上部のクリニック目立たせる */
.featured-hospitals {
    margin-top: 1.5rem;
}

.featured-clinic {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 160, 233, 0.1);
}

.featured-clinic:hover {
    box-shadow: 0 8px 16px rgba(0, 160, 233, 0.2);
}

/* =============================================
   おすすめクリニックセクション
   ============================================= */
.featured-hospitals {
    margin-top: 1.5rem;
}

.featured-clinic {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 160, 233, 0.1);
    position: relative;
}

.featured-clinic:hover {
    box-shadow: 0 8px 16px rgba(0, 160, 233, 0.2);
}

/* 公式サイトへのボタン */
.official-site-cta {
    padding: 0 1.25rem;
    margin: 1rem 0;
}

.official-site-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #FF6B35 0%, #F55A1E 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.official-site-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.official-site-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    text-decoration: none;
}

.official-site-button:hover::before {
    left: 100%;
}

.official-site-button:hover .button-arrow {
    transform: translateX(5px);
}

.button-icon {
    font-size: 1.25rem;
}

.button-text {
    flex: 1;
}

.button-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .official-site-cta {
        padding: 0 2rem;
    }
    
    .official-site-button {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* アニメーション */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
}

.official-site-button {
    animation: pulse 2s infinite;
}

.official-site-button:hover {
    animation: none;
}

/* おすすめバッジ（オプション） */
.featured-clinic::before {
    content: "おすすめ";
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #FF6B35 0%, #F55A1E 100%);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 6px 0 6px;
    z-index: 1;
}


/* 優先クリニック用CSS（business-portal.cssまたはスタイルファイルに追加）*/

/* 優先クリニックのカード全体 */
.clinic-card.priority-clinic {
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    position: relative;
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.2);
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(1.02); /* わずかに大きく表示 */
}

/* 優先バッジ */
.priority-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 優先バッジのアニメーション効果 */
.priority-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42, #ff6b35);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    animation: priority-glow 2s infinite;
}

@keyframes priority-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

/* 優先クリニックのタイトル強調 */
.clinic-card.priority-clinic .clinic-name {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.1em;
}

.clinic-card.priority-clinic .clinic-name a {
    color: #ff6b35;
    font-weight: bold;
    text-decoration: none;
}

.clinic-card.priority-clinic .clinic-name a:hover {
    color: #e55a30;
    text-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
}

/* 優先クリニックの境界線効果 */
.clinic-card.priority-clinic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff8c42, #ff6b35);
    z-index: 1;
}

/* 優先クリニックのボタンスタイル */
.clinic-card.priority-clinic .detail-button {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.clinic-card.priority-clinic .detail-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 107, 53, 0.4);
}

/* 優先クリニックの公式サイトボタン */
.clinic-card.priority-clinic .official-site-button {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: 2px solid #ff6b35;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.clinic-card.priority-clinic .official-site-button:hover {
    background: linear-gradient(135deg, #e55a30, #e67735);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
}

/* 優先クリニックのビジネスバッジ */
.clinic-card.priority-clinic .business-badges .business-badge {
    border: 1px solid #ff6b35;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
    font-weight: 500;
}

/* 管理者用のデバッグ表示 */
.clinic-card.priority-clinic .neighbor-indicator {
    color: #ff6b35;
    font-weight: bold;
}

.clinic-card.priority-clinic .neighbor-indicator::after {
    content: " [優先表示]";
    color: #ff6b35;
    font-weight: bold;
    background: rgba(255, 107, 53, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .clinic-card.priority-clinic {
        transform: scale(1.01); /* スマホでは少し控えめに */
        margin-bottom: 20px;
    }
    
    .priority-badge {
        top: 10px;
        right: 10px;
        padding: 4px 12px;
        font-size: 0.8em;
    }
    
    .clinic-card.priority-clinic .clinic-name {
        font-size: 1.05em;
    }
}

/* ホバー効果 */
.clinic-card.priority-clinic:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.25);
    transition: all 0.3s ease;
}

/* 印刷時は優先表示効果を抑制 */
@media print {
    .clinic-card.priority-clinic {
        border: 1px solid #ccc;
        background: white;
        transform: none;
        box-shadow: none;
    }
    
    .priority-badge {
        background: #666;
        color: white;
    }
}

/* エリアページ基本スタイル */
.area-header {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.clinic-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ed-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ed-price-table th,
.ed-price-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.ed-price-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}

.badge-online {
    background: #28a745;
    color: white;
}

.badge-saturday {
    background: #17a2b8;
    color: white;
}

.badge-sunday {
    background: #ffc107;
    color: #333;
}

/* エリアページ基本レイアウト */
.area-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダーセクション */
.page-header {
    background: #f8f9fa;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.section-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* ED治療薬価格セクション */
.ed-check-section {
    background: #fff;
    padding: 5px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ed-check-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* クリニック一覧 */
.clinic-list {
    display: grid;
    gap: 20px;
}

.clinic-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.clinic-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.clinic-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.clinic-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: inline-block;
}

.clinic-name:hover {
    color: #007bff;
}

/* バッジ */
.clinic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-online {
    background: #28a745;
    color: white;
}

.badge-saturday {
    background: #17a2b8;
    color: white;
}

.badge-sunday {
    background: #ffc107;
    color: #333;
}

.badge-holiday {
    background: #e83e8c;
    color: white;
}

.badge-today {
    background: #dc3545;
    color: white;
}

/* ED治療薬価格テーブル */
.ed-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ed-price-table th,
.ed-price-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.ed-price-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.ed-price-table td {
    font-size: 14px;
    color: #666;
}

.ed-price-table tr:hover {
    background: #f8f9fa;
}

/* 価格強調 */
.price-value {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

/* クリニック情報 */
.clinic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* アクションボタン */
.clinic-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-detail {
    display: inline-block;
    padding: 10px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* エリア説明文 */
.area-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #333;
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .area-archive-container {
        padding: 10px;
    }
    
    .page-header {
        padding: 20px 15px;
    }
    
    .clinic-card {
        padding: 15px;
    }
    
    .clinic-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ed-price-table {
        font-size: 12px;
    }
    
    .ed-price-table th,
    .ed-price-table td {
        padding: 8px;
    }
}

/* パンくずリスト */
.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

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

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

.separator {
    margin: 0 8px;
    color: #666;
}

/* 固定クリニックコンテナ */
.featured-clinics-container {
    margin: 30px 0;
}

/* セクション区切り */
.section-divider {
    margin: 40px 0 30px;
    text-align: center;
    position: relative;
}

.sub-section-title {
    font-size: 18px;
    color: #666;
    background: white;
    display: inline-block;
    padding: 0 20px;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: -1;
}

/* ED治療薬価格表示 */
.ed-medication-prices {
    background: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.price-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.price-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.price-item.viagra {
    border-top: 3px solid #0066cc;
}

.price-item.cialis {
    border-top: 3px solid #ffa500;
}

.price-item.levitra {
    border-top: 3px solid #ff4444;
}

.medication-name {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 価格詳細アコーディオン */
.price-detail-feature {
    margin: 15px 0;
}

.price-details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.price-details-summary {
    padding: 12px 15px;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s;
}

.price-details-summary:hover {
    background: #ebebeb;
}

.summary-icon {
    margin-right: 8px;
}

.price-details[open] .price-details-summary {
    background: #e8e8e8;
    border-bottom: 1px solid #ddd;
}

.price-details-content {
    padding: 15px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.8;
}

/* メイン説明文 */
.main-description {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 12px 0;
    line-height: 1.7;
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .price-details-content {
        font-size: 13px;
    }
}

/* EDクリニックカード */
.ed-clinic-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

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

/* おすすめバッジ */
.recommend-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #ff4757;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* カードヘッダー */
.card-header {
    margin-bottom: 15px;
}

.clinic-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clinic-number {
    color: #ff6b6b;
    font-size: 16px;
}

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

.clinic-title a:hover {
    color: #007bff;
}

/* サービスタグ */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.tag-today {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.tag-online {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffb74d;
}

.tag-nationwide {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* クリニック情報グリッド */
.clinic-info-grid {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 30px;
    font-size: 16px;
}

.info-text {
    flex: 1;
    font-size: 14px;
    color: #555;
}

.info-text a {
    color: #007bff;
    text-decoration: none;
}

.stars {
    color: #ffa500;
    font-size: 16px;
    letter-spacing: 2px;
}

/* 価格セクション */
.price-section {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.price-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #333;
}

.price-list {
    display: grid;
    gap: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
}

.drug-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
}

/* 診療時間セクション */
.schedule-section {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.schedule-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.schedule-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.schedule-days {
    font-size: 14px;
    color: #666;
}

.schedule-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.dot.filled {
    background: #4caf50;
    color: white;
}

.dot.empty {
    background: #ddd;
    color: #999;
}

.schedule-time {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 8px;
}

/* カードフッター */
.card-footer {
    text-align: right;
}

.detail-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.detail-link:hover {
    background: #e3f2fd;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ed-clinic-card {
        padding: 15px;
    }
    
    .service-tags {
        gap: 5px;
    }
    
    .tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .schedule-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dot {
        width: 15px;
        height: 15px;
        font-size: 10px;
    }
}

/* EDクリニック一覧セクション */
.clinic-list {
    margin: 40px 0;
}

.section-title {
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
    color: #333;
}

/* おすすめクリニックグリッド */
.featured-clinics-container {
    margin-bottom: 50px;
}

.featured-clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.featured-clinic-card {
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clinic-rank {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* バッジセクション */
.clinic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.badge-diagnosis {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-online {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffb74d;
}

.badge-weekend {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* クリニック情報 */
.clinic-info-compact {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .icon {
    width: 30px;
    font-size: 16px;
}

.phone-link {
    color: #007bff;
    text-decoration: none;
}

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

/* ED治療薬価格 */
.drug-price-section {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.price-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #333;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.price-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.drug-name {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.drug-price {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
}

/* 診療時間テーブル */
.schedule-table-compact {
    margin-bottom: 20px;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.schedule-table th,
.schedule-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.schedule-table th {
    background: #f5f5f5;
    font-weight: normal;
}

.schedule-table .weekend {
    background: #fff3e0;
}

.schedule-table .available {
    color: #4caf50;
    font-weight: bold;
}

.time-label {
    font-weight: 500;
    background: #f9f9f9;
}

/* 詳細ボタン */
.detail-button-featured {
    display: block;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.detail-button-featured:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 通常のクリニックカード */
.clinic-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

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

.clinic-header {
    margin-bottom: 15px;
}

.clinic-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

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

.clinic-name a:hover {
    color: #007bff;
}

/* クリニック説明 */
.main-description {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 12px 0;
    line-height: 1.7;
    font-size: 14px;
}

/* ED治療薬価格（通常カード） */
.ed-medication-prices {
    background: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.price-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.price-item.viagra {
    border-top: 3px solid #0066cc;
}

.price-item.cialis {
    border-top: 3px solid #ffa500;
}

.price-item.levitra {
    border-top: 3px solid #ff4444;
}

.medication-name {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

/* 価格詳細アコーディオン */
.price-detail-feature {
    margin: 15px 0;
}

.price-details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.price-details-summary {
    padding: 12px 15px;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s;
}

.price-details-summary:hover {
    background: #ebebeb;
}

.summary-icon {
    margin-right: 8px;
}

.price-details[open] .price-details-summary {
    background: #e8e8e8;
    border-bottom: 1px solid #ddd;
}

.price-details-content {
    padding: 15px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.8;
}

/* クリニック情報 */
.clinic-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

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

.info-icon {
    width: 30px;
    font-size: 16px;
}

.booking-stars {
    color: #ffa500;
    font-size: 16px;
    letter-spacing: 2px;
}

.star.filled {
    color: #ffa500;
}

.star {
    color: #ddd;
}

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

.detail-button,
.official-button {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.detail-button {
    background: #007bff;
    color: white;
}

.detail-button:hover {
    background: #0056b3;
}

.official-button {
    background: #28a745;
    color: white;
}

.official-button:hover {
    background: #218838;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-link.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .featured-clinics-grid {
        grid-template-columns: 1fr;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .clinic-action {
        flex-direction: column;
    }
    
    .schedule-table {
        font-size: 11px;
    }
}


/* ED治療の流れ セクション装飾 */
.treatment-flow-wrapper {
    margin: 40px 0;
}

.flow-introduction {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #4a90e2;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.flow-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.flow-intro-text .highlight {
    background: linear-gradient(transparent 60%, #ffd700 60%);
    font-weight: 600;
}

.flow-intro-text .time-highlight {
    color: #e74c3c;
    font-weight: bold;
}

.flow-intro-text .medicine-highlight {
    color: #27ae60;
    font-weight: bold;
}

.flow-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.flow-main-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.flow-main-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    border-radius: 2px;
}

.flow-list-enhanced {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flow-item {
    position: relative;
    padding: 25px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.flow-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
}

.flow-item:not(:last-child):after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #cbd5e0;
}

.flow-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.flow-number {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
}

.flow-title {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.flow-content p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}

.flow-time {
    display: inline-block;
    background: #e8f4fd;
    color: #4a90e2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.flow-summary {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 10px;
    border: 1px solid #b8d4f1;
}

.summary-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
}

.internal-link {
    color: #4a90e2;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.internal-link:hover {
    border-bottom-color: #4a90e2;
}

/* FAQ セクション装飾 */
.faq-wrapper {
    margin: 40px 0;
}

.faq-introduction {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-left: 4px solid #f39c12;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.faq-intro-text .emphasis {
    color: #e67e22;
    font-weight: bold;
}

.faq-container-enhanced {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item:hover {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    margin: -15px -15px 20px -15px;
}

.faq-question {
    font-size: 17px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.a-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
    font-size: 16px;
}

.faq-question .keyword {
    color: #4a90e2;
    background: #e8f4fd;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

.faq-answer {
    padding-left: 42px;
    line-height: 1.7;
    color: #555;
}

.free-badge,
.time-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    margin: 0 4px;
}

.time-badge {
    background: #e74c3c;
}

.faq-cta {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 10px;
    text-align: center;
}

.cta-text {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.cta-link {
    display: inline-block;
    margin-top: 10px;
    color: #4a90e2;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-link:hover {
    transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .flow-container,
    .faq-container-enhanced {
        padding: 20px 15px;
    }
    
    .flow-item {
        padding: 20px 15px;
    }
    
    .faq-question {
        font-size: 15px;
    }
    
    .q-icon,
    .a-icon {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

/* ED治療クリニック比較表（レスポンシブ対応） */
/* ED治療クリニック比較表（スクロール対応改良版） */
/* ED治療クリニック比較表（はみ出し修正版） */
.ed-comparison-section {
    margin: 40px 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.comparison-main-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    padding: 0 20px;
}

.comparison-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 20px;
}

.ed-table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    margin: 0 20px;
    overflow: hidden; /* 外側のコンテナもoverflow: hiddenに */
}

.ed-table-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%; /* 最大幅を100%に制限 */
}

/* スクロールバー */
.ed-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.ed-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ed-table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.ed-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.ed-comparison-table {
    width: max-content; /* widthをmax-contentに変更 */
    min-width: 1000px; /* 最小幅を少し小さく */
    border-collapse: collapse;
}

/* ヘッダー */
.ed-comparison-table thead {
    background: linear-gradient(135deg, #5b7dbd 0%, #4a6ba8 100%);
}

.ed-comparison-table thead th {
    padding: 12px 10px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.ed-comparison-table thead th:first-child {
    width: 90px;  /* 110px → 90px に変更 */
    min-width: 90px;  /* 110px → 90px に変更 */
    position: sticky;
    left: 0;
    z-index: 3;
    background: #4a5f8f;
}


.recommended-badge {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-bottom: 4px;
}

.clinic-name-header {
    font-size: 12px;
    line-height: 1.3;
}

/* ボディ */
.ed-comparison-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.ed-comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.ed-comparison-table tbody td {
    border-right: 1px solid #e9ecef;
}

.ed-comparison-table tbody td:last-child {
    border-right: none;
}

.ed-comparison-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f4f6f9;
    width: 90px;  /* 110px → 90px に変更 */
    min-width: 90px;  /* 110px → 90px に変更 */
}

.label-cell {
    background: #f4f6f9;
    font-weight: 600;
    font-size: 12px;  /* 13px → 12px に少し小さく */
    padding: 12px 8px;  /* 左右のパディングを10px → 8px に */
    text-align: left;
    color: #2c3e50;
    border-right: 1px solid #dee2e6;
    white-space: nowrap;
}

.label-sub {
    display: block;
    font-size: 10px;  /* 11px → 10px に */
    color: #6c757d;
    font-weight: normal;
    margin-top: 2px;
}

.data-cell {
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap;
}

/* 薬リスト */
.drug-list {
    font-size: 12px;
    line-height: 1.5;
    color: #495057;
    white-space: normal; /* 薬リストは改行可能に */
}

/* 価格 */
.price-cell .price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
}

.price-cell .price.highlight {
    color: #ff6b35;
    font-size: 16px;
}

/* 初診料 */
.fee-free {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.fee-na {
    color: #adb5bd;
    font-size: 16px;
}

/* オンライン診療 */
.status-available {
    color: #28a745;
    font-size: 18px;
}

.status-unavailable {
    color: #dc3545;
    font-size: 16px;
}

/* ボタン */
.btn-site {
    display: inline-block;
    padding: 6px 14px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-site:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-recommended {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
}

.btn-recommended:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
}

/* スクロールヒント */
.table-scroll-hint {
    text-align: center;
    padding: 10px;
    color: #999;
    font-size: 12px;
}

/* 注記 */
.table-note {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

.table-note p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .ed-comparison-section {
        margin: 30px 0;
    }
    
    .ed-table-container {
        margin: 0 10px;
        border-radius: 0;
    }
    
    .comparison-main-title {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .comparison-subtitle {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .ed-comparison-table {
        min-width: 700px;
    }
    
    .ed-comparison-table thead th,
    .ed-comparison-table tbody td {
        padding: 10px 8px;
        font-size: 11px;
    }
	    .ed-comparison-table thead th:first-child,
    .ed-comparison-table tbody td:first-child {
        width: 80px;  /* モバイルではさらに小さく */
        min-width: 80px;
    }
    
    
   .label-cell {
        font-size: 11px;
        padding: 10px 6px;  /* パディングも調整 */
    }
    
    .btn-site {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* SANGOテーマとの競合対策 */
.container .ed-comparison-section {
    max-width: none;
}

.container .ed-table-container {
    max-width: 100%;
}

/* 親要素のオーバーフロー対策 */
.entry-content .ed-comparison-section,
.page-forefront .ed-comparison-section {
    overflow: visible;
}


/* ED治療クリニックの選び方セクション */
.ed-clinic-selection-guide {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.guide-title {
    text-align: center;
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.guide-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
}

.title-icon {
    margin-right: 10px;
}

.guide-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.guide-intro p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.selection-points {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.point-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.point-number {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.point-content {
    padding: 25px 30px;
    flex: 1;
}

.point-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.point-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.point-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.point-checklist li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.point-checklist li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.guide-summary {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #4a90e2;
}

.summary-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.summary-text {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ed-clinic-selection-guide {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .guide-title {
        font-size: 20px;
    }
    
    .point-card {
        flex-direction: column;
    }
    
    .point-number {
        min-width: auto;
        padding: 20px;
        font-size: 20px;
    }
    
    .point-content {
        padding: 20px;
    }
    
    .point-title {
        font-size: 18px;
    }
    
    .guide-summary {
        padding: 20px;
    }
}