/* コーポレートカラー #fa8333(達也さん、2026-09-23に変更)。アクセントはこの1色に寄せる。
   白文字との明暗差が2.5:1と小さいので、色を敷いた上の文字は太字にしている(読みやすさの補い) */
:root { --bg:#f6f6f7; --card:#fff; --ink:#1d1f24; --muted:#6b7280; --line:#e9e9ec;
        --accent:#fa8333; --accent-deep:#d9660f; --accent-soft:#FFF3EA; --red:#c62828; --good:#1b7f3b; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; }
a { color: var(--accent); text-decoration: none; }
.topbar { position: sticky; top:0; z-index:5; display:flex; justify-content:space-between; align-items:center; padding: 10px 14px; background:var(--accent); color:#fff; }
.topbar .brand { color:#fff; font-weight:800; font-size:17px; letter-spacing:.02em; }
.topbar .who { display:flex; gap:12px; align-items:center; font-size:13px; }
.topbar .lnk { color:#fff; background:none; border:0; padding:0; font-size:13px; font-weight:600; text-decoration: underline; cursor:pointer; }
.inline { display:inline; }
.page { padding: 12px; max-width: 1100px; margin: 0 auto; }
h1 { font-size: 20px; margin: 8px 0; }
h2 { font-size: 16px; margin: 0 0 8px; }
h3 { font-size: 14px; margin: 14px 0 6px; }
.muted { color: var(--muted); font-weight: normal; }
.card { background: var(--card); border-radius: 12px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.login { max-width: 360px; margin: 40px auto; text-align:center; }
.login label { display:block; text-align:left; margin: 10px 0; font-size: 13px; }
.login input, .form input, .form select, .row input[type=file] { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; font-size:16px; margin-top:4px; }
button.primary { width:100%; padding: 12px; background: var(--accent); color:#fff; border:0; border-radius: 10px; font-size: 16px; font-weight: 700; margin-top: 10px; cursor:pointer; }
button.primary:active { background: var(--accent-deep); }
button { cursor:pointer; }
.error { color: var(--red); }
.notice { white-space: pre-wrap; padding: 10px; border-radius: 8px; font-size: 13px; }
.notice.ok { background:#e7f5ec; color: var(--good); }
.notice.error { background:#fdecea; color: var(--red); }
.monthnav { display:flex; align-items:center; justify-content:center; gap: 8px; margin: 4px 0 10px; }
.monthnav select { font-size: 17px; padding: 8px 10px; border-radius: 8px; border:1px solid var(--line); background:#fff; }
.monthnav .arrow { font-size: 26px; padding: 0 12px; color: var(--accent); }
.monthnav .arrow.off { color: #c9ccd1; }
.tabs { display:flex; margin-bottom: 12px; background:#fff; border-radius: 10px; padding: 4px; }
.tabs a { flex:1; text-align:center; padding: 8px 0; border-radius: 8px; color: var(--muted); font-weight: 600; }
.tabs a.on { background: var(--accent); color:#fff; font-weight: 700; }
.tabs.small { margin-bottom: 8px; padding: 3px; }
.tabs.small { overflow-x:auto; -webkit-overflow-scrolling: touch; }
.tabs.small a { padding: 6px 10px; font-size: 13px; white-space: nowrap; flex: 1 0 auto; }
.badge { padding: 8px 10px; border-radius: 8px; font-size: 13px; margin: 0 0 10px; }
.badge.warn { background: #fff4e5; color: #8a5300; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
table.grid th, table.grid td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
table.grid thead th { background: #f9fafb; color: var(--muted); font-weight: 600; text-align: center; position: sticky; top: 0; }
table.grid th.sub { font-weight: normal; font-size: 12px; }
table.grid th.rowhead { text-align: left; position: sticky; left: 0; background: #fff; font-weight: 600; z-index: 1; }
table.grid tr.total th, table.grid tr.total td { font-weight: 700; background: var(--accent-soft); }
table.grid tr.total th.rowhead { background: var(--accent-soft); }
table.grid td.num { font-variant-numeric: tabular-nums; }
table.grid .red { color: var(--red); font-weight: 600; }
table.grid .good { color: var(--good); }
table.grid.small { font-size: 12px; }
table.grid.small pre { margin:0; font: inherit; white-space: pre-wrap; text-align:left; }
table.grid td.actions { text-align:left; }
table.grid td.actions input { width: 150px; padding: 4px; font-size: 13px; }
.legend { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.crumb { margin: 4px 0; font-size: 13px; }
.form label, .row label { display:block; margin: 8px 0; font-size: 13px; }
.row { margin-bottom: 14px; }
@media (min-width: 700px) { .form { display:grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .form button { grid-column: 1 / -1; } }
table.grid td.left { text-align:left; white-space: normal; }
table.grid.perm th, table.grid.perm td { text-align:center; }
table.grid.perm th.rowhead { text-align:left; white-space: normal; min-width: 180px; }
details.user { border-bottom: 1px solid var(--line); padding: 6px 0; }
details.user summary { cursor:pointer; font-size: 14px; }
details.user summary .tag { display:inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--muted); margin-left: 4px; }
details.user summary .tag.off { background:#fdecea; color: var(--red); }
.form.compact label { margin: 4px 0; }
.form .check { display:flex; align-items:center; gap: 6px; }
.form .check input { width:auto; margin:0; }
.members { display:flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 6px 0; }
.members label { display:flex; align-items:center; gap: 4px; }
.btn { padding: 8px 14px; border:1px solid var(--accent); color: var(--accent); background:#fff; border-radius: 8px; font-size: 14px; }
.btn.danger { border-color: var(--red); color: var(--red); }

/* ---- 投稿 ---- */
.page.with-footer { padding-bottom: 76px; }
.footer { position: fixed; bottom: 0; left: 0; right: 0; display:flex; background:#fff; border-top:1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 6; }
.footer a { flex:1; text-align:center; font-size: 11px; color: var(--muted); position: relative; line-height: 1.2; }
.footer a .ic { display:block; margin: 0 auto 2px; width: 24px; height: 24px; }
.footer a.on { color: var(--accent); font-weight: 700; }
.footer .badge { position:absolute; top:-2px; right: 18%; background: var(--red); color:#fff; border-radius: 10px; font-size: 10px; padding: 1px 5px; }
.pagehead { display:flex; align-items:center; justify-content:space-between; gap: 8px; margin: 6px 0 10px; }
.pagehead h1 { margin: 0; flex: 1; }
.btn.primary-btn { background: var(--accent); color:#fff; }
.btn.small, .lnk2 { font-size: 13px; }
.lnk2 { background:none; border:0; color: var(--accent); padding: 0; cursor:pointer; }
.lnk2.danger { color: var(--red); }
.tabs .cnt { background: var(--red); color:#fff; border-radius: 10px; font-size: 11px; padding: 0 6px; }
.tabs a.on .cnt { background:#fff; color: var(--accent); }
.search { display:flex; gap: 6px; margin-bottom: 8px; }
.search input { flex:1; padding: 9px 10px; border:1px solid var(--line); border-radius: 8px; font-size: 16px; }
.tagrow { display:flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.tag { display:inline-block; font-size: 12px; padding: 2px 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); border:0; cursor:pointer; }
.tag.on { background: var(--accent); color:#fff; }
.tag.off { background:#eee; color: var(--muted); }
.tag.warn { background:#fff4e5; color:#8a5300; }
.tag.ok { background:#e7f5ec; color: var(--good); }
a.postrow { display:block; color: inherit; }
.postrow.unread { border-left: 4px solid var(--accent); }
.postmeta { display:flex; justify-content:space-between; font-size: 12px; margin-bottom: 4px; }
.posttitle { font-weight: 700; font-size: 15px; }
.posttitle .dot { display:inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: middle; }
.postbody { margin: 4px 0; font-size: 13px; color: #444; white-space: pre-wrap; }
.postfoot { font-size: 12px; display:flex; gap: 8px; flex-wrap: wrap; }
.post h1 { font-size: 19px; margin: 4px 0 8px; }
.post .body, .comment .body { white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
.small { font-size: 12px; }
.attach { margin: 10px 0; }
.attach video, .attach img, .attach audio { max-width: 100%; border-radius: 8px; display:block; }
.attach video { background:#000; max-height: 70vh; }
.attach.small img, .attach.small video { max-height: 240px; }
.attach .file { display:block; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.confirmbox { margin: 12px 0; padding: 10px; background: var(--accent-soft); border-radius: 8px; }
.confirmbox .ok { color: var(--good); font-weight: 700; margin: 0; }
.confirmbox button.primary { margin-top: 0; }
.actions { display:flex; flex-wrap: wrap; gap: 8px; align-items:center; margin-top: 10px; }
.actions.small .btn, .actions.small .pill { font-size: 12px; padding: 3px 8px; }
.pill { display:inline-block; padding: 4px 10px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; }
.btn.on { background: var(--accent); color:#fff; }
details.stamp { display:inline-block; }
details.stamp summary { list-style: none; display:inline-block; }
details.stamp summary::-webkit-details-marker { display:none; }
.stamps { display:flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.emoji { font-size: 22px; background:#fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.comment { border-top: 1px solid var(--line); padding: 10px 0; }
.commentform textarea, .compose textarea, .form textarea { width:100%; padding: 10px; border:1px solid var(--line); border-radius: 8px; font-size: 16px; font-family: inherit; margin-top: 4px; }
.row2 { display:flex; flex-wrap: wrap; gap: 8px; align-items:center; margin-top: 8px; }
.filebtn { display:inline-block; padding: 8px 12px; border:1px solid var(--accent); color: var(--accent); background:#fff; border-radius: 8px; font-size: 14px; cursor:pointer; }
.filebtn input { display:none; }
details.mention summary { cursor:pointer; }
.compose .titlein { width:100%; font-size: 18px; font-weight: 700; padding: 10px; border:1px solid var(--line); border-radius: 8px; }
.compose select { width:100%; padding: 10px; border:1px solid var(--line); border-radius: 8px; font-size: 16px; background:#fff; }
.compose input[name=tags] { width:100%; padding: 10px; border:1px solid var(--line); border-radius: 8px; font-size: 16px; }
.compose h2 { margin-top: 10px; }
.compose h2:first-child { margin-top: 0; }
.check.big { display:flex; align-items:flex-start; gap:6px; font-size: 15px; margin-top: 10px; }
.check.big input { width:auto; margin:0; flex:none; margin-top:2px; }
.dim { opacity: .45; }
.composefoot { display:flex; gap: 8px; align-items:center; }
.composefoot .btn { flex: 0 0 auto; padding: 12px 16px; }
.composefoot .primary { flex:1; margin: 0; }
.attachline { display:flex; align-items:center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.attachline form { margin-left:auto; }
table.grid tr.pending th, table.grid tr.pending td { background:#fff8f7; }
.form label.wide { grid-column: 1 / -1; }
/* ---- フォルダ ---- */
.foldercard { display:flex; align-items:center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: inherit; }
.foldercard:last-child { border-bottom: 0; }
.foldercard .ic { font-size: 22px; }
.foldercard .fname { flex:1; font-weight: 600; }
.foldercard .fcount { font-size: 12px; color: var(--muted); white-space: nowrap; }
.foldercard .cnt { background: var(--red); color:#fff; border-radius: 10px; padding: 0 6px; }
.progress { padding: 12px; }
.progress .bar { height: 8px; background: var(--accent-soft); border-radius: 4px; overflow: hidden; }
.progress .bar span { display:block; height: 100%; background: var(--accent); }
.progress p { margin: 8px 0 0; font-size: 13px; display:flex; justify-content:space-between; }
a.attachline { color: inherit; justify-content: space-between; }
a.attachline .done { color: var(--good); }

/* ---- 通知 ---- */
.topbar .bell { position: relative; display:flex; align-items:center; color:#fff; }
.topbar .bell .ic { width: 22px; height: 22px; }
.topbar .bell .badge { position:absolute; top:-6px; right:-10px; background: var(--red); color:#fff; border-radius: 10px; font-size: 10px; padding: 0 5px; }
.attachline.unread { font-weight: 600; }
.notice-box { background:#fffaf0; }
.notice-box p { margin: 0 0 8px; }
.notice-box button.primary { margin-top: 0; }
ol.steps, ul.steps { padding-left: 1.2em; margin: 6px 0; }
ol.steps li, ul.steps li { margin: 6px 0; font-size: 14px; }
.big { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
p.ok { color: var(--good); }

/* ---- 評価・利用状況 ---- */
.kpis { display:flex; flex-wrap: wrap; gap: 14px 22px; }
.kpis div { display:flex; flex-direction: column; }
.kpis .big { font-size: 24px; line-height: 1.1; }
.kpis .muted { font-size: 12px; }
.spark { display:block; height: 8px; background: var(--accent); border-radius: 4px; min-width: 2px; }

/* 線画アイコン共通 */
.ic { flex: 0 0 auto; vertical-align: -0.15em; }
.postfoot .ic, .attachline .ic { width: 15px; height: 15px; color: var(--muted); }
.foldercard .ic { width: 22px; height: 22px; color: var(--accent); }
.crumb .ic { width: 14px; height: 14px; }
.filebtn .ic { width: 18px; height: 18px; vertical-align: -0.25em; margin-right: 4px; }
.pagehead h1 .ic { width: 20px; height: 20px; color: var(--accent); }
a.attachline .done { color: var(--good); display:inline-flex; }
a.attachline .done .ic { width: 15px; height: 15px; color: var(--good); }

/* 表の中の店舗名・氏名はリンクだが黒にする。
   コーポレートカラー(オレンジ)と「要注意の赤」が隣り合うと見分けにくいため(2026-09-19) */
table.grid th.rowhead a { color: var(--ink); text-decoration: underline; text-decoration-color: #d7d7dc;
                          text-underline-offset: 3px; }
table.grid .red { color: var(--red); font-weight: 700; }

input.money { width: 110px; padding: 6px 8px; border:1px solid var(--line); border-radius: 6px;
              font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.badge.ok-badge { background: var(--accent-soft); color: var(--accent-deep); }
.row2 .grow { flex: 1; }
.row2 select { padding: 8px; border:1px solid var(--line); border-radius: 8px; }
