/* 腰ログ認定パートナー検索サイト 共通スタイル
   配色は腰ログのチラシと同じ:
   ネイビー #082653 / オレンジ #F05A28 / クリーム #FFFDF9 / 淡ブルー #DCE9F8, #EAF3FD */

:root {
  --navy: #082653;
  --navy-soft: #2c4a77;
  --orange: #F05A28;
  --orange-soft: #FFF1E8;
  --cream: #FFFDF9;
  --blue: #2B70C9;
  --panel: #EAF3FD;
  --line: #DCE9F8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(8, 38, 83, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

/* ── ヘッダー ─────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand-badge {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.brand-title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--panel);
  color: var(--navy);
}
@media (max-width: 640px) {
  /* 小さい画面ではメニューをブランド名の下に折り返し、見切れを防ぐ */
  .site-nav {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .site-nav a { padding: 4px 8px; }
}

/* ── 注意書きの帯 ─────────────────────── */
.notice-strip {
  background: var(--orange-soft);
  color: var(--navy);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 8px 16px;
  text-align: center;
}

/* ── レイアウト ───────────────────────── */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}
.lead {
  font-size: 14.5px;
  color: var(--navy-soft);
  margin: 4px 0 14px;
}

/* 検索ページ: モバイルは縦並び、広い画面は地図+一覧の2列 */
.finder {
  display: grid;
  gap: 16px;
}
@media (min-width: 920px) {
  .finder {
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
  }
  .map-col { position: sticky; top: 16px; }
}

/* ── 検索コントロール ─────────────────── */
.controls {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.controls-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.controls-row > * { flex: 1 1 180px; }
.text-input, .select-input {
  width: 100%;
  font-size: 16px; /* iOSの自動ズームを防ぐため16px以上にする */
  font-family: inherit;
  color: var(--navy);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.text-input:focus, .select-input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn:disabled { opacity: .5; cursor: default; }
.geo-note {
  font-size: 12px;
  color: var(--navy-soft);
}

/* ── 地図 ─────────────────────────────── */
#map {
  width: 100%;
  height: 46vh;
  min-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
@media (min-width: 920px) {
  #map { height: 66vh; }
}
.map-attribution-note {
  font-size: 11.5px;
  color: var(--navy-soft);
  margin-top: 6px;
}

/* ピン(全院共通デザイン・順位づけなし) */
.clinic-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--navy);
  border: 2.5px solid var(--white);
  box-shadow: 0 2px 6px rgba(8, 38, 83, .4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.clinic-pin::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  transform: rotate(45deg);
}
.user-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(43, 112, 201, .3);
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  color: var(--navy);
}
.popup-name { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.popup-place { font-size: 12.5px; color: var(--navy-soft); margin-bottom: 6px; }
.popup-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  padding: 5px 14px;
  text-decoration: none;
}

/* ── 一覧 ─────────────────────────────── */
.result-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.result-count { font-weight: 700; font-size: 15px; }
.result-order { font-size: 12px; color: var(--navy-soft); }
.clinic-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.clinic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.clinic-card a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.card-name { font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.card-distance {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--panel);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.card-place { font-size: 13.5px; color: var(--navy-soft); margin-top: 2px; }
.card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  font-size: 12px;
  background: var(--panel);
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 10px;
}
.chip-online {
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
}
.chip-sample {
  background: #f3f3f0;
  color: #6b6b64;
  font-weight: 700;
}
.card-more {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
}
.empty-state {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: var(--navy-soft);
  font-size: 14px;
}

/* ── 詳細ページ ───────────────────────── */
.back-link {
  display: inline-block;
  font-size: 13.5px;
  margin-bottom: 12px;
  color: var(--navy-soft);
  text-decoration: none;
}
.back-link:hover { color: var(--navy); }
.detail-header {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}
.partner-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}
.partner-mark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.detail-name { font-size: 22px; font-weight: 700; line-height: 1.4; }
.detail-director { font-size: 14.5px; color: var(--navy-soft); margin-top: 4px; }
.detail-place { font-size: 14px; margin-top: 8px; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.detail-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 920px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
}
.section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.section-card h2 {
  font-size: 15px;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 10px;
  margin-bottom: 10px;
}
.section-card p { font-size: 14.5px; }
.message-quote {
  background: var(--orange-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.photo-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table th {
  width: 7em;
  color: var(--navy-soft);
  font-weight: 700;
  white-space: nowrap;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
#detail-map {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.maplink-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sample-banner {
  background: #f3f3f0;
  color: #6b6b64;
  font-size: 13px;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* ── 文章ページ(制度・ポリシー) ───────── */
.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  max-width: 760px;
  margin: 0 auto;
}
.article h1 { font-size: 21px; line-height: 1.5; margin-bottom: 14px; }
.article h2 {
  font-size: 16px;
  border-left: 4px solid var(--orange);
  padding-left: 10px;
  margin: 22px 0 8px;
}
.article p, .article li { font-size: 14.5px; margin-bottom: 8px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 8px; }
.article .highlight {
  background: var(--panel);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ── フッター ─────────────────────────── */
.site-footer {
  margin-top: 32px;
  background: var(--navy);
  color: #dfe9f6;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 16px;
  font-size: 12.5px;
  line-height: 1.8;
}
.site-footer a { color: #ffffff; }
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-disclaimer { opacity: .85; }
