/* ============================================================
   style.css — ポータル型（情報密度の高い一覧サイト）デザイン
   構成の参考は一般的な一覧ポータルサイトの「枠・見出しバー・バッジ」
   という構造のみ。文言・画像・ロゴはすべて自作。
   パレット: 濃ピンク〜赤のヘッダーバー / 白地 / 枠線で区切る箱レイアウト
   スマホ優先。メンバーカードが主役。
   ============================================================ */
:root {
  --red: #d81b60;
  --red-dark: #a50e45;
  --pink: #e75480;
  --pink-soft: #fff0f4;
  --pink-pale: #ffd9e5;
  --gold: #c9a227;
  --ink: #222226;
  --muted: #6f6f76;
  --line: #e3c3cd;
  --line-dark: #c98a9c;
  --bg: #fdf3f5;
  --card: #ffffff;
}

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

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--red); text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- ヘッダー（赤系バー） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(90deg, var(--red-dark), var(--red) 55%, var(--pink));
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 2px 6px rgba(165, 14, 69, .35);
}
.logo { font-weight: 900; font-size: 1.3rem; letter-spacing: .06em; color: #fff; }
.logo span { color: #ffe3ec; }
.site-header nav { display: flex; gap: 6px; font-size: .82rem; }
.site-header nav a {
  color: #fff; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.45); border-radius: 6px;
  padding: 4px 10px; font-weight: 700;
}

/* ---------- 速報バー ---------- */
.ticker {
  background: #2b0a16; color: #ffd9e5;
  font-size: .8rem; padding: 7px 12px;
  display: flex; gap: 10px; align-items: center;
  overflow-x: auto; white-space: nowrap;
}
.ticker .ticker-label {
  background: var(--red); color: #fff; font-weight: 800;
  border-radius: 4px; padding: 1px 8px; flex: none;
}
.ticker span.item { flex: none; }

/* ---------- レイアウト＆箱 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 10px 48px; }
.box {
  background: var(--card);
  border: 2px solid var(--line-dark);
  border-radius: 8px;
  margin-top: 16px;
  overflow: hidden;
}
.box-head {
  background: linear-gradient(90deg, var(--red), var(--pink));
  color: #fff; font-weight: 800; font-size: 1rem;
  padding: 8px 12px; letter-spacing: .03em;
}
.box-head small { font-weight: 400; font-size: .75rem; opacity: .9; }
.box-body { padding: 12px; }
.section-lead { color: var(--muted); font-size: .8rem; margin-bottom: 10px; }

/* ---------- ヒーロー／検索 ---------- */
.hero { padding: 16px 4px 2px; text-align: center; }
.hero h1 { font-size: 1.35rem; line-height: 1.4; }
.hero h1 .accent { color: var(--red); }
.hero p { color: var(--muted); font-size: .84rem; margin-top: 6px; }

.search-box { display: grid; gap: 10px; }
.search-box label { font-size: .76rem; font-weight: 700; color: var(--red-dark); display: block; margin-bottom: 3px; }
.search-box input[type="search"],
.search-box select {
  width: 100%; padding: 10px;
  border: 1px solid var(--line-dark); border-radius: 6px;
  background: #fff; font-size: .95rem; color: var(--ink);
}
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 720px) { .filter-grid { grid-template-columns: repeat(3, 1fr); } }
.type-row { background: var(--pink-soft); border: 1px dashed var(--line-dark); border-radius: 6px; padding: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--red); color: var(--red);
  background: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: .82rem; font-weight: 700;
}
.chip[aria-pressed="true"] { background: var(--red); color: #fff; }
.result-count { font-size: .82rem; font-weight: 700; color: var(--red-dark); }

/* ---------- メンバーカード（主役・縦長写真枠） ---------- */
.member-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 720px) { .member-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .member-grid { grid-template-columns: repeat(4, 1fr); } }

.mcard {
  background: var(--card); border: 1px solid var(--line-dark); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
  text-align: left; width: 100%; padding: 0;
}
.mcard-photo {
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.9rem; color: #fff; letter-spacing: .05em;
  position: relative;
}
.mcard-badges { position: absolute; top: 6px; left: 6px; display: grid; gap: 4px; justify-items: start; }
.mcard-body { padding: 8px 10px 10px; display: grid; gap: 2px; }
.mcard-name { font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.mcard-group { font-size: .76rem; color: var(--red); font-weight: 700; }
.mcard-meta { font-size: .74rem; color: var(--muted); }
.mcard-types { font-size: .7rem; color: var(--muted); }

.badge {
  display: inline-block; font-size: .66rem; font-weight: 800;
  border-radius: 4px; padding: 2px 7px; margin-right: 4px;
  background: var(--pink-soft); color: var(--red-dark);
  border: 1px solid var(--pink-pale);
}
.badge.popular { background: var(--gold); color: #fff; border-color: var(--gold); }
.badge.new { background: #2e9e5b; color: #fff; border-color: #2e9e5b; }
.badge.live { background: var(--red); color: #fff; border-color: var(--red); }
.badge.sample { background: #fff7e0; color: #8a6d00; border-color: #f0e0a0; }
.badge.rank { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- グループ（コンパクト行） ---------- */
.group-list { display: grid; gap: 6px; }
.grow-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 10px; text-align: left;
}
.grow-rank {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pink-soft); color: var(--red-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; border: 1px solid var(--pink-pale);
}
.grow-rank.r1 { background: #f6d365; border-color: var(--gold); color: #6b5600; }
.grow-rank.r2 { background: #e8e8ec; border-color: #b9b9c2; color: #44444c; }
.grow-rank.r3 { background: #f0c297; border-color: #c98a4b; color: #6b3d00; }
.grow-name { font-weight: 700; font-size: .92rem; }
.grow-meta { font-size: .72rem; color: var(--muted); }

/* ---------- ランキング ---------- */
.rank-list { display: grid; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: #fff; width: 100%; text-align: left; }
.rank-medal { font-size: 1.25rem; flex: none; width: 34px; text-align: center; }

/* ---------- テーブル（出演表・料金・基本情報） ---------- */
.info-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.info-table th, .info-table td { padding: 7px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { background: var(--pink-soft); color: var(--red-dark); font-weight: 700; white-space: nowrap; width: 32%; }
.info-table td.hl { font-weight: 700; }

/* ---------- 最新投稿ストリップ ---------- */
.post-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
@media (min-width: 720px) { .post-strip { grid-auto-columns: 31%; } }
.post-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.post-card .post-head { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.post-card .post-name { font-weight: 800; font-size: .9rem; }
.post-card p { font-size: .82rem; }

/* ---------- ファンの声 ---------- */
.voice { border: 1px solid var(--line); border-left: 4px solid var(--pink); border-radius: 6px; padding: 9px 11px; margin-bottom: 8px; background: #fff; }
.voice p { font-size: .85rem; }
.voice .voice-meta { font-size: .72rem; color: var(--muted); margin-top: 3px; }

/* ---------- 詳細ビュー ---------- */
.detail-photo {
  aspect-ratio: 16 / 9; border-radius: 8px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 2rem;
}
.detail-photo.portrait { aspect-ratio: 3 / 4; max-width: 280px; margin: 0 auto 12px; }
.back-link { display: inline-block; margin: 14px 0 4px; font-size: .9rem; font-weight: 700; }
.notice {
  background: #fff7e0; border: 1px solid #f0e0a0; color: #6b5600;
  border-radius: 6px; padding: 8px 10px; font-size: .8rem; margin-bottom: 10px;
}
.empty { color: var(--muted); font-size: .88rem; padding: 14px 0; }
[hidden] { display: none !important; }

/* ---------- フッター ---------- */
.site-footer {
  background: #2b0a16; color: #e8b7c6;
  padding: 20px 14px 30px; text-align: center; font-size: .76rem; margin-top: 24px;
}
