/* ==========================================================================
   ぷいくま24時 SEASON3 - 共通テーマ（全ページで読み込む）
   カラートークン / ヘッダー / ヒーロー / コントロール / バッジ / フッター
   ========================================================================== */

:root {
  --bg: #fff8ee;
  --bg-panel: rgba(255, 253, 248, 0.92);
  --card-bg: #ffffff;
  --ink: #5b4630;
  --ink-soft: #a68b6c;
  --mint: #bfe8d2;
  --mint-deep: #5fb98f;
  --pink: #f7ccd3;
  --pink-deep: #e8859b;
  --gold: #f0be5c;
  --gold-deep: #d99f2e;
  --gold-pale: #fbe4b0;
  --sky: #bfe0f5;
  --sky-deep: #5fa8d0;
  --lavender: #ddcef5;
  --lavender-deep: #9d84c9;
  --line: #f3ddc4;
  --shadow-soft: 0 10px 24px -14px rgba(93, 70, 45, 0.28);
  --shadow-hover: 0 18px 32px -14px rgba(93, 70, 45, 0.35);
  --radius-lg: 22px;
  /* .site-header の実測高さ。JSで実測値に上書きされるまでのフォールバック値。
     ナビが2段に折り返す幅では、これを固定値のままにしないこと（.controls参照）。 */
  --header-height: 61px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 0 0 var(--line);
}

.site-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header__logo img { height: 40px; width: auto; }

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

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { background: rgba(191, 232, 210, 0.35); color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-deep), var(--mint-deep));
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 46px 20px 34px;
  text-align: center;
  background: linear-gradient(135deg, #ffe9ef 0%, #fef6e4 45%, #eaf7ef 100%);
  box-shadow: 0 2px 0 0 var(--line);
}

.hero::before,
.hero::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  opacity: 0.5;
  font-size: 1.4rem;
}
.hero::before { top: 18%; left: 8%; }
.hero::after { top: 30%; right: 10%; font-size: 1rem; }

.hero__logo {
  max-width: 380px;
  width: 74%;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 16px rgba(93, 70, 45, 0.22));
}

.hero__lead {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 480px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.85;
}

.hero__catch {
  position: relative;
  z-index: 1;
  margin: 16px auto 0;
  max-width: 460px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.8;
}
.hero__catch em { font-style: normal; color: var(--pink-deep); }

.hero__mascot {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 170px;
  transform: rotate(-4deg);
  pointer-events: none;
  filter: drop-shadow(0 12px 14px rgba(93, 70, 45, 0.25));
}

@media (max-width: 640px) {
  .hero__mascot { width: 108px; right: -16px; bottom: -12px; opacity: 0.85; }
}

/* ---------- controls (検索・絞り込みバー / メンバー一覧ページで使用) ---------- */

.controls {
  position: sticky;
  top: var(--header-height, 61px);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 0 0 var(--line);
}

.search-box {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
}
.search-box input::placeholder { color: var(--ink-soft); }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chip:hover { background: rgba(191, 232, 210, 0.35); }

.chip.is-active {
  background: linear-gradient(135deg, var(--mint-deep), var(--mint));
  border-color: var(--mint-deep);
  color: #21453a;
}

.chip--live.is-active {
  background: linear-gradient(135deg, var(--pink-deep), #ff9fae);
  border-color: var(--pink-deep);
  color: #fff;
}

.result-count { margin-left: auto; font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- badge（プラットフォームアイコン。メンバー/運営どちらでも使用） ---------- */

.badge {
  width: 32px;
  height: 32px;
  border-radius: 32%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.badge svg { width: 17px; height: 17px; }
.badge:hover { transform: scale(1.18) rotate(-8deg); box-shadow: var(--shadow-hover); }

.badge--x { background: linear-gradient(135deg, #333, #000); }
.badge--twitch { background: linear-gradient(135deg, #a970ff, #7b2ff7); }
.badge--youtube { background: linear-gradient(135deg, #ff5f5f, #e11d1d); }
.badge--kick { background: linear-gradient(135deg, #86ff4d, #3ddc0a); }
.badge--twicas { background: linear-gradient(135deg, #5cc4ff, #1b9de8); }
.badge--nico { background: linear-gradient(135deg, #6b7280, #374151); }
.badge--tiktok { background: linear-gradient(135deg, #ff0050, #00f2ea); }
.badge--web { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- section 共通見出し ---------- */

.section { max-width: 1200px; margin: 0 auto; padding: 54px 20px; }
.section + .section { padding-top: 10px; }

.section-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.section-title::before,
.section-title::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0.7;
}

.section-lead {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 30px 20px 50px;
  text-align: center;
  background: var(--bg-panel);
  box-shadow: 0 -2px 0 0 var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- 改行制御ユーティリティ ---------- */
/* <br class="br-sp"> : PCでは改行せず、SP(767px以下)のときだけ改行する。
   ブレークポイントはrule.cssのモバイル判定と合わせて767pxにしている。 */
br.br-sp {
  display: none;
}

/* <br class="br-pc"> : 逆にSPでは改行せず、PCのときだけ改行する（必要な場合用） */
br.br-pc {
  display: inline;
}

@media screen and (max-width: 767px) {
  br.br-sp {
    display: inline;
  }
  br.br-pc {
    display: none;
  }
}
