/*
Theme Name: 関西ペットナビ
Theme URI: https://kansai-pet-navi.com
Author: 関西ペットナビ
Description: 関西エリアのペットホテル・トリミングサロン・動物病院比較サイト専用テーマ
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@700;800&display=swap');

/* ===== CSS変数 ===== */
:root {
  --primary: #1A6B4A;
  --primary-l: #2D8F63;
  --primary-pale: #E6F5EE;
  --accent: #E8622A;
  --accent-l: #F08255;
  --gold: #D4A017;
  --surface: #fff;
  --bg: #F5F8F6;
  --text: #1A2B22;
  --muted: #5A7A68;
  --border: #D0E4D8;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(26,107,74,0.09);
  --shadow-h: 0 8px 32px rgba(26,107,74,0.15);
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-l); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }

/* ===== レイアウト ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヘッダー ===== */
#site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.site-logo:hover { color: #fff; opacity: 0.9; }

/* ナビゲーション：シンプル3項目 */
.global-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.nav-icon { font-size: 15px; }

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(130deg, var(--primary) 0%, var(--primary-l) 100%);
  padding: 44px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.8px;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 40px);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero h1 em { color: #A8DFBF; font-style: normal; }

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stat {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
}

.stat-n {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  display: block;
}

.stat-l { font-size: 11px; color: rgba(255,255,255,0.75); }

/* ===== 検索ボックス：階層型エリア選択 ===== */
.search-wrap {
  max-width: 720px;
  margin: -26px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.search-box {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 32px rgba(26,107,74,0.18);
  border: 1.5px solid var(--border);
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-row-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  min-width: 60px;
}

.search-divider-h {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ジャンル選択タブ */
.genre-tabs { display: flex; gap: 6px; }

.genre-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.16s;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.genre-tab:hover {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary);
}

.genre-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.genre-icon { font-size: 15px; }

/* エリア選択：階層型 */
.area-selects {
  display: flex;
  gap: 8px;
  flex: 1;
  align-items: center;
}

.area-selects select {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color 0.16s;
}

.area-selects select:focus { border-color: var(--primary); }

.area-arrow { color: var(--muted); font-size: 14px; flex-shrink: 0; }

.search-keyword {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color 0.16s;
}

.search-keyword:focus { border-color: var(--primary); }

.search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.18s;
}

.search-btn:hover { background: #c8501e; }

/* ===== パンくず ===== */
.breadcrumb {
  max-width: 1000px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb a { color: var(--primary); }

/* ===== ペットカテゴリタブ ===== */
.cat-section {
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  min-width: 80px;
  transition: all 0.18s;
}

.cat-tab:hover,
.cat-tab.active {
  border-color: var(--primary);
  background: var(--primary-pale);
}

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

.cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.cat-tab.active .cat-name,
.cat-tab:hover .cat-name { color: var(--primary); }

.cat-count {
  font-size: 10px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 20px;
  padding: 1px 8px;
}

.cat-tab.active .cat-count {
  background: var(--primary);
  color: #fff;
}

/* ===== フィルターチップ ===== */
.filter-section {
  max-width: 1000px;
  margin: 18px auto 0;
  padding: 0 20px;
}

.chips { display: flex; gap: 7px; flex-wrap: wrap; }

.chip {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
  color: var(--muted);
  font-family: 'Noto Sans JP', sans-serif;
}

.chip:hover,
.chip.active {
  background: var(--primary-pale);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* ===== セクション ===== */
.section {
  max-width: 1000px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.sec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.sec-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
}

.sec-count { font-size: 12px; color: var(--muted); }

/* ===== 特集枠セクション ===== */
.featured-section {
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.featured-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}

.featured-label {
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.featured-note {
  font-size: 11px;
  color: var(--muted);
}

/* 特集カード */
.featured-card {
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  display: grid;
  grid-template-columns: 180px 1fr 155px;
  box-shadow: 0 4px 20px rgba(212,160,23,0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212,160,23,0.22);
}

.featured-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 0 0 8px;
  z-index: 6;
  letter-spacing: 0.5px;
}

/* ===== ホテルカード（通常・順位なし） ===== */
.cards { display: flex; flex-direction: column; gap: 14px; }

.hotel-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: grid;
  grid-template-columns: 180px 1fr 155px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-h);
}

/* カード画像エリア */
.card-image {
  background: var(--primary-pale);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

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

.card-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.card-image-placeholder span:first-child { font-size: 42px; }

.card-image-placeholder span:last-child {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.7;
}

/* カード本文 */
.card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  line-height: 1.25;
}

.card-area { font-size: 12px; color: var(--muted); }

.card-stars { display: flex; align-items: center; gap: 3px; }
.star { color: var(--gold); font-size: 13px; }
.star-off { color: #ddd; font-size: 13px; }
.star-score { font-weight: 700; font-size: 13px; margin-left: 3px; }
.review-count { font-size: 11px; color: var(--muted); }

.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.card-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.tag-green { background: #E6F5EE; color: #1A6B4A; }
.tag-orange { background: #FCEEE8; color: #C04A1A; }
.tag-blue { background: #E8F2FC; color: #1A5A9A; }
.tag-purple { background: #F0EBFC; color: #5A2AB0; }

.card-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.feat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.feat.ok { color: var(--primary); font-weight: 600; }
.feat.ng { color: #ccc; text-decoration: line-through; }

.card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* カード右側 */
.card-right {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  border-left: 1.5px solid var(--border);
}

.price-label { font-size: 10px; color: var(--muted); text-align: right; }

.price-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  text-align: right;
  line-height: 1.1;
}

.price-num small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price-note { font-size: 10px; color: var(--muted); text-align: right; }

.btn-detail {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: block;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.16s;
}

.btn-detail:hover { background: var(--primary-l); color: #fff; }

.btn-inquiry {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: block;
  margin-top: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.16s;
}

.btn-inquiry:hover { background: var(--primary-pale); }

/* ===== 記事本文 ===== */
.entry-content { line-height: 1.9; }

.entry-content h2 {
  font-size: 20px;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  background: var(--primary-pale);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 36px 0 16px;
}

.entry-content h3 {
  font-size: 17px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  margin: 28px 0 12px;
  color: var(--primary);
}

.entry-content p { margin-bottom: 1em; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}

.entry-content table th,
.entry-content table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.entry-content table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.entry-content table tr:nth-child(even) td { background: #FAFCFB; }

/* ===== ポイントグリッド ===== */
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.point-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.18s;
}

.point-card:hover { transform: translateY(-2px); }
.point-icon { font-size: 26px; }
.point-title { font-weight: 700; font-size: 13px; }
.point-desc { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ===== フッター ===== */
#site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 40px 20px;
  margin-top: 72px;
  font-size: 13px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-decoration: none;
}

.footer-nav a:hover { color: #fff; }
.copyright { font-size: 11px; opacity: 0.5; margin-top: 16px; }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .hotel-card,
  .featured-card {
    grid-template-columns: 1fr;
  }
  .card-image { min-height: 200px; }
  .card-right {
    border-left: none;
    border-top: 1.5px solid var(--border);
    align-items: stretch;
  }
  .price-num,
  .price-label,
  .price-note { text-align: left; }
  .global-nav { display: none; }
  .card-features { grid-template-columns: repeat(2, 1fr); }
  .genre-tabs { flex-wrap: wrap; }
  .area-selects { flex-direction: column; }
}
