/* 文字の大きさは 11 / 13 / 15 / 17 / 20 / 23 / 31px の7段だけ、太さは 400 / 700 / 800 だけを使う（Xの段階に合わせた） */
:root {
  --bg: #fff; --ink: #0f1419; --sub: #536471; --line: #eff3f4; --line2: #cfd9de; --hover: #f7f9f9;
  --felt: #0c7a5b; --felt2: #095c45; --rim: #20303a;
  --blue: #1d9bf0; --red: #f4212e; --green: #00ba7c; --pill: #0f1419; --pill-ink: #fff; --glass: rgba(255, 255, 255, .85);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --ink: #e7e9ea; --sub: #71767b; --line: #2f3336; --line2: #536471; --hover: #080808; --pill: #eff3f4; --pill-ink: #0f1419; --glass: rgba(0, 0, 0, .65); }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
i, em { font-style: normal; }
[hidden] { display: none !important; }

.col { max-width: 600px; margin: 0 auto; min-height: 100dvh; border-inline: 1px solid var(--line); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.pad { padding-inline: 16px; }
.stack { display: grid; gap: 12px; }

/* 上のバー */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; min-height: 53px; padding: 0 12px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top h1 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.top small { font-size: 13px; color: var(--sub); }
.top.home { display: block; padding: 0; border-bottom: 1px solid var(--line); }
.brand { height: 53px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand small { font-size: 11px; font-weight: 700; color: var(--sub); border: 1px solid var(--line2); border-radius: 99px; padding: 1px 8px; letter-spacing: 0; }
.ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; flex: none; }
.ic:active { background: var(--line); }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; min-width: 72px; height: 53px; padding: 0 16px; border: 0; background: none; color: var(--sub); font-weight: 400; position: relative; }
.tabs button.on { color: var(--ink); font-weight: 700; }
.tabs button.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 99px; background: var(--blue); }

/* ボタン */
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn:active { opacity: .8; }
.btn.solid { background: var(--pill); color: var(--pill-ink); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.line { background: none; border-color: var(--line2); color: var(--ink); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.btn.big { width: 100%; min-height: 52px; font-size: 17px; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; background: none; border-color: var(--line2); }

/* アイコン */
.av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--h, 205) 62% 46%); color: #fff; font-weight: 800; font-size: 17px; line-height: 1; }
.av.lg { width: 56px; height: 56px; font-size: 23px; }
.av.xl { width: 84px; height: 84px; font-size: 31px; }
.av.none { background: none; border: 2px dashed var(--line2); color: var(--sub); font-weight: 400; }
.av.bell { background: var(--blue); }

/* ホーム */
.intro { padding: 24px 16px; border-bottom: 1px solid var(--line); }
.intro h2 { font-size: 31px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.intro p { color: var(--sub); margin: 8px 0 16px; }
.mine { padding: 12px 0 12px 16px; border-bottom: 1px solid var(--line); }
.mine h3 { font-size: 13px; color: var(--sub); font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line2); font-size: 15px; font-weight: 700; }
.chip.off { color: var(--sub); font-weight: 400; }

.post { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.post:active { background: var(--hover); }
.post-body { min-width: 0; flex: 1; }
.post-head { display: flex; gap: 4px; }
.post-head b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-head span { color: var(--sub); flex: none; }
.post-title { font-size: 17px; font-weight: 800; margin-top: 1px; }
.post-text { margin-top: 2px; overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--sub); font-size: 13px; }
.post-meta b { font-weight: 700; }
.post-meta b.need { color: var(--blue); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line2); }
.dots i.on { background: var(--blue); border-color: var(--blue); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--line); color: var(--sub); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag.w { background: color-mix(in srgb, #f91880 14%, transparent); color: #f91880; }
.empty, .loading { padding: 48px 32px; text-align: center; color: var(--sub); }
.empty b { display: block; color: var(--ink); font-size: 23px; font-weight: 800; margin-bottom: 6px; }
.foot { padding: 20px 16px; font-size: 13px; color: var(--sub); }

/* 下のタブと＋ボタン */
.tabbar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto; display: flex; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; height: 53px; display: grid; place-items: center; position: relative; }
.tabbar svg { width: 26px; height: 26px; }
.tabbar a.on svg { stroke-width: 2.6; }
.tabbar a.on svg path, .tabbar a.on svg circle { stroke-width: 2.8; }
.badge { position: absolute; top: 8px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--bg); }
.fab { position: fixed; z-index: 6; right: max(16px, calc(50vw - 284px)); bottom: calc(73px + env(safe-area-inset-bottom)); height: 52px; padding: 0 20px 0 16px; gap: 6px; grid-auto-flow: column; border-radius: 99px; border: 0; font-weight: 800; font-size: 17px; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.fab:active { transform: scale(.94); }

/* 入力 */
.form { display: grid; gap: 16px; padding-top: 12px; padding-bottom: 24px; }
.lead { color: var(--sub); }
.field { display: block; position: relative; border: 1px solid var(--line2); border-radius: 4px; padding: 6px 10px 4px; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field span { display: block; font-size: 13px; color: var(--sub); }
.field:focus-within span { color: var(--blue); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 30px; padding: 0; border: 0; outline: 0; background: none; font-size: 17px; resize: none; -webkit-appearance: none; appearance: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.row3 .btn { padding: 0 6px; font-size: 15px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 40px; font-weight: 700; color: var(--sub); }
.seg input:checked + span { background: var(--pill); color: var(--pill-ink); }
.terms { font-size: 13px; color: var(--sub); }

/* 卓のページ */
.detail { padding: 12px 16px 16px; border-bottom: 1px solid var(--line); }
.big-title { font-size: 23px; font-weight: 800; line-height: 1.3; margin: 12px 0 2px; letter-spacing: -.01em; }
.body { margin-top: 12px; font-size: 17px; overflow-wrap: anywhere; }
.info { margin: 14px 0 0; padding: 12px 14px; display: grid; grid-template-columns: 56px 1fr; gap: 8px 12px; border: 1px solid var(--line2); border-radius: 16px; }
.info dt { color: var(--sub); }
.info dd { margin: 0; overflow-wrap: anywhere; }
.lock { color: var(--sub); }
.act { margin-top: 16px; display: grid; gap: 10px; }
.state { padding: 14px; border-radius: 16px; background: var(--hover); border: 1px solid var(--line); text-align: center; font-weight: 700; }
.state b { font-size: 20px; color: var(--blue); }
.state.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.state.off { color: var(--sub); }
.hint { font-size: 13px; color: var(--sub); text-align: center; }

.sec { padding: 12px 16px; font-size: 20px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; }
.sec small { font-size: 13px; font-weight: 400; color: var(--sub); }
.cells { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.cell { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.cell.flat { padding: 0; }
.who { min-width: 0; flex: 1; }
.who b { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.who span { display: block; font-size: 15px; color: var(--sub); }
.who p { overflow-wrap: anywhere; }
.who em { color: var(--red); }
.tools { display: flex; gap: 6px; align-items: center; flex: none; }
.more { border: 0; background: none; color: var(--sub); font-size: 13px; padding: 6px 2px; }
.done { font-size: 13px; color: var(--sub); }
.cells .none { padding: 24px 16px; color: var(--sub); text-align: center; }
.board .cell { align-items: flex-start; border-top: 1px solid var(--line); }
.quote { margin: 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; border: 1px solid var(--line2); border-radius: 16px; user-select: all; -webkit-user-select: all; }
.reply { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.reply input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; font-size: 17px; border: 1px solid var(--line2); border-radius: 999px; background: none; outline: 0; }
.reply input:focus { border-color: var(--blue); }

/* お知らせ・自分 */
.notes li { border-bottom: 1px solid var(--line); }
.notes li.new { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.profile { padding: 20px 16px; border-bottom: 1px solid var(--line); }
.profile h2 { font-size: 20px; font-weight: 800; margin-top: 10px; }
.profile p { color: var(--sub); }
.stats { display: flex; gap: 20px; margin-top: 10px; color: var(--sub); }
.stats b { color: var(--ink); }

/* 重ねる画面 */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: end center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(91, 112, 131, .4); }
.sheet-body { position: relative; width: 100%; max-width: 600px; max-height: 94dvh; overflow: auto; padding: 14px 24px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); border-radius: 16px 16px 0 0; }
.sheet-body h2 { font-size: 31px; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.01em; }
.sheet-body .x { margin-left: -8px; font-size: 17px; }
@media (min-width: 640px) { .sheet { place-items: center; } .sheet-body { border-radius: 16px; } }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; max-width: 88vw; padding: 11px 18px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 15px; }

/* 差し替え予定のタグ（?dev を付けた時だけ出る） */
.swap { display: none; }
.dev .swap { display: inline-block; margin: 0 0 10px; padding: 2px 9px; font-size: 13px; font-weight: 700; color: #6a4a00; background: #ffe08a; border-radius: 4px; }

.btn.line-green { background: #06c755; color: #fff; }

/* ---- ホーム：絞り込み ---- */
.filters { display: flex; align-items: center; gap: 8px; padding: 0 0 10px 12px; }
.pick { flex: none; position: relative; }
.pick select { height: 34px; padding: 0 28px 0 14px; border-radius: 99px; border: 1px solid var(--line2); background: var(--bg); font-size: 17px; font-weight: 700; -webkit-appearance: none; appearance: none; max-width: 132px; }
.pick select.on { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.pick::after { content: ""; position: absolute; right: 12px; top: 13px; width: 6px; height: 6px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg); pointer-events: none; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-right: 12px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line2); background: none; font-size: 15px; font-weight: 700; color: var(--sub); }
.days button.on { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.count { padding: 10px 16px 2px; font-size: 13px; font-weight: 700; color: var(--sub); }

/* ---- ホーム：募集の行（左に小さな卓） ---- */
.post { align-items: center; gap: 14px; }
.post-title { margin: 0; }
.post-title span { margin-left: 8px; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.post-tags .fee { font-size: 13px; color: var(--sub); margin-left: 2px; }
.post-head { align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--sub); }
.post-head b { font-weight: 700; color: var(--ink); }
.av.xs { width: 20px; height: 20px; font-size: 11px; }
.av.sm { width: 32px; height: 32px; font-size: 15px; }
.tag.mode { background: color-mix(in srgb, var(--felt) 14%, transparent); color: var(--felt); }
@media (prefers-color-scheme: dark) { .tag.mode { color: #3fd0a3; } }
.mini { flex: none; position: relative; width: 76px; height: 76px; display: grid; place-items: center; }
.mini .felt { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(160deg, var(--felt), var(--felt2)); border: 3px solid var(--rim); color: #fff; display: grid; place-content: center; justify-items: center; line-height: 1; }
.mini .felt small { font-size: 11px; font-weight: 700; opacity: .85; }
.mini .felt b { font-size: 20px; font-weight: 800; }
.mini .felt.full { background: none; border-color: var(--line2); color: var(--sub); }
.mini i { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--line2); }
.mini i.on { border: 0; background: var(--ink); }
.mini i.b { bottom: 0; left: 31px; } .mini i.t { top: 0; left: 31px; } .mini i.l { left: 0; top: 31px; } .mini i.r { right: 0; top: 31px; }

/* ---- 募集のページ：卓を囲む ---- */
.ic.end { margin-left: auto; fill: currentColor; }
.hero { padding: 8px 16px 14px; }
.taku { display: grid; grid-template: "x1 t x2" auto "l f r" 1fr "x3 b x4" auto / 76px 1fr 76px; gap: 8px 6px; max-width: 380px; margin: 0 auto; align-items: center; }
.taku .felt { grid-area: f; min-height: 132px; border-radius: 26px; background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--felt) 88%, #fff), var(--felt) 45%, var(--felt2)); border: 7px solid var(--rim); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 6px 18px rgba(0, 0, 0, .14); color: #fff; display: grid; place-content: center; justify-items: center; gap: 6px; }
.taku .felt .num { display: flex; align-items: baseline; gap: 3px; line-height: 1; }
.taku .felt .num small { font-size: 15px; font-weight: 700; opacity: .9; }
.taku .felt .num b { font-size: 31px; font-weight: 800; letter-spacing: -.02em; }
.taku .felt .num b.s { font-size: 31px; margin-right: 6px; }
.taku .felt .tag { background: rgba(255, 255, 255, .18); color: #fff; }
.taku .felt.full { background: radial-gradient(120% 120% at 30% 20%, #47545c, #2c363c); }
.seat { display: grid; justify-items: center; min-width: 0; padding: 0; border: 0; background: none; text-align: center; }
.seat.b { grid-area: b; } .seat.t { grid-area: t; } .seat.l { grid-area: l; } .seat.r { grid-area: r; }
.seat b { margin-top: 4px; font-size: 13px; font-weight: 700; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat span:last-child { font-size: 11px; color: var(--sub); min-height: 15px; }
.seat.self .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
.seat.vacant b { color: var(--sub); font-weight: 400; }
button.seat.vacant .av { border-color: var(--blue); color: var(--blue); animation: pulse 1.8s ease-in-out infinite; }
button.seat.vacant b { color: var(--blue); font-weight: 700; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 18%, transparent); } }
@media (prefers-reduced-motion: reduce) { button.seat.vacant .av { animation: none; } }

.dtabs { position: sticky; top: 53px; z-index: 4; display: flex; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dtabs button { flex: 1; height: 48px; border: 0; background: none; color: var(--sub); font-weight: 400; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dtabs button.on { color: var(--ink); font-weight: 700; }
.dtabs button.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 99px; background: var(--blue); }
.dtabs i { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--line); font-size: 11px; font-weight: 700; line-height: 18px; }
.panel .info { margin: 14px 16px 0; grid-template-columns: 64px 1fr; }
.info small { color: var(--sub); font-size: 13px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.panel .cells { border: 0; }
.panel > .none { padding: 40px 24px; text-align: center; color: var(--sub); }
.warn { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--red) 7%, transparent); color: var(--sub); font-size: 13px; }
.warn b { display: block; color: var(--red); font-size: 15px; }
.warn.pad-s { margin: 14px 16px; }

/* 下に固定する操作 */
.has-act .col { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
.actbar { position: fixed; z-index: 6; left: 0; right: 0; bottom: calc(53px + env(safe-area-inset-bottom)); max-width: 598px; margin: 0 auto; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.actbar p { flex: 1; min-width: 0; font-size: 13px; color: var(--sub); }
.actbar p b { display: block; font-size: 17px; color: var(--ink); }
.actbar p b.ok { color: var(--green); }
.actbar .btn { min-height: 44px; padding: 0 22px; flex: none; }
.actbar .reply { flex: 1; padding: 0; border: 0; }

/* メッセージ（左右の吹き出し） */
.chat { display: grid; gap: 12px; padding: 16px; }
.chat .none { text-align: center; color: var(--sub); padding: 24px 0; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.msg > div { min-width: 0; }
.msg b { display: block; font-size: 13px; color: var(--sub); font-weight: 700; margin: 0 0 3px 4px; }
.msg .av { align-self: flex-start; margin-top: 16px; }
.bub { padding: 9px 14px; border-radius: 18px 18px 18px 4px; background: var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.msg time { flex: none; font-size: 11px; color: var(--sub); }
.msg.mine { justify-self: end; }
.msg.mine .bub { background: var(--blue); color: #fff; border-radius: 18px 18px 4px 18px; }

/* 入力の追加分 */
.field.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg); pointer-events: none; }
.group { display: grid; gap: 8px; }
.glabel { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--sub); }
.glabel output { font-size: 20px; font-weight: 800; color: var(--ink); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks span { display: block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line2); font-size: 15px; font-weight: 700; color: var(--sub); }
.picks input:checked + span { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.range { width: 100%; height: 32px; accent-color: var(--blue); }
.scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); margin-top: -6px; }
.field input::placeholder { color: var(--line2); font-size: 15px; }

/* 確認ダイアログ */
.dlg { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
.dlg-bg { position: absolute; inset: 0; background: rgba(91, 112, 131, .4); }
.dlg-card { position: relative; width: 100%; max-width: 320px; padding: 28px 28px 22px; border-radius: 16px; background: var(--bg); display: grid; gap: 12px; animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.dlg-card h2 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.dlg-card p { color: var(--sub); margin: -4px 0 8px; }
.dlg-card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; background: none; font-size: 17px; resize: none; outline: 0; }
.dlg-card textarea:focus { border-color: var(--blue); }
.dlg-card .btn.big { min-height: 44px; font-size: 15px; }
.btn.red { background: var(--red); color: #fff; }
.sheet-body .stack { margin-top: 14px; }

/* ---- ロゴ ---- */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo .mark { width: 30px; height: 30px; }
.logo .word { height: 19px; width: auto; }

/* ---- 予定・承認 ---- */
.top .pl { padding-left: 4px; }
.day { padding: 16px 16px 4px; font-size: 15px; font-weight: 800; }
.sts { display: flex; gap: 6px; margin-bottom: 5px; }
.st { padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.st.host { background: var(--pill); color: var(--pill-ink); }
.st.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.st.ask { background: color-mix(in srgb, #f7931a 16%, transparent); color: #c56c00; }
.st.off { background: var(--line); color: var(--sub); }
.post.off { opacity: .55; }
.actbar p b.ask { color: #c56c00; }
.seat.asking .av { opacity: .55; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #f7931a; }
.seat.asking span:last-child { color: #c56c00; font-weight: 700; }
.sub-h { padding: 14px 16px 2px; font-size: 15px; font-weight: 800; display: flex; gap: 8px; align-items: baseline; }
.sub-h small { font-weight: 400; color: var(--sub); font-size: 13px; }
.asks { background: color-mix(in srgb, #f7931a 7%, transparent); }
.btn.sm.ok { background: var(--blue); color: #fff; border-color: var(--blue); }
.dtabs i.hot { background: #f7931a; color: #fff; }
.art { display: block; width: 100%; max-width: 420px; margin: 0 auto 14px; border-radius: 16px; }
.empty .art { max-width: 200px; }
@media (prefers-color-scheme: dark) { .st.ask, .actbar p b.ask, .seat.asking span:last-child { color: #ffb347; } }

/* ---- イラストの帯（ログイン後の各画面） ---- */
.banner { margin: 12px 16px 4px; min-height: 136px; padding: 18px; border-radius: 20px; color: #fff; display: grid; align-content: center; gap: 4px; background: #0a795c var(--img) right center / auto 100% no-repeat; overflow: hidden; }
.banner h2 { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; max-width: 58%; text-shadow: 0 1px 8px rgba(4, 48, 36, .5); }
.banner p { font-size: 13px; color: rgba(255, 255, 255, .88); max-width: 58%; }
.banner.done { background-position: center; background-size: cover; min-height: 0; aspect-ratio: 2 / 1; align-content: end; background-image: linear-gradient(to top, rgba(4, 48, 36, .75), transparent 55%), var(--img); }
.banner.done h2, .banner.done p { max-width: none; }
.cover { height: 0; padding-top: 33.3%; background: #0a795c var(--img) center / cover no-repeat; }
.profile.has-cover { padding-top: 0; }
.profile.has-cover > .av { margin-top: -42px; box-shadow: 0 0 0 4px var(--bg); }
.empty .art { max-width: 190px; border-radius: 28px; margin-bottom: 18px; }
.notes .none.empty { border: 0; padding: 40px 32px; }

/* ---- 席の見せ方 F：顔を重ねる ---- */
.logo .mark { width: 50px; height: 22px; }
.pile { display: inline-flex; flex: none; }
.pile .av { width: 30px; height: 30px; font-size: 13px; margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.pile .av:first-child { margin-left: 0; }
.pile .av.none { background: var(--bg); border: 1.5px dashed var(--line2); font-size: 13px; color: var(--line2); }
.post-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--sub); min-width: 0; }
.post-foot b { flex: none; font-size: 15px; font-weight: 800; color: var(--sub); }
.post-foot b.need { color: var(--blue); }
.post-foot span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero { padding: 14px 16px 18px; }
.hero-top { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.need-big { font-size: 20px; font-weight: 800; color: var(--blue); line-height: 1; }
.need-big b { font-size: 31px; font-weight: 800; margin: 0 3px; letter-spacing: -.02em; }
.need-big.full { color: var(--ink); font-size: 31px; }
.need-big small { font-size: 15px; color: var(--sub); font-weight: 700; }
.seats { display: flex; justify-content: center; }
.seats .seat { width: 82px; margin-left: -6px; }
.seats .seat:first-child { margin-left: 0; }
.seats .av.lg { width: 68px; height: 68px; font-size: 31px; box-shadow: 0 0 0 3px var(--bg); }
.seats .av.lg.none { background: var(--bg); box-shadow: none; }
.seats .seat.self .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.500px var(--blue); }
.seats .seat.asking .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.500px #f7931a; }
.seats .seat b { max-width: 78px; margin-top: 7px; }

/* ---- はじめる前のヒーロー（緑の背景＋イラスト、縦は短く） ---- */
.intro.green { padding: 0; border: 0; color: #fff; background: #0a795c url(/art/hero-bg.jpg) top center / 62% auto no-repeat; }
.intro.green .intro-in { padding: 57% 20px 22px; }
.intro.green h2 { font-size: 31px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.intro.green p { color: rgba(255, 255, 255, .88); margin: 4px 0 16px; font-size: 15px; }
.intro.green .btn.big { box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.btn.white { background: #fff; color: #0f1419; }
@media (min-width: 520px) { .intro.green { background-size: 330px auto; } .intro.green .intro-in { padding-top: 300px; } }

/* ---- 白地のイラスト（後ろに色のかたまりを敷いた絵）に合わせる ---- */
.intro.white { padding: 4px 20px 22px; background: #fff; color: #0f1419; border-bottom: 1px solid var(--line); }
.intro.white .art { width: 100%; max-width: 360px; margin: 0 auto 6px; border-radius: 0; }
.intro.white h2 { font-size: 31px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.intro.white p { color: #536471; margin: 4px 0 16px; font-size: 15px; }
.banner { background: #fff var(--img) right center / auto 100% no-repeat; color: #0f1419; border: 1px solid var(--line); min-height: 128px; }
.banner h2 { text-shadow: none; }
.banner p { color: #536471; }
.banner.done { background: #fff var(--img) center top / 100% auto no-repeat; aspect-ratio: auto; padding: 50% 18px 16px; text-align: center; }
.cover { background-color: #fff; border-bottom: 1px solid var(--line); }
.empty .art { border-radius: 0; max-width: 210px; }

.calc { padding: 10px 14px; border-radius: 12px; background: var(--hover); border: 1px solid var(--line); font-size: 15px; color: var(--sub); }
.calc b { color: var(--ink); font-size: 17px; margin-left: 4px; }
.field select { padding-right: 18px; }

/* ロゴのヘッダーの下に置く、画面の見出し */
.page-h { display: flex; align-items: baseline; gap: 10px; padding: 0 16px 12px; }
.page-h h1 { font-size: 23px; font-weight: 800; }
.page-h small { font-size: 13px; color: var(--sub); }

/* ---- デザイナーのレビューを受けた一覧（日付でまとめる／右に顔と色のかたまり／黒ふちの顔） ---- */
.day { display: flex; align-items: center; gap: 8px; padding: 18px 16px 6px; font-size: 15px; font-weight: 800; }
.day i { padding: 1px 8px; border-radius: 6px; background: #dff3ea; color: #0c7a5b; font-size: 13px; }
.day small { font-size: 13px; font-weight: 700; color: var(--sub); }
.post { align-items: center; gap: 12px; padding: 14px 16px; }
.post-title { display: flex; align-items: baseline; gap: 10px; font-size: 17px; }
.post-title time { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.post-title time i { font-size: 15px; font-weight: 700; color: var(--sub); margin-left: 2px; }
.post-title b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-where { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.post-where .fee { font-size: 13px; font-weight: 700; color: var(--ink); }
.post-tags { margin-top: 6px; }
.post-host { margin-top: 6px; font-size: 13px; color: var(--sub); }
.post-side { flex: none; display: grid; justify-items: center; gap: 7px; }
.post-side .pile { padding: 9px 13px; background: #dff3ea; border-radius: 58% 42% 52% 48% / 55% 48% 52% 45%; }
.post:nth-of-type(even) .post-side .pile { border-radius: 45% 55% 44% 56% / 52% 58% 42% 48%; }
.post.full .post-side .pile { background: var(--line); }


.need { padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 800; background: #e8f5fd; color: #1d9bf0; white-space: nowrap; }
.need.hot { background: #1d9bf0; color: #fff; }
.need.done { background: var(--line); color: var(--sub); }


@media (prefers-color-scheme: dark) {
  .post-side .pile { background: color-mix(in srgb, #3fd0a3 16%, transparent); }
  .day i { background: color-mix(in srgb, #3fd0a3 18%, transparent); color: #3fd0a3; }
  .need { background: color-mix(in srgb, #1d9bf0 18%, transparent); }
}
.post-where { flex-wrap: wrap; row-gap: 4px; } .post-where .fee { white-space: nowrap; }

/* ---- 予定：日付の札＋自分の立場＋やること ---- */
.plans { padding: 12px 12px 0; display: grid; gap: 10px; }
.plan { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line2); border-left-width: 5px; border-radius: 14px; }
.plan:active { background: var(--hover); }
.plan.host { border-left-color: var(--ink); }
.plan.guest { border-left-color: var(--green); }
.plan.ask { border-left-color: #f7931a; }
.plan.off { opacity: .55; border-left-color: var(--line2); }
.pdate { flex: none; width: 54px; align-self: flex-start; display: grid; justify-items: center; padding: 6px 0 7px; border-radius: 12px; background: var(--line); line-height: 1.1; }
.pdate small { font-size: 11px; font-weight: 800; color: var(--sub); }
.pdate b { font-size: 31px; font-weight: 800; letter-spacing: -.02em; }
.pdate span { font-size: 11px; font-weight: 700; color: var(--sub); }
.pdate.today { background: #dff3ea; }
.pdate.today small, .pdate.today span { color: #0c7a5b; }
.pbody { min-width: 0; flex: 1; }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prow em { font-size: 13px; font-weight: 800; color: var(--sub); white-space: nowrap; }
.role { padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.role.host { background: var(--pill); color: var(--pill-ink); }
.role.guest { background: color-mix(in srgb, var(--green) 15%, transparent); color: #008a5c; }
.role.ask { background: color-mix(in srgb, #f7931a 18%, transparent); color: #c56c00; }
.role.off { background: var(--line); color: var(--sub); }
.ptime { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.ptime time { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ptime time i { font-size: 15px; font-weight: 700; color: var(--sub); margin-left: 2px; }
.ptime b { font-size: 17px; font-weight: 800; }
.todo { margin-top: 6px; font-size: 13px; color: var(--sub); }
.todo b { color: var(--ink); }
.todo b.act { color: #c56c00; }
.pfoot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--sub); }
.pile.s .av { width: 26px; height: 26px; font-size: 11px; margin-left: -7px; border-width: 1.500px; }
.pile.s .av.none { font-size: 11px; border-width: 1.500px; }
.pile.s .av:first-child { margin-left: 0; }
@media (prefers-color-scheme: dark) { .pdate.today { background: color-mix(in srgb, #3fd0a3 18%, transparent); } .pdate.today small, .pdate.today span { color: #3fd0a3; } .role.guest { color: var(--green); } .role.ask, .todo b.act { color: #ffb347; } }

/* ロゴ：重なる丸4つの上に メ・ン・ツ・モ */
svg.logo { display: block; height: 34px; width: auto; }

/* 日付の区切り：帯にして、はっきり分ける */
.day { margin-top: 0; padding: 10px 16px; gap: 10px; font-size: 17px; font-weight: 800; background: var(--hover); border-top: 8px solid var(--line); border-bottom: 1px solid var(--line); }
.feed > .day:first-child { border-top: 0; }
.day i { padding: 2px 10px; font-size: 13px; background: #0c7a5b; color: #fff; }
.day small { margin-left: auto; font-size: 13px; }
.day + .post { border-top: 0; }
@media (prefers-color-scheme: dark) { .day i { background: #0c7a5b; color: #fff; } .day { background: #101214; } }

/* 顔の丸は元の見た目（濃い塗り＋白いふち、空席は灰色の点線）。大きさだけ一覧用に */
.pile .av { width: 36px; height: 36px; font-size: 15px; margin-left: -10px; }
.pile.s .av { border-width: 0; }
.pile.s .av.none { border-width: 1.500px; }

/* ---- アイコンの絵 ---- */
.av.pic { background: var(--line); overflow: hidden; padding: 0; }
.av.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-edit { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; }
.av-edit i { position: absolute; right: -6px; bottom: -2px; padding: 3px 9px; border-radius: 99px; background: var(--pill); color: var(--pill-ink); font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--bg); }
.av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.av-grid button { padding: 0; border: 0; background: none; border-radius: 50%; aspect-ratio: 1; overflow: hidden; }
.av-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-grid button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--blue); }

/* 顔の後ろの色のかたまりはやめる */
.post-side .pile, .post:nth-of-type(even) .post-side .pile, .post.full .post-side .pile { padding: 0; background: none; border-radius: 0; }
/* 予定は一覧と同じ行。立場のラベルと「やること」だけ足す */
.post .prow { margin-bottom: 6px; }
.post .todo { margin-top: 8px; }
.post.mine { border-left: 5px solid var(--line2); padding-left: 11px; }
.post.mine.host { border-left-color: var(--ink); }
.post.mine.guest { border-left-color: var(--green); }
.post.mine.ask { border-left-color: #f7931a; }

/* 顔の重なりは控えめに */
.pile .av { margin-left: -4px; }
.pile.s .av { margin-left: -3px; }
.pile .av:first-child, .pile.s .av:first-child { margin-left: 0; }
.seats .seat { margin-left: 0; width: 80px; }

/* ---- 太さの使い分け（XやGoogleにならう）
   極太800＝画面の見出しと、行の主役（時刻・大きな数字）だけ
   太字700＝ボタン、名前・エリア、状態のラベル、選択中のもの
   それ以外（タグ・補足・件数・未選択の選択肢）はふつうの400 ---- */
.tag, .count, .chip, .brand small, .day small, .dtabs i, .prow em, .pdate span, .pdate small,
.post-where .fee, .post-title time i, .ptime time i, .need-big small, .seat.asking span:last-child,
.pick select, .days button, .picks span, .seg span, .mine h3 { font-weight: 400; }
.pick select.on, .days button.on, .picks input:checked + span, .seg input:checked + span { font-weight: 700; }
.post-title b, .ptime b, .day, .sub-h, .av, .av-edit i, .empty b, .fab, .need, .role, .st, .post-foot b, .glabel output { font-weight: 700; }
.tag.mode, .tag.w { font-weight: 700; }

/* 日付の区切り：濃い帯＋大きな日付。スクロール中も上に貼りついて、今どの日を見ているか分かる */
.day { position: sticky; top: var(--head-h, 108px); z-index: 3; padding: 9px 16px; background: var(--ink); color: var(--bg); border: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.day i { background: #3fd0a3; color: #06281d; font-size: 13px; padding: 2px 10px; }
.day small { color: inherit; opacity: .7; font-size: 13px; }
.feed > .day:not(:first-child) { margin-top: 14px; }
@media (prefers-color-scheme: dark) { .day { background: #eff3f4; color: #0f1419; } .day i { background: #0c7a5b; color: #fff; } }
.feed > .day:not(:first-child) { margin-top: 0; border-top: 0; }

/* 行の1行目は時刻だけ（開始も終了も同じ大きさ）。エリアは2行目に、ピンの印つきで */
.post-title { display: block; }
.post-title time { font-size: 20px; font-weight: 800; white-space: nowrap; }
.post-where { margin-top: 4px; gap: 6px 10px; }
.post-where .loc { display: inline-flex; align-items: center; gap: 3px; font-size: 15px; font-weight: 700; }
.post-where .loc svg { flex: none; color: var(--sub); }

/* 日付の帯：黒はやめて、淡い水色の帯に。緑にこだわらず、色はロゴの水色・青にそろえる */
.day { background: #e3f1fc; color: #0f1419; }
.day i { background: #1d9bf0; color: #fff; }
.day small { opacity: 1; color: #536471; }
.tag.mode { background: color-mix(in srgb, #1d9bf0 12%, transparent); color: #1278c2; }
@media (prefers-color-scheme: dark) {
  .day { background: #16293a; color: #e7e9ea; }
  .day i { background: #1d9bf0; color: #fff; }
  .day small { color: #8b98a5; }
  .tag.mode { color: #6cc0f7; }
}

/* エリア・場代・タグは1行ずつ分ける */
.post-fee { margin-top: 3px; font-size: 13px; color: var(--sub); }
.post-tags { margin-top: 7px; }

/* 募集のページ：自分の状態を上に大きく */
.mystate { margin: 10px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--hover); border: 1px solid var(--line2); font-size: 13px; color: var(--sub); }
.mystate b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.mystate.ask { background: color-mix(in srgb, #f7931a 12%, transparent); border-color: color-mix(in srgb, #f7931a 45%, transparent); }
.mystate.ask b { color: #c56c00; }
.mystate.ok { background: color-mix(in srgb, var(--green) 10%, transparent); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.mystate.ok b { color: #008a5c; }
@media (prefers-color-scheme: dark) { .mystate.ask b { color: #ffb347; } .mystate.ok b { color: var(--green); } }

/* ホスト名は右下に小さく */
.post-side .by { max-width: 150px; font-size: 11px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ホームの上の切り替え（募集中／自分の予定） */
.modes { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.modes button { flex: 1; height: 46px; border: 0; background: none; color: var(--sub); font-size: 15px; font-weight: 400; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; }
.modes button.on { color: var(--ink); font-weight: 700; }
.modes button.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; margin-left: -32px; border-radius: 99px; background: var(--blue); }
.modes i { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; }
.top.home:has(.filters[hidden]) .modes { margin-bottom: 0; border-bottom: 0; }

/* ---- デザイナーのレビュー（全画面）で出た穴の直し ---- */
.feed { padding-bottom: 96px; }                                   /* 最後の行が「＋メンツ募集」に隠れない */
.actbar p b { font-size: 15px; }
.profile + .sec { font-size: 17px; font-weight: 700; padding-bottom: 4px; }
.sec + .lead { margin-bottom: 16px; }
#delBtn { margin-top: 12px; min-height: 36px; border: 0; background: none; font-size: 15px; font-weight: 400; color: var(--red); }
.top { padding: 6px 12px; }
.top div:has(> small) h1 { font-size: 17px; line-height: 1.25; }
.post-side { justify-items: end; min-width: 132px; }               /* 顔・ラベル・ホスト名の右端をそろえる */
.post-side .by { text-align: right; }
.post.mine.host .by { display: none; }                              /* 「あなたの募集」と重なるので出さない */
.post .prow { justify-content: flex-start; gap: 8px; }
.post .prow em { font-size: 13px; }
.intro.white, .banner, .cover { background-color: #fefefe; }        /* 絵の地の色に合わせて継ぎ目を消す */
.field select:invalid { color: #8b98a5; }
.av.bell { color: #fff; }
.av.bell.n-ok { background: var(--green); }
.av.bell.n-off { background: var(--line2); }
/* 場代のスライダー */
.range { -webkit-appearance: none; appearance: none; height: 32px; background: none; --p: 27%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(to right, #1d9bf0 var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 99px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 99px; background: #1d9bf0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #1d9bf0; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #1d9bf0; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

/* ---- 設定のメニュー（Xの設定のような行） ---- */
.menu-h { padding: 20px 16px 6px; font-size: 13px; font-weight: 700; color: var(--sub); }
.menu-list { border-block: 1px solid var(--line); }
.menu-list > * { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: none; font-size: 15px; font-weight: 400; color: var(--ink); text-align: left; }
.menu-list > * + * { border-top: 1px solid var(--line); }
.menu-list > *:active { background: var(--hover); }
.menu-list svg { color: var(--sub); }
.menu-list .danger { color: var(--red); }
.profile + .menu-list { margin-top: 0; border-top: 0; }
.menu-note { padding: 12px 16px; font-size: 13px; color: var(--sub); }

/* 重ねる画面の「とじる」は押しやすい大きさに */
.sheet-body .x { width: 44px; height: 44px; margin: -6px 0 0 -10px; }
/* 絞り込み：選んでいるものは真っ黒にせず、青い枠と淡い青で示す */
.pick select.on, .days button.on { background: #e8f5fd; color: #1278c2; border-color: #1d9bf0; font-weight: 700; }
@media (prefers-color-scheme: dark) { .pick select.on, .days button.on { background: color-mix(in srgb, #1d9bf0 22%, transparent); color: #6cc0f7; } }
.pick select { max-width: 172px; }

/* ================= 配色の決まり =================
   色は「意味」にだけ使う。飾りでは使わない。
   青   --act  ＝ 押せる・動ける（ボタン、選択中、空席、あと◯人、募集中）
   橙   --wait ＝ 返事待ち・まだ決まっていない（承認待ち、参加希望あり）
   緑   --ok   ＝ 決まった（参加確定、メンツ確定）
   赤   --red  ＝ 危ない・取り消せない（中止、無断欠席、通報、アカウント削除、賭け禁止）
   灰          ＝ 終わった・ただの情報（満卓、タグ、補足）
   立場（ホスト）と種類（四麻・ルール）には色を使わない。 */
:root { --act: #1d9bf0; --act-ink: #1278c2; --act-bg: #e8f5fd; --wait: #f7931a; --wait-ink: #b25e00; --wait-bg: #fff3e2; --ok: #00ba7c; --ok-ink: #008a5c; --ok-bg: #e4f7ef; }
@media (prefers-color-scheme: dark) { :root { --act-ink: #6cc0f7; --act-bg: #12283a; --wait-ink: #ffb347; --wait-bg: #33230b; --ok-ink: #3fd0a3; --ok-bg: #0d2b21; } }
.role { background: var(--line); color: var(--sub); }
.role.hosttag { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.500px var(--ink); }
.role.open { background: var(--act-bg); color: var(--act-ink); }
.role.wait { background: var(--wait-bg); color: var(--wait-ink); }
.role.ok { background: var(--ok-bg); color: var(--ok-ink); }
.role.off { background: var(--line); color: var(--sub); }
.post.mine { border-left: 4px solid var(--line2); padding-left: 12px; }
.post.mine.open { border-left-color: var(--act); }
.post.mine.wait { border-left-color: var(--wait); }
.post.mine.ok { border-left-color: var(--ok); }
.post.mine.off { border-left-color: var(--line2); }
.post.mine .by { display: revert; }
.post.mine:has(.role.hosttag) .by { display: none; }
.post .prow { gap: 6px; }
.todo b.act, .actbar p b.ask, .mystate.ask b, .seat.asking span:last-child { color: var(--wait-ink); }
.mystate.ask { background: var(--wait-bg); border-color: color-mix(in srgb, var(--wait) 45%, transparent); }
.mystate.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.mystate.ok b, .actbar p b.ok { color: var(--ok-ink); }
.need { background: var(--act-bg); color: var(--act-ink); }
.need.hot { background: var(--act); color: #fff; }
.pick select.on, .days button.on { background: var(--act-bg); color: var(--act-ink); border-color: var(--act); }
.tag.mode { background: var(--line); color: var(--ink); }               /* 種類は色なし（太字だけ） */
.dtabs i.hot { background: var(--wait); }
.asks { background: var(--wait-bg); }
.seat.asking .av { opacity: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.500px var(--wait); }

/* 自分の画面：設定のメニューはやめて直接置く。アカウント削除は一番下に目立たせず */
.prof-top { display: flex; align-items: flex-end; justify-content: space-between; }
.prof-top .btn { min-height: 36px; font-size: 15px; }
.quiet { display: block; margin: 72px auto 24px; padding: 8px 12px; border: 0; background: none; font-size: 13px; font-weight: 400; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
#delBtn.quiet { display: block; margin: 96px auto 24px; padding: 8px 12px; min-height: 0; font-size: 13px; color: var(--sub); }

/* 締め切り */
.hint-l { margin-top: -8px; font-size: 13px; color: var(--sub); }
.mystate strong { color: var(--ink); font-weight: 700; }
.who .due { color: var(--wait-ink); font-size: 13px; }
.out-wrap { margin-top: 16px; }

/* メンツ募集の入口は、ヘッダーの右上の小さなボタン（浮かぶボタンはやめた） */
.fab { display: none !important; }
.brand { position: relative; }
.newbtn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px 0 11px; border: 0; border-radius: 99px; background: var(--act); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.newbtn:active { opacity: .8; }
.brand:has(.newbtn) { justify-content: flex-start; padding-left: 16px; }
.feed { padding-bottom: 24px; }
.actbar .btn.share { gap: 6px; padding: 0 18px 0 14px; }

/* ---- 利用規約・プライバシーポリシー ---- */
.doc { padding-bottom: 40px; }
.doc-body { padding: 8px 16px 24px; font-size: 15px; line-height: 1.75; }
.doc-body h2 { margin: 28px 0 8px; font-size: 17px; font-weight: 700; }
.doc-body p { margin: 0 0 10px; }
.doc-body ul { margin: 0 0 10px; padding-left: 1.300em; }
.doc-body li { margin-bottom: 4px; }
.doc-body a { color: var(--act-ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-lead { color: var(--sub); }
.doc-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
.doc-table th, .doc-table td { padding: 8px 10px; border: 1px solid var(--line2); text-align: left; vertical-align: top; }
.doc-table th { background: var(--hover); font-weight: 700; }
.doc-date { margin-top: 28px; font-size: 13px; color: var(--sub); }
.doc-links { font-size: 13px; }
.legal { font-size: 13px; color: var(--sub); }
.legal a { color: var(--act-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal.center { text-align: center; margin: 0 0 24px; }

/* お知らせの印：種類ごとに絵と色を変える（色は配色の決まりどおり） */
.av.bell { background: var(--line2); color: #fff; }
.av.bell.n-msg { background: var(--act); }
.av.bell.n-ask { background: var(--wait); }
.av.bell.n-ok { background: var(--ok); }
.av.bell.n-off { background: var(--line2); }
.av.bell.n-bell { background: var(--sub); }

/* 通報の件数（ホストにだけ出る）と、その内訳のシート */
.repchip { margin-left: 6px; padding: 1px 9px; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tools .repchip { margin-left: 0; font-size: 13px; padding: 4px 10px; }
.rep-head { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rep-head h2 { margin: 0; font-size: 20px; }
.rep-head p { color: var(--sub); font-size: 13px; }
.rep-h { margin-top: 20px; font-size: 15px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.rep-h small { font-size: 13px; font-weight: 400; color: var(--sub); }
.rep-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line2); border-radius: 12px; }
.rep-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-size: 15px; }
.rep-list li + li { border-top: 1px solid var(--line); }
.rep-list b { font-weight: 700; }
.rep-list b.bad { color: var(--red); }
.rep-note { margin-top: 16px; font-size: 13px; color: var(--sub); }

/* メンバーの「通報する」は、押せると分かる枠つきの小さなボタンに */
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 99px; background: none; color: var(--sub); font-size: 13px; font-weight: 400; white-space: nowrap; }
.more:active { background: var(--hover); }

/* メンバーの行：ボタンは名前の下の段に並べる（横に詰めない） */
.panel .cell { flex-wrap: wrap; row-gap: 8px; }
.panel .cell .tools { flex: 0 0 100%; padding-left: 52px; justify-content: flex-start; flex-wrap: wrap; }
.panel .cell .tools:empty { display: none; }

/* 通報の件数は、参加回数の後ろに文字で（押すと内訳） */
.replink { padding: 0; border: 0; background: none; font: inherit; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* 自分の画面：参加と通報の数。通報は押すと内訳 */
.stats { align-items: baseline; }
.stats b { margin-left: 2px; }
.stat-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.stat-btn b { color: var(--ink); }

/* 通報の数は下線なしのふつうの文字（押すと内訳が開くのはそのまま） */
.replink, .stat-btn { text-decoration: none; }
.rep-list { margin-top: 12px; }

/* 希望が来ている空席（誰かは出さない）は橙の点線、数は「希望 n件」 */
.pile .av.none.asked, .seat.vacant.asked .av.none { border-color: var(--wait); color: var(--wait); }
.post-side .askn { font-size: 11px; color: var(--wait-ink); }
.need-big .askn { font-size: 13px; font-weight: 700; color: var(--wait-ink); margin-left: 4px; }

/* 通報の内訳：枠で囲まず、並べるだけ */
.rep-list { border: 0; border-radius: 0; margin-top: 8px; }
.rep-list li { padding: 10px 0; }
.rep-list li + li { border-top: 0; }
.replink { color: inherit; }

/* メンバーの行：右端に「通報」、ほかのボタンは下の段 */
.panel .cell .more.side { flex: none; align-self: flex-start; margin-top: 2px; }
.hostlink { color: inherit; }
.hostlink:active { opacity: .7; }
a.seat { color: inherit; }
/* 人のプロフィール：募集の行にホスト名は出さない（全部その人の募集なので） */
.post.by-hidden .by { display: none; }

/* メッセージ：送った人のアイコンと名前を、吹き出しの上の端にそろえて出す（自分の分も） */
.msg { align-items: flex-start; }
.msg .av { align-self: flex-start; margin-top: 0; }
.msg time { align-self: flex-end; }
.msg-me { justify-self: end; }
.msg-me > div { display: flex; flex-direction: column; align-items: flex-end; }
.msg-me b { margin: 0 4px 3px 0; }
.msg-me .bub { background: var(--blue); color: #fff; border-radius: 18px 4px 18px 18px; }
.msg:not(.msg-me) .bub { border-radius: 4px 18px 18px 18px; }

/* 自分の予定：上に終わった予定、その下に「これからの予定」 */
.past-h { padding: 14px 16px 6px; font-size: 13px; font-weight: 700; color: var(--sub); display: flex; gap: 8px; align-items: baseline; }
.past-h small { font-weight: 400; }
.post.gone { opacity: .6; }
.now-line { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; font-size: 13px; font-weight: 700; color: var(--act-ink); }
.now-line::after { content: ""; flex: 1; height: 1px; background: var(--act); opacity: .4; }
.feed > .now-line:first-child { display: none; }
.now-line { position: sticky; top: var(--head-h, 108px); z-index: 3; background: var(--bg); }

/* 下のタブ「自分」の印：承認が必要な時は橙の点 */
.badge.act { min-width: 11px; width: 11px; height: 11px; padding: 0; background: var(--wait); top: 10px; }

/* タブの画面の左上：自分のアイコン（押すとプロフィール） */
.me-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; }
.me-av .av.sm { width: 32px; height: 32px; }
.brand .me-av { margin-right: 4px; }
.top .me-av + div h1 { font-size: 20px; }

/* 全角の空白をやめた分の間隔 */
.info dd small, .doc-links a + a, .legal.center a + a { margin-left: 8px; }
.doc-links a + a, .legal.center a + a { margin-left: 12px; }

/* お店だけ・予約の注意（募集フォーム） */
.rule-box { padding: 14px 16px; border-radius: 14px; background: var(--wait-bg); border: 1.500px solid var(--wait); display: grid; gap: 4px; }
.rule-box b { font-size: 15px; font-weight: 800; color: var(--wait-ink); }
.rule-box p { font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.rule-box .check { margin-top: 4px; font-size: 15px; font-weight: 700; }
/* また打ちたい */
.btn.sm.like { gap: 4px; color: var(--ok-ink); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.btn.sm.like.on { background: var(--ok-bg); }
.av.bell.n-like { background: var(--ok); }

/* タグの絞り込み（複数選べる。選んだタグをすべて含む募集だけ出す） */
.tagf { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.tagf::-webkit-scrollbar { display: none; }
.tagf:empty { display: none; }
.tagf button { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: none; font-size: 13px; font-weight: 400; color: var(--sub); }
.tagf button.on { background: var(--act-bg); color: var(--act-ink); border-color: var(--act); font-weight: 700; }

/* 内容の主催者：アイコンつき */
.host-dd .hostlink { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.host-dd .av.xs { width: 24px; height: 24px; }

/* 通知のオンオフ（スイッチ） */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-block: 1px solid var(--line); cursor: pointer; }
.switch-row b { display: block; font-size: 15px; font-weight: 700; }
.switch-row small { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--line2); transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch-row input:checked + .switch { background: var(--act); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
