/* そろカレ — 白基調 / 赤=押すボタン・今日・自分 / 黄=★・全員の空き / グレー=プライベート
   本文16px以上・タップ領域48px以上・余白広め・補足文なし・英字の小ラベルなし */
:root {
  --red: #E53935; --red-d: #B3261E; --red-l: #FDECEA;
  --yel: #FFC21A; --yel-d: #3A2C00; --yel-l: #FFF5D1;
  --ink: #222; --sub: #6B6B6B; --mute: #9A9A9A; --line: #EEEEEE; --line2: #DDDDDD; --pvt: #F1F1F1;
  --tab-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  -webkit-tap-highlight-color: rgba(229, 57, 53, .12);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { flex: none; }
[hidden] { display: none !important; }
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-top: var(--safe-t); }
body.has-tabs .app { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

/* ---------- 上のバー ---------- */
.top { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; min-height: 60px; padding: 4px 4px 0; background: #fff; }
.top-title { margin: 0; text-align: center; font-size: 19px; font-weight: 800; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: none; border: 0; padding: 0; }
.icon-btn svg { width: 28px; height: 28px; }
.icon-btn.ph { visibility: hidden; }
.icon-btn:active { background: var(--pvt); }

/* ---------- 下のタブ ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 20;
  display: flex; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: #fff; border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8A8A8A; font-size: 14px; font-weight: 700; min-height: 64px; }
.tab svg { width: 27px; height: 27px; }
.tab.on { color: var(--red); }

/* ---------- ボタン ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 20px; border-radius: 16px; border: 0; font-size: 18px; font-weight: 800; cursor: pointer; text-align: center; }
.btn.big { min-height: 60px; font-size: 19px; }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(229, 57, 53, .25); }
.btn.red:active { background: var(--red-d); }
.btn.outline { background: #fff; color: var(--red); border: 2px solid var(--red); }
.btn.ghost { background: none; color: var(--sub); font-weight: 700; min-height: 52px; font-size: 17px; }
.btn[disabled] { opacity: .6; }
.fab {
  position: fixed; z-index: 15; right: max(20px, calc(50% - 280px + 20px)); bottom: calc(var(--tab-h) + var(--safe-b) + 18px);
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; font-size: 38px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(229, 57, 53, .4);
}
.fab:active { background: var(--red-d); }
.actions { display: flex; flex-direction: column; gap: 12px; padding: 24px 16px; }
.sticky-bottom { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 8px); padding: 14px 0 6px; background: linear-gradient(rgba(255,255,255,0), #fff 30%); z-index: 5; }
body:not(.has-tabs) .sticky-bottom { bottom: calc(var(--safe-b) + 8px); }

/* ---------- タグ ---------- */
.tag { display: inline-flex; align-items: center; white-space: nowrap; font-size: 14px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.tag.red { background: var(--red-l); color: var(--red-d); }
.tag.gray { background: var(--pvt); color: var(--sub); }
.tag.all { background: var(--red); color: #fff; font-size: 16px; padding: 4px 16px; }
.tag.st { background: var(--yel); color: var(--yel-d); font-size: 16px; padding: 4px 16px; }

/* ---------- アイコン ---------- */
.lock { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
.flag { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; color: var(--red); }

/* ---------- ① 月表示 ---------- */
.month-top { grid-template-columns: 64px 1fr 56px; }
.month-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.month-title { margin: 0; font-size: 24px; font-weight: 800; min-width: 96px; text-align: center; }
.today-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; font-size: 16px; font-weight: 800; color: var(--red); }
body.is-month .app { padding-bottom: 0; }
.month { display: flex; flex-direction: column; height: calc(100dvh - var(--safe-t) - 64px - var(--tab-h) - var(--safe-b)); min-height: 420px; }
.reconnect + .month { height: calc(100dvh - var(--safe-t) - 64px - 72px - var(--tab-h) - var(--safe-b)); }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 14px; font-weight: 700; color: var(--sub); padding: 2px 0 4px; }
.wk .sun, .cell.sun .dnum { color: var(--red); }
.mgrid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.cell { border-top: 1px solid var(--line); padding: 3px 1px 0; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.cell:active { background: var(--pvt); }
.dnum { align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; font-weight: 700; flex: none; }
.cell.out .dnum { color: #C4C4C4; }
.cell.today .dnum { background: var(--red); color: #fff; }
.chip { display: block; margin: 2px 1px 0; padding: 1px 3px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.35; background: var(--red-l); color: var(--red-d); white-space: nowrap; overflow: hidden; }
.chip.p { background: var(--pvt); color: var(--sub); }
.chip .lock, .chip .flag { width: 11px; height: 11px; margin-right: 1px; vertical-align: -1px; }
.cell.out .chip { opacity: .55; }
.more { font-size: 12px; color: var(--sub); text-align: center; font-weight: 700; }

/* ---------- 日の移動 ---------- */
.daynav { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 56px; }
.daynav-label { font-size: 19px; font-weight: 800; min-width: 104px; text-align: center; }
.daynav-label.is-today { color: var(--red); }

/* ---------- その日の予定 ---------- */
.ev-list { border-top: 1px solid var(--line); }
.ev-row { display: grid; grid-template-columns: 68px 1fr 24px; align-items: center; gap: 10px; min-height: 68px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.ev-row:active { background: var(--pvt); }
.ev-row > svg { width: 22px; height: 22px; color: var(--mute); }
.ev-time { font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--red-d); font-variant-numeric: tabular-nums; }
.ev-row.p .ev-time { color: var(--sub); }
.ev-title { font-size: 18px; font-weight: 700; word-break: break-word; }
.ev-row.p .ev-title { color: var(--sub); }
.empty { text-align: center; color: var(--sub); padding: 48px 16px; margin: 0; font-size: 17px; }
.empty.small { padding: 14px 16px; text-align: left; }

/* ---------- ② 入力フォーム ---------- */
.form { padding: 0 20px 24px; }
.form .top { margin: 0 -16px; }
.title-input { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line2); padding: 16px 0 14px; font-size: 24px; font-weight: 800; background: none; outline: none; border-radius: 0; }
.title-input:focus, .line-input:focus { border-bottom-color: var(--red); }
.title-input::placeholder, .line-input::placeholder { color: #BDBDBD; font-weight: 700; }
.title-static { font-size: 24px; font-weight: 800; margin: 0; padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.line-input { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line2); padding: 18px 0; font-size: 18px; background: none; outline: none; border-radius: 0; }
.row { display: flex; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; margin: 0; gap: 12px; }
.row.static { font-weight: 700; color: var(--ink); }
.row input[type="date"] { width: 100%; min-height: 56px; border: 0; background: none; font-size: 20px; font-weight: 800; padding: 0; -webkit-appearance: none; appearance: none; text-align: left; }
.times { justify-content: space-between; }
.times .arrow { font-size: 20px; color: var(--sub); }
.time-sel { flex: 1; min-height: 54px; font-size: 21px; font-weight: 800; text-align: center; text-align-last: center; border: 2px solid var(--line2); border-radius: 14px; background: #fff; padding: 0 8px; -webkit-appearance: none; appearance: none; font-variant-numeric: tabular-nums; }
.time-sel:focus { border-color: var(--red); outline: none; }
.switch { justify-content: space-between; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; width: 56px; height: 34px; border-radius: 17px; background: #D6D6D6; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 3px solid rgba(229,57,53,.35); outline-offset: 2px; }
.form > .btn.red { margin-top: 32px; }
.form > .btn.ghost { margin-top: 12px; }
.error { margin: 12px 0 0; padding: 12px 16px; background: var(--red-l); color: var(--red-d); border-radius: 12px; font-size: 16px; font-weight: 800; }
.lb { font-size: 16px; font-weight: 800; padding: 22px 0 10px; }

/* ---------- 一覧 ---------- */
.list { border-top: 1px solid var(--line); }
.list form { margin: 0; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 16px 8px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 18px; font-weight: 700; text-align: left; cursor: pointer; }
.list-row:active { background: var(--pvt); }
.list-row > span:first-child:not(.av) { flex: 1; }
.list-row > svg { width: 22px; height: 22px; color: var(--mute); }
.list-row.muted { color: var(--mute); }
.count { color: var(--sub); font-size: 16px; font-weight: 700; }
.me-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px 20px; }
.me-name { margin: 0; font-size: 22px; font-weight: 800; }
.av { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red-l); color: var(--red-d); font-weight: 800; font-size: 16px; flex: none; }
.av.me { background: var(--red); color: #fff; }
.me-card .av { width: 72px; height: 72px; font-size: 30px; }
.checklist { border-top: 1px solid var(--line); margin-top: 8px; }
.check-row { display: flex; align-items: center; gap: 14px; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; cursor: pointer; position: relative; }
.check-row.off { color: var(--mute); }
.check-row input, .mem-main input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 2px solid #CFCFCF; background: #fff; flex: none; }
.ck svg { width: 20px; height: 20px; color: #fff; opacity: 0; }
input:checked + .ck { background: var(--red); border-color: var(--red); }
input:checked + .ck svg { opacity: 1; }
input:focus-visible + .ck { outline: 3px solid rgba(229,57,53,.35); outline-offset: 2px; }
input:disabled + .ck { background: var(--pvt); }

/* ---------- 確認・お知らせ ---------- */
.confirm { display: flex; flex-direction: column; gap: 14px; padding: 48px 20px; }
.confirm-title { margin: 0 0 16px; text-align: center; font-size: 22px; font-weight: 800; word-break: break-word; }
.msg { padding: 72px 20px; }
.msg-text { margin: 0 0 32px; text-align: center; font-size: 20px; font-weight: 800; }
.reconnect { padding: 6px 16px 10px; }

/* ---------- ⑦ ログイン・参加 ---------- */
body.is-login .app { display: flex; }
.login, .join { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px 24px calc(48px + var(--safe-b)); }
.mark { width: 104px; height: 104px; border-radius: 26px; background: var(--red); position: relative; margin: 0 auto 36px; }
.mark::before { content: ""; position: absolute; left: 20px; right: 20px; top: 30px; bottom: 20px; background: #fff; border-radius: 8px; }
.mark::after { content: ""; position: absolute; right: 28px; bottom: 28px; width: 20px; height: 20px; border-radius: 50%; background: var(--yel); }
.mark.small { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 20px; }
.mark.small::before { left: 15px; right: 15px; top: 23px; bottom: 15px; }
.mark.small::after { right: 21px; bottom: 21px; width: 15px; height: 15px; }
.dev-users { display: flex; flex-direction: column; gap: 12px; }
.dev-users form { margin: 0; }
.big-name { margin: 0; text-align: center; font-size: 26px; font-weight: 800; word-break: break-word; }
.notice { margin: 8px 0 20px; padding: 16px; border-radius: 14px; background: var(--pvt); font-size: 17px; font-weight: 700; text-align: center; word-break: auto-phrase; text-wrap: balance; }

/* ---------- 招待 ---------- */
.invite { display: flex; flex-direction: column; gap: 16px; padding: 40px 20px; }
.url-box { width: 100%; font-size: 15px; padding: 14px; border: 1px solid var(--line2); border-radius: 12px; background: #FAFAFA; color: var(--sub); }

/* ---------- ③ グループの1日表示 ---------- */
body.is-gday .app { padding-bottom: 0; }
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px 0 16px; min-height: 60px; }
.gname { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-size: 21px; font-weight: 800; min-width: 0; }
.gname span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { font-size: 14px; color: var(--sub); }
.show-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line2); border-radius: 999px; font-size: 15px; font-weight: 800; white-space: nowrap; flex: none; }
.show-btn b { color: var(--red); }
.gscroll {
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  height: calc(100dvh - var(--safe-t) - 66px - 56px - var(--tab-h) - var(--safe-b));
  border-top: 1px solid var(--line);
}
.gcontent { width: max(100%, calc(46px + var(--cols) * 66px)); }
.grow-head, .grow-allday, .grow-body { display: grid; grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); }
.grow-head { position: sticky; top: 0; z-index: 6; background: #fff; border-bottom: 1px solid var(--line); }
.corner { position: sticky; left: 0; z-index: 7; background: #fff; }
.corner.tl { font-size: 12px; font-weight: 800; color: var(--sub); display: flex; align-items: center; justify-content: center; }
.mh { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 6px; min-width: 0; }
.mh .nm { font-size: 13px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh.me .nm { color: var(--red); }
.mh.off .av { background: var(--pvt); color: var(--mute); }
.unl { font-size: 11px; font-weight: 800; color: var(--sub); background: var(--pvt); border-radius: 999px; padding: 0 6px; }
.grow-allday { border-bottom: 1px solid var(--line); }
.adcell { padding: 3px 2px; border-left: 1px solid var(--line); min-width: 0; }
.grow-body { position: relative; }
.tcol { position: sticky; left: 0; z-index: 4; background: #fff; }
.hl { position: absolute; right: 7px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.mcol { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 56px); min-width: 0; }
.mcol.off { background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 56px), repeating-linear-gradient(45deg, #F6F6F6 0 6px, #fff 6px 12px); }
.band { position: absolute; left: 0; right: 0; background: var(--yel-l); mix-blend-mode: multiply; }
.tcol + .mcol .band { border-left: 4px solid var(--yel); }
.ev { position: absolute; left: 3px; right: 3px; z-index: 1; display: block; overflow: hidden; border-radius: 6px; background: var(--red-l); border-left: 4px solid var(--red); color: var(--red-d); font-size: 13px; font-weight: 800; line-height: 1.25; padding: 3px 3px 2px 4px; }
.ev.p { background: var(--pvt); border-left-color: #C4C4C4; color: var(--sub); font-weight: 700; }
.ev.free { background: #fff; border: 1px dashed #CFCFCF; border-left: 4px solid #CFCFCF; color: var(--sub); font-weight: 700; opacity: .9; }
.ev .ev-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lc, 2); overflow: hidden; word-break: break-all; }
.ev .ev-h { display: block; font-size: 11px; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
.ev .lock, .ev .flag { width: 12px; height: 12px; margin: 0 1px 0 0; vertical-align: -1px; }

/* ---------- ④ 空きをさがす ---------- */
.sub-head { margin: -4px 0 8px; text-align: center; font-size: 17px; font-weight: 800; color: var(--sub); }
.sub-head a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
.search-form { padding: 0 16px 24px; }
.mem-list { border-top: 1px solid var(--line); }
.mem { display: flex; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); }
.mem.off { color: var(--mute); }
.mem-main { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 62px; font-size: 18px; font-weight: 800; cursor: pointer; position: relative; min-width: 0; }
.mem-main .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; cursor: pointer; flex: none; }
.star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star span { font-size: 34px; line-height: 1; color: #DADADA; }
.star input:checked + span { color: var(--yel); text-shadow: 0 0 1px #C99700; }
.star input:focus-visible + span { outline: 3px solid rgba(255,194,26,.6); border-radius: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.seg-item { position: relative; cursor: pointer; }
.seg-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-item span { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 2px solid var(--line2); border-radius: 14px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.seg-item input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.seg-item input:focus-visible + span { outline: 3px solid rgba(229,57,53,.35); outline-offset: 2px; }
.search-form .sticky-bottom { margin-top: 20px; }

/* ---------- ⑤ 結果 ---------- */
.results { padding-top: 10px; }
.results .tag { margin: 10px 16px 8px; }
.results .btn.ghost { margin: 4px 0; }
.slot { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); font-size: 18px; }
a.slot:active { background: var(--pvt); }
.slot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.slot-main b { font-weight: 800; }
.slot .ms { font-size: 15px; font-weight: 700; color: var(--sub); }
.slot .ct { font-size: 19px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.slot > svg { width: 22px; height: 22px; color: var(--mute); }

/* ---------- ⑥ 決定・決まった予定 ---------- */
.pick { margin: 12px 0 8px; background: var(--yel-l); border-radius: 18px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pick b { font-size: 18px; font-weight: 800; }
.pick span { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pick.gray { background: var(--pvt); color: var(--sub); }
body:not(.form-page) > .app > .pick { margin: 12px 16px 8px; }
.pick-sel { font-size: 26px; font-weight: 800; min-height: 56px; border: 2px solid var(--yel); border-radius: 14px; background: #fff; padding: 0 16px; text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none; font-variant-numeric: tabular-nums; }
.dtitle { margin: 12px 20px 4px; font-size: 23px; font-weight: 800; word-break: break-word; }
.dtitle .flag { width: 20px; height: 20px; vertical-align: -3px; }
.dloc { margin: 0 20px 4px; font-size: 17px; font-weight: 700; word-break: break-all; }
.dorg { margin: 0 20px 12px; font-size: 16px; font-weight: 700; color: var(--sub); }
.status-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.status-list li { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.st-ok { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.st-ok svg { width: 20px; height: 20px; color: var(--red); }
.st-ng { font-weight: 800; color: var(--red-d); font-size: 16px; }

/* ---------- ホーム画面に追加(初回だけ) ---------- */
.install {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 536px;
  bottom: calc(var(--tab-h) + var(--safe-b) + 12px); background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 12px;
}
.install-head { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 800; }
.install-head img { width: 52px; height: 52px; border-radius: 12px; }
.install-steps { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 800; padding: 8px 0; flex-wrap: wrap; }
.install-steps .box { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--pvt); }
.install-steps svg { width: 22px; height: 22px; }

@media (min-width: 600px) {
  body { background: #FAFAFA; }
  .app { background: #fff; box-shadow: 0 0 0 1px var(--line); }
}

/* ---------- 改善(2026-09-23): アプリ名・祝日・読み込み中・そろえています・呼び名 ---------- */
.app-name { margin: -20px 0 12px; text-align: center; font-size: 30px; font-weight: 900; letter-spacing: .06em; }
.daynav-label.is-holiday { color: var(--red); }
.mh.loading .av { background: var(--pvt); color: var(--mute); }
.mh.loading .nm { color: var(--mute); }
.mcol.loading { background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 56px), linear-gradient(100deg, #fff 30%, #F4F4F4 50%, #fff 70%) 0 0 / 300% 100%; animation: ss-shine 1.4s linear infinite; }
@keyframes ss-shine { from { background-position: 0 0, 150% 0; } to { background-position: 0 0, -150% 0; } }
.syncing { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 72px 24px; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--red-l); border-top-color: var(--red); animation: ss-spin .8s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
.sync-count { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sync-count b { font-size: 34px; color: var(--red); }
.sync-bar { width: 100%; max-width: 320px; height: 12px; border-radius: 6px; background: var(--pvt); overflow: hidden; }
.sync-bar i { display: block; height: 100%; background: var(--red); border-radius: 6px; transition: width .3s; }
.syncing noscript .btn, .syncing .btn { margin-top: 12px; }
.st-wait { font-weight: 800; color: var(--sub); font-size: 16px; }
.form.tight { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .mcol.loading, .spinner { animation: none; } }

/* ---------- 公開トップ・利用規約など(2026-09-24) ---------- */
body.is-login .app { flex-direction: column; }
.landing { gap: 0; padding-top: 40px; padding-bottom: 16px; }
.landing .mark.small { margin-bottom: 16px; }
.landing .app-name { margin: 0 0 18px; font-size: 34px; line-height: 1.2; }
.lead { margin: 0 0 24px; text-align: center; font-size: 19px; font-weight: 800; line-height: 1.7; word-break: auto-phrase; text-wrap: balance; }
.landing .dev-users { margin-top: 4px; }
.landing .btn.ghost { margin-top: 8px; }
.hero { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 300px; margin: 0 auto 32px; padding: 12px 14px 14px; border: 2px solid var(--line); border-radius: 20px; }
.hero-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-day { position: relative; width: 100%; height: 112px; border-radius: 8px; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 28px); }
.hero-day i { position: absolute; left: 3px; right: 3px; border-radius: 6px; background: var(--red-l); border-left: 4px solid var(--red); }
.hero-day i.p { background: var(--pvt); border-left-color: #C4C4C4; }
.hero-day .e1 { top: 4px; height: 36px; }
.hero-day .e2 { top: 16px; height: 28px; }
.hero-day .e3 { top: 2px; height: 24px; }
.hero-day .e4 { top: 84px; height: 24px; }
.hero-day .e5 { top: 88px; height: 22px; }
.hero-day .e6 { top: 80px; height: 30px; }
.hero-band { position: absolute; left: 8px; right: 8px; top: calc(12px + 36px + 8px + 48px); height: 30px; border-radius: 8px; background: rgba(255, 194, 26, .35); border: 2px solid var(--yel); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.hero-band span { font-size: 20px; line-height: 1; color: #C99700; }
.hero .av { width: 36px; height: 36px; font-size: 16px; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; padding: 8px 12px calc(20px + var(--safe-b)); }
.legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--sub); }
.legal a:active { color: var(--red); }
body.has-tabs .legal { padding-bottom: 8px; }
.doc { padding: 8px 22px 32px; font-size: 17px; line-height: 1.85; word-break: auto-phrase; overflow-wrap: anywhere; }
.doc h1 { margin: 8px 0 20px; font-size: 26px; font-weight: 900; line-height: 1.4; }
.doc h2 { margin: 32px 0 10px; font-size: 20px; font-weight: 800; line-height: 1.5; }
.doc h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.doc h4 { margin: 20px 0 6px; font-size: 17px; font-weight: 800; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.5em; }
.doc li { margin: 4px 0; }
.doc li > ul, .doc li > ol { margin: 4px 0 0; }
.doc a { color: var(--red-d); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { font-weight: 800; }
.doc hr { border: 0; border-top: 1px solid var(--line2); margin: 28px 0; }
.doc blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 4px solid var(--line2); color: var(--sub); }
.doc .table { overflow-x: auto; margin: 0 0 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; word-break: auto-phrase; overflow-wrap: anywhere; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: #FAFAFA; font-weight: 800; }
.doc td:first-child { font-weight: 700; min-width: 6.5em; }
body.is-doc .app { display: flex; flex-direction: column; }
body.is-doc .doc { flex: 1 0 auto; }
.notice p { margin: 0; }
.notice p + p { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
.agree { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--sub); word-break: auto-phrase; text-wrap: balance; }
.agree a { color: var(--red-d); text-decoration: underline; text-underline-offset: 3px; margin: 0 2px; padding: 10px 0; }
.landing .agree + form .btn.ghost { margin-top: 4px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--pvt); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

/* ---------- Google でログイン(2026-09-24) ----------
   Google「Sign in with Google Branding Guidelines」(2026-07-07 更新版)の自作ボタンの決まりどおり。赤いボタンの決まりより優先
   ・ライトテーマ: 塗り #FFFFFF / 線 #747775 1px(内側) / 文字 #1F1F1F・Google Sans Medium・14/20
   ・Android と Web の寸法: 高さ40 / 左12 / ロゴ20×20 / ロゴと文字の間10 / 右12 / 丸型(pill)。これを形を保ったまま 1.4倍(高さ56)にしている
     (ガイドライン: 比率を保てば端末に合わせて拡大・縮小してよい。タップ48px以上のため。幅390px未満は1.2倍・340px未満は1.1倍)
     ロゴと文字は真ん中にまとめる(Google の HTML ボタン生成の center-logo と同じ)
   ・G のロゴは Google 配布の signin-assets.zip の SVG(Light・文字なし・四角)を中身を変えずに public/google/g-logo.svg に置いた。
     その 40×40 の中の 20×20 のロゴの部分だけを見せる(大きさと色は変えない)
   ・押したとき・マウスを乗せたときの色の重ね方と、押せないときの薄さは Google の HTML ボタン生成の CSS と同じ値
   ・Google Sans は読み込まない(外部のフォントを使わない方針・日本語の字は入っていない)。入っている端末ではそれを使う */
.gsi {
  --s: 1.4;
  position: relative; display: flex; align-items: center; justify-content: center; gap: calc(10px * var(--s));
  width: 100%; height: calc(40px * var(--s)); padding: 0 calc(12px * var(--s)); overflow: hidden;
  background: #FFFFFF; border: 1px solid #747775; border-radius: calc(20px * var(--s)); color: #1F1F1F;
  font-family: "Google Sans", Roboto, Arial, system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: calc(14px * var(--s)); line-height: calc(20px * var(--s)); font-weight: 500; letter-spacing: calc(.25px * var(--s));
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
}
.gsi::after { content: ""; position: absolute; inset: 0; background: #303030; opacity: 0; transition: opacity .218s; pointer-events: none; }
.gsi:not(:disabled):active::after, .gsi:not(:disabled):focus-visible::after { opacity: .12; }
@media (hover: hover) {
  .gsi:not(:disabled):hover { box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15); }
  .gsi:not(:disabled):hover::after { opacity: .08; }
}
.gsi:disabled { cursor: default; background-color: #FFFFFF61; border-color: #1F1F1F1F; }
.gsi:disabled .gsi-logo, .gsi:disabled .gsi-text { opacity: .38; }
.gsi-logo { position: relative; flex: none; width: calc(20px * var(--s)); height: calc(20px * var(--s)); overflow: hidden; }
.gsi-logo img { position: absolute; left: calc(-10px * var(--s)); top: calc(-10px * var(--s)); width: calc(40px * var(--s)); height: calc(40px * var(--s)); max-width: none; }
.gsi-text { overflow: hidden; text-overflow: ellipsis; }
/* 幅の狭い端末では、同じ比率のまま少し小さく(「Google でログインして参加」が1行に収まるように。高さ 48 / 44) */
@media (max-width: 389px) { .gsi { --s: 1.2; } }
@media (max-width: 339px) { .gsi { --s: 1.1; } }

/* ---------- 設定のお問い合わせ・退会の1行(2026-09-24 法務総務部 C-8・C-9) ---------- */
.list-row.contact { flex-wrap: wrap; row-gap: 2px; }
.list-row.contact > span:first-child { flex: 1 0 auto; }
.list-row.contact .mail { font-size: 16px; font-weight: 700; color: var(--sub); overflow-wrap: anywhere; }
.confirm .notice { margin: 0 0 18px; }
