/*
Theme Name: 信州スポーツ整骨院ナビ
Theme URI: https://example.com
Author: スポーツ理学療法士監修
Description: 長野県のスポーツ整骨院比較サイト用WordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: shinshu-navi
*/

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

:root {
  --primary: #1a8fa0;
  --primary-light: #e8f7f9;
  --primary-mid: #c2eaf0;
  --accent: #2db88a;
  --accent-light: #e6f7f2;
  --text: #1a2332;
  --text-mid: #4a5568;
  --text-light: #8a9bb0;
  --white: #ffffff;
  --bg: #f7fafc;
  --border: #e2eaf2;
  --shadow: 0 2px 16px rgba(26,143,160,0.08);
  --shadow-card: 0 4px 24px rgba(26,143,160,0.10);
  --radius: 14px;
  --radius-sm: 8px;
}

* { 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;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 16px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  font-size: 12px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.site-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* ─── TRUST BADGE ─── */
.trust-banner {
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  border-bottom: 1px solid var(--primary-mid);
  padding: 8px 16px;
  text-align: center;
}

.trust-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.trust-icon { font-size: 16px; }

.trust-text {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* ─── HERO ─── */
.hero {
  background: var(--white);
  padding: 32px 16px 28px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.hero h1 span { color: var(--primary); }

.hero-lead {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 24px;
  text-align: center; 
}

.area-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.area-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.area-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}

.area-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  opacity: 0;
  transition: opacity 0.18s;
}

.area-btn:hover::before { opacity: 1; }
.area-btn:active { transform: scale(0.97); }

.area-btn-icon {
  font-size: 28px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.area-btn-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.area-btn-count {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.area-all-link {
  text-align: center;
  margin-top: 4px;
}

.area-all-link a {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
}

.area-all-link a:hover { color: var(--primary); text-decoration: underline; }

/* ─── SECTION COMMON ─── */
.site-section {
  padding: 28px 16px;
  max-width: 640px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* ─── RANKING ─── */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.rank-card:hover {
  box-shadow: 0 6px 28px rgba(26,143,160,0.15);
  border-color: var(--primary-mid);
}

.rank-badge {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  font-family: 'Noto Serif JP', serif;
}

.rank-1 { background: linear-gradient(135deg, #f6c94e, #e8a020); color: white; }
.rank-2 { background: linear-gradient(135deg, #c0c8d8, #8fa0b8); color: white; }
.rank-3 { background: linear-gradient(135deg, #d4a574, #b07848); color: white; }

.rank-info { flex: 1; }

.rank-area-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.rank-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-light);
}

.star-score {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f6a600;
  font-weight: 700;
  font-size: 13px;
}

.rank-arrow {
  color: var(--primary);
  font-size: 18px;
  align-self: center;
}

/* ─── SYMPTOM ─── */
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.symptom-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.symptom-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.symptom-icon { font-size: 28px; line-height: 1; }
.symptom-name { font-size: 13px; font-weight: 700; }
.symptom-sub { font-size: 10px; color: var(--text-light); }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 0 16px 28px;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  margin-bottom: 4px;
}

.cta-banner strong {
  color: white;
  font-size: 16px;
  display: block;
  margin-bottom: 14px;
}

.cta-btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
}

/* ─── DIVIDER ─── */
.section-divider {
  height: 8px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 28px 16px 40px;
  font-size: 12px;
  margin-top: 8px;
}

.footer-inner { max-width: 640px; margin: 0 auto; }

.footer-logo {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc { margin-bottom: 16px; line-height: 1.8; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links a:hover { color: white; }

.footer-copy { color: rgba(255,255,255,0.4); font-size: 11px; }

/* ─── 一般ページ・投稿共通 ─── */
.page-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px;
}

.page-wrap h1 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-mid);
}

.page-wrap h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

.page-wrap p { margin-bottom: 14px; color: var(--text-mid); }

/* ─── 整骨院カード（アーカイブ） ─── */
.clinic-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.clinic-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.clinic-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--primary-mid);
}

.clinic-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.clinic-card-meta {
  font-size: 12px;
  color: var(--text-light);
}

/* ─── お問い合わせ ─── */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  margin-bottom: 14px;
  background: var(--white);
}

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

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-form .submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: 'Noto Sans JP', sans-serif;
}
