/* デザインガイド（design/DESIGN.md）の値をそのまま使う */
:root {
  --bg: #F3F4FA;
  --grid: #E4E7F3;
  --surface: #FFFFFF;
  --surface-soft: #EEF0F8;
  --surface-on: #E6F7F8;
  --placeholder: #E4E7F3;
  --placeholder-icon: #9AA0C8;
  --border: #D9DCED;
  --border-strong: #B9BEDB;
  --text: #1E2250;
  --indigo: #4B5082;
  --muted: #5F6492;
  --accent: #0ABEC5;
  --link: #08808A;
  --link-hover: #05626A;
  --tag-bg: #E6F7F8;
  --tag-text: #05626A;
  --pink: #EDA3B2;
  --pink-line: #C9637A;
  --pink-soft: #FBE4E9;
  --yellow: #F4C84A;
  --danger: #B3364F;
  --font: 'Noto Sans JP', sans-serif;
  --font-en: 'Bebas Neue', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }
[hidden] { display: none !important; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-ja { font-weight: 900; font-size: 21px; font-style: italic; letter-spacing: .02em; color: var(--indigo); }
.logo-en { font-family: var(--font-en); font-size: 15px; letter-spacing: .08em; color: var(--muted); padding-top: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { display: flex; flex-direction: column; align-items: center; line-height: 1.2; color: var(--indigo); text-decoration: none; padding: 8px 14px; border-radius: 10px; }
.nav a:hover { background: var(--surface-soft); }
.nav a .en { font-family: var(--font-en); font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.nav a .ja { font-weight: 700; font-size: 14px; }
.nav a[aria-current="page"] { background: var(--indigo); color: #fff; }
.nav a[aria-current="page"] .en { color: var(--border); }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--indigo); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--text); font-weight: 900; }
.btn-accent:hover { background: #09AEB4; border-color: #09AEB4; color: var(--text); }
.btn-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-primary:hover { background: #3E436F; color: #fff; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); background: #FBEFF1; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-lang { min-height: 40px; padding: 0 12px; font-family: var(--font-en); letter-spacing: .08em; font-size: 15px; font-weight: 400; }
.like-btn[aria-pressed="true"] { background: var(--pink-soft); border-color: var(--pink); color: var(--text); }

/* 見出し */
.eyebrow { margin: 0; font-family: var(--font-en); font-size: 18px; letter-spacing: .14em; color: var(--link); display: flex; align-items: center; gap: 8px; }
.h1 { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.25; color: var(--indigo); }
.h1-sub { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; color: var(--indigo); word-break: break-word; }
.h2 { margin: 0; font-weight: 900; font-size: 26px; color: var(--indigo); }
.h2 small { font-size: 14px; color: var(--muted); font-weight: 500; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head > div:first-child { display: flex; flex-direction: column; }
.muted { color: var(--muted); }
.dotted-rule { border: 0; border-top: 2px dotted var(--accent); margin: 0; }

/* ヒーロー */
.hero { padding: 56px 0 36px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-text { flex: 999 1 540px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-art { flex: 1 1 280px; height: 260px; position: relative; border-radius: 24px; background: var(--surface); border: 2px solid var(--border); overflow: visible; }
.hero-art svg.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.search { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-width: 680px; }
.search-box { flex: 1 1 300px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--border); border-radius: 999px; padding: 0 20px; }
.search-box:focus-within { border-color: var(--indigo); }
.search-box input { flex: 1; min-width: 0; min-height: 52px; background: transparent; border: 0; outline: none; }
.search .btn { min-height: 56px; padding: 0 28px; }

/* フォーム部品 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--indigo); }
.req { color: var(--pink-line); margin-left: 4px; }
.input, .select, .textarea { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); width: 100%; }
.select { padding: 0 12px; }
.textarea { padding: 12px 16px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--indigo); outline: none; }
.input-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.error-text { margin: 0; font-size: 13px; color: var(--danger); font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.filters .select, .filters .input { min-height: 44px; width: auto; border-width: 1px; border-radius: 10px; }
.filters .input { width: 96px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--indigo); min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--indigo); }

/* チップ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; background: var(--surface); color: var(--indigo); border: 2px solid var(--border); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--text); }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); font-weight: 700; text-decoration: none; }
a.tag:hover { color: var(--text); }
.badge { font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--indigo); color: #fff; white-space: nowrap; }
.badge-soft { background: var(--tag-bg); color: var(--tag-text); }

/* ビルドカード */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); border-radius: 18px; overflow: hidden; }
.card:hover, .card:focus-within { border-color: var(--indigo); }
.card-team { position: relative; padding: 44px 16px 14px; background: var(--surface-soft); display: flex; align-items: flex-end; gap: 10px; }
.card-team .badge { position: absolute; top: 12px; left: 12px; }
.card-team .lv { position: absolute; top: 12px; right: 12px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 900; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.card-stats { display: inline-flex; align-items: center; gap: 10px; color: var(--indigo); font-weight: 700; }
.card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.card .copy-btn { position: relative; z-index: 1; }
.card-comment { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 巡遊者アイコン */
.member { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.member .role { font-size: 11px; font-weight: 700; color: var(--muted); }
.member.main .role { color: var(--indigo); font-weight: 900; }
.avatar { flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--placeholder); border: 1px solid var(--border-strong); border-radius: 12px; width: 54px; height: 54px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member.main .avatar { width: 76px; height: 76px; border-radius: 14px; border: 3px solid var(--accent); }
.avatar.round { border-radius: 50%; width: 72px; height: 72px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.avatar.lg { width: 64px; height: 64px; border-radius: 14px; border: 0; }
.avatar.sm { width: 40px; height: 40px; border-radius: 10px; }
.member .name { font-size: 11px; color: var(--text); font-weight: 700; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 巡遊者グリッド */
.grid-trekkers { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.trekker-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; border-radius: 18px; background: var(--surface); border: 2px solid var(--border); color: var(--text); text-decoration: none; cursor: pointer; }
.trekker-card:hover { border-color: var(--indigo); color: var(--text); }
.trekker-card[aria-pressed="true"] { background: var(--surface-on); border-color: var(--accent); }
.trekker-card .tname { font-size: 14px; font-weight: 900; color: var(--indigo); text-align: center; line-height: 1.4; }
.trekker-card .tcount { font-size: 12px; color: var(--muted); }

/* パネル */
.panel { padding: 24px 28px; background: var(--surface); border: 2px solid var(--border); border-radius: 24px; display: flex; flex-direction: column; gap: 18px; }
.panel-indigo { background: var(--indigo); color: #fff; border: 0; border-radius: 20px; padding: 20px; gap: 12px; }
.panel-soft { background: var(--surface-soft); border: 0; border-radius: 20px; padding: 20px; }
.panel h2 { margin: 0; font-size: 20px; font-weight: 900; color: var(--indigo); }
.panel-indigo h2 { color: #fff; font-size: 16px; }
.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.summary dt { color: var(--border); }
.summary dd { margin: 0; font-weight: 700; }
.empty { margin: 0; padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 2px dashed var(--border-strong); border-radius: 18px; }

/* 詳細ページ */
.page-pad { padding: 24px 0 64px; display: flex; flex-direction: column; gap: 28px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { font-weight: 700; }
.build-head { position: relative; }
.build-head .star { position: absolute; top: -18px; right: 40px; }
.build-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; background: var(--surface-soft); border-radius: 14px; }
.code-box code { flex: 1 1 240px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; word-break: break-all; color: var(--text); }
.two-col { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.two-col > .col-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.two-col > .col-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.slot { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; text-align: left; cursor: pointer; background: var(--surface); border: 2px solid var(--border); }
.slot[aria-selected="true"] { background: var(--surface-on); border-color: var(--accent); }
.slot .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slot .role { font-size: 12px; font-weight: 900; color: var(--indigo); }
.slot .tname { font-size: 16px; font-weight: 900; color: var(--text); }
.slot .sub { font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--indigo); font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.pot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pot { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--border); min-width: 0; }
.pot.off { background: transparent; border-style: dashed; color: var(--muted); }
.pot.core { background: var(--pink-soft); border-color: var(--pink); }
.pot.core.off { background: transparent; border-color: var(--border); }
.pot-group { display: flex; flex-direction: column; gap: 10px; }
.pot-group .pot-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.pc { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); }
.pc.core { background: var(--pink-soft); border-color: var(--pink); }
.pc.off { background: transparent; border-style: dashed; color: var(--muted); }
.pc.core.off { border-color: var(--pink); }
.pc-top { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.pc-lv { font-family: var(--font-en); font-size: 30px; line-height: 1; min-width: 16px; color: var(--indigo); }
.pc.off .pc-lv { color: var(--border-strong); }
.pc-top .pips { flex: 1; min-width: 0; gap: 2px; }
.pc-top .pips i { flex: 1; width: auto; min-width: 0; height: 6px; }
.pc-st { font-size: 12px; font-weight: 700; color: var(--pink-line); }
.pc.off .pc-st { color: var(--muted); }
.pc-name { min-width: 0; overflow: hidden; }
.pc-name > span { display: block; white-space: nowrap; transform-origin: left center; font-weight: 900; font-size: 14px; line-height: 1.3; }
.pot-group + .pot-group { margin-top: 8px; }
.pot-group-title { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; color: var(--indigo); }
.pot .icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-soft); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.pot .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pot .pname { font-weight: 900; font-size: 14px; }
.pips { display: flex; gap: 3px; }
.pips i { width: 12px; height: 6px; border-radius: 3px; background: var(--border); }
.pips i.on { background: var(--accent); }
.pips i.on.max { background: var(--indigo); }
.lv-text { font-size: 12px; color: var(--muted); }
.note { padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 2px solid var(--border); color: #33386A; white-space: pre-wrap; word-break: break-word; margin: 0; }
.side-list { display: flex; flex-direction: column; }
.side-list a { color: var(--text); text-decoration: none; display: flex; flex-direction: column; padding: 10px 0; border-top: 1px dashed var(--border); }
.side-list a strong { font-weight: 700; }
.side-list a span { font-size: 12px; color: var(--muted); }
details.manage summary { cursor: pointer; font-weight: 700; color: var(--indigo); min-height: 44px; display: flex; align-items: center; }

/* 投稿ページ */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.steps .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); font-family: var(--font-en); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.steps .line { width: 40px; border-top: 2px dotted var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.preview-team { display: flex; flex-wrap: wrap; gap: 12px; }
.preview-team .slot { cursor: default; flex: 1 1 200px; }
.notice { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FFF6DB; color: #5C4600; font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ランキング */
.rank-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 2px solid var(--border); border-radius: 18px; position: relative; }
.rank-item:hover { border-color: var(--indigo); }
.rank-no { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-size: 24px; background: var(--surface); border: 2px solid var(--accent); }
.rank-item:nth-child(1) .rank-no { background: var(--yellow); border-color: var(--yellow); }
.rank-item:nth-child(2) .rank-no, .rank-item:nth-child(3) .rank-no { background: var(--accent); }
.rank-team { display: flex; gap: 6px; flex: none; }
.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-info a { color: var(--text); text-decoration: none; font-weight: 900; }
.rank-info a::after { content: ''; position: absolute; inset: 0; }
.rank-info span { font-size: 12px; color: var(--muted); }
.rank-score { font-family: var(--font-en); font-size: 26px; color: var(--indigo); flex: none; }
.usage { display: flex; flex-direction: column; gap: 8px; }
.usage-row { display: grid; grid-template-columns: 28px 40px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.usage-bar { height: 8px; border-radius: 4px; background: var(--surface-soft); overflow: hidden; grid-column: 3; }
.usage-bar i { display: block; height: 100%; background: var(--accent); }

/* 文章ページ */
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin: 16px 0 0; font-size: 20px; color: var(--indigo); font-weight: 900; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose li + li { margin-top: 4px; }

/* 管理 */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
table.admin th, table.admin td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.admin th { background: var(--surface-soft); color: var(--indigo); font-size: 13px; }
table.admin .input { min-height: 40px; border-width: 1px; border-radius: 8px; padding: 0 10px; }
tr.unregistered { background: #FFF9E6; }
.picker { width: min(1040px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(30, 34, 80, .3); }
.picker::backdrop { background: rgba(30, 34, 80, .45); }
.picker-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.picker-head h2 { margin: 0; font-size: 18px; color: var(--indigo); }
.picker-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick-item { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; }
.pick-item:hover, .pick-item:focus-visible { border-color: var(--indigo); }
.pick-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--placeholder); }
.pick-grid.stamps .pick-item img { aspect-ratio: 1; object-fit: contain; }
.pick-item span { font-size: 12px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crop-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.crop-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; flex: none; border-radius: 16px; overflow: hidden; background: var(--placeholder); touch-action: none; cursor: grab; }
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--accent); background: radial-gradient(circle at center, transparent 0 49.5%, rgba(30, 34, 80, .35) 50%); }
.crop-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.crop-prev { background: var(--placeholder); border: 1px solid var(--border-strong); }
.crop-side input[type="range"] { width: 100%; accent-color: var(--indigo); }
.icon-cell { display: flex; flex-direction: column; gap: 6px; }

/* 頭文字アイコン（画像が無いとき） */
.avatar { position: relative; }
.avatar .mono { font-weight: 900; color: var(--indigo); font-size: 22px; line-height: 1; user-select: none; }
.member.main .avatar .mono, .avatar.round .mono, .avatar.lg .mono { font-size: 28px; }
.avatar.sm .mono { font-size: 16px; }
.avatar img { position: absolute; inset: 0; }
.credit { font-size: 12px; color: var(--border); }

/* トースト */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 100; box-shadow: 0 6px 24px rgba(30, 34, 80, .25); max-width: calc(100% - 32px); }

/* ページ送り */
.pager { display: flex; justify-content: center; gap: 8px; }

/* フッター */
.site-footer { background: var(--indigo); color: #E4E7F3; margin-top: 48px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.site-footer p { margin: 0; max-width: 640px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #fff; }
.kofi { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--pink); color: var(--text) !important; font-weight: 900; text-decoration: none; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 24px; }
  .hero-art { display: none; }
  .panel { padding: 20px; }
  .nav { order: 3; flex-basis: 100%; }
  .nav a { padding: 6px 10px; }
  .nav a .en { display: none; }
  .header-actions { margin-left: auto; }
  .rank-team { display: none; }
}
