/*
 * サークルのページ（/circles/<ID>）と「サークルをさがす」（/circles?q=…）（アプリ 1.3.7。運営者の決定 2026-11-07「SEO対策もかねてサークルのページ
 * つくってほしい。検索機能もつけて」。Functions の siteCircles が作る。functions/src/site-circle-render.ts）。黒白のまま（ポップの配色にしない）。
 * - 共通の見た目は /styles.css、このページだけの見た目はこのファイル（/circle-pages.css）。どちらも版の付かない URL で読む（変えた直後は、CDN と
 *   ブラウザに前の CSS が最大1日残る。アイコンの大きさは img・svg の width・height でも決まるので、前の CSS でも崩れない）。styles.css を変えると
 *   公式サイトの全部のページの CSS の版（?v=）が変わるので、別のファイルにした。
 * - 幅 320px の画面でも横にはみ出さない（名前・説明は折り返す。探す欄は幅が足りなければボタンを下に回す）。
 * - パンくず（.breadcrumb）は地域ごとのページ・読みものと同じ見た目（公式サイトの枝 feature/site-release-132 の styles.css にもう同じ規則があれば、
 *   取り込むときもこちらに残してよい。同じ値）。
 */
.breadcrumb {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: inherit;
}

.circle-page h1,
.circle-search-page h1 {
  overflow-wrap: anywhere;
}

.circle-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 16px;
}

.circle-hero .circle-icon {
  flex: none;
  width: 88px;
  height: 88px;
}

.circle-hero h1 {
  margin: 0;
}

.circle-hero-text {
  min-width: 0;
}

.circle-kicker {
  margin: 0 0 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.circle-icon {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--background-element);
}

.circle-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  list-style: none;
}

.circle-facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0;
  overflow-wrap: anywhere;
}

.circle-fact-label {
  flex: none;
  min-width: 5.5em;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.circle-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--background-element);
  font-size: 14px;
}

.circle-description p {
  overflow-wrap: anywhere;
}

.circle-join,
.circle-more {
  margin-top: 32px;
}

.circle-note {
  margin-top: 32px;
}

.circle-search-form {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
}

.circle-search-form label {
  font-weight: 700;
}

.circle-search-form p {
  margin: 0;
}

.circle-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.circle-search-row input[type='search'] {
  flex: 1 1 14em;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.circle-search-row .button {
  flex: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.circle-search-status {
  font-weight: 700;
}

.circle-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}

.circle-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.circle-card:hover {
  border-color: var(--border-strong);
}

.circle-card .circle-icon {
  flex: none;
  width: 56px;
  height: 56px;
}

.circle-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.circle-card-name {
  font-weight: 700;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.circle-card-meta,
.circle-card-desc {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.circle-card-meta {
  font-weight: 700;
}

.circle-card-desc {
  color: var(--text-secondary);
}
