:root {
  --ink: #3d3450;
  --ink-sub: #6e6582;
  --line: #f0e6f2;
  --bg: #fffafc;
  --card: #ffffff;
  --round: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  line-break: strict;
  word-break: normal;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); line-height: 1.3; letter-spacing: 0.06em; margin: 0; }
.sp { display: inline; }
@media (min-width: 720px) { .sp { display: none; } }

/* ---------- header / footer ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--round); font-weight: 800; text-decoration: none; letter-spacing: 0.04em; font-size: 15px; }
.logo span { margin-left: 6px; color: var(--accent); }
.head-cta {
  font-family: var(--round); font-weight: 700; font-size: 13px; text-decoration: none;
  padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #fff;
}
.site-foot { margin-top: 64px; padding: 32px 16px 48px; background: #fff; border-top: 1px solid var(--line); text-align: center; }
.foot-note { max-width: 640px; margin: 0 auto 8px; font-size: 12px; color: var(--ink-sub); line-height: 1.7; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 16px; font-size: 13px; }
.foot-nav a { text-decoration: none; color: var(--ink-sub); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--round); font-weight: 800; font-size: 16px; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-main {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 8px 24px -8px var(--accent);
}
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-x { background: #111; color: #fff; }

/* ---------- hero (top) ---------- */
.hero {
  padding: 56px 16px 48px; text-align: center;
  background:
    radial-gradient(circle at 15% 20%, #ffd6e8 0, transparent 40%),
    radial-gradient(circle at 85% 10%, #e3d9ff 0, transparent 38%),
    radial-gradient(circle at 70% 90%, #d4f5ef 0, transparent 40%),
    radial-gradient(circle at 10% 90%, #fff1c4 0, transparent 40%);
}
.hero-kicker { margin: 0 auto 16px; max-width: 560px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-sub); }
.hero-title { font-size: clamp(30px, 8vw, 52px); font-weight: 800; }
.hero-lead { max-width: 520px; margin: 20px auto 28px; color: var(--ink-sub); }

/* ---------- quiz ---------- */
.quiz { padding: 24px 16px; scroll-margin-top: 64px; }
.quiz-card, .quiz-loading {
  max-width: 560px; margin: 0 auto; padding: 24px 20px 20px;
  background: var(--card); border-radius: 28px;
  box-shadow: 0 12px 40px -16px rgba(120, 80, 140, 0.35);
}
.quiz-card.is-enter { animation: pop 0.28s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-progress { height: 8px; background: #f6eef7; border-radius: 999px; overflow: hidden; }
.quiz-bar { height: 100%; width: 0; background: linear-gradient(90deg, #ff5fa2, #b07cff, #4aa8ff); border-radius: 999px; transition: width 0.3s ease; }
.quiz-count { margin: 14px 0 4px; font-family: var(--round); font-weight: 800; color: var(--accent); font-size: 14px; }
.quiz-q { font-size: 21px; font-weight: 800; margin-bottom: 18px; }
.quiz-a { display: grid; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; min-height: 56px; text-align: left;
  font: inherit; font-weight: 500; color: var(--ink); letter-spacing: 0.03em; line-height: 1.5;
  background: #fff; border: 2px solid var(--line); border-radius: 18px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt:active { transform: scale(0.98); }
.quiz-opt.is-picked { border-color: var(--accent); background: #fff0f6; }
.quiz-opt-mark {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #f6eef7; font-family: var(--round); font-weight: 800; font-size: 13px; color: var(--ink-sub);
}
.quiz-opt.is-picked .quiz-opt-mark { background: var(--accent); color: #fff; }
.quiz-back { margin-top: 14px; background: none; border: 0; color: var(--ink-sub); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 6px 0; }
.quiz-loading { text-align: center; padding: 48px 20px; font-family: var(--round); font-weight: 700; }
.dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: bounce 0.9s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: 0.15s; background: #b07cff; }
.dots span:nth-child(3) { animation-delay: 0.3s; background: #4aa8ff; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { max-width: 880px; margin: 0 auto; padding: 40px 16px 0; }
.sec-title { font-size: 22px; font-weight: 800; margin-bottom: 14px; position: relative; padding-left: 16px; }
.sec-title::before { content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 6px; border-radius: 6px; background: linear-gradient(var(--accent), var(--accent2)); }
.sec-lead { color: var(--ink-sub); margin: 0 0 16px; }
.tag {
  display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px;
  font-family: var(--round); font-weight: 800; font-size: 12px; line-height: 22px; letter-spacing: 0.04em;
  background: var(--accent); color: #fff; vertical-align: 1px;
}

/* group cards (top) */
.gcards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gcards { grid-template-columns: 1fr 1fr; } }
.gcard {
  display: grid; gap: 2px; padding: 20px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--c), var(--c2));
  box-shadow: 0 10px 28px -14px var(--c);
}
.gcard-name { font-family: var(--round); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.gcard-catch { font-weight: 700; font-size: 14px; }
.gcard-meta { font-size: 12px; opacity: 0.9; }

/* ---------- group page ---------- */
.result-hero, .member-hero {
  padding: 48px 16px 40px; text-align: center; color: var(--fg, #fff);
  background: linear-gradient(150deg, var(--c), var(--c2, var(--c)));
}
.result-badge { display: inline-flex; flex-direction: column; gap: 2px; margin-bottom: 14px; padding: 10px 22px; background: rgba(255,255,255,0.95); color: var(--ink); border-radius: 22px; font-family: var(--round); font-weight: 700; font-size: 13px; }
.result-badge strong { color: var(--c); font-size: 18px; font-weight: 800; }
.group-name { font-size: clamp(34px, 10vw, 64px); font-weight: 800; letter-spacing: 0.04em; }
.group-kana { margin: 6px 0 0; font-size: 13px; font-weight: 700; opacity: 0.95; }
.group-catch { margin: 18px auto 0; max-width: 560px; font-family: var(--round); font-weight: 800; font-size: 20px; }
.group-concept { margin: 10px auto 0; max-width: 560px; font-size: 14px; opacity: 0.95; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

.points { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 10px; }
.points li {
  counter-increment: p; position: relative; padding: 16px 16px 16px 56px;
  background: var(--card); border-radius: 18px; border: 1px solid var(--line);
}
.points li::before {
  content: counter(p); position: absolute; left: 14px; top: 14px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--round); font-weight: 800; font-size: 14px;
}
.forwhom { margin-top: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 2px dashed var(--accent); }
.forwhom p { margin: 8px 0 0; }

.songs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .songs { grid-template-columns: 1fr 1fr; } .songs.single { grid-template-columns: 1fr; max-width: 560px; } }
.song { background: var(--card); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.song-body { padding: 14px 16px 18px; }
.song-title { font-size: 18px; font-weight: 800; }
.song-year { margin-left: 8px; font-size: 12px; color: var(--ink-sub); font-weight: 700; }
.song-why { margin: 8px 0 0; font-size: 14px; line-height: 1.8; }

.yt { position: relative; background: #000; }
.yt-play, .yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; }
.yt-play { position: relative; cursor: pointer; background: #000; overflow: hidden; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s; }
.yt-play:hover img { opacity: 1; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #ff0033; border-radius: 14px; }
.yt-icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-link { position: absolute; right: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; text-decoration: none; }
.yt.is-playing .yt-link { display: none; }

.mcards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .mcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mcard {
  display: grid; justify-items: center; gap: 2px; padding: 18px 10px 16px; text-align: center;
  background: #fff; border-radius: 20px; text-decoration: none; border: 2px solid var(--line);
  transition: border-color 0.15s, transform 0.15s;
}
.mcard:hover { border-color: var(--mc); transform: translateY(-2px); }
.mcard-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--mc); margin-bottom: 6px; box-shadow: 0 6px 16px -6px var(--mc); }
.mcard-name { font-family: var(--round); font-weight: 800; font-size: 16px; line-height: 1.4; }
.mcard-kana { font-size: 11px; color: var(--ink-sub); line-height: 1.4; }
.mcard-color { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--ink-sub); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 2px solid var(--c); text-decoration: none;
  font-family: var(--round); font-weight: 700; font-size: 14px;
}
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.back { margin-top: 20px; }

.sources details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 13px; }
.sources summary { cursor: pointer; font-weight: 700; color: var(--ink-sub); }
.sources ul { margin: 10px 0 0; padding-left: 18px; }
.sources a { color: var(--ink-sub); }

/* ---------- member page ---------- */
.member-hero { background: linear-gradient(160deg, var(--mc), color-mix(in srgb, var(--mc) 75%, #fff)); }
.member-group { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); font-family: var(--round); font-weight: 800; font-size: 13px; text-decoration: none; }
.member-name { margin-top: 14px; font-size: clamp(32px, 9vw, 54px); font-weight: 800; }
.member-kana { margin: 4px 0 0; font-weight: 700; font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 640px; }
.facts div { padding: 8px 14px; border-radius: 16px; background: rgba(255,255,255,0.92); color: var(--ink); text-align: left; }
.facts dt { font-size: 11px; color: var(--ink-sub); font-weight: 700; line-height: 1.4; }
.facts dd { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.5; }

/* ---------- photos ---------- */
.mcard-photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; border: 3px solid var(--mc); background: #f6eef7; }
.mcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.mcard-dot { flex: none; }
.member-photo { display: block; width: min(240px, 60vw); aspect-ratio: 3 / 4; object-fit: cover; object-position: center 15%; margin: 0 auto 18px; border-radius: 28px; border: 4px solid #fff; box-shadow: 0 14px 36px -14px rgba(0,0,0,0.35); background: #fff; }
.group-photo { display: block; width: min(640px, 100%); margin: 0 auto 20px; border-radius: 24px; border: 4px solid #fff; box-shadow: 0 14px 36px -14px rgba(0,0,0,0.35); }

.member-status { display: inline-block; margin: 10px 0 0; padding: 2px 12px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 12px; font-weight: 700; }
.mcard-status { margin-top: 4px; padding: 0 8px; border-radius: 999px; background: #f6eef7; color: var(--ink-sub); font-size: 11px; font-weight: 700; }

.btn-big { min-height: 60px; padding: 0 44px; font-size: 18px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.hero-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-sub); }

/* ---------- member strips ---------- */
.hstrip, .gstrip { display: flex; flex-wrap: wrap; justify-content: center; background: var(--c, #f6eef7); }
.hstrip-item, .gstrip-item { position: relative; display: block; overflow: hidden; background: var(--mc); text-decoration: none; }
.hstrip-item { width: calc(100% / var(--n)); aspect-ratio: 3 / 4; }
.hstrip-item img, .gstrip-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform 0.3s ease; }
.hstrip-item:hover img, .gstrip-item:hover img { transform: scale(1.05); }
.hstrip-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--mc); }
.hstrip-name { position: absolute; left: 0; right: 0; bottom: 5px; padding: 18px 4px 6px; font-family: var(--round); font-weight: 800; font-size: 13px; color: #fff; text-align: center; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,0.55)); }
@media (max-width: 719px) {
  .hstrip-item { width: 25%; }
  .hstrip-name { font-size: 11px; }
}
.page-group .result-hero { padding-top: 32px; }

.gcard { padding: 0; overflow: hidden; display: block; }
.gstrip { background: transparent; }
.gstrip-item { width: calc(100% / var(--n)); aspect-ratio: 3 / 4; }
.gstrip-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gcard-body { display: grid; gap: 2px; padding: 16px 20px 18px; color: #fff; text-decoration: none; }
.gcard-meta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ranking ---------- */
.ranking { max-width: 520px; margin: 22px auto 0; padding: 16px 18px; background: rgba(255,255,255,0.95); color: var(--ink); border-radius: 22px; text-align: left; }
.ranking-title { margin: 0 0 10px; font-family: var(--round); font-weight: 800; font-size: 14px; text-align: center; }
.ranking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ranking-item { display: grid; grid-template-columns: 22px minmax(0, 8.5em) 1fr 3em; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; }
.ranking-rank { font-family: var(--round); font-weight: 800; color: var(--ink-sub); text-align: center; }
.ranking-name { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ranking-bar { height: 10px; border-radius: 999px; background: #f3edf5; overflow: hidden; }
.ranking-bar span { display: block; height: 100%; border-radius: 999px; background: var(--rc); }
.ranking-pct { font-family: var(--round); font-weight: 800; text-align: right; }
.ranking-item.is-self .ranking-name, .ranking-item.is-self .ranking-pct { color: var(--rc); }
.ranking-item.is-self .ranking-rank { color: var(--rc); }

/* ---------- shindan page (MBTI風) ---------- */
.page-shindan { padding-bottom: 24px; }
.shindan-head { padding: 36px 16px 20px; text-align: center; background: linear-gradient(180deg, #fff0f7, var(--bg)); }
.shindan-title { font-size: clamp(26px, 6vw, 36px); font-weight: 800; }
.shindan-lead { max-width: 520px; margin: 10px auto 18px; color: var(--ink-sub); font-size: 14px; }
.quiz-progress-wrap { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; }
.quiz-progress-wrap .quiz-progress { flex: 1; }
.quiz-progress-wrap .quiz-count { margin: 0; font-size: 13px; min-width: 3.5em; text-align: right; }
.shindan-body { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.stmts { display: grid; }
.stmt { margin: 0; padding: 36px 0 34px; border: 0; border-bottom: 1px solid var(--line); text-align: center; transition: opacity 0.25s; min-width: 0; }
.stmt.is-done { opacity: 0.45; }
.stmt.is-done:hover, .stmt.is-done:focus-within { opacity: 1; }
.stmt-q { padding: 0; margin: 0 auto 22px; font-family: var(--round); font-weight: 800; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.55; max-width: 34em; }
.scale { display: flex; align-items: center; justify-content: center; gap: 14px; }
.scale-end { flex: none; font-family: var(--round); font-weight: 800; font-size: 14px; }
.scale-agree { color: #ff4f93; }
.scale-disagree { color: #8a63e6; }
.scale-dots { display: flex; align-items: center; gap: clamp(6px, 2.2vw, 16px); }
.dot { flex: none; padding: 0; border-radius: 50%; background: #fff; cursor: pointer; transition: background 0.15s, transform 0.1s; }
.dot:active { transform: scale(0.92); }
.dot-0, .dot-6 { width: 52px; height: 52px; }
.dot-1, .dot-5 { width: 42px; height: 42px; }
.dot-2, .dot-4 { width: 34px; height: 34px; }
.dot-3 { width: 26px; height: 26px; }
.dot-0, .dot-1, .dot-2 { border: 3px solid #ff4f93; }
.dot-3 { border: 3px solid #c9bfd3; }
.dot-4, .dot-5, .dot-6 { border: 3px solid #8a63e6; }
.dot-0:hover, .dot-1:hover, .dot-2:hover, .dot-0[aria-pressed="true"], .dot-1[aria-pressed="true"], .dot-2[aria-pressed="true"] { background: #ff4f93; }
.dot-3:hover, .dot-3[aria-pressed="true"] { background: #c9bfd3; }
.dot-4:hover, .dot-5:hover, .dot-6:hover, .dot-4[aria-pressed="true"], .dot-5[aria-pressed="true"], .dot-6[aria-pressed="true"] { background: #8a63e6; }
@media (max-width: 599px) {
  .scale { flex-wrap: wrap; gap: 10px 0; }
  .scale-dots { order: 1; width: 100%; justify-content: center; }
  .scale-agree { order: 2; width: 50%; text-align: left; font-size: 12px; }
  .scale-disagree { order: 3; width: 50%; text-align: right; font-size: 12px; }
  .dot-0, .dot-6 { width: 42px; height: 42px; }
  .dot-1, .dot-5 { width: 35px; height: 35px; }
  .dot-2, .dot-4 { width: 29px; height: 29px; }
  .dot-3 { width: 23px; height: 23px; }
}
.shindan-nav { display: flex; justify-content: center; gap: 12px; padding: 32px 0 8px; }
.shindan-nav .btn { min-width: 140px; }
.page-shindan .quiz-loading { max-width: 520px; margin: 40px auto; padding: 56px 20px; background: #fff; border-radius: 28px; text-align: center; font-family: var(--round); font-weight: 700; box-shadow: 0 12px 40px -16px rgba(120, 80, 140, 0.35); }

/* fieldset の legend は余白が崩れるので、通常のブロックとして扱う */
.stmt-q { float: left; width: 100%; text-wrap: balance; }
.scale { clear: both; }
.sec-title, .hero-title, .group-catch { text-wrap: balance; }
.hero-kicker span { white-space: nowrap; }

.stmt-q, .sec-title, .hero-title, .group-catch, .group-concept, .hero-lead, .shindan-lead { word-break: auto-phrase; }
.ranking { margin: 0 auto 22px; }

[hidden] { display: none !important; }

/* ---------- member pick (result) ---------- */
.mpick-card {
  display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 20px; align-items: center;
  padding: 16px; border-radius: 28px; text-decoration: none; background: #fff;
  border: 3px solid var(--mc); box-shadow: 0 16px 40px -20px var(--mc);
  animation: popin 0.6s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes popin { from { opacity: 0; transform: scale(0.9) translateY(12px); } to { opacity: 1; transform: none; } }
.mpick-photo { display: block; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--mc); }
.mpick-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.mpick-body { display: grid; gap: 4px; }
.mpick-label { font-size: 13px; font-weight: 700; color: var(--ink-sub); }
.mpick-name { font-family: var(--round); font-weight: 800; font-size: clamp(26px, 6vw, 38px); line-height: 1.25; }
.mpick-pct { justify-self: start; padding: 2px 14px; border-radius: 999px; background: var(--mc); color: #fff; font-family: var(--round); font-weight: 800; font-size: 16px; }
.mpick-more { margin-top: 6px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 519px) { .mpick-card { grid-template-columns: 120px 1fr; gap: 14px; } }
.mrank { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mrank-item { display: grid; grid-template-columns: 20px 36px minmax(0, 7em) 1fr 3em; align-items: center; gap: 8px; font-size: 13px; }
.mrank-rank { font-family: var(--round); font-weight: 800; color: var(--ink-sub); text-align: center; }
.mrank-face { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--mc); border: 2px solid var(--mc); }
.mrank-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.mrank-name { font-weight: 700; text-decoration: none; }
.mrank-bar { height: 10px; border-radius: 999px; background: #f3edf5; overflow: hidden; }
.mrank-bar span { display: block; height: 100%; border-radius: 999px; background: var(--mc); }
.mrank-pct { font-family: var(--round); font-weight: 800; text-align: right; }

/* ---------- SNS ---------- */
.sns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mhero .sns { justify-content: flex-start; }
.sns-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--round); font-weight: 800; font-size: 13px; text-decoration: none; border: 2px solid rgba(0,0,0,0.06); }
.sns-big .sns-pill { min-height: 48px; padding: 0 22px; font-size: 15px; }
.sns-x { background: #111; color: #fff; }
.sns-instagram { background: linear-gradient(45deg, #f9a03f, #e1306c, #833ab4); color: #fff; }
.sns-tiktok { background: #010101; color: #fff; box-shadow: inset 3px 0 0 #25f4ee, inset -3px 0 0 #fe2c55; }
.sns-youtube { background: #ff0033; color: #fff; }

/* ---------- member page (big photo + guide) ---------- */
.mhero { display: grid; grid-template-columns: 1fr; background: var(--mc); color: var(--fg); }
.mhero-photo { position: relative; aspect-ratio: 4 / 5; max-height: 86vh; overflow: hidden; background: var(--mc); }
.mhero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; animation: zoomout 1.4s ease both; }
@keyframes zoomout { from { transform: scale(1.08); } to { transform: none; } }
.mhero-info { padding: 28px 20px 36px; position: relative; }
.mhero-info .member-name { margin-top: 12px; font-size: clamp(38px, 11vw, 72px); }
.mhero-info .facts { justify-content: flex-start; margin: 18px 0 0; }
.mhero-scroll { margin: 28px 0 0; font-family: var(--round); font-weight: 800; font-size: 11px; letter-spacing: 0.3em; opacity: 0.7; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (min-width: 860px) {
  .mhero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; min-height: calc(100vh - 54px); }
  .mhero-photo { aspect-ratio: auto; height: calc(100vh - 54px); max-height: none; }
  .mhero-info { padding: 48px 56px; }
}

.guide { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 18px; }
.guide-face { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--mc); border: 3px solid #fff; box-shadow: 0 6px 18px -6px var(--mc); }
.guide-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.guide-bubble { position: relative; margin: 0 0 10px; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: #fff; border: 2px solid var(--mc); font-family: var(--round); font-weight: 700; font-size: 14px; line-height: 1.5; }
.reveal .guide-face { transform: scale(0) rotate(-20deg); transition: transform 0.5s cubic-bezier(.2,1.6,.4,1); }
.reveal .guide-bubble { opacity: 0; transform: translateX(-12px); transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s; }
.reveal > :not(.guide) { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s; }
.reveal.is-in .guide-face { transform: none; }
.reveal.is-in .guide-bubble { opacity: 1; transform: none; }
.reveal.is-in > :not(.guide) { opacity: 1; transform: none; }
.page-member .sec-title::before { background: var(--mc); }
@media (prefers-reduced-motion: reduce) {
  .reveal .guide-face, .reveal .guide-bubble, .reveal > :not(.guide) { opacity: 1; transform: none; transition: none; }
  .mhero-photo img, .mpick-card { animation: none; }
}

.rtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.rtags li { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.5; }

/* 個人SNS（カードの下・相性順の下） */
.mcard-wrap { display: grid; gap: 6px; align-content: start; }
.mcard-wrap .mcard:hover { border-color: var(--mc); }
.sns-mini { margin-top: 0; justify-content: center; gap: 4px; }
.sns-mini .sns-pill, .mrank-sns .sns-pill { min-height: 26px; padding: 0 9px; font-size: 11px; border-width: 1px; }
.mrank-sns { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: -2px; }
#mpick-sns .sns { justify-content: center; }

.mpick-name { word-break: keep-all; overflow-wrap: anywhere; }
.mpick-pct { white-space: nowrap; }
@media (max-width: 519px) {
  .mpick-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .mpick-name { font-size: 24px; }
  .mpick-pct { font-size: 14px; }
}
.result-actions .btn { white-space: nowrap; }
@media (max-width: 519px) {
  .mpick-name { font-size: min(24px, 6.4vw); letter-spacing: 0.02em; }
  .mpick-label, .mpick-more { font-size: 12px; }
  #mpick-sns .sns-pill { min-height: 40px; padding: 0 16px; font-size: 13px; }
}

.vid-title { font-size: 15px; line-height: 1.5; }
.vid-ch { margin: 6px 0 0; font-size: 12px; color: var(--ink-sub); }

/* ---------- バズ・最新 ---------- */
.vgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.vcard { background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-width: 0; }
.vcard .yt-icon { width: 46px; height: 32px; border-radius: 10px; }
.vcard .yt-icon::after { left: 18px; top: 9px; border-width: 7px 0 7px 12px; }
.vcard .yt-link { display: none; }
.vcard-body { padding: 8px 10px 12px; }
.vcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 4px; font-size: 11px; line-height: 1.4; }
.vbadge { padding: 1px 8px; border-radius: 999px; font-family: var(--round); font-weight: 800; font-size: 10px; letter-spacing: 0.04em; color: #fff; }
.vbadge-hot { background: #ff4f6d; }
.vbadge-new { background: #2fb37a; }
.vbadge-short { background: #111; }
.vviews { color: var(--ink-sub); font-weight: 700; }
.vcard-title { font-family: var(--body); font-weight: 700; font-size: 13px; line-height: 1.5; letter-spacing: 0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
