/* =============================================
   クリニック個別ページ用CSS
   女性向けクリーンデザイン - モバイルファースト
   ============================================= */

/* 既存のベーススタイルを継承することを前提 */

/* =============================================
   クリニック詳細
   ============================================= */
.hospital-detail {
  max-width: 900px;
  margin: 0 auto;
}

/* クリニックヘッダー */
.hospital-detail .hospital-header {
  background: var(--white);
  padding: 24px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hospital-detail .hospital-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* タグリスト（診療科目など） */
.hospital-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.hospital-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* =============================================
   基本情報セクション
   ============================================= */
.basic-info {
  background: var(--white);
  padding: 24px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.basic-info h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
}

.basic-info h2::before {
  content: "📋";
  margin-right: 8px;
}

.info-list {
  list-style: none;
}

.info-list dt {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--border-color);
}

.info-list dt::before {
  margin-right: 8px;
  font-size: 18px;
}

.info-list dt:has(+ dd:contains("住所"))::before {
  content: "📍";
}

.info-list dd {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 26px;
}

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

/* 診療時間テーブル */
.schedule-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-table th,
.schedule-table td {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.schedule-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.schedule-table td {
  background: var(--white);
}

.schedule-table .closed {
  color: var(--text-light);
  background: var(--background);
}

/* 公式サイトリンク */
.official-link,
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
}

.official-link:hover,
.detail-link:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.official-link::after {
  content: "🔗";
  font-size: 16px;
}

/* =============================================
   特徴セクション
   ============================================= */
.features {
  background: var(--white);
  padding: 24px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.features h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
}

.features h2::before {
  content: "✨";
  margin-right: 8px;
}

.features-content {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
}

.features-content ul,
.features-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.features-content li {
  margin-bottom: 8px;
}

/* =============================================
   エリア情報セクション
   ============================================= */
.area-info {
  background: var(--white);
  padding: 24px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.area-info h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
}

.area-info h2::before {
  content: "📍";
  margin-right: 8px;
}

.area-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-tags li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--secondary-light);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
}

.area-tags li a:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: scale(1.05);
}

/* =============================================
   口コミセクション
   ============================================= */
.reviews {
  background: var(--white);
  padding: 24px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.reviews h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
}

.reviews h2::before {
  content: "💬";
  margin-right: 8px;
}

/* コメントフォーム */
.comment-form {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.comment-form-rating {
  margin-bottom: 16px;
}

.comment-form-rating label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.comment-form-rating select {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background: var(--white);
  transition: border-color 0.3s;
}

.comment-form-rating select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-form .submit {
  margin-top: 16px;
}

.comment-form input[type="submit"] {
  padding: 12px 32px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.comment-form input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* コメントリスト */
.comment-list {
  list-style: none;
}

.comment {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.comment-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
}

.comment-author .fn {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 8px;
}

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

.comment-rating {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--warning);
}

.comment-content {
  color: var(--text-primary);
  line-height: 1.8;
}

/* =============================================
   関連病院セクション
   ============================================= */
.related-hospitals {
  background: var(--background);
  padding: 32px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
}

.related-hospitals h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.related-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.related-list li {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.related-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-list a {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: var(--text-primary);
}

.related-list h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.related-list .address {
  font-size: 14px;
  color: var(--text-secondary);
}

/* =============================================
   CTA（コールトゥアクション）ボタン
   ============================================= */
.cta-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  gap: 12px;
  z-index: 100;
}

.cta-button {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
}

.cta-button.primary {
  background: var(--primary-color);
  color: var(--white);
}

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

.cta-button.secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* CTAボタン分のスペースを確保 */
body {
  padding-bottom: 80px;
}

/* =============================================
   アクセスマップ（将来的な実装用）
   ============================================= */
.access-map {
  background: var(--white);
  padding: 24px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.access-map h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
}

.access-map h2::before {
  content: "🗺️";
  margin-right: 8px;
}

.map-container {
  width: 100%;
  height: 300px;
  background: var(--background);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

/* =============================================
   レスポンシブ - タブレット以上
   ============================================= */
@media (min-width: 768px) {
  .hospital-detail .hospital-header {
    padding: 32px;
  }
  
  .hospital-detail .hospital-title {
    font-size: 36px;
  }
  
  .basic-info,
  .features,
  .area-info,
  .reviews,
  .related-hospitals {
    padding: 32px;
  }
  
  .info-list dd {
    font-size: 18px;
    padding-left: 32px;
  }
  
  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-buttons {
    position: static;
    background: transparent;
    box-shadow: none;
    max-width: 600px;
    margin: 32px auto;
    padding: 0;
  }
  
  body {
    padding-bottom: 0;
  }
}

/* =============================================
   レスポンシブ - デスクトップ
   ============================================= */
@media (min-width: 1024px) {
  .hospital-detail {
    max-width: 1000px;
  }
  
  .related-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* 2カラムレイアウト */
  .hospital-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
  }
  
  .hospital-detail-main {
    grid-column: 1;
  }
  
  .hospital-detail-sidebar {
    grid-column: 2;
    position: sticky;
    top: 24px;
  }
}

/* =============================================
   印刷用スタイル
   ============================================= */
@media print {
  .cta-buttons,
  .reviews,
  .related-hospitals {
    display: none;
  }
  
  .hospital-detail {
    max-width: 100%;
  }
  
  * {
    box-shadow: none !important;
  }
}



/* =============================================
   診療時間テーブル用CSS
   女性向けクリーンデザイン
   ============================================= */




/* =============================================
   診療時間テーブル用CSS
   青色基調・シンプルデザイン
   ============================================= */

/* カラー定義（青色基調） */
:root {
  --schedule-primary: #2196F3;
  --schedule-primary-light: #E3F2FD;
  --schedule-primary-dark: #1976D2;
  --schedule-accent: #03A9F4;
  --schedule-bg: #F5F9FF;
  --schedule-border: #B3D4FC;
  --schedule-text: #0D47A1;
  --schedule-available: #4CAF50;
  --schedule-unavailable: #E0E0E0;
}

/* 診療時間テーブルのコンテナ */
.schedule-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
  padding: 20px;
  border: 1px solid var(--schedule-border);
}

/* テーブル基本スタイル */
.hour_table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--schedule-border);
}

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

.hour_table thead th,
.hour_table thead td {
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hour_table thead th:first-child {
  background: var(--schedule-primary-dark);
}

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

/* 土曜日 */
.hour_table thead td.hour_sat {
  background: var(--schedule-accent);
}

/* 日曜・祝日 */
.hour_table thead td.hour_sun,
.hour_table thead td.hour_hol {
  background: #FF5252;
}

/* 診療時間の列（左側） */
.hour_table tbody th {
  background: var(--schedule-bg);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--schedule-text);
  font-size: 14px;
  border-right: 2px solid var(--schedule-border);
  border-bottom: 1px solid var(--schedule-border);
  white-space: nowrap;
}

/* データセル */
.hour_table tbody td {
  padding: 14px 12px;
  text-align: center;
  background: var(--white);
  border-right: 1px solid var(--schedule-border);
  border-bottom: 1px solid var(--schedule-border);
  position: relative;
  transition: all 0.2s ease;
  height: 48px;
}

/* 診療可能マーク - シンプルな丸 */
.hour_mark_normal {
  background: var(--schedule-available) !important;
  position: relative;
}

.hour_mark_normal::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--white);
  border-radius: 50%;
  display: block;
}

.hour_mark_normal::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--schedule-available);
  font-size: 16px;
  font-weight: bold;
  z-index: 1;
}

/* 診療不可 - シンプルな横線 */
.hour_mark_none {
  background: var(--schedule-unavailable) !important;
  color: #999;
}

.hour_mark_none::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 2px;
  background: #999;
  display: block;
}

/* 土曜日の列 */
.hour_table tbody td.hour_sat {
  background: #E1F5FE;
}

.hour_table tbody td.hour_sat.hour_mark_none {
  background: #F5F5F5 !important;
}

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

.hour_table tbody td.hour_sun.hour_mark_none,
.hour_table tbody td.hour_hol.hour_mark_none {
  background: #F5F5F5 !important;
}

/* ホバー効果 */
.hour_table tbody tr:hover {
  background: rgba(33, 150, 243, 0.03);
}

.hour_table tbody td.hour_mark_normal:hover {
  background: #43A047 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  z-index: 1;
}

/* 凡例を追加 */
.schedule-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--schedule-border);
  font-size: 14px;
}

.schedule-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.schedule-legend-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  position: relative;
}

.schedule-legend-mark.available {
  background: var(--schedule-available);
}

.schedule-legend-mark.available::before {
  content: "✓";
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
}

.schedule-legend-mark.unavailable {
  background: var(--schedule-unavailable);
}

.schedule-legend-mark.unavailable::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 2px;
  background: #999;
}

/* レスポンシブ対応 - スクロールヒント */
@media (max-width: 767px) {
  .schedule-wrapper {
    position: relative;
    padding: 16px 10px;
  }
  
  .schedule-wrapper::after {
    content: "◀ 横にスクロール ▶";
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 11px;
    color: var(--schedule-primary);
    background: var(--schedule-primary-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
  }
  
  .hour_table {
    font-size: 13px;
  }
  
  .hour_table tbody td {
    height: 44px;
  }
}

/* 診療時間セクション全体のスタイル */
.schedule-section {
  margin-bottom: 32px;
}

.schedule-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--schedule-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-section h3::before {
  content: "🕐";
  font-size: 20px;
}

/* 休診日情報 */
.closed-days-info {
  background: var(--schedule-primary-light);
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--schedule-text);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--schedule-border);
}

.closed-days-info::before {
  content: "ℹ️";
  font-size: 18px;
}

/* アニメーション */
@keyframes checkmark {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.hour_mark_normal::after {
  animation: checkmark 0.3s ease-out;
}

/* 印刷用スタイル */
@media print {
  .schedule-wrapper {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
  
  .hour_table {
    border: 2px solid #000;
  }
  
  .hour_table thead tr {
    background: #E3F2FD !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .hour_table thead th,
  .hour_table thead td {
    color: #000 !important;
    border: 1px solid #000;
  }
  
  .hour_mark_normal {
    background: #4CAF50 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .hour_mark_normal::before,
  .hour_mark_normal::after {
    display: none;
  }
  
  .hour_mark_normal::after {
    content: "○";
    position: static;
    color: #000;
  }
  
  .schedule-wrapper::after {
    display: none;
  }
}

/* タブレット以上のレスポンシブ */
@media (min-width: 768px) {
  .hour_table {
    font-size: 16px;
  }
  
  .hour_table thead th,
  .hour_table thead td {
    padding: 18px 16px;
    font-size: 16px;
  }
  
  .hour_table tbody th {
    padding: 16px 20px;
    font-size: 15px;
  }
  
  .hour_table tbody td {
    padding: 16px;
    height: 54px;
  }
  
  .hour_mark_normal::before {
    width: 28px;
    height: 28px;
  }
  
  .hour_mark_normal::after {
    font-size: 18px;
  }
  
  .schedule-wrapper {
    padding: 32px;
  }
}

/* アクセシビリティ - フォーカス時 */
.hour_table tbody td:focus {
  outline: 3px solid var(--schedule-primary);
  outline-offset: 2px;
}

/* アフターピル情報の強調表示 */
.highlight-dt {
    background: var(--primary-light);
    padding: 8px 12px;
    margin: 16px -12px 8px;
    border-radius: 4px;
    color: var(--primary-dark);
    font-weight: 600;
}

.highlight-dd {
    background: rgba(233, 30, 99, 0.05);
    padding: 12px;
    margin: 0 -12px 16px;
    border-radius: 4px;
}

.afterpill-info {
    margin-bottom: 8px;
}

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

.afterpill-info strong {
    color: var(--primary-dark);
    margin-right: 8px;
}

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


/* 口コミセクション */
.rating-summary {
    background: var(--primary-light);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 32px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-dark);
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 24px;
}

.star {
    color: #ddd;
}

.star.filled {
    color: #FFB800;
}

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

/* 口コミアイテム */
.review-item {
    background: var(--background);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
}

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

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

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

.review-rating {
    display: flex;
    gap: 2px;
    font-size: 16px;
    margin-bottom: 4px;
}

.review-date {
    font-size: 14px;
    color: var(--text-light);
}

.treatment-tag,
.wait-time-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--white);
    border-radius: 16px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 12px;
}

.treatment-tag {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.wait-time-tag {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.review-text {
    line-height: 1.8;
    color: var(--text-primary);
}