:root {
  --ink: #1E1B18;
  --sub: #5E5750;
  --line: #EFE7DA;
  --line-2: #E3D9C8;
  --bg: #FFFFFF;
  --bg-admin: #FAF7F1;
  --sun: #FFC531;
  --sun-soft: #FFF4D6;
  --shu: #FF6A3D;
  --shu-ink: #B23A12;
  --shu-soft: #FFE6DC;
  --sky: #2E9BF0;
  --sky-ink: #0B5EA8;
  --sky-soft: #E1F1FF;
  --chip: #F6F1E8;
  --stone: #F1ECE4;
  --band-ink: #3D3227;
  --past: #8A8178;
  --glass: rgba(255, 255, 255, 0.9);
  --col: 430px;
  --tabbar-h: 76px;
  --writebar-h: 77px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sun-soft);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Meiryo', sans-serif;
  font-weight: 500;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }

a { color: var(--sky-ink); text-decoration: none; }
a:hover { color: #08467d; }

button, input, select { font-family: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
input:focus, select:focus {
  outline: 3px solid var(--sky);
  outline-offset: 1px;
}

img { display: block; }

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon { flex: none; }

/* ---------- 列(スマホ幅・PCでは真ん中に430px) ---------- */

.app {
  position: relative;
  max-width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.app[data-mode="admin"] { background: var(--bg-admin); }
.app[data-bottom="tabs"] { padding-bottom: var(--tabbar-h); }
.app[data-bottom="thread"] { padding-bottom: calc(var(--tabbar-h) + var(--writebar-h)); }

@media (min-width: 431px) {
  .app { box-shadow: 0 0 0 1px #F3E6C3; }
}

main { flex: 1; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; }
.screen[hidden] { display: none; }

/* 見本の帯 */
.demo-band {
  background: var(--sun-soft);
  border-bottom: 1px solid #F3E3B5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 5px 16px;
  text-align: center;
}

/* 写真のクレジット */
.credit {
  padding: 14px 20px 18px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--sub);
  text-align: center;
}
.credit a {
  color: var(--sky-ink);
  font-weight: 700;
  padding: 15px 2px;
  margin: -15px -2px;
}

/* ---------- 共通の部品 ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}
.pill-sun { background: var(--sun); color: var(--ink); }
.pill-sky { background: var(--sky-soft); color: var(--sky-ink); }
.pill-ink { background: var(--ink); color: #FFFFFF; }
.pill-shu { background: var(--shu); color: var(--ink); }
.pill-shu-soft { background: var(--shu-soft); color: var(--shu-ink); }

.sec { display: flex; flex-direction: column; gap: 12px; }
.sec-title { font-size: 20px; font-weight: 900; }
.sec-title-sm { font-size: 18px; font-weight: 900; }
.muted { color: var(--sub); }

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.btn {
  height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { color: #FFFFFF; }
.btn-line { background: #FFFFFF; border: 1px solid var(--line-2); color: var(--ink); }

/* 選ぶ(ランキングの種類・スレッドの状態) */
.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--chip);
}
.seg button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
.seg button[aria-selected="true"],
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: #FFFFFF;
}

/* ---------- 来場者: 下のタブ ---------- */

.dock {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--col);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.dock[hidden] { display: none; }

.tabbar {
  height: var(--tabbar-h);
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tab {
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 900; }
.tab[aria-current="page"] svg { stroke-width: 2.2; }

/* スレッドの下の書き込み欄 */
.writebar {
  height: var(--writebar-h);
  padding: 12px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.writebar[hidden] { display: none; }
.write-open {
  height: 52px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 18px;
  font-size: 15px;
}
.write-open:hover { color: var(--sub); }
.write-open span:first-child { flex: 1; }
.write-open .write-go {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.write-closed {
  height: 52px;
  border-radius: 999px;
  background: var(--shu-soft);
  color: var(--shu-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.write-open[hidden], .write-closed[hidden] { display: none; }

/* ---------- ホーム ---------- */

.hero { position: relative; height: 250px; }
.hero > img { width: 100%; height: 250px; object-fit: cover; }

.glassbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 14px;
}
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.logo-text {
  font-family: 'Dela Gothic One', 'Zen Maru Gothic', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
}
.btn-write {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-write:hover { color: #FFFFFF; }

.admin-entry {
  position: absolute;
  top: 76px;
  right: 12px;
  height: 44px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}
.admin-entry:hover { color: var(--ink); background: #FFFFFF; }

.sunband {
  background: var(--sun);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sunband-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.live-pill {
  background: var(--ink);
  color: var(--sun);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}
.sunband-meta { font-size: 13px; font-weight: 700; color: var(--band-ink); }
.sunband h1 { font-size: 30px; line-height: 1.15; font-weight: 900; }
.sunband p { font-size: 13px; color: var(--band-ink); }

.page-body {
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.notice {
  background: var(--sun-soft);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 12px;
}
.notice-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-head { display: flex; align-items: center; gap: 8px; }
.notice-head strong { font-weight: 900; font-size: 15px; }
.notice-head span { font-size: 12px; color: var(--sub); }
.notice p { font-size: 15px; line-height: 1.6; }
.notice-text { display: flex; flex-direction: column; gap: 4px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; }
.see-all { font-size: 14px; font-weight: 700; padding: 12px 0; }

.rank3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rank3 a { color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.rank3-img { position: relative; }
.rank3-img img { width: 100%; height: 84px; object-fit: cover; border-radius: 14px; }
.rank3-no {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank3-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.rank3-count { font-size: 12px; color: var(--sub); }

.list { display: flex; flex-direction: column; gap: 4px; }
.list .sec-title { margin-bottom: 8px; }
.thread-row {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { color: var(--ink); }
.row-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-text strong { font-weight: 700; font-size: 16px; }
.row-text span { font-size: 13px; color: var(--sub); }

.pick {
  color: var(--ink);
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--sun-soft);
  border-radius: 18px;
  padding: 12px;
}
.pick:hover { color: var(--ink); }
.pick img { width: 110px; height: 84px; object-fit: cover; border-radius: 14px; flex: none; }
.pick-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-time { font-size: 13px; font-weight: 700; color: var(--shu-ink); }
.pick-title { font-weight: 900; font-size: 17px; line-height: 1.3; }
.pick-more { font-size: 13px; font-weight: 700; color: var(--sky-ink); }

/* ---------- スレッド ---------- */

.subbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 0 4px;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 999px;
}
.icon-btn:hover { color: var(--ink); background: var(--chip); }
.subbar h1 { flex: 1; font-size: 19px; font-weight: 900; }
.subbar-title { font-size: 17px; font-weight: 900; }

.thread-top {
  padding: 14px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thread-top > p { font-size: 13px; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.chip-btn.is-on { border: 0; background: var(--ink); color: #FFFFFF; }

.pinned {
  margin: 8px 20px 4px;
  background: var(--sun-soft);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pinned-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pinned-head .staff {
  font-size: 12px;
  font-weight: 700;
  color: var(--sun);
  background: var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
}
.pinned-head strong { font-weight: 700; font-size: 14px; }
.pinned p { font-size: 15px; line-height: 1.6; }

.post {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post:last-child { border-bottom: 0; }
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 999px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-shu { background: var(--shu-soft); color: var(--shu-ink); }
.av-sky { background: var(--sky-soft); color: var(--sky-ink); }
.av-ink { background: var(--ink); color: var(--sun); }
.av-sun { background: var(--sun-soft); color: var(--ink); }
.post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-name { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.post-name strong { font-weight: 700; font-size: 15px; }
.post-name .tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-group { color: var(--shu-ink); background: var(--shu-soft); }
.tag-student { color: var(--sky-ink); background: var(--sky-soft); }
.post-time { font-size: 12px; color: var(--sub); }
.more-btn {
  width: 44px;
  height: 44px;
  flex: none;
  margin-right: -8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post > p { font-size: 15px; line-height: 1.6; }
.post-img { width: 100%; height: 160px; object-fit: cover; border-radius: 16px; }
.post-actions { display: flex; gap: 8px; }
.react {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.like svg { fill: none; stroke: currentColor; }
.like[aria-pressed="true"] svg { fill: var(--shu); stroke: var(--shu); }

/* ---------- 黄色の見出し(ランキング・イベント) ---------- */

.sunhead {
  background: var(--sun);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sunhead h1 { font-size: 28px; line-height: 1.15; font-weight: 900; }
.sunhead p { font-size: 13px; color: var(--band-ink); }

/* ---------- ランキング ---------- */

.rank-tabs { margin: 16px 20px 0; }
.rank-tabs button { height: 44px; font-size: 15px; }

.rank-panel {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rank-panel[hidden] { display: none; }
.rank-top { color: var(--ink); display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.rank-top:hover { color: var(--ink); }
.rank-top-img { position: relative; }
.rank-top-img img { width: 100%; height: 180px; object-fit: cover; border-radius: 20px; }
.first {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--shu);
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.rank-top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rank-top-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-top-row strong { font-weight: 900; font-size: 20px; }
.rank-top-row span { font-size: 13px; color: var(--sub); }
.rank-top-row b { font-weight: 900; font-size: 15px; white-space: nowrap; }

.rank-row {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.rank-row:hover { color: var(--ink); }
.rank-no { width: 24px; flex: none; font-weight: 900; font-size: 18px; text-align: center; }
.rank-thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 14px; }
.rank-letter {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-row .row-text strong { font-size: 16px; }
.rank-n { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ---------- イベント ---------- */

.sunhead-days { display: flex; gap: 8px; margin-top: 6px; }
.day-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.day-btn.is-on { background: var(--ink); color: #FFFFFF; }

.feature {
  border-radius: 22px;
  background: #2A1F3D;
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-img { position: relative; }
.feature-img img { width: 100%; height: 170px; object-fit: cover; }
.feature-img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.feature-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.feature-time { font-size: 13px; font-weight: 700; color: #FFD27A; }
.feature h2 { font-size: 22px; line-height: 1.3; font-weight: 900; }
.feature p { font-size: 15px; line-height: 1.6; color: #EDE6F5; }
.go-btn {
  margin-top: 4px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.go-btn[aria-pressed="true"] { background: #FFFFFF; }

.sched { display: flex; flex-direction: column; }
.sched .sec-title { margin-bottom: 6px; }
.sched-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sched-row:last-child { border-bottom: 0; }
.sched-time { width: 64px; flex: none; font-size: 20px; font-weight: 900; }
.sched-row.is-past .sched-time { color: var(--past); }
.sched-row.is-past .row-text strong { color: var(--sub); }
.sched-row .pill { align-self: center; }
.changed { color: var(--shu-ink) !important; font-weight: 700; }

/* ---------- 書き込む前の確認 ---------- */

.verify-step {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.verify-step[hidden] { display: none; }
.verify-head { display: flex; flex-direction: column; gap: 6px; }
.verify-head h1 { font-size: 24px; line-height: 1.3; font-weight: 900; }
.verify-head p { font-size: 14px; color: var(--sub); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
  background: #FFFFFF;
  width: 100%;
}
.field input::placeholder { color: #766E67; opacity: 1; }
.field .code {
  height: 64px;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 10px;
  text-align: center;
}
.agree {
  background: var(--sun-soft);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agree-row { display: flex; gap: 10px; align-items: flex-start; }
.agree-row input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--ink);
}
.agree-row label { font-size: 14px; line-height: 1.6; }
.agree p { margin-left: 32px; font-size: 13px; color: var(--sub); }
.big-btn {
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.big-btn:hover { color: #FFFFFF; }
.big-btn:disabled { background: #E9E2D6; color: var(--sub); }
.text-btn {
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--sky-ink);
  font-size: 14px;
  font-weight: 700;
}
.verify-foot {
  margin-top: auto;
  padding: 20px 14px 12px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sub);
  font-size: 13px;
}

/* ---------- 運営: 上の帯とタブ ---------- */

.adminbar {
  background: var(--ink);
  color: #FFFFFF;
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adminbar[hidden] { display: none; }
.adminbar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adminbar-logo {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}
.adminbar-logo:hover { color: #FFFFFF; }
.adminbar-logo .logo-text { font-size: 20px; letter-spacing: 0; }
.adminbar-logo .pill { padding: 3px 10px; }
.adminbar-user { font-size: 13px; color: #E9E2D6; }
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 999px;
}
.admin-tab {
  height: 44px;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-tab:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.admin-tab[aria-current="page"] { background: #FFFFFF; color: var(--ink); }

/* ---------- 運営の管理 ---------- */

.panel {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-head { display: flex; flex-direction: column; gap: 4px; }
.panel-head p { font-size: 13px; color: var(--sub); }
.alert {
  background: var(--shu-soft);
  color: var(--shu-ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.alert[hidden] { display: none; }
.stop-btn {
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: var(--shu);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}
.stop-btn[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

.add-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.tagline { display: flex; flex-wrap: wrap; gap: 6px; }
.tagline span {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
}
.th-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.th-card-head { display: flex; justify-content: space-between; gap: 8px; }
.th-card-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.th-card-head strong { font-weight: 700; font-size: 16px; }
.th-card-head span { font-size: 12px; color: var(--sub); }
.th-card-head .count { font-size: 13px; color: var(--sub); white-space: nowrap; }
.th-card .seg button { height: 44px; font-size: 13px; }

.report { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.report-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.report-meta .pill { padding: 3px 9px; }
.report-meta span:last-child { font-size: 12px; color: var(--sub); }
.report p { font-size: 14px; line-height: 1.6; }
.reveal {
  background: var(--sky-soft);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--sky-ink);
}
.reveal[hidden] { display: none; }
.reveal strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.reveal span { font-size: 12px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.trio .btn { font-size: 13px; }
.trio .who { color: var(--sky-ink); }
.note { font-size: 12px; color: var(--sub); line-height: 1.6; }

/* ---------- 権限の管理 ---------- */

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat > span { font-size: 13px; color: var(--sub); }
.stat strong { font-size: 24px; font-weight: 900; }
.stat small { font-size: 14px; font-weight: 700; }
.select-field { display: flex; flex-direction: column; gap: 6px; }
.select-field label { font-size: 14px; font-weight: 700; }
.select-field select {
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  padding: 0 12px;
  font-size: 16px;
  background: #FFFFFF;
  color: var(--ink);
  width: 100%;
}
.made {
  background: var(--sky-soft);
  border-radius: 14px;
  padding: 10px 10px 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.made[hidden] { display: none; }
.made span { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--sky-ink); overflow-wrap: anywhere; }
.made button {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: #FFFFFF;
  color: var(--sky-ink);
  font-size: 13px;
  font-weight: 700;
}
.invite { padding: 14px; display: flex; align-items: center; gap: 10px; }
.invite > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.invite strong { font-weight: 700; font-size: 15px; }
.invite span { font-size: 12px; color: var(--sub); }
.small-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}
.small-btn.danger { color: var(--shu-ink); }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .row-text strong { font-size: 15px; }
.member .row-text span { font-size: 12px; }
.handover {
  background: var(--sun-soft);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.handover p { font-size: 14px; line-height: 1.6; }
.outline-btn {
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

/* ---------- 載せる ---------- */

.qr-card { padding: 16px; display: flex; gap: 16px; align-items: center; border-radius: 20px; }
.qr-card img { width: 150px; height: 150px; flex: none; border-radius: 8px; }
.qr-card > div { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qr-card p { font-size: 14px; line-height: 1.6; }
.code-box {
  background: var(--ink);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.code-box code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #FFE7A3;
  overflow-wrap: anywhere;
}
.code-box code::selection { background: var(--sun); color: var(--ink); }
.copy-btn {
  align-self: flex-start;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.sec > p.muted { font-size: 13px; }

.mock { background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.mock-bar { height: 32px; background: var(--stone); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-bar i { width: 8px; height: 8px; border-radius: 999px; background: #D9CFC0; }
.mock-bar span { margin-left: 8px; font-size: 11px; color: var(--sub); }
.mock-head { background: #2A1F3D; color: #FFFFFF; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.mock-head span { font-size: 11px; color: #D9CCEE; }
.mock-head strong { font-size: 18px; font-weight: 900; }
.mock-nav { padding: 14px 16px 6px; color: var(--sub); font-size: 12px; }
.mock-widget {
  margin: 8px 12px 14px;
  border-radius: 16px;
  background: var(--sun);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-widget-head { display: flex; align-items: center; justify-content: space-between; }
.mock-widget-head .logo-text { font-size: 15px; letter-spacing: 0; }
.mock-widget-head span:last-child { font-size: 11px; font-weight: 700; }
.mock-item { background: #FFFFFF; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; font-size: 13px; }
.mock-item strong { font-weight: 700; }
.mock-item span { color: var(--sub); }
.mock-widget a {
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.period { gap: 4px; }
.period h2 { margin-bottom: 6px; }
.period-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.period-row b { font-weight: 700; white-space: nowrap; }
.period-row.last { border-bottom: 0; }
.period .outline-btn { margin-top: 6px; height: 44px; font-size: 14px; font-weight: 700; }
