/* =========================================================
   workule 統合アプリ：デザインの共通ルール
   - はたらく人（.w）は黄色、依頼主（.c）は水色
   - 文字の大きさは --s（1 / 1.18 / 1.36）で一括で変える
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #F4F6F8;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  color: #1C1C2E;
  -webkit-text-size-adjust: 100%;
}

button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid #1F7A9C; outline-offset: 2px;
}
button:active { transform: scale(.98); }
button[disabled], button[aria-disabled="true"] { cursor: default; }

/* ---- 全体の枠 ---- */
.app { --s: 1; display: flex; flex-direction: column; height: 100%; max-width: 560px; margin: 0 auto; position: relative; background: #F4F6F8; }
.app.w {
  --hero: #FFD600; --hero-2: #FFE55C; --hero-3: #FFC800; --on-hero: #1C1C2E; --on-hero-2: #4A4230;
  --pri: #FFD600; --on-pri: #1C1C2E; --acc-bg: #FFF4BF; --acc-fg: #6B5600;
  --tag-bg: #F1F2F4; --tag-fg: #3D4450; --tab-on: #1C1C2E; --sel-bg: #FFD600; --sel-fg: #1C1C2E; --sel-bd: #D9B600;
  --soft: #FFF6CC; --link: #6B5600;
}
.app.c {
  --hero: #1F7A9C; --hero-2: #2A8BAE; --hero-3: #17698A; --on-hero: #FFFFFF; --on-hero-2: #DDF1F8;
  --pri: #1F7A9C; --on-pri: #FFFFFF; --acc-bg: #E4F5FA; --acc-fg: #1F7A9C;
  --tag-bg: #E4F5FA; --tag-fg: #145A74; --tab-on: #1F7A9C; --sel-bg: #1F7A9C; --sel-fg: #FFFFFF; --sel-bd: #1F7A9C;
  --soft: #E3F3F9; --link: #1F7A9C;
}

/* ---- 文字の大きさ ---- */
.f10 { font-size: calc(10px * var(--s)); }
.fxs { font-size: calc(12px * var(--s)); }
.fsm { font-size: calc(14px * var(--s)); }
.fmd { font-size: calc(16px * var(--s)); }
.flg { font-size: calc(19px * var(--s)); }
.fxl { font-size: calc(22px * var(--s)); }
.b { font-weight: 700; } .m { font-weight: 500; }
.sub { color: #5A5A7A; } .lh { line-height: 1.75; } .center { text-align: center; }

/* ---- 画面の上部 ---- */
.hero { background: var(--hero); color: var(--on-hero); padding: 14px 16px 58px; position: relative; overflow: hidden; flex-shrink: 0; }
.hero .d1 { position: absolute; width: 170px; height: 170px; border-radius: 50%; background: var(--hero-2); right: -50px; top: -60px; }
.hero .d2 { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--hero-3); right: 78px; top: 70px; }
.hero > *:not(.d1):not(.d2) { position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* ロゴは白い背景の上に置く（黄色の部分が背景に溶けないように）。右側のボタンと同じ形・高さ */
.logo-chip { height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; display: flex; align-items: center; }
.logo-img { height: 16px; width: auto; display: block; }
.hero-sub { color: var(--on-hero-2); }
.pill { height: 34px; padding: 0 12px; border: none; border-radius: 17px; background: #fff; color: #1C1C2E; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.aa { width: 34px; height: 34px; border: none; border-radius: 17px; background: #fff; color: #1C1C2E; font-size: 12px; font-weight: 700; }
.ovl { margin: -44px 14px 0; position: relative; box-shadow: 0 6px 18px rgba(28, 28, 46, .08); }

.head { height: 56px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #E8EAED; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; }
.head .t { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; margin: auto; }
.aa2 { width: 40px; height: 40px; border: 1px solid #D5D8DD; border-radius: 20px; background: #fff; font-size: 13px; font-weight: 700; margin: auto; display: block; }

/* ---- 本文 ---- */
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.body { padding: 16px 14px 28px; display: flex; flex-direction: column; gap: 22px; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.card { background: #fff; border-radius: 16px; padding: 16px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { width: 100%; min-height: 64px; border: none; background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; }
.ic { width: 40px; height: 40px; border-radius: 20px; background: var(--acc-bg); color: var(--acc-fg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row .txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tag { border-radius: 6px; padding: 1px 7px; font-weight: 500; background: var(--tag-bg); color: var(--tag-fg); white-space: nowrap; }
.note { border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; background: var(--acc-bg); color: var(--acc-fg); }
.btn-pri { width: 100%; min-height: 56px; border: none; border-radius: 14px; background: var(--pri); color: var(--on-pri); font-weight: 700; padding: 8px 16px; }
.btn-sub { width: 100%; min-height: 50px; border: 1px solid #C9CDD3; border-radius: 14px; background: #fff; font-weight: 500; padding: 6px 16px; }
.btn-yellow { background: #FFD600; color: #1C1C2E; }

/* ---- イラスト（背景は透過。カードに入れずに置く） ---- */
.ill { display: flex; justify-content: center; align-items: center; }
.ill img { display: block; width: 100%; height: auto; object-fit: contain; }

/* ---- タブバー ---- */
.tabs { flex-shrink: 0; background: #fff; border-top: 1px solid #E8EAED; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 0 max(8px, calc(env(safe-area-inset-bottom, 0px) - 14px)); }
.tab { border: none; background: transparent; padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8A9098; white-space: nowrap; font-size: calc(11px * min(var(--s), 1.18)); }
.tab[aria-current="page"] { color: var(--tab-on); font-weight: 700; }

/* ---- 文字の大きさを選ぶ ---- */
.sheet-bg { position: absolute; inset: 0; background: rgba(20, 24, 30, .45); display: flex; flex-direction: column; justify-content: flex-end; z-index: 5; }
.sheet { background: #fff; border-radius: 20px 20px 0 0; padding: 22px 16px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.size { height: 100px; border-radius: 14px; background: #fff; border: 1px solid #C9CDC5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; }
.size[aria-pressed="true"] { border: 2px solid #1C1C2E; font-weight: 700; }

/* ---- 初期設定・お知らせ系の画面 ---- */
.setup { display: flex; flex-direction: column; height: 100%; background: #FFD600; }
.setup .panel { flex: 1; background: #F4F6F8; border-radius: 24px 24px 0 0; padding: 20px 16px 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(28, 28, 46, .25); }
.dots span.on { width: 22px; background: #1C1C2E; }
.status { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 24px 20px; text-align: center; }
.status .ill { width: 260px; max-width: 80%; }
.status .actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ---- 読み込み中 ---- */
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #E6E9ED; border-top-color: #1C1C2E; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* ---- パソコンで開いたとき（WOFFのパソコン版など） ---- */
@media (min-width: 600px) {
  body { background: #E9ECEF; }
  .app { box-shadow: 0 0 0 1px #E1E4E8; }
}

/* =========================================================
   各画面の部品
   ========================================================= */
.pre { white-space: pre-wrap; word-break: break-word; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---- ラベル ---- */
.pill-tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 8px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.tone-plain { background: #F1F2F4; color: #3D4450; }
.tone-yellow { background: #FFF4BF; color: #6B5600; }
.tone-sky { background: #E4F5FA; color: #145A74; }
.tone-green { background: #E3F4EA; color: #23623F; }
.tone-gray { background: #EEF0F2; color: #5A606B; }
.tone-orange { background: #FFE9DC; color: #B4461A; }

/* ---- 項目名と内容の表 ---- */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: baseline; }
.kv-k { white-space: nowrap; }
.kv-v { line-height: 1.6; }

/* ---- 切り替え・絞り込み・選択肢 ---- */
.seg { background: #E6E9ED; border-radius: 12px; padding: 4px; display: flex; gap: 4px; }
.seg button { flex: 1; min-height: 44px; border: none; border-radius: 9px; background: transparent; padding: 4px 2px; line-height: 1.3; }
.seg button[aria-pressed="true"] { background: #fff; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.is-fit .chip { flex: 1 0 auto; padding: 0 10px; }
.chip { min-height: 48px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid #D5D8DD; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-fg); border: 2px solid var(--sel-bd); font-weight: 700; }
.chip[disabled] { color: #A9AEB5; }
.chip-count { font-size: .85em; font-weight: 500; opacity: .8; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-grid .chip { white-space: normal; padding: 8px; line-height: 1.4; }

/* ---- 入力欄 ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field textarea, .field input { width: 100%; border: 1px solid #D5D8DD; border-radius: 10px; font: inherit; font-size: calc(16px * var(--s)); color: #1C1C2E; background: #fff; }
.field textarea { min-height: 120px; padding: 12px; resize: vertical; line-height: 1.6; }
.field input { height: 50px; padding: 0 12px; }

/* ---- お知らせの帯の色 ---- */
.tone-note-warn { background: #FFF0E6; color: #8A3A12; }

/* ---- おしごとのカード ---- */
.jc { width: 100%; border: none; background: #fff; border-radius: 16px; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.jrow { display: flex; gap: 14px; align-items: flex-start; width: 100%; }
.jc .jrow { padding: 14px; }
.in2 { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jthumb { width: 52px; height: 52px; border-radius: 50%; background: #F4F6F8; overflow: hidden; flex-shrink: 0; display: block; }
.jthumb.big { width: 64px; height: 64px; }
.jthumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.card .jthumb { background: #F4F6F8; }

/* ---- 大きな選択肢（参加のしかた など） ---- */
.big-opt { width: 100%; border: none; background: #fff; border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; text-align: left; }
.big-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--sel-bd); background: var(--soft); }
.big-ill { width: 84px; height: 84px; flex-shrink: 0; display: block; }
.big-ill .ill, .big-ill img { width: 100%; height: 100%; object-fit: contain; }

/* ---- 画面下のボタン ---- */
.bottom { flex-shrink: 0; background: #fff; border-top: 1px solid #E8EAED; padding: 12px 16px max(12px, calc(env(safe-area-inset-bottom, 0px) - 8px)); display: flex; flex-direction: column; gap: 8px; }
.btn-dis { width: 100%; min-height: 56px; border: none; border-radius: 14px; background: #EEF0F2; color: #5A606B; font-weight: 700; padding: 8px 16px; }
.btn-link { width: 100%; min-height: 48px; border: none; background: transparent; font-weight: 500; text-decoration: underline; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---- 読み込み中・中身なし・エラー（画面の中に出すもの） ---- */
.inline-status { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 8px; }
.inline-status .ill { width: 220px; max-width: 70%; }

/* ---- 完了画面（お祝い・完了・受付） ---- */
.done { flex: 1; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--soft); }
.done-ack { background: #F4F6F8; }
.done-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; position: relative; }
.done-line { color: #3D4450; }
.done-check { width: 84px; height: 84px; border-radius: 42px; background: var(--acc-bg); color: var(--acc-fg); display: flex; align-items: center; justify-content: center; }
.done-card { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; margin-top: 12px; padding: 12px 14px; }
.done-foot { padding: 0 16px max(16px, calc(env(safe-area-inset-bottom, 0px) - 4px)); display: flex; flex-direction: column; gap: 6px; position: relative; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.8s ease-in forwards; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(900px) rotate(560deg); } }
.pop { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.pop2 { animation: pop .6s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .pop, .pop2 { animation: none; } }

/* ---- 送信中・短いお知らせ ---- */
.busy { position: absolute; inset: 0; z-index: 8; background: rgba(244, 246, 248, .75); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 9; background: #1C1C2E; color: #fff; border-radius: 20px; padding: 10px 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }

/* カードの上の縁に「NEW」の吹き出し（ふわふわ動く） */
.tone-new { background: #C2451A; color: #fff; }
.accent-card { background: var(--soft); display: flex; flex-direction: column; gap: 2px; }
.jc { position: relative; overflow: visible; }
.jc.has-new { margin-top: 14px; }
.new-bubble { position: absolute; top: -13px; left: 16px; z-index: 1; background: #FFD600; color: #1C1C2E; font-weight: 800; font-size: calc(12px * min(var(--s), 1.18)); letter-spacing: .08em; padding: 3px 11px; border-radius: 10px; box-shadow: 0 3px 8px rgba(28, 28, 46, .18); animation: bob 1.8s ease-in-out infinite; }
.new-bubble::after { content: ""; position: absolute; left: 14px; bottom: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #FFD600; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .new-bubble { animation: none; } }

/* 詳細のタイトル：イラストを右上に置き、文字を回り込ませる */
.title-card::after { content: ""; display: block; clear: both; }
.title-card .jthumb { float: right; margin: 0 0 6px 12px; shape-outside: circle(50%); }

/* 項目名と内容：項目の下に内容を並べ、項目ごとに線で区切る */
.kv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.kv .kv-k:not(:first-child) { margin-top: 10px; padding-top: 12px; border-top: 1px solid #EEF0F2; }

/* 一覧のカード：イラストを右上に置き、文字を回り込ませる */
.jc-body { display: block; width: 100%; padding: 14px; }
.jc-body > span:not(.jthumb):not(.meta) { display: block; }
/* カードの中の区切り線 */
.divider { height: 1px; background: #EEF0F2; margin: 12px 0; }

/* =========================================================
   予定タブ
   ========================================================= */
.day-card { display: flex; flex-direction: column; gap: 10px; }
/* 回答の3つのボタン（稼働できる／調整すれば可／稼働できない） */
.answer3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ans-btn { min-height: 64px; border-radius: 12px; background: #fff; border: 1px solid #D5D8DD; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; font-size: calc(13px * var(--s)); line-height: 1.3; }
.ans-mark { font-size: calc(20px * var(--s)); font-weight: 700; line-height: 1; }
.ans-ok[aria-pressed="true"] { background: #E3F4EA; border: 2px solid #3E9B6B; color: #23623F; font-weight: 700; }
.ans-maybe[aria-pressed="true"] { background: #FFF4BF; border: 2px solid #D9B600; color: #6B5600; font-weight: 700; }
.ans-ng[aria-pressed="true"] { background: #EEF0F2; border: 2px solid #5A606B; color: #3D4450; font-weight: 700; }
.xl .answer3 { grid-template-columns: minmax(0, 1fr); }
/* 回答の確認 */
.confirm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; }
.confirm-row + .confirm-row { border-top: 1px solid #EEF0F2; }
/* 決まった予定の稼働者 */
.worker-list { display: flex; flex-direction: column; }
.worker-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.worker-row + .worker-row { border-top: 1px solid #EEF0F2; }

/* =========================================================
   稼働予定のカレンダー
   ========================================================= */
.cal { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px; }
/* ◀ 10月 ▶ */
.cal-nav { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; }
.cal-title { text-align: center; line-height: 1.35; }
.cal-arrow { width: 48px; height: 48px; border-radius: 24px; border: 1px solid #D5D8DD; background: #fff; display: flex; align-items: center; justify-content: center; margin: auto; padding: 0; line-height: 1; }
.cal-arrow-sp { width: 48px; height: 48px; display: block; margin: auto; } /* ボタンを出さないときの空き（月の文字が左右にずれないように） */
/* 曜日と日付のマス */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-weight: 700; color: #5A5A7A; padding: 2px 0 4px; }
.cal-wd.sun, .cal-day.sun .cal-num { color: #C2451A; }
.cal-wd.sat, .cal-day.sat .cal-num { color: #1F5F9C; }
.cal-day { position: relative; min-height: calc(44px * var(--s)); border: none; border-radius: 10px; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.cal-num { font-size: calc(15px * var(--s)); font-weight: 500; line-height: 1; }
.cal-day.past { opacity: .45; }
.cal-day.past.work-fixed, .cal-day.past.work-pending { opacity: .6; }
/* 今日：黒い丸で囲む */
.cal-day.today { box-shadow: inset 0 0 0 2px #1C1C2E; }
/* 稼働日：確定は黄色で塗る／確認中は点線の枠（色だけでなく形でも区別する） */
.cal-day.work-fixed { background: #FFD600; }
.cal-day.work-fixed .cal-num, .cal-day.work-pending .cal-num { color: #1C1C2E; font-weight: 700; }
.cal-day.work-pending { background: #FFFBEA; border: 2px dashed #B89A00; }
.cal-day.today.work-pending { box-shadow: none; border-style: solid; border-color: #1C1C2E; }
.cal-day.sel { outline: 3px solid #1F7A9C; outline-offset: 1px; }
/* 1日に2件以上あるときの件数 */
.cal-cnt { position: absolute; top: 2px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: #1C1C2E; color: #fff; font-size: calc(10px * min(var(--s), 1.18)); font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
/* 見かたの説明 */
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.cal-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.cal-key { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.cal-key.k-fixed { background: #FFD600; }
.cal-key.k-pend { background: #FFFBEA; border: 2px dashed #B89A00; }
.cal-key.k-today { box-shadow: inset 0 0 0 2px #1C1C2E; }
/* 「10月をすべて表示」 */
.cal-all { min-height: 44px; border: none; background: transparent; color: var(--link); font-weight: 700; text-decoration: underline; padding: 0 4px; white-space: nowrap; }

/* ---- 稼働予定：「要確認」の日のお返事 ---- */
.pending-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: #FFF4E8; border: 1.5px solid #F0B27A; border-radius: 16px; padding: 14px; }
.pending-banner .txt { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.pending-banner button { flex-shrink: 0; min-height: 48px; padding: 0 18px; border: none; border-radius: 12px; background: var(--pri); color: var(--on-pri); font-weight: 700; }
.reply-box { margin-top: 4px; padding: 14px; border-radius: 12px; background: #FFF4E8; border: 1.5px solid #F0B27A; display: flex; flex-direction: column; gap: 6px; }
.reply-box .row2 { margin-top: 6px; }
.reply-box .row2 button { padding-left: 6px; padding-right: 6px; }
.xl .reply-box .row2 { grid-template-columns: minmax(0, 1fr); }

/* ---- 下から出るパネル（稼働予定の日ごとの予定） ---- */
.panel { max-height: 82%; gap: 12px; padding-top: 16px; }
.panel.anim { animation: panelUp .22s ease-out; }
@keyframes panelUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel.anim { animation: none; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-close { width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: 22px; background: #F1F2F4; color: #1C1C2E; font-size: 24px; line-height: 1; padding: 0; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; }
.panel-item { border: 1px solid #E8EAED; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.panel-item-top { display: flex; align-items: center; gap: 12px; }
.panel-item-top .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* ---- 募集中（人が足りていない日）---- */
.open-banner { background: #EAF5FA; border-color: #9CC9E0; }
.open-box { margin-top: 4px; padding: 14px; border-radius: 12px; background: #EAF5FA; border: 1.5px solid #9CC9E0; display: flex; flex-direction: column; gap: 6px; }
.open-box .btn-pri { margin-top: 6px; }
.open-item { border-color: #9CC9E0; }
.cal-open { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #1F7A9C; box-shadow: 0 0 0 2px #fff; }
.cal-key.k-open { width: 10px; height: 10px; border-radius: 50%; background: #1F7A9C; margin: 3px; }


/* ---- 実績の入力（1-2-2b）---- */
.perf-nav { padding: 10px 12px; }
.perf-case { display: flex; align-items: flex-start; gap: 12px; text-align: left; border: none; width: 100%; }
.perf-case .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.perf-due { color: #B4461A; font-weight: 700; }
.perf-day { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-align: left; border: 1.5px solid transparent; width: 100%; }
.perf-day .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.perf-day.is-todo { border-color: #F0B27A; }
.perf-day.has-draft { border-color: #E6C200; background: #FFFBEA; }
.perf-day.off { opacity: .7; }
.perf-sec { display: flex; flex-direction: column; gap: 10px; }
.perf-sec-h { display: flex; align-items: center; gap: 10px; }
.perf-no { width: 26px; height: 26px; border-radius: 13px; background: #1C1C2E; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.perf-inp { height: 56px; border: 1.5px solid #D5D8DD; border-radius: 12px; padding: 0 12px; font: inherit; font-size: calc(20px * var(--s)); font-weight: 700; color: #1C1C2E; background: #fff; width: 100%; min-width: 0; }
.perf-inp:focus { outline: none; border-color: #1F7A9C; box-shadow: 0 0 0 3px #CDE8F2; }
.perf-wide { font-size: calc(16px * var(--s)); font-weight: 500; }
.perf-t { text-align: center; letter-spacing: .04em; }
.perf-s { width: 80px; text-align: center; }
.perf-num { display: flex; align-items: center; gap: 8px; }
.perf-num .perf-inp { max-width: 180px; }
.perf-time { display: flex; align-items: flex-end; gap: 8px; }
.perf-time > span { padding-bottom: 14px; }
.perf-tcol { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.perf-check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid #D5D8DD; border-radius: 12px; background: #fff; cursor: pointer; }
.perf-check input { width: 22px; height: 22px; flex-shrink: 0; }
.perf-night:empty { display: none; }
.perf-night { background: #EEF4FF; color: #23396B; border-radius: 10px; padding: 8px 12px; line-height: 1.6; }
.perf-breaks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.perf-breaks .chip { padding: 0 4px; }
.perf-sub { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: #F4F6F8; }
.perf-err { color: #B42318; font-weight: 700; }
.perf-cam { display: flex; align-items: center; justify-content: center; min-height: 56px; cursor: pointer; }
/* 撮ったレシートの見本：切り抜かずに全体を大きく出す。押すと拡大 */
.perf-photo { display: flex; flex-direction: column; align-items: stretch; gap: 8px; color: #23623F; }
.perf-photo-btn { display: flex; justify-content: center; align-items: center; width: 100%; padding: 8px; border: 1px solid #D5D8DD; border-radius: 12px; background: #F4F6F8; }
.perf-photo-btn canvas { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 6px; }
.perf-photo-big { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #E8EAED; }
.perf-money-photo { padding: 0 14px 12px; }
.perf-money-photo + .perf-money-row { border-top: 1px solid #EEF0F2; }
.perf-photo-sm canvas { max-height: 140px; }
.perf-ok { color: #23623F; font-weight: 700; line-height: 1.6; }
/* 確認画面のカード：働いた時間を大きく、項目名は上・中身は下、お金は枠でまとめて金額を右にそろえる */
.perf-conf { display: flex; flex-direction: column; gap: 12px; }
.perf-main { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #F4F6F8; }
.perf-items { display: flex; flex-direction: column; }
.perf-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #EEF0F2; }
.perf-item:first-child { border-top: none; padding-top: 0; }
.perf-money { display: flex; flex-direction: column; border: 1px solid #E8EAED; border-radius: 12px; }
.perf-money-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.perf-money-row + .perf-money-row { border-top: 1px solid #EEF0F2; }
.perf-money-row .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perf-money-row.off { color: #8A9099; }
.perf-fix { min-height: 44px; }
.xl .perf-breaks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- お金タブ（報酬明細・支払証明書） ---- */
.mny-card { width: 100%; border: 1px solid #E8EAED; background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mny-card.todo { border: 2px solid #F0B27A; }
.mny-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mny-card-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mny-due { color: #8A3A12; font-weight: 700; }
.mny-hero { display: flex; flex-direction: column; gap: 4px; }
.mny-big { font-size: calc(32px * var(--s)); line-height: 1.25; letter-spacing: .01em; }
.mny-q { width: 28px; height: 28px; margin-left: 6px; border: 1.5px solid #9AA0A8; border-radius: 14px; background: #fff; color: #3D4450; font-weight: 700; line-height: 1; padding: 0; vertical-align: middle; flex-shrink: 0; }
.mny-bd { display: flex; flex-direction: column; }
.mny-bd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #EEF0F2; }
.mny-bd-row:first-child { border-top: none; padding-top: 0; }
.mny-bd-row.strong { border-top: 2px solid #1C1C2E; padding-top: 12px; }
.mny-bd-k { display: flex; align-items: center; min-width: 0; }
.mny-bd-v { white-space: nowrap; text-align: right; }
.mny-bd-in { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #F4F6F8; }
.mny-bd-in .mny-bd-row { border-top-color: #E3E6EA; }
.mny-bd-in .mny-bd-row.strong { border-top-color: #9AA0A8; }
.mny-work { display: flex; flex-direction: column; gap: 6px; }
.mny-work-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mny-work-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mny-work-pay { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.mny-open { min-height: 44px; text-align: left; padding: 0; width: auto; align-self: flex-start; color: var(--link); }
.mny-bank { display: flex; flex-direction: column; gap: 12px; }
.mny-bank.ask { border: 2px solid #F0B27A; }
.mny-bank.warn { border: 2px solid #E57373; background: #FFF6F6; }
.mny-bank-list { display: flex; flex-direction: column; }
.mny-bank-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #EEF0F2; }
.mny-bank-row:first-child { border-top: none; padding-top: 0; }
.mny-gensen { display: flex; flex-direction: column; gap: 10px; border: 2px solid #F0B27A; }
.mny-gensen.done { border: 1px solid #A5D6A7; background: #F3FAF3; }
.mny-pick { width: 100%; border: none; background: transparent; padding: 0; display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.mny-pick-box { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #9AA0A8; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.mny-pick.on .mny-pick-box { background: var(--sel-bg); border-color: var(--sel-bd); color: var(--sel-fg); }
.mny-pick-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mny-fix { display: flex; flex-direction: column; gap: 12px; border: 1px solid #E8EAED; }
.mny-fix.on { border: 2px solid var(--sel-bd); }
.mny-req { margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: #FFE9DC; color: #B4461A; font-weight: 700; }
.mny-form { display: flex; flex-direction: column; gap: 18px; }
.mny-yucho { min-height: 48px; }
.mny-auto { min-height: 50px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; background: #F4F6F8; }
.mny-step { display: flex; align-items: center; gap: 10px; margin-bottom: -10px; }
.mny-step-n { width: 30px; height: 30px; border-radius: 15px; background: #1C1C2E; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.mny-inv { display: flex; flex-direction: column; gap: 12px; border: 1px solid #D5D8DD; }
.mny-inv-title { text-align: center; font-size: calc(22px * var(--s)); letter-spacing: .4em; padding-left: .4em; }
.mny-inv-kv { display: flex; flex-direction: column; }
.mny-inv-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px solid #1C1C2E; border-radius: 12px; }
.mny-inv-rows { display: flex; flex-direction: column; border: 1px solid #E8EAED; border-radius: 12px; }
.mny-inv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.mny-inv-row + .mny-inv-row { border-top: 1px solid #EEF0F2; }
.mny-inv-row .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mny-sign-empty { width: 100%; min-height: 120px; border: 2px dashed #9AA0A8; border-radius: 14px; background: #fff; font-weight: 700; padding: 16px; line-height: 1.6; }
.mny-sign-done { display: flex; flex-direction: column; gap: 6px; }
.mny-sign-view { width: 100%; aspect-ratio: 1 / .45; border: 1px solid #E8EAED; border-radius: 10px; display: block; }
.mny-sign-pad { width: 100%; aspect-ratio: 1 / .45; border: 2px dashed #1F7A9C; border-radius: 12px; background: #fff; touch-action: none; display: block; }
.mny-intro { display: flex; flex-direction: column; gap: 6px; }
.mny-month { display: flex; flex-direction: column; gap: 8px; }
.xl .mny-card-amt, .xl .mny-inv-total { flex-direction: column; align-items: flex-start; gap: 2px; }

/* ---- お金タブ（報酬明細・支払証明書） ---- */
.mny-card { width: 100%; border: 1px solid #E8EAED; background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mny-card.todo { border: 2px solid #F0B27A; }
.mny-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mny-card-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mny-due { color: #8A3A12; font-weight: 700; }
.mny-hero { display: flex; flex-direction: column; gap: 4px; }
.mny-big { font-size: calc(32px * var(--s)); line-height: 1.25; letter-spacing: .01em; }
.mny-q { width: 28px; height: 28px; margin-left: 6px; border: 1.5px solid #9AA0A8; border-radius: 14px; background: #fff; color: #3D4450; font-weight: 700; line-height: 1; padding: 0; vertical-align: middle; flex-shrink: 0; }
.mny-bd { display: flex; flex-direction: column; }
.mny-bd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #EEF0F2; }
.mny-bd-row:first-child { border-top: none; padding-top: 0; }
.mny-bd-row.strong { border-top: 2px solid #1C1C2E; padding-top: 12px; }
.mny-bd-k { display: flex; align-items: center; min-width: 0; }
.mny-bd-v { white-space: nowrap; text-align: right; }
.mny-bd-in { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #F4F6F8; }
.mny-bd-in .mny-bd-row { border-top-color: #E3E6EA; }
.mny-bd-in .mny-bd-row.strong { border-top-color: #9AA0A8; }
.mny-work { display: flex; flex-direction: column; gap: 6px; }
.mny-open { min-height: 44px; text-align: left; padding: 0; width: auto; align-self: flex-start; color: var(--link); }
.mny-bank { display: flex; flex-direction: column; gap: 12px; }
.mny-bank.ask { border: 2px solid #F0B27A; }
.mny-bank.warn { border: 2px solid #E57373; background: #FFF6F6; }
.mny-bank-list { display: flex; flex-direction: column; }
.mny-bank-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #EEF0F2; }
.mny-bank-row:first-child { border-top: none; padding-top: 0; }
.mny-gensen { display: flex; flex-direction: column; gap: 10px; border: 2px solid #F0B27A; }
.mny-gensen.done { border: 1px solid #A5D6A7; background: #F3FAF3; }
.mny-pick { width: 100%; border: none; background: transparent; padding: 0; display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.mny-pick-box { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #9AA0A8; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.mny-pick.on .mny-pick-box { background: var(--sel-bg); border-color: var(--sel-bd); color: var(--sel-fg); }
.mny-pick-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mny-fix { display: flex; flex-direction: column; gap: 12px; border: 1px solid #E8EAED; }
.mny-fix.on { border: 2px solid var(--sel-bd); }
.mny-req { margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: #FFE9DC; color: #B4461A; font-weight: 700; }
.mny-form { display: flex; flex-direction: column; gap: 18px; }
.mny-yucho { min-height: 48px; }
.mny-auto { min-height: 50px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; background: #F4F6F8; }
.mny-sign-empty { width: 100%; min-height: 120px; border: 2px dashed #9AA0A8; border-radius: 14px; background: #fff; font-weight: 700; padding: 16px; line-height: 1.6; }
.mny-sign-done { display: flex; flex-direction: column; gap: 6px; }
.mny-sign-view { width: 100%; aspect-ratio: 1 / .45; border: 1px solid #E8EAED; border-radius: 10px; display: block; }
.mny-sign-pad { width: 100%; aspect-ratio: 1 / .45; border: 2px dashed #1F7A9C; border-radius: 12px; background: #fff; touch-action: none; display: block; }
.mny-intro { display: flex; flex-direction: column; gap: 6px; }
.mny-month { display: flex; flex-direction: column; gap: 8px; }
.xl .mny-card-amt { flex-direction: column; align-items: flex-start; gap: 2px; }
.mny-work-t { display: flex; flex-direction: column; gap: 2px; }
.mny-kv { display: flex; flex-direction: column; border-radius: 12px; background: #F4F6F8; padding: 4px 14px; }
.mny-kv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.mny-kv-row + .mny-kv-row { border-top: 1px solid #E3E6EA; }
.mny-kv-row > span:last-child { text-align: right; }
.mny-work-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 1px solid #EEF0F2; }
.mny-fixc { display: flex; flex-direction: column; gap: 6px; }

/* 源泉徴収請求書（PDFと同じ様式） */
.mny-pf { background: #fff; border: 1px solid #C9CDD3; border-radius: 6px; padding: 16px 12px; color: #1C1C2E; font-size: calc(12px * var(--s)); line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.mny-pf .sub { color: #5A5A7A; }
.mny-pf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.mny-pf-to { font-weight: 700; border-bottom: 1.5px solid #1C1C2E; padding-bottom: 2px; min-width: 55%; }
.mny-pf-date { color: #5A5A7A; font-size: calc(11px * var(--s)); }
.mny-pf-title { text-align: center; font-size: calc(20px * var(--s)); font-weight: 700; letter-spacing: .1em; margin: 4px 0; }
.mny-pf-greet { color: #5A5A7A; font-size: calc(11px * var(--s)); }
.mny-pf-from { align-self: flex-end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; max-width: 75%; }
.mny-pf-name { font-weight: 700; font-size: calc(14px * var(--s)); }
.mny-pf-sign { width: 132px; height: 58px; margin-top: 4px; border: 1px solid #D8EAF0; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mny-pf-signph { font-size: calc(10px * var(--s)); color: #8A9099; text-align: center; line-height: 1.4; }
.mny-pf-signimg { width: 100%; height: 100%; display: block; object-fit: contain; }
.mny-pf-rule { border-top: 1.5px solid #1C1C2E; margin: 4px 0; }
.mny-pf-amount { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid #1C1C2E; border-radius: 6px; padding: 8px 12px; flex-wrap: wrap; }
.mny-pf-amount .k { font-size: calc(11px * var(--s)); color: #5A5A7A; }
.mny-pf-amount .v { font-size: calc(18px * var(--s)); font-weight: 700; }
.mny-pf-amount .limit { font-size: calc(11px * var(--s)); color: #5A5A7A; }
.mny-pf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mny-pf-table th { background: #1C1C2E; color: #fff; font-weight: 700; text-align: left; padding: 6px; }
.mny-pf-table th:nth-child(1) { width: 46%; } .mny-pf-table th:nth-child(2) { width: 24%; }
.mny-pf-table td { padding: 6px; border-bottom: 1px solid #D8EAF0; word-break: break-all; }
.mny-pf-table tr:nth-child(even) td { background: #F9FBFC; }
.mny-pf-table td.sub { color: #5A5A7A; font-size: calc(11px * var(--s)); }
.mny-pf-table td.blank { color: #D5D8DD; }
.mny-pf .num, .mny-pf-table th.num { text-align: right; }
.mny-pf-sum { width: 62%; margin-left: auto; border-collapse: collapse; }
.mny-pf-sum td { padding: 5px 8px; border-bottom: 1px solid #D8EAF0; }
.mny-pf-sum td:first-child { color: #5A5A7A; white-space: nowrap; }
.mny-pf-sum td.num { font-weight: 700; }
.mny-pf-sum tr.gensen td { color: #C62828; }
.mny-pf-sum tr.total td { background: #1C1C2E; color: #fff; font-weight: 700; border: none; }
.mny-pf-bikou { border: 1px solid #D8EAF0; border-radius: 6px; padding: 8px 10px; min-height: 48px; }
.mny-pf-bikou .k, .mny-pf-bankhead { font-weight: 700; color: #1F6F8C; font-size: calc(11px * var(--s)); }
.mny-pf-bank { border: 1px solid #D8EAF0; border-radius: 6px; overflow: hidden; }
.mny-pf-bankhead { background: #E4F5FA; padding: 4px 10px; }
.mny-pf-bankgrid { display: grid; grid-template-columns: 1fr 1fr; }
.mny-pf-bankcell { padding: 6px 10px; border-top: 1px solid #D8EAF0; min-width: 0; word-break: break-all; }
.mny-pf-bankcell:nth-child(odd) { border-right: 1px solid #D8EAF0; }
.mny-pf-bankcell .k { font-size: calc(10px * var(--s)); color: #5A5A7A; }
.mny-pf-bankcell .v { font-weight: 700; }

/* 支払証明書（帳票の様式） */
.mny-cf-btn { width: 100%; border: none; background: transparent; padding: 0; text-align: left; }
.mny-cf-hint { text-align: center; color: #1F6F8C; font-weight: 700; margin-bottom: 6px; }
.mny-cf { background: #fff; border: 1.5px solid #9ABFC8; border-radius: 6px; padding: 12px 10px 10px; color: #1C1C2E; font-size: 10.5px; line-height: 1.5; }
.mny-cf.big { min-width: 560px; font-size: 13px; padding: 16px 14px; }
.mny-cf-no { text-align: right; font-size: .95em; color: #555; }
.mny-cf-title { text-align: center; font-size: 1.6em; font-weight: 700; letter-spacing: .05em; margin: 2px 0 10px; }
.mny-cf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mny-cf-table td { border: 1px solid #9ABFC8; padding: 5px 6px; vertical-align: middle; word-break: break-all; }
.mny-cf-table td.lab { background: #F0F7FA; text-align: center; line-height: 1.8; color: #444; }
.mny-cf-table td.mny-cf-hd { background: #F0F7FA; text-align: center; font-weight: 700; color: #333; }
.mny-cf-table td.kubun { font-weight: 700; }
.mny-cf-table td.amt { vertical-align: bottom; padding: 10px 6px 6px; }
.mny-cf-table td.mny-cf-idcell { vertical-align: top; }
.mny-cf-empty td { height: 2.4em; }
.mny-cf-sub { display: block; font-size: .7em; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mny-cf-name { font-size: 1.25em; font-weight: 700; }
.mny-cf-note { color: #8A9099; font-size: .9em; }
.mny-cf-hojin { font-weight: 700; }
.mny-cf-tekiyo-k { font-size: .85em; color: #888; }
.mny-cf-tekiyo { line-height: 1.8; }
.mny-cf-payer { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mny-cf-pname { font-weight: 700; }
.mny-cf-tel { font-size: .85em; color: #888; }
.mny-cf-seal { width: 3.6em; height: 3.6em; border: 2px solid #C00; border-radius: 50%; color: #C00; font-weight: 700; font-size: .85em; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mny-cf-amt { display: flex; align-items: flex-start; justify-content: flex-end; gap: 2px; }
.mny-cf-amt .uchi { font-size: .7em; color: #555; margin-right: auto; }
.mny-cf-amt .grid { display: inline-grid; }
.mny-cf-amt .lab { font-size: .7em; color: #555; text-align: center; line-height: 1.4; }
.mny-cf-amt .dig { font-size: 1.15em; font-weight: 700; text-align: center; line-height: 1.3; min-width: .62em; }
.mny-cf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.mny-mt-wrap { overflow-x: auto; }
.mny-mt { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--s)); }
.mny-mt th, .mny-mt td { padding: 8px 4px; border-bottom: 1px solid #EEF0F2; text-align: right; white-space: nowrap; }
.mny-mt thead th { background: #F4F6F8; text-align: center; font-weight: 700; font-size: calc(12px * var(--s)); }
.mny-mt tbody th { text-align: left; font-weight: 700; }
.mny-mt tr.total th, .mny-mt tr.total td { font-weight: 700; background: #FFF6CC; border-bottom: none; }
.mny-cf-info { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: #F4F6F8; }

/* 署名：スマホを横にしたときは、パネルを画面いっぱいにして、枠が見切れないようにする */
@media (orientation: landscape) and (max-height: 560px) {
  .sheet.panel:has(.mny-sign-pad) { max-height: 100%; height: 100%; border-radius: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .sheet.panel:has(.mny-sign-pad) .panel-head .flg { font-size: calc(16px * var(--s)); }
  .sheet.panel:has(.mny-sign-pad) .panel-close { width: 36px; height: 36px; font-size: 20px; }
  .sheet.panel:has(.mny-sign-pad) .panel-body { gap: 8px; overflow: hidden; }
  .mny-sign-hint { display: none; }
  .mny-sign-pad { width: min(100%, calc((100dvh - 130px) / .45)); align-self: center; }
  .sheet.panel:has(.mny-sign-pad) .row2 button { min-height: 44px; }
}

/* =========================================================
   タブバー：右上の件数（バッジ）・タブが6つのとき
   ========================================================= */
.tab-ic { position: relative; display: inline-flex; }
.tab-badge { position: absolute; top: -5px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #C2451A; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.tabs[data-n="6"] .tab { font-size: calc(10.5px * min(var(--s), 1.1)); letter-spacing: -0.02em; }

/* =========================================================
   契約タブ（ct-）
   ========================================================= */
.ct-card { width: 100%; border: 1px solid #E8EAED; background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ct-card.todo { border: 2px solid #F0B27A; }
.ct-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-from { color: #145A74; }
.ct-warn { background: #FFF0E6; color: #8A3A12; border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.ct-head { display: flex; flex-direction: column; gap: 6px; }
.ct-fee { display: flex; flex-direction: column; gap: 4px; }
.ct-fee .kv { padding: 12px 0 0; margin-top: 8px; border-top: 1px solid #EEF0F2; border-radius: 0; }
.ct-lock { background: #F4F6F8; font-weight: 700; }
.ct-check.off { opacity: .55; }
.ct-check .mny-pick-box, .ct-reason .mny-pick-box { margin-top: 0; }
.ct-check, .ct-reason { align-items: center; min-height: 48px; }
.ct-radio { border-radius: 50%; font-size: 14px; }
.ct-terms { display: flex; flex-direction: column; gap: 2px; color: #1C1C2E; }
.ct-terms .ct-t-h { color: #145A74; margin-top: 14px; }
.ct-terms .ct-t-art { border-left: 3px solid #1F7A9C; padding-left: 10px; margin-top: 2px; }
.ct-terms .ct-t-p, .ct-terms .ct-t-i { padding-left: 13px; margin-top: 2px; }
.ct-terms .ct-t-no { color: #145A74; margin-right: 2px; }

/* =========================================================
   マイページ（my-）
   ========================================================= */
.my-root { display: flex; flex-direction: column; gap: 22px; }
/* わたしのカード：イラストを右に置き、文字を回り込ませる */
.my-me { overflow: hidden; }
.my-me-ill { float: right; width: 128px; margin: -4px -6px 4px 10px; }
.my-days { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; white-space: nowrap; }
.xl .my-days { clear: both; }
.my-days-n { font-size: calc(34px * var(--s)); font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.xl .my-me-ill { width: 84px; margin-right: -8px; }

/* これまでの報酬 */
.my-total-card { width: 100%; border: none; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.my-total { font-size: calc(32px * var(--s)); line-height: 1.25; font-variant-numeric: tabular-nums; }
.my-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid #EEF0F2; padding-top: 10px; }
.my-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.my-stat + .my-stat { border-left: 1px solid #EEF0F2; padding-left: 12px; }
.my-link { display: inline-flex; align-items: center; gap: 2px; color: var(--link); margin-top: 8px; }

/* メダル：黒い線のふち＋内側の輪（イラストのメダルと同じ描き方） */
.my-medal { --mc: #FFD600; width: 58px; height: 58px; border-radius: 50%; background: var(--mc); border: 2px solid #1C1C2E;
  box-shadow: inset 0 0 0 4px var(--mc), inset 0 0 0 5.5px #1C1C2E; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; color: #1C1C2E; flex-shrink: 0; }
.my-medal.k-year { --mc: #FFB37A; }
.my-medal.k-cont { --mc: #8FD3A8; }
.my-medal.k-study, .my-medal.k-ystudy { --mc: #9ED8EA; }
.my-medal-n { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.my-medal-u { font-size: 10px; font-weight: 700; margin-top: 1px; }
.my-medal.locked { --mc: #F4F6F8; border: 2px dashed #A9AEB5; box-shadow: none; color: #8A9098; }
.my-medal.big { width: 104px; height: 104px; box-shadow: inset 0 0 0 7px var(--mc), inset 0 0 0 9px #1C1C2E; }
.my-medal.big.locked { box-shadow: none; }
.my-medal.big .my-medal-n { font-size: 32px; }
.my-medal.big .my-medal-u { font-size: 14px; margin-top: 3px; }

.my-badge > span:last-child { word-break: keep-all; overflow-wrap: anywhere; }
.my-badge { border: none; background: transparent; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; line-height: 1.35; min-width: 0; }
.my-badge-row { display: flex; gap: 6px; overflow-x: auto; padding: 12px 10px; scrollbar-width: none; }
.my-badge-row::-webkit-scrollbar { display: none; }
.my-badge-row .my-badge { width: 76px; flex-shrink: 0; }
.my-badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; padding: 14px 8px; }
.xl .my-badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.my-badge-head { display: flex; align-items: center; gap: 14px; }
.my-badge-head .ill { width: 120px; flex-shrink: 0; }
.xl .my-badge-head .ill { width: 88px; }
.my-badge-detail { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 0 4px; }

/* 次のバッジまで */
.my-goal { display: flex; flex-direction: column; gap: 4px; }
.my-bar { height: 10px; border-radius: 5px; background: #EEF0F2; overflow: hidden; margin-top: 6px; }
.my-bar span { display: block; height: 100%; border-radius: 5px; background: #1C1C2E; }

/* 活動の記録 */
.my-hist .my-hist-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.my-ic-study { background: #E4F5FA; color: #145A74; }
.my-join { color: #145A74; }
.my-day { display: flex; flex-direction: column; gap: 6px; }
.my-day-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.my-day-row > span:last-child { text-align: right; }

/* 連携の状況 */
.my-link-card { display: flex; flex-direction: column; gap: 4px; }

/* 登録情報 */
.my-intro { display: flex; align-items: center; gap: 12px; }
.my-intro-ill { width: 104px; flex-shrink: 0; }
.my-diff { display: flex; flex-direction: column; }
.my-diff-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.my-diff-row + .my-diff-row { border-top: 1px solid #EEF0F2; }
.my-diff-row:first-child { padding-top: 0; }
.my-before { color: #8A9098; text-decoration: line-through; }
.xl .my-intro { flex-direction: column; align-items: flex-start; }

/* 希望条件・スキル：押して選ぶボタン */
.my-pick { display: flex; flex-direction: column; gap: 10px; }
.my-pick-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.my-pick-g { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid #EEF0F2; }
.my-opt-grid { display: grid; gap: 8px; }
.my-opt-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.my-opt-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.my-opt-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.my-opt-grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.my-opt-grid.c5 .my-opt { padding-left: 6px; padding-top: 26px; justify-content: center; }
.my-opt-grid.c5 .my-opt-mark { left: 50%; top: 7px; transform: translateX(-50%); }
.xl .my-opt-grid.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xl .my-opt-grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xl .my-opt-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.my-opt { position: relative; min-height: 52px; border: 1.5px solid #C9CDD3; border-radius: 12px; background: #fff; padding: 8px 6px 8px 33px;
  display: flex; align-items: center; text-align: left; line-height: 1.3; }
.my-opt.wide { width: 100%; justify-content: flex-start; }
.my-opt-mark { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid #9AA0A8; background: #fff; font-size: 12px; font-weight: 800; line-height: 14px; text-align: center; }
.my-opt-t { display: flex; flex-direction: column; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.my-opt-sub { color: #5A5A7A; }
.my-opt[aria-pressed="true"] { background: var(--sel-bg); border: 2px solid var(--sel-bd); color: var(--sel-fg); font-weight: 700; }
.my-opt[aria-pressed="true"] .my-opt-mark { background: #1C1C2E; border-color: #1C1C2E; color: #fff; }
.my-opt[aria-pressed="true"] .my-opt-sub { color: inherit; }

/* 完了画面：言葉のまとまりで改行する（「、」「。」などのうしろだけで行を変える） */
.nb { display: inline-block; max-width: 100%; }
.done-title, .done-line { word-break: auto-phrase; text-wrap: balance; }


/* =========================================================
   ホーム（hm-）
   ========================================================= */
/* 見出しの右の「すべて見る」「くわしく」 */
.hm-head-link { border: none; background: none; color: var(--link); font-weight: 700; padding: 4px 0; min-height: 36px; }

/* 次のおしごと（ブランド色に重ねるカード） */
.hm-next { display: flex; flex-direction: column; gap: 2px; border: none; text-align: left; }
button.hm-next { width: calc(100% - 28px); }
.hm-left { background: #1C1C2E; color: #fff; border-radius: 10px; padding: 1px 10px; white-space: nowrap; }
.hm-next-when { margin-top: 4px; line-height: 1.45; }
.hm-with { margin-top: 8px; }
.hm-faces { display: inline-flex; }
.hm-face { width: 26px; height: 26px; border-radius: 13px; background: var(--acc-bg); color: var(--acc-fg); display: inline-flex; align-items: center; justify-content: center; }
.hm-face + .hm-face { margin-left: -10px; border: 2px solid #fff; }
.hm-face.alt { background: #E4F5FA; color: #1F7A9C; }
.hm-link { width: auto; min-height: 44px; padding: 0; text-align: left; }

/* やること：締切が近いものは、アイコンを橙色に・説明を橙色の太字に */
.urgent { color: #B4461A; font-weight: 700; }
.hm-ic-urgent { background: #FFE9DC; color: #B4461A; }
.hm-empty { display: flex; align-items: center; gap: 12px; }
.hm-empty-ill { width: 96px; flex-shrink: 0; }
.hm-err { flex-wrap: wrap; }
.hm-err > span { flex: 1; min-width: 0; }
.hm-retry { flex-basis: 100%; width: auto; min-height: 40px; padding: 0 0 0 30px; text-align: left; color: inherit; }
.xl .hm-empty { flex-direction: column; align-items: flex-start; }

/* 新着のおしごと：横にすべらせて見る棚 */
.hm-shelf { display: flex; gap: 10px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hm-shelf::-webkit-scrollbar { display: none; }
.hm-job { flex: 0 0 176px; scroll-snap-align: start; border: none; border-radius: 16px; background: #fff; padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 4px; text-align: left; }
.hm-job-top { display: flex; align-items: center; gap: 10px; }
.hm-job-top .meta { gap: 4px; }
.hm-job-t { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.hm-job-place { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-pay { display: flex; align-items: baseline; gap: 3px; margin-top: 4px; }
.hm-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.xl .hm-job { flex-basis: 220px; }

/* わたしの活動 */
.hm-act { width: 100%; border: none; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.hm-act-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hm-act-cell { display: flex; flex-direction: column; gap: 2px; }
.hm-bprog { display: flex; align-items: center; gap: 12px; background: #FFFBE6; border-radius: 14px; padding: 12px; }
.hm-bprog .my-medal { width: 48px; height: 48px; }
.hm-bprog .my-medal-n { font-size: 15px; }
.hm-bprog-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-bar { height: 10px; border-radius: 5px; background: #F0E6B0; overflow: hidden; margin: 4px 0 2px; }
.hm-bar span { display: block; height: 100%; border-radius: 5px; background: #1C1C2E; }
.xl .hm-act-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }

/* =========================================================
   1-3-1 会社タブ（co-）
   ========================================================= */
.co-root { display: flex; flex-direction: column; gap: 22px; }
.co-me .my-me-ill { width: 92px; margin: -6px 2px 0 10px; }
.xl .co-me .my-me-ill { width: 70px; }
.co-who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.co-opts { display: flex; flex-direction: column; gap: 8px; }
.co-opts .my-opt { min-height: 56px; padding-top: 10px; padding-bottom: 10px; text-align: left; }
.co-opts .my-opt-t { gap: 2px; }
/* 取り消せない操作（無効にする・削除する・連携の解除） */
.btn-danger { width: 100%; min-height: 50px; border: 1.5px solid #C8452B; border-radius: 14px; background: #fff; color: #B3341C; font-weight: 700; padding: 6px 16px; }
.btn-danger:active { background: #FFF1EC; }
.xl .co-who { gap: 6px; }

/* =========================================================
   1-3-2 予定タブ（依頼主）（pl-）
   ========================================================= */
/* 会社の画面のカレンダーは水色にする（はたらく人は黄色のまま） */
.app.c .cal-day.work-fixed { background: var(--pri); }
.app.c .cal-day.work-fixed .cal-num { color: #fff; }
.app.c .cal-day.work-pending { background: #EEF7FB; border-color: #1F7A9C; }
.app.c .cal-key.k-fixed { background: var(--pri); }
.app.c .cal-key.k-pend { background: #EEF7FB; border-color: #1F7A9C; }
.app.c .pl-short { background: #D9621E; }

.pl-head { display: flex; flex-direction: column; gap: 6px; }
.pl-ai { align-items: flex-start; }
.note > svg { flex-shrink: 0; } /* 文字が長いときも、印が小さくならないように */
.pl-ai > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-ai .cal-all { align-self: flex-start; padding: 0; margin-top: 4px; }

/* 日を選ぶカレンダー */
.cal-day.pl-pick { border: 1.5px solid #E1E5EA; background: #fff; }
.cal-day.pl-pick.pick-on { background: var(--sel-bg); border-color: var(--sel-bd); }
.cal-day.pl-pick.pick-on .cal-num { color: var(--sel-fg); font-weight: 700; }
/* 予測の日（まだ入っていない）：点線と「予」 */
.cal-day.pl-pick.pick-pred { border: 2px dashed #1F7A9C; background: #F3FAFD; }
/* 「済」「予」の小さな印 */
.pl-mark { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); font-size: calc(9px * min(var(--s), 1.18)); font-weight: 700; line-height: 1; color: #1F7A9C; }
.cal-day.pick-on .pl-mark { color: #fff; }
.cal-key.k-pick { background: var(--sel-bg); }
.cal-key.k-pred { background: #F3FAFD; border: 2px dashed #1F7A9C; }
.cal-key.pl-k { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }
.cal-key.k-pred.pl-k { color: #1F7A9C; }
.cal-key.k-hol { width: 18px; height: 18px; background: transparent; position: relative; }
.cal-key.k-hol::after { content: "日"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #C2451A; font-weight: 700; font-size: 12px; }
.pl-slot { width: 100%; text-align: left; background: #fff; }

/* 時間・人数 */
.pl-addform { display: flex; flex-direction: column; gap: 14px; }
.pl-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-time input { height: 52px; padding: 0 10px; font-size: calc(17px * var(--s)); }
.pl-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #D5D8DD; border-radius: 12px; background: #fff; padding: 6px; }
.pl-step-b { width: 56px; height: 48px; border: none; border-radius: 10px; background: var(--acc-bg); color: var(--acc-fg); font-size: 26px; font-weight: 700; line-height: 1; }
.pl-step-b[disabled] { opacity: .35; }
.pl-step-n { display: inline-flex; align-items: baseline; gap: 4px; }

/* 確認 */
.pl-diff, .pl-all { display: flex; flex-direction: column; gap: 6px; }

/* 来る人 */
.pl-people { display: flex; flex-direction: column; gap: 6px; }
.pl-person { display: flex; align-items: center; gap: 10px; }
.pl-face { width: 30px; height: 30px; border-radius: 15px; background: var(--acc-bg); color: var(--acc-fg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.pl-need { color: #A6461A; font-weight: 700; }
.xl .pl-times { grid-template-columns: minmax(0, 1fr); }

/* 予測の日の一覧（チェックした日だけを入れる） */
.pl-preds { display: flex; flex-direction: column; gap: 12px; }
.pl-preds-h { display: flex; flex-direction: column; gap: 2px; }
.pl-pred-list { display: flex; flex-direction: column; gap: 8px; }
.pl-pred .my-opt-t { gap: 2px; }
.pl-hol { color: #B4461A; font-weight: 700; }
.pl-preds-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.pl-off { color: #5A5A7A; }
.pl-twin { color: #1F7A9C; font-weight: 700; }

/* =========================================================
   1-3-3 実績タブ（依頼主）（rs-）
   ========================================================= */
.rs-head { display: flex; flex-direction: column; gap: 6px; }
.rs-sum { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 4px; margin-top: 6px; padding-top: 10px; border-top: 1px solid #EEF0F2; }
.rs-sum > span { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.xl .rs-sum { column-gap: 16px; }
.rs-day { display: flex; flex-direction: column; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.rs-person { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rs-person + .rs-person { border-top: 1px solid #EEF0F2; }
.rs-face { width: 34px; height: 34px; border-radius: 17px; background: var(--acc-bg); color: var(--acc-fg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rs-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rs-picks { display: flex; flex-direction: column; gap: 8px; }
.rs-pick .my-opt-t { gap: 2px; }
.rs-write { display: flex; flex-direction: column; gap: 12px; }
.rs-write-h { display: flex; flex-direction: column; gap: 2px; }
.rs-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs-reasons .chip { min-height: 48px; justify-content: center; }
.rs-note { padding: 10px 12px; border-radius: 10px; background: #F4F6F8; }
.xl .rs-reasons { grid-template-columns: minmax(0, 1fr); }

/* 修正完了の吹き出し（はたらく人の NEW と同じ形で、依頼主の青） */
.new-bubble.rs-bubble { background: var(--pri); color: #fff; }
.new-bubble.rs-bubble::after { border-top-color: var(--pri); }

/* =========================================================
   1-3-4 依頼タブ・AIに相談（依頼主）（od-）
   ========================================================= */
.od-opts { display: flex; flex-direction: column; gap: 10px; }
.od-opt { box-shadow: 0 1px 2px rgba(28, 28, 46, .04); }
.od-opt .big-ill { width: 76px; height: 76px; }
.od-opt > span:nth-child(2) { flex: 1; min-width: 0; }
.od-chev { color: #9AA0A8; flex-shrink: 0; display: flex; }
.xl .od-opt .big-ill { width: 60px; height: 60px; }

.od-resume { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; background: var(--soft); }
.od-resume .row2 { margin-top: 6px; }

.od-draft { padding: 0; gap: 0; }
.od-draft-main { flex: 1; min-width: 0; border: none; background: transparent; text-align: left; padding: 12px 14px; display: flex; }
.od-draft-main .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.od-del { border: 1px solid #D5D8DD; background: #fff; border-radius: 10px; min-height: 40px; padding: 0 12px; margin-right: 12px; flex-shrink: 0; color: #3D4450; }

.od-form { display: flex; flex-direction: column; gap: 12px; }
.od-item { display: flex; gap: 8px; align-items: flex-start; }
.od-item .field { flex: 1; min-width: 0; }
.od-item .od-del { margin: 6px 0 0; }
.od-form input:disabled { background: #F1F2F4; color: #9AA0A8; }
.od-check .my-opt-t { gap: 0; }

/* 工程の一覧 */
.od-procs { display: flex; flex-direction: column; gap: 6px; }
.od-proc { background: #fff; border: 1px solid #E8EAED; border-radius: 12px; }
.od-proc > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px; cursor: pointer; }
.od-proc > summary::-webkit-details-marker { display: none; }
.od-proc-name { flex: 1; min-width: 0; line-height: 1.45; }
.od-num { width: 24px; height: 24px; border-radius: 12px; background: var(--acc-bg); color: var(--acc-fg); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.od-proc-detail { padding: 0 12px 12px 46px; color: #3D4450; }
.od-x { width: 40px; height: 40px; border: 1px solid #D5D8DD; border-radius: 20px; background: #fff; color: #3D4450; flex-shrink: 0; line-height: 1; }
.od-clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 会話 */
.od-progress > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; }
.od-progress > summary::-webkit-details-marker { display: none; }
.od-progress > summary::after { content: "開く"; font-size: calc(12px * var(--s)); color: var(--link); }
.od-progress[open] > summary::after { content: "閉じる"; }
.od-progress[open] { display: flex; flex-direction: column; gap: 10px; }
.od-task { display: flex; flex-direction: column; gap: 8px; }
.od-task.compact { border-top: 1px solid #EEF0F2; padding-top: 10px; }
.od-task .kv { box-shadow: none; background: #F7F8FA; }
.od-base { display: flex; flex-direction: column; gap: 2px; }

.od-chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.od-bubble { max-width: 86%; padding: 11px 14px; border-radius: 16px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.od-bubble.ai { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.od-bubble.me { align-self: flex-end; background: var(--pri); color: var(--on-pri); border-top-right-radius: 4px; }
.od-typing { display: inline-flex; align-items: center; gap: 8px; color: #5A5A7A; }
.od-dots { display: inline-flex; gap: 4px; }
.od-dots i { width: 6px; height: 6px; border-radius: 3px; background: #9AA0A8; animation: od-blink 1.2s infinite ease-in-out; }
.od-dots i:nth-child(2) { animation-delay: .2s; }
.od-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes od-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .od-dots i { animation: none; opacity: .6; } }
.od-sep { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.od-sep::before, .od-sep::after { content: ""; flex: 1; border-top: 1px dashed #C9CDD3; }
.od-err { display: flex; flex-direction: column; gap: 8px; background: #FFF3EC; }

.od-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.od-quick .chip { white-space: normal; text-align: left; line-height: 1.45; padding: 8px 14px; }
.od-ask { display: flex; flex-direction: column; gap: 10px; }
.od-ask-list { display: flex; flex-direction: column; gap: 8px; }

.od-composer { padding-top: 10px; }
.od-compose-row { display: flex; gap: 8px; align-items: flex-end; }
.od-compose-row textarea { flex: 1; min-width: 0; min-height: 52px; max-height: 160px; resize: none; border: 1px solid #C9CDD3; border-radius: 14px; padding: 12px 14px; line-height: 1.5; background: #fff; }
.od-send { width: 60px; height: 56px; border: none; border-radius: 16px; background: var(--pri); color: var(--on-pri); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; }
.od-send-t { font-size: 12px; font-weight: 700; line-height: 1; }
.od-send[aria-disabled="true"] { background: #E3E6EA; color: #8A9099; }
.xl .od-form .row2 { grid-template-columns: minmax(0, 1fr); } /* 文字が大きいときは、時間の欄を縦に並べる */

.od-sumwrap { display: flex; flex-direction: column; gap: 8px; }
.od-confirm { display: flex; flex-direction: column; gap: 8px; }
.od-confirm .kv { box-shadow: none; background: #F7F8FA; }

/* 右下の「AIに相談」ボタン（タブのトップ画面だけ） */
.od-fab { position: absolute; right: 14px; bottom: calc(76px + max(0px, env(safe-area-inset-bottom, 0px) - 14px)); width: 64px; height: 64px; border: none; border-radius: 32px; background: var(--pri); color: var(--on-pri); box-shadow: 0 6px 16px rgba(23, 105, 138, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; z-index: 5; }
.od-fab-t { font-size: 11px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.scroll.has-fab .body { padding-bottom: 92px; }

/* =========================================================
   時間・日付の入力欄（iPhoneで枠からはみ出す・文字が真ん中に寄るのを防ぐ）
   ========================================================= */
.field { min-width: 0; }
.row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field input[type="time"], .field input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  text-align: left; line-height: normal; background: #fff;
}
.field input[type="time"]::-webkit-date-and-time-value, .field input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; }
.field input[type="time"]:disabled, .field input[type="date"]:disabled { background: #F1F2F4; color: #9AA0A8; }

/* =========================================================
   1-3-5 ホーム（依頼主）（ch-）
   ========================================================= */
.ch-top { width: calc(100% - 28px); border: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.ch-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ch-stat + .ch-stat { border-left: 1px solid #EEF0F2; padding-left: 14px; }
.ch-num { font-variant-numeric: tabular-nums; margin-right: 3px; }
.ch-order { box-shadow: 0 1px 2px rgba(28, 28, 46, .04); }
.ch-order .big-ill { width: 76px; height: 76px; }
.ch-order > span:nth-child(2) { flex: 1; min-width: 0; }
.xl .ch-order .big-ill { width: 60px; height: 60px; }
.ch-visit .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ch-date { width: 52px; flex-shrink: 0; border-radius: 12px; background: var(--acc-bg); color: var(--acc-fg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; line-height: 1.2; }
/* =========================================================
   1-4 複数拠点（拠点名のラベル・会社タブの拠点の切り替え）
   ========================================================= */
.branch-pill { gap: 3px; }
.branch-pill svg { flex-shrink: 0; }
.co-branch-pick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.co-branch-pick .chip[aria-pressed="true"] { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); font-weight: 700; }
.co-branch-card { display: flex; flex-direction: column; gap: 8px; }
.co-req-card { display: flex; flex-direction: column; gap: 10px; }
.co-req-card .my-pick { box-shadow: none; padding: 0; background: transparent; }
.co-unlink { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 12px; border: 1.5px solid #D8DEE6; border-radius: 12px; min-height: 48px; cursor: pointer; }
.co-unlink input { width: 22px; height: 22px; flex-shrink: 0; accent-color: #C8452B; }
.co-unlink.on { border-color: #C8452B; background: #FFF6F2; color: #B3341C; font-weight: 700; }

/* ===== 2-1 ログイン（PWA） ===== */
.lg { flex: 1; min-height: 0; height: auto; }
.lg-top { display: flex; align-items: center; padding: 18px 20px 20px; padding-top: max(18px, env(safe-area-inset-top)); }
.setup .panel { max-height: none; }
.lg .panel { -webkit-overflow-scrolling: touch; }
.lg-body { width: 100%; max-width: 440px; margin: 0 auto; padding: 4px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.lg-title { margin: 4px 0 0; font-size: calc(22px * var(--s)); line-height: 1.45; }
.lg-ill { display: flex; justify-content: center; }
.lg-link { align-self: center; min-height: 44px; }
.lg-show { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.lg-show input { width: 22px; height: 22px; flex-shrink: 0; }
.lg-help { display: flex; flex-direction: column; gap: 6px; }
.lg-url { word-break: break-all; }
/* 確認コード（6桁）：大きな文字で、1文字ずつ間をあけて見やすく */
.field input.code-in { height: 64px; border: 2px solid #C9CDD3; border-radius: 14px; font-size: calc(26px * var(--s)); font-weight: 700; letter-spacing: .45em; text-align: center; padding: 0 0 0 .45em; }

/* ===== 2-2 初期連携（はじめて使うときの本人確認） ===== */
.steps { display: flex; gap: 4px; margin-bottom: 2px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: #DDE0E4; }
.steps span.on { background: var(--pri); }
.lk-role { display: flex; flex-direction: column; }
.role-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-il { width: 84px; height: 62px; flex-shrink: 0; display: block; }
.role-il .ill, .role-il img { width: 100%; height: 100%; object-fit: contain; display: block; }
.can { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.can > span { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.can > span svg { flex-shrink: 0; margin-top: 2px; }
.lk-role-btn { margin-top: 14px; }
.lk-role-btn.w { background: #FFD600; color: #1C1C2E; }
.lk-role-btn.c { background: #1F7A9C; color: #FFFFFF; }
.lk-date { display: flex; gap: 8px; align-items: center; }
.lk-date-part { display: flex; align-items: center; gap: 4px; min-width: 0; }
.field .lk-date-in { width: 100%; min-width: 0; text-align: center; padding: 0 6px; }
.lg-signup { margin: 4px 0; }

/* ===== 2-2 6桁のコードの入力（四角6つ） ===== */
.code-wrap { position: relative; }
.code-boxes { display: flex; gap: 8px; justify-content: center; }
.code-boxes span { flex: 1 1 0; min-width: 0; max-width: 54px; height: calc(58px * min(var(--s), 1.3)); border: 2px solid #C9CDD3; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: calc(26px * var(--s)); font-weight: 700; color: #1C1C2E; }
.code-boxes span.filled { border-color: #D9B600; background: #FFF9D6; }
.code-boxes span.on { border-color: #1C1C2E; box-shadow: 0 0 0 3px rgba(28, 28, 46, .15); }
.code-wrap .code-hidden { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: none; padding: 0; margin: 0; cursor: text; color: transparent; caret-color: transparent; }

/* ===== 2-2 はじめて開いたときの入口（はじめて使う／ログインする） ===== */
.big-opt { width: 100%; border: none; background: #fff; border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 14px; text-align: left; color: #1C1C2E; box-shadow: 0 1px 0 rgba(28, 28, 46, .04); }
.big-opt:active { background: #FFF9D6; }
.big-opt-il { width: 84px; height: 84px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.big-opt-il .ill, .big-opt-il img { width: 100%; height: 100%; object-fit: contain; display: block; }
.big-opt-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* ===== 2-2b 会社の方の初期連携：見つかった拠点のチェック ===== */
.chk { display: flex; align-items: flex-start; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; line-height: 1.6; }
.chk input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--sel-bg); flex-shrink: 0; }
.chk.off { cursor: default; opacity: .75; }
.chk .pill-tag { margin-top: 4px; display: inline-flex; }

/* =========================================================
   ホーム画面に追加・お知らせ（通知）（2-3）
   ========================================================= */
.pw-card { display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--soft); }
.pw-card-top { display: flex; align-items: flex-start; gap: 12px; }
.pw-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pw-card-btn { min-height: 50px; }
.pw-x { flex-shrink: 0; width: 44px; height: 44px; margin: -10px -10px 0 0; border: none; background: transparent; color: #5A5A7A; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; }
.pw-appicon { flex-shrink: 0; border-radius: 22%; box-shadow: 0 0 0 1px #E3E5E8; background: #fff; }
.pw-bell { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; background: var(--soft); color: var(--link); display: inline-flex; align-items: center; justify-content: center; }
.pw-bell.off { background: #EEF0F2; color: #5A606B; }
.pw-preview { display: flex; align-items: center; gap: 14px; }
.pw-preview-t { display: flex; flex-direction: column; gap: 2px; }
.pw-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pw-step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px; }
.pw-step-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 16px; background: #1C1C2E; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pw-step-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 3px; }
.pw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pw-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #C9CDD3; border-radius: 10px; padding: 5px 10px; background: #F7F8FA; color: #1C1C2E; font-weight: 700; }
.pw-chip svg { color: #0A7AFF; }
.pw-what { display: flex; flex-direction: column; gap: 8px; }
.pw-list { margin: 0; padding-left: 1.3em; }
.pw-state { display: flex; align-items: center; gap: 12px; }
.pw-state.on { border: 2px solid var(--soft); }

/* =========================================================
   お知らせ一覧
   ========================================================= */
.nt-home { display: flex; align-items: center; gap: 12px; width: 100%; border: none; text-align: left; }
.nt-home.has-new { box-shadow: inset 0 0 0 2px var(--soft); }
.nt-bell { position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; background: var(--soft); color: var(--link); display: inline-flex; align-items: center; justify-content: center; }
.nt-count { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #D93A2B; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.nt-home-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-one { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-chev { flex-shrink: 0; font-size: 24px; color: #8A8FA3; line-height: 1; }
.nt-list { display: flex; flex-direction: column; gap: 10px; }
.nt-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; border: none; text-align: left; }
.nt-meta { display: flex; align-items: center; gap: 8px; }
.nt-role { border-radius: 8px; padding: 1px 8px; font-weight: 700; }
.nt-role.w { background: #FFF6CC; color: #6B5600; }
.nt-role.c { background: #E3F3F9; color: #1F7A9C; }
.nt-title { line-height: 1.45; }
.nt-body { color: #3A3A55; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.nt-open { align-self: flex-end; color: var(--link); font-weight: 700; }
.nt-new { position: absolute; top: 12px; right: 14px; background: #D93A2B; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 8px; }

/* 要確認の日：まとめて回答（お返事が必要な日） */
.pend-ask { padding: 12px 14px; border-radius: 12px; background: #FFF4E8; border: 1.5px solid #F0B27A; display: flex; flex-direction: column; gap: 8px; }
.answer2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xl .answer2 { grid-template-columns: minmax(0, 1fr); }

/* ---- 切り替えボタンの数字（もう一方の立場に未読のお知らせがあるとき。） ---- */
.pill.has-badge { position: relative; }
.sw-badge { position: absolute; top: -8px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #D93A2B; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box; }

/* ---- 顔認証・指紋認証でログイン（パスキー）---- */
.pk-art { display: flex; justify-content: center; color: var(--acc-fg); padding: 8px 0 0; }
.pk-art svg { background: var(--acc-bg); border-radius: 28px; padding: 14px; box-sizing: content-box; }
.pk-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-del { width: auto; min-height: 44px; flex-shrink: 0; padding: 0 16px; }
.lg-or { display: flex; align-items: center; gap: 10px; text-align: center; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; border-top: 1px solid #D5D8DD; }
/* ===== 切り替え（おしごと／勉強会 など）の数字 ===== */
.seg-label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.seg-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #C2451A; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

/* ---- 会社の「さがす」→「事例」（cs-） ---- */
.cs-find { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #D5D8DD; border-radius: 12px; background: #fff; color: #5C636D; text-align: left; }
.cs-find svg { flex-shrink: 0; color: var(--tab-on); }
.cs-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-tile { min-height: 72px; border: none; border-radius: 14px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; text-align: left; line-height: 1.4; color: #1C1C2E; }
.cs-tile:active, .cs-find:active { background: var(--soft); }
.app.xl .cs-tiles { grid-template-columns: minmax(0, 1fr); }
.cs-chip { justify-content: space-between; text-align: left; }
.cs-mid { display: flex; flex-direction: column; gap: 10px; }
.cs-ex { display: flex; flex-direction: column; gap: 6px; }
.cs-ex .row { background: #F4F6F8; min-height: 56px; }
.cs-ask { display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.row.cs-plain { cursor: default; }
.cs-ex .row.cs-plain { background: #F4F6F8; }
.cs-go { flex-shrink: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--sel-bd); background: #fff; color: var(--link); font-weight: 700; white-space: nowrap; }
.cs-go:active { background: var(--soft); }

/* ---- 事務局のご利用終了のお知らせ（ホームのいちばん上・閉じられない。） ---- */
.end-banner { display: flex; gap: 12px; align-items: flex-start; background: #FFF0E6; color: #8A3A12; border: 1.5px solid #EFB18A; border-radius: 16px; padding: 14px 16px; }
.end-banner > svg { flex-shrink: 0; margin-top: 2px; }
.end-banner-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* ---- ログインの画面の左上の「＜」 ---- */
.lg-back { margin: 0 6px 0 -10px; flex-shrink: 0; }

/* ---- 登録のメールアドレスが変わりました（ホームのいちばん上。事務局・管理者が変えたとき） ---- */
.em-banner { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 2px solid var(--acc-fg); border-radius: 16px; padding: 16px; }
.em-banner-head { display: flex; gap: 10px; align-items: center; color: var(--acc-fg); }
.em-banner-head > svg { flex-shrink: 0; }
.em-banner-head .fmd { color: var(--ink, #1C1C2E); }

/* ---- パスワードを忘れたとき：入力したメールアドレスの見直し・届かないとき（11/9） ---- */
.lg-sent { display: flex; flex-direction: column; gap: 8px; border: 2px solid #1C1C2E; }
.lg-sent-mail { display: flex; flex-direction: column; gap: 2px; background: #F4F6F8; border-radius: 10px; padding: 10px 12px; }
.lg-sent .lg-warn { color: #B3261E; }
.lg-nomail { background: #fff; border-radius: 14px; border: 1px solid #E8EAED; }
.lg-nomail > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; cursor: pointer; font-weight: 700; }
.lg-nomail > summary::-webkit-details-marker { display: none; }
.lg-nomail > summary::after { content: "開く"; font-size: calc(12px * var(--s)); color: var(--link); font-weight: 400; flex-shrink: 0; }
.lg-nomail[open] > summary::after { content: "閉じる"; }
.lg-nomail ul { margin: 0; padding: 0 14px 14px 32px; display: flex; flex-direction: column; gap: 8px; }