:root{
  --bg:#f4f4f5;
  --surface:#ffffff;
  --surface2:#eceef0;
  --gold:#caa000;
  --gold-soft:#b8860b;
  --text:#242427;
  --muted:#75757c;
  --line:#e2e2e5;
  --g1:#c2703d;
  --g2:#3d7fa8;
  --g3:#57893d;
  --g4:#8a5fa8;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Zen Kaku Gothic New', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ===== 上部タブナビ ===== */
.topnav{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:stretch;
  gap:4px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  padding:0 16px;
}
.topnav a{
  display:inline-block;
  padding:14px 16px;
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  border-bottom:3px solid transparent;
}
.topnav a:hover{ color:var(--text); }
.topnav a.current{
  color:var(--gold-soft);
  border-bottom-color:var(--gold);
}

/* ===== 上部メニュー：配信者詳細ドロップダウン ===== */
.nav-dropdown{ position:relative; }
.nav-dropdown summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:14px 16px;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
  border-bottom:3px solid transparent;
  user-select:none;
}
.nav-dropdown summary::-webkit-details-marker{ display:none; }
.nav-dropdown summary::after{
  content:'▾';
  font-size:11px;
  transition:transform .15s;
}
.nav-dropdown[open] summary::after{ transform:rotate(180deg); }
.nav-dropdown summary:hover{ color:var(--text); }
.nav-dropdown summary.current{
  color:var(--gold-soft);
  border-bottom-color:var(--gold);
}
.nav-panel{
  position:absolute;
  top:100%;
  left:8px;
  z-index:30;
  display:grid;
  grid-template-columns:repeat(3,minmax(140px,1fr));
  gap:4px;
  padding:10px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.nav-panel a{
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:1px solid var(--line);
}
.nav-panel a:hover{
  border-color:var(--gold);
  color:var(--gold-soft);
  background:#fff;
}
.nav-panel a.current{
  border-color:var(--gold);
  background:rgba(202,160,0,.10);
  color:var(--gold-soft);
}

/* 上部メニュー：外部リンク（情報提供） */
.nav-external{
  margin-left:auto;
  align-self:center;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--bg);
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:1px solid var(--line);
  transition:background .15s, color .15s, border-color .15s;
}
.nav-external::after{
  content:'↗';
  font-size:11px;
}
.nav-external:hover{
  background:#000;
  border-color:#000;
  color:#fff;
}
@media (max-width:700px){
  .nav-panel{
    grid-template-columns:repeat(2,minmax(120px,1fr));
    left:0;
    right:0;
    max-height:60vh;
    overflow-y:auto;
  }
}

/* ===== レイアウト ===== */
.layout{ display:flex; min-height:calc(100vh - 49px); }
aside{
  width:210px;
  flex-shrink:0;
  background:var(--surface);
  border-right:1px solid var(--line);
  padding:24px 0;
  position:sticky;
  top:49px;
  height:calc(100vh - 49px);
  overflow-y:auto;
}
aside h1{
  font-size:12px;
  color:var(--gold-soft);
  font-family:'Kaisei Decol', serif;
  letter-spacing:.05em;
  padding:0 18px;
  margin:0 0 10px;
}
.section-divider{
  margin:20px 0 12px;
  padding:0 18px;
  border-top:1px solid var(--line);
  padding-top:16px;
}
.menu-btn{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  text-align:left;
  padding:9px 18px;
  background:none;
  border:none;
  border-left:3px solid transparent;
  color:var(--muted);
  font-size:14px;
  font-family:inherit;
  cursor:pointer;
  transition:background .15s, color .15s, border-color .15s;
}
.menu-btn:hover{ background:var(--surface2); color:var(--text); }
.menu-btn.active{
  background:var(--surface2);
  color:var(--gold-soft);
  border-left-color:var(--gold);
  font-weight:700;
}
.menu-btn img, .menu-btn .avatar-fallback{
  width:22px; height:22px; border-radius:50%; object-fit:cover;
  border:1px solid var(--line); flex-shrink:0;
}
.avatar-fallback{
  display:flex; align-items:center; justify-content:center;
  background:var(--surface2); color:var(--muted); font-size:11px; font-weight:700;
}
main{ flex:1; padding:32px 28px 80px; max-width:900px; min-width:0; }
/* グループまとめページは横幅いっぱい使う */
body.wide-page main{ max-width:none; }
body.wide-page aside{ width:180px; }
.empty-hint{ color:var(--muted); font-size:14px; padding-top:40px; }

/* ===== 配信者ブロック / チーム / メンバー ===== */
.streamer-block{ margin-bottom:44px; }
.streamer-block > h2{
  font-size:22px; margin:0 0 18px; padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
/* まとめページ：配信者名から詳細ページへ */
.streamer-link{
  color:inherit;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:color .15s;
}
.streamer-link::after{
  content:'›';
  font-size:20px;
  color:var(--muted);
  transition:transform .15s, color .15s;
}
.streamer-link:hover{ color:var(--gold-soft); }
.streamer-link:hover::after{ color:var(--gold); transform:translateX(3px); }
.page-title{ font-size:26px; margin:0 0 24px; }
.team{ margin-bottom:28px; }
main > .team.gen-1, .streamer-page .team.gen-1{ border-left:3px solid var(--g1); }
main > .team.gen-2, .streamer-page .team.gen-2{ border-left:3px solid var(--g2); }
main > .team.gen-3, .streamer-page .team.gen-3{ border-left:3px solid var(--g3); }
main > .team.gen-4, .streamer-page .team.gen-4{ border-left:3px solid var(--g4); }
main > .team[class*="gen-"]{ padding-left:14px; }
main > .team.gen-1 .gen{ color:var(--g1); }
main > .team.gen-2 .gen{ color:var(--g2); }
main > .team.gen-3 .gen{ color:var(--g3); }
main > .team.gen-4 .gen{ color:var(--g4); }
.team-head{ display:flex; align-items:baseline; gap:10px; margin-bottom:12px; }
.team-head .gen{ font-family:'Kaisei Decol', serif; color:var(--gold-soft); font-size:14px; }
.team-head h3{ font-size:16px; margin:0; color:var(--text); }
.members{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-bottom:14px;
  max-width:560px;
}
@media (max-width:560px){
  .members{ grid-template-columns:repeat(3,1fr); }
}
.member{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 8px 10px;
  text-align:center;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
  transition:transform .15s ease, box-shadow .15s ease;
}
.member.highlight{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(202,160,0,.15); }
.member:hover{ transform:translateY(-3px); box-shadow:0 4px 10px rgba(0,0,0,.06); }
.member img, .member .avatar-fallback{
  width:64px; height:64px; border-radius:50%; object-fit:cover;
  border:2px solid var(--gold); background:var(--surface2);
}
.member .avatar-fallback{
  display:flex; align-items:center; justify-content:center;
  margin:0 auto; font-size:22px; font-weight:900; color:var(--muted);
}
.member .name{ display:block; margin-top:6px; font-size:13px; font-weight:700; }
.placeholder{
  color:var(--muted); font-size:13px; background:var(--surface2);
  border:1px dashed var(--line); border-radius:10px; padding:16px;
}

/* ===== 配信者プロフィール（詳細ページ上部） ===== */
.page-head{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.page-head .page-title{ margin:0; }

/* SNSリンク */
.sns-row{ display:flex; gap:8px; }
.sns-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px; height:34px;
  border-radius:9px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--muted);
  transition:background .15s, color .15s, border-color .15s, transform .15s;
}
.sns-btn svg{ width:17px; height:17px; fill:currentColor; }
.sns-btn:hover{ transform:translateY(-2px); color:#fff; }
.sns-btn.sns-x:hover{ background:#000; border-color:#000; }
.sns-btn.sns-twitch:hover{ background:#9146ff; border-color:#9146ff; }
.sns-btn.sns-youtube:hover{ background:#ff0000; border-color:#ff0000; }

/* ===== 切り抜きなど（プロフィール内サムネイル） ===== */
.clips-grid{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.clip-card{
  display:block;
  width:150px;
  text-decoration:none;
  color:inherit;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--surface);
  transition:transform .15s, box-shadow .15s, border-color .15s;
}
.clip-card:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 14px rgba(0,0,0,.14);
  border-color:var(--gold);
}
.clip-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:#000;
  overflow:hidden;
}
.clip-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.clip-noimg{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:20px; background:var(--surface2);
}
.clip-play{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:18px;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
  background:rgba(0,0,0,.18);
  opacity:0; transition:opacity .15s;
}
.clip-card:hover .clip-play{ opacity:1; }
.clips-empty{ color:var(--muted); font-size:12px; }

.streamer-profile{
  display:flex;
  gap:28px;
  align-items:flex-start;
  flex-wrap:wrap;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px 20px;
  margin-bottom:32px;
  font-size:13px;
}
.profile-item{ flex-shrink:0; }
.profile-item.profile-clips{ flex:1; min-width:0; }
.profile-item dt{ color:var(--muted); margin-bottom:6px; font-size:12px; }
.profile-item dd{ margin:0; font-weight:700; }
@media (max-width:620px){
  .streamer-profile{ flex-direction:column; gap:16px; }
  .clip-card{ width:132px; }
}

/* ===== 武道館ライブ：セットリスト ===== */
.setlist-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  margin-bottom:10px;
}
.setlist-table th, .setlist-table td{
  padding:9px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
.setlist-table th{
  color:var(--muted);
  font-weight:700;
  background:var(--surface2);
  font-size:12px;
}
.setlist-table tr:last-child td{ border-bottom:none; }
.setlist-table td.song-no{ color:var(--muted); width:28px; }

.overall-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:24px;
}
.overall-row .label{ font-weight:700; color:var(--text); }
.encore-tag{
  display:inline-block;
  padding:2px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  background:rgba(202,160,0,.12);
  color:var(--gold-soft);
  border:1px solid var(--gold);
}

/* ===== ライブ評価バッジ ===== */
.ach-tag{
  display:inline-block;
  padding:3px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  white-space:nowrap;
  border:1px solid transparent;
}
/* 伝説：ピンク */
.ach-legend{
  background:rgba(255,96,248,.12);
  color:#c81fbe;
  border-color:rgba(255,96,248,.40);
}
/* 大成功：水色 */
.ach-great{
  background:rgba(34,166,255,.12);
  color:#1189db;
  border-color:rgba(34,166,255,.40);
}
/* 成功：黄緑 */
.ach-success{
  background:rgba(100,210,0,.14);
  color:#4e9c07;
  border-color:rgba(100,210,0,.42);
}
/* 失敗：紫ピンク */
.ach-fail{
  background:rgba(215,106,232,.12);
  color:#a244bb;
  border-color:rgba(215,106,232,.38);
}
/* 大失敗：くすんだ濃紫 */
.ach-critical{
  background:rgba(143,95,168,.14);
  color:#70467f;
  border-color:rgba(143,95,168,.45);
}
/* 未定 */
.ach-tbd{
  background:transparent;
  color:var(--muted);
  border:1px dashed var(--line);
}

/* 総合評価バナー内は大きく */
.overall-banner .ach-tag{
  font-size:20px;
  padding:7px 22px;
}

/* ===== トップ（説明）ページ ===== */
.hero{
  max-width:760px;
  margin:0 auto;
  padding:56px 24px 24px;
}
.hero h1{
  font-size:clamp(24px,4.5vw,34px);
  margin:0 0 10px;
  line-height:1.4;
}
.hero .lede{
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
  margin:0 0 28px;
}
.notice{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#fff7e8;
  border:1px solid #f0dca8;
  border-radius:12px;
  padding:14px 16px;
  font-size:14px;
  color:#7a5b12;
  margin-bottom:28px;
}
.notice .mark{ font-size:16px; line-height:1; }
.notes-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 22px;
  margin-bottom:32px;
}
.notes-card h2{
  font-size:14px;
  color:var(--muted);
  margin:0 0 12px;
  font-weight:700;
}
.notes-card ul{
  margin:0;
  padding-left:1.1em;
  font-size:14px;
  line-height:1.9;
  color:var(--text);
}
.notes-card ul a{
  color:var(--gold-soft);
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid rgba(202,160,0,.4);
}
.notes-card ul a:hover{
  color:var(--text);
  border-bottom-color:var(--text);
}
.notes-card .sub{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:40px;
}
.cta-btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
}
.cta-btn.primary{ background:var(--text); color:#fff; }
.cta-btn.ghost{ background:var(--surface); color:var(--text); border:1px solid var(--line); }
.quick-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.quick-links a{
  padding:8px 14px;
  border-radius:999px;
  background:var(--surface2);
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  border:1px solid var(--line);
}
.quick-links a:hover{ border-color:var(--gold); color:var(--gold-soft); }

/* ===== グループまとめページ：3列パネル表示 ===== */
.teams-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
/* 案3：パネル＋期ごとのアクセント色 */
.team.compact{
  margin-bottom:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-top:3px solid var(--line);
  border-radius:12px;
  padding:12px 12px 14px;
}
.team.compact.gen-1{ border-top-color:var(--g1); }
.team.compact.gen-2{ border-top-color:var(--g2); }
.team.compact.gen-3{ border-top-color:var(--g3); }
.team.compact.gen-4{ border-top-color:var(--g4); }
.team.compact.gen-1 .gen{ color:var(--g1); }
.team.compact.gen-2 .gen{ color:var(--g2); }
.team.compact.gen-3 .gen{ color:var(--g3); }
.team.compact.gen-4 .gen{ color:var(--g4); }
.team.compact .team-head{ margin-bottom:8px; }
.team.compact .team-head h3{ font-size:13px; }
/* メンバー5人を必ず1行に */
.team.compact .members{
  grid-template-columns:repeat(5,1fr);
  gap:5px;
  margin-bottom:0;
}
@media (max-width:1180px){
  .teams-row{ grid-template-columns:repeat(2,1fr); gap:32px; }
}
@media (max-width:760px){
  .teams-row{ grid-template-columns:1fr; gap:36px; }
  /* 1列時はカードが大きくなりすぎないよう抑える */
  .team.compact .members{ gap:6px; max-width:420px; }
}

/* ===== キャラカード（正方形→縦長・下部グラデーション） ===== */
.member{
  position:relative;
  aspect-ratio:10/13;
  border-radius:9px;
  overflow:hidden;
  background:var(--surface2);
  border:1px solid var(--line);
  padding:0;
  text-align:center;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
  transition:transform .15s ease, box-shadow .15s ease;
}
.member:hover{ transform:translateY(-3px); box-shadow:0 4px 12px rgba(0,0,0,.14); }
.member.highlight{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(202,160,0,.4); }
.member img{
  width:100%; height:100%; object-fit:cover; display:block;
  border:none; border-radius:0;
}
.member::after{
  content:'';
  position:absolute; left:0; right:0; bottom:0; height:40%;
  background:linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.5) 42%, rgba(0,0,0,0));
  pointer-events:none;
}
.member .name{
  position:absolute; left:1px; right:1px; bottom:4px; z-index:2;
  display:block; margin:0; text-align:center;
  color:#fff; font-weight:700; font-size:11px; line-height:1.15;
  white-space:nowrap;
  text-shadow:0 1px 3px rgba(0,0,0,.85), 0 0 6px rgba(0,0,0,.5);
}
.member .avatar-fallback{
  position:absolute; inset:0; width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  margin:0; border:none; border-radius:0;
  font-size:26px; font-weight:900; color:var(--muted); background:var(--surface2);
}
/* 詳細ページは大きめ */
.streamer-block .members .member .name,
main > .team .members .member .name{ font-size:14px; bottom:6px; }

/* ===== サイドバーのリセットボタン ===== */
.reset-btn{
  display:block;
  width:calc(100% - 36px);
  margin:12px 18px 0;
  padding:7px 10px;
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--muted);
  font-family:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s, color .15s, border-color .15s;
}
.reset-btn:hover:not(:disabled){
  background:#fff; color:var(--text); border-color:var(--gold);
}
.reset-btn:disabled{ opacity:.45; cursor:default; }
.filter-hint{
  padding:8px 18px 0;
  font-size:11px;
  color:var(--muted);
  line-height:1.6;
}

/* ===== 詳細ページ：武道館セットリスト（折りたたみ） ===== */
.setlist-details{
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  margin-bottom:28px;
  overflow:hidden;
}
.setlist-details summary{
  cursor:pointer;
  list-style:none;
  padding:12px 16px;
  font-weight:700;
  font-size:14px;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--surface2);
}
.setlist-details summary::-webkit-details-marker{ display:none; }
.setlist-details summary::after{
  content:'▾';
  color:var(--muted);
  transition:transform .15s;
}
.setlist-details[open] summary::after{ transform:rotate(180deg); }
.setlist-details .inner{ padding:16px; }
.overall-banner{
  margin-top:14px;
  text-align:center;
  padding:16px;
  border-radius:10px;
  background:var(--surface2);
}
.overall-banner .label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:8px;
}
.overall-banner .ach-tag{
  font-size:20px;
  padding:8px 24px;
}
.overall-banner .encore-tag{
  margin-left:8px;
  font-size:13px;
  padding:5px 14px;
  vertical-align:middle;
}
.reading{
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  margin-left:6px;
}

/* PC ではトグルを出さない（スマホ側で display:block に上書き） */
.filter-toggle{ display:none; }

/* ===== スマートフォン表示（サイドバーを上部の折りたたみに） ===== */
@media (max-width:820px){
  .layout{ flex-direction:column; }

  /* wide-page の 180px 指定を確実に打ち消しつつ、上部メニューの下に固定 */
  body aside,
  body.wide-page aside{
    width:100%;
    height:auto;
    position:sticky;
    top:41px;                 /* スマホ時の上部メニューの高さ */
    z-index:15;
    border-right:none;
    border-bottom:1px solid var(--line);
    padding:0;
    overflow:visible;
    background:var(--surface);
    box-shadow:0 2px 6px rgba(0,0,0,.06);
  }

  /* フィルター全体を閉じた状態で置く */
  .filter-toggle{
    display:block;
    width:100%;
    padding:13px 16px;
    background:var(--surface);
    border:none;
    border-bottom:1px solid var(--line);
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    color:var(--text);
    text-align:left;
    cursor:pointer;
  }
  .filter-toggle::after{
    content:'▾';
    float:right;
    color:var(--muted);
    transition:transform .15s;
  }
  .filter-toggle.open::after{ transform:rotate(180deg); }
  .filter-toggle .count{
    display:inline-block;
    margin-left:8px;
    padding:1px 8px;
    border-radius:999px;
    background:var(--gold);
    color:#fff;
    font-size:11px;
  }

  .filter-body{
    display:none;
    padding:14px 16px 18px;
    background:var(--surface);
    max-height:calc(100vh - 100px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    border-bottom:1px solid var(--line);
  }
  .filter-body.open{ display:block; }
  .filter-body > h1{ padding:0; margin:0 0 8px; }
  .filter-body .section-divider{ padding:14px 0 0; margin:16px 0 10px; }
  .filter-body .filter-hint{ padding:0 0 8px; }
  .filter-body .order-note{ padding:0 0 8px; margin:0; }

  /* 配信者・キャラのボタンを横並びチップに */
  #menu, #char-menu{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  .filter-body .menu-btn{
    width:auto;
    padding:7px 12px;
    border:1px solid var(--line);
    border-left:1px solid var(--line);
    border-radius:999px;
    background:var(--bg);
    font-size:13px;
  }
  .filter-body .menu-btn.active{
    border-color:var(--gold);
    background:rgba(202,160,0,.12);
  }
  .filter-body .menu-btn img,
  .filter-body .menu-btn .avatar-fallback{ width:20px; height:20px; }

  .reset-btn{ width:100%; margin:12px 0 0; }

  main{ padding:20px 16px 60px; }
  /* 上部メニュー＋絞り込みバーに隠れないよう余白を確保 */
  .streamer-block{ scroll-margin-top:96px; }
  .teams-row{ grid-template-columns:1fr; gap:36px; }
  .team.compact .members{ gap:6px; max-width:none; }
  .streamer-block > h2{ font-size:19px; }
}


/* ===== 採用率ランキングページ ===== */
.stats-hero{ max-width:900px; }
.stats-head{
  font-size:19px;
  margin:44px 0 6px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.stats-note{ color:var(--muted); font-size:13px; margin:0 0 18px; }

.rank-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:18px;
}
.rank-card{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line);
  border-top:3px solid var(--line);
  border-radius:14px;
  padding:16px 16px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.rank-card.rank-1{ border-top-color:#e0b32e; }
.rank-card.rank-2{ border-top-color:#9aa4b0; }
.rank-card.rank-3{ border-top-color:#c08552; }

.rank-badge{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:20px;
  line-height:1;
}
.rank-badge .rank-no{
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  letter-spacing:.04em;
}
.rank-visual.member{
  width:96px;
  aspect-ratio:10/13;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--surface2);
}
.rank-visual.member img{ width:100%; height:100%; object-fit:cover; display:block; }
.rank-visual.member .avatar-fallback{
  position:static; width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:30px; font-weight:900; color:var(--muted);
  border:none; border-radius:0;
}
.rank-name{ font-size:18px; font-weight:900; margin-bottom:8px; }
.rank-name.song{ font-size:15px; line-height:1.5; }
.rank-figure{ display:flex; align-items:baseline; gap:5px; margin-bottom:8px; }
.rank-figure strong{ font-size:26px; color:var(--gold-soft); line-height:1; }
.rank-figure span{ font-size:12px; color:var(--muted); }
.rank-bar{
  height:7px;
  background:var(--surface2);
  border-radius:999px;
  overflow:hidden;
  margin-bottom:6px;
}
.rank-bar span{
  display:block; height:100%;
  background:linear-gradient(90deg, var(--gold), #e8cd7a);
  border-radius:999px;
}
.rank-pct{ font-size:12px; color:var(--muted); }

/* 全順位テーブル（折りたたみ） */
.full-list{
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  overflow:hidden;
  margin-bottom:10px;
}
.full-list summary{
  cursor:pointer; list-style:none;
  padding:12px 16px;
  font-weight:700; font-size:13px;
  background:var(--surface2);
  display:flex; align-items:center; justify-content:space-between;
}
.full-list summary::-webkit-details-marker{ display:none; }
.full-list summary::after{ content:'▾'; color:var(--muted); transition:transform .15s; }
.full-list[open] summary::after{ transform:rotate(180deg); }
.full-list .inner{ padding:8px 16px 16px; }
.rank-table{ width:100%; border-collapse:collapse; font-size:13px; }
.rank-table th, .rank-table td{
  padding:7px 8px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
.rank-table th{ color:var(--muted); font-size:12px; }
.rank-table td.rk{ width:42px; color:var(--muted); font-weight:700; }
.rank-table td.num{ width:52px; font-weight:700; }
.rank-table td.barcell{ width:180px; display:flex; align-items:center; gap:8px; }
.minibar{
  flex:1; height:6px; background:var(--surface2);
  border-radius:999px; overflow:hidden;
}
.minibar i{ display:block; height:100%; background:var(--gold); border-radius:999px; }
.pct{ font-size:11px; color:var(--muted); width:44px; text-align:right; }

@media (max-width:760px){
  .rank-grid{ grid-template-columns:1fr; }
  .rank-card{ flex-direction:row; align-items:flex-start; }
  .rank-card .rank-body{ flex:1; }
}

/* ===== 配信者ページの一言コメント（吹き出し） ===== */
.comment-bubble{
  position:relative;
  margin:12px 0 32px;
  padding:11px 16px 13px;
  border:1px solid var(--line);
  border-left:3px solid var(--gold);
  border-radius:12px;
  background:var(--surface);
  font-size:13px;
  line-height:1.75;
  color:var(--text);
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.comment-bubble::before{
  content:'';
  position:absolute;
  top:-9px;
  left:34px;
  width:16px;
  height:16px;
  transform:rotate(45deg);
  border-radius:3px;
  background:var(--surface);
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
}
.comment-bubble .bubble-label{
  display:block;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
  color:var(--gold-soft);
  margin-bottom:4px;
}
.comment-bubble p{ margin:0; }
.comment-bubble p + p{ margin-top:6px; }


/* ===== 上部メニューのスマホ対応 ===== */
@media (max-width:820px){
  /* 4項目を1行に収める。横スクロールにするとドロップダウンが切れるため使わない */
  .topnav{
    padding:0 4px;
    overflow:visible;
    flex-wrap:nowrap;
    align-items:center;
    gap:0;
  }
  .topnav a,
  .nav-dropdown summary{
    padding:12px 7px;
    font-size:12px;
    letter-spacing:-.02em;
  }
  .nav-dropdown summary{ gap:3px; }
  .nav-dropdown summary::after{ font-size:9px; }
  /* 「採用率ランキング」→「ランキング」に短縮 */
  .nav-long{ display:none; }
  /* 情報提供ボタンはスマホでは非表示（メニューの収まりを優先） */
  .nav-external{ display:none; }
  /* ドロップダウンはメニュー全体を基準に画面幅いっぱいで開く */
  .nav-dropdown{ position:static; }
  .nav-panel{
    left:8px;
    right:8px;
    top:100%;
    grid-template-columns:repeat(2,1fr);
    max-height:60vh;
    overflow-y:auto;
  }
  /* 詳細ページのメンバーは3列に */
  .members{ grid-template-columns:repeat(3,1fr); max-width:none; }
  .streamer-profile{ flex-direction:column; gap:16px; }
  .hero{ padding:32px 16px 20px; }
  .page-head{ gap:10px; }
  .page-title{ font-size:21px; }
  /* ランキングページ */
  .rank-grid{ grid-template-columns:1fr; }
  .stats-hero{ padding-left:16px; padding-right:16px; }
}

/* 極端に狭い画面（iPhone SE など）でも上部メニューを1行に収める */
@media (max-width:360px){
  .topnav a,
  .nav-dropdown summary{
    padding:12px 5px;
    font-size:11px;
  }
}

/* 「配信者で絞り込み」の注記 */
.order-note{
  padding:0 18px 8px;
  margin:-4px 0 0;
  font-size:11px;
  color:var(--muted);
}
