/* =====================================================================
   歯科5サイト 共通モダンデザイン（2026 リニューアル）
   サイト別のアクセント色は :root の CSS 変数で切り替え
   既存ロゴは .site-logo img で参照（sites/{id}/assets/img/logo.jpg）
   ===================================================================== */

:root {
  --accent: #34495e;          /* デフォルト: 歯科テーマの深緑 */
  --accent-soft: #34495e18;
  --accent-dark: #34495ecc;
  --text: #23303a;
  --text-muted: #5c6b76;
  --bg: #f7f9fa;
  --card: #ffffff;
  --border: #e2e8ed;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(15, 40, 60, .07);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 14px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-logo img { height: 42px; width: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.site-title { font-size: 20px; font-weight: 700; }
.site-title a { color: #fff; }
.site-title a:hover { text-decoration: none; opacity: .9; }

.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] {
  border: none; border-radius: 20px; padding: 8px 16px; width: 220px;
  font-size: 14px; outline: none;
}
.search-form button {
  border: none; border-radius: 20px; padding: 8px 18px;
  background: #fff; color: var(--accent-dark); font-weight: 700; cursor: pointer;
}

/* ---------- メイン ---------- */
main { padding: 24px 0 48px; }

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 24px; margin-bottom: 8px; color: var(--accent-dark); }
.hero p { color: var(--text-muted); margin-bottom: 12px; }
.hero .btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: 24px; font-weight: 700;
}
.hero .btn:hover { background: var(--accent-dark); text-decoration: none; }

section { margin-bottom: 24px; }
section h2 {
  font-size: 19px; color: var(--accent-dark);
  border-left: 4px solid var(--accent);
  padding-left: 10px; margin-bottom: 14px;
}
section h3 { font-size: 16px; margin: 14px 0 8px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}

/* ---------- カテゴリ一覧 ---------- */
.category-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.category-list li a {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  padding: 6px 14px; border-radius: 18px; font-size: 14px;
}
.category-list li a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- ランキング・一覧 ---------- */
.rankings ol, .facility-list { list-style: none; }
.rankings li, .facility-list li {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.rank-num {
  background: var(--accent); color: #fff; font-weight: 700;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.stars { color: #f5a623; letter-spacing: 2px; }

/* ---------- 施設詳細 ---------- */
.facility-header { margin-bottom: 16px; }
.facility-header h1 { font-size: 22px; color: var(--accent-dark); }
.facility-meta { color: var(--text-muted); margin-top: 6px; }
.facility-meta dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin-top: 10px; }
.facility-meta dt { font-weight: 700; color: var(--text); }
.facility-meta dd { margin: 0; }

.review-list { list-style: none; }
.review-list li { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.review-list .rv-title { font-weight: 700; margin-bottom: 4px; }
.review-list .rv-date { color: var(--text-muted); font-size: 13px; }

/* ---------- 記事 ---------- */
.article-list { list-style: none; }
.article-list li { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.article-list time { color: var(--text-muted); font-size: 13px; display: block; }
.article-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.article-body img { max-width: 100%; height: auto; }

/* ---------- パンくず ---------- */
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 6px; }

/* ---------- フォーム ---------- */
.review-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.review-form label { display: block; font-weight: 700; margin: 12px 0 4px; }
.review-form input[type="text"], .review-form select, .review-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 14px; font-family: var(--font);
}
.review-form button {
  margin-top: 14px; background: var(--accent); color: #fff; border: none;
  padding: 10px 28px; border-radius: 24px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.review-form button:hover { background: var(--accent-dark); }

/* ---------- 検索 ---------- */
.search-result-info { color: var(--text-muted); margin-bottom: 14px; }

/* ---------- フッター ---------- */
.site-footer {
  background: #1c2831; color: #9fb2bd;
  padding: 24px 0; text-align: center; font-size: 13px;
}

/* ---------- ページネーション ---------- */
.pagination { display: flex; gap: 8px; margin-top: 16px; }
.pagination a, .pagination span {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 12px; font-size: 14px;
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: stretch; }
  .search-form { width: 100%; }
  .search-form input[type="search"] { flex: 1; width: auto; }
  .facility-meta dl { grid-template-columns: 1fr; gap: 2px; }
}
