/* tomari Web アプリ — デザイン v4（reply/design/v4・Claude Design）を実装したもの
   区切り: スマホ < 744px ≤ タブレット < 1128px ≤ PC（Airbnb と同じ幅） */
:root {
  --brand: #FF385C;
  --cta: linear-gradient(90deg, #D90B3E, #C0045A);
  --ink: #222222; --ink2: #6A6A6A; --ink3: #B0B0B0;
  --line: #DDDDDD; --hair: #EBEBEB; --muted: #F7F7F7; --subtle: #F0F0F0;
  --ok: #008A05; --warn: #8F5F0E; --stop: #C13515; --info: #3B64A0;
  --okbg: #F1F8F1; --stopbg: #FFF4F2; --warnbg: #FFF8EC;
  --r-card: 18px; --r-input: 12px; --r-btn: 8px;
  --font: Figtree, "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --gutter: 24px;
}
@media (max-width: 743px) { :root { --gutter: 16px; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { font-size: 15px; line-height: 1.5; }
a { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 共通の部品 ── */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid var(--ink); background: #FFF; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--muted); }
.btn-primary { border: none; background: var(--cta); color: #FFF; font-size: 16px; font-weight: 700; min-height: 52px; }
.btn-primary:hover { background: var(--cta); filter: brightness(.95); }
.btn-dark { border: none; background: var(--ink); color: #FFF; font-weight: 700; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn[disabled], .btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: none; padding: 10px 4px; font-size: 14px; font-weight: 600; text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFF; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"], .pill[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #FFF; }
.pill .n { font-weight: 500; opacity: .8; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #FFF; display: inline-grid; place-items: center; padding: 0; }
.icon-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.icon-btn svg { width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #FFF; background: var(--ink2); }
.badge.act { background: var(--stop); } .badge.check { background: var(--warn); } .badge.done, .badge.sending { background: var(--ok); } .badge.pending, .badge.stale { background: var(--ink2); }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; color: #FFF; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.muted { color: var(--ink2); }
.small { font-size: 13px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink2); }
.field { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--ink3); border-radius: var(--r-input); padding: 10px 14px; background: #FFF; }
.field:focus-within { border: 2px solid var(--ink); padding: 9px 13px; }
.field label { font-size: 12px; color: var(--ink2); }
.field input { border: none; outline: none; font-size: 16px; padding: 2px 0; background: transparent; }
textarea.box, input.box { width: 100%; border: 1px solid var(--line); border-radius: var(--r-input); padding: 14px 16px; font-size: 16px; line-height: 1.55; background: #FFF; resize: vertical; }
textarea.box:focus, input.box:focus { outline: none; border: 2px solid var(--ink); padding: 13px 15px; }
input.box { height: 48px; padding: 0 14px; } input.box:focus { padding: 0 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); background: var(--ink); color: #FFF; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (max-width: 743px) { .toast { bottom: 96px; } }
.spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 56px 16px; text-align: center; color: var(--ink2); }

/* ── ログイン（Airbnb のログイン画面に寄せる） ── */
.auth-page { min-height: 100vh; min-height: 100dvh; background: var(--muted); display: flex; flex-direction: column; align-items: center; }
.auth-top { width: 100%; padding: 20px 24px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 568px; background: #FFF; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.28); margin: 24px 16px 48px; overflow: hidden; }
.auth-head { position: relative; height: 64px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--hair); font-size: 16px; font-weight: 700; }
.auth-head .back { position: absolute; left: 16px; top: 10px; border: none; background: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; }
.auth-head .back:hover { background: var(--muted); }
.auth-body { padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-body h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.auth-fine { font-size: 12px; line-height: 1.6; color: var(--ink2); margin: 0; }
.auth-fine a { color: var(--ink); font-weight: 600; }
.or { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--ink2); margin: 8px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.social { position: relative; width: 100%; min-height: 50px; border: 1px solid var(--ink); border-radius: var(--r-btn); background: #FFF; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social:hover { background: var(--muted); }
.social svg { position: absolute; left: 22px; width: 20px; height: 20px; }
.notice { padding: 12px 14px; border-radius: var(--r-input); font-size: 14px; line-height: 1.55; }
.notice.err { background: var(--stopbg); color: var(--stop); }
.notice.dev { background: var(--warnbg); color: var(--warn); word-break: break-all; }
.notice.dev a { color: var(--warn); font-weight: 700; }
.sent-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--muted); display: grid; place-items: center; align-self: center; }
@media (max-width: 743px) {
  .auth-page { background: #FFF; }
  .auth-top { display: none; }
  .auth-card { max-width: none; margin: 0; border-radius: 0; box-shadow: none; min-height: 100vh; min-height: 100dvh; }
}

/* ── アプリの枠 ── */
.topbar { position: sticky; top: 0; z-index: 30; background: #FFF; border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 40px; }
.mainnav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05); }
.mainnav a { text-decoration: none; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.mainnav a:hover { background: var(--muted); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--ink); color: #FFF; }
.top-right { display: flex; align-items: center; gap: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--ink); color: #FFF; font-weight: 700; font-size: 15px; display: inline-grid; place-items: center; }
.menu-btn { display: none; }
.menu { position: absolute; right: 24px; top: 64px; z-index: 40; min-width: 240px; background: #FFF; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 8px 0; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 12px 18px; border: none; background: none; font-size: 15px; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--muted); }
.menu hr { border: none; border-top: 1px solid var(--hair); margin: 8px 0; }
.menu .who { padding: 10px 18px 12px; font-size: 13px; color: var(--ink2); }
.menu .who strong { display: block; color: var(--ink); font-size: 15px; }
/* ハンバーガーで開くドロワー（タブレット・スマホ） */
.drawer-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.4); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(340px, 88vw); background: #FFF; display: flex; flex-direction: column; box-shadow: -8px 0 28px rgba(0,0,0,.16); animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.drawer nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer nav a, .drawer nav button { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 20px; border: none; background: none; font-size: 16px; font-weight: 600; text-decoration: none; text-align: left; }
.drawer nav a[aria-current="page"] { background: var(--muted); box-shadow: inset 3px 0 0 var(--ink); }
.drawer nav svg { width: 20px; height: 20px; flex-shrink: 0; }
.drawer .who { margin-top: auto; padding: 16px 20px 24px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink2); }
.drawer .who strong { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 1127px) {
  .topbar { padding: 12px var(--gutter); }
  .mainnav, .top-right .avatar, .top-right .listing-pick { display: none; }
  .menu-btn { display: inline-grid; }
}
.listing-pick { height: 44px; padding: 0 36px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%23222' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 14px; font-weight: 600; max-width: 220px; }

/* ── 受信箱 ── */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr) 400px; min-height: calc(100vh - 73px); }
.col-list { border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-width: 0; }
.col-conv { border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-width: 0; }
.col-side { min-width: 0; }
.detail-wrap { display: contents; }
.list-head { padding: 24px var(--gutter) 8px; }
.list-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.filters { display: flex; gap: 8px; padding: 8px var(--gutter) 16px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.rows { flex: 1; overflow-y: auto; }
.row { width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 16px var(--gutter); border: none; border-bottom: 1px solid var(--hair); background: #FFF; text-align: left; text-decoration: none; color: var(--ink); }
.row:hover { background: var(--muted); }
.row[aria-current="true"] { background: var(--muted); box-shadow: inset 3px 0 0 var(--ink); }
.av { width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px; color: #FFF; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.av.sm { width: 40px; height: 40px; font-size: 16px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-top { display: flex; justify-content: space-between; gap: 8px; }
.row-top strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-top time { font-size: 12px; color: var(--ink2); flex-shrink: 0; }
.row-meta { font-size: 12px; color: var(--ink2); }
.row-prev { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-top: 2px; }
.st-act { color: var(--stop); } .st-check { color: var(--warn); } .st-done, .st-sending { color: var(--ok); } .st-pending, .st-stale { color: var(--ink2); }
.bg-act { background: var(--stop); } .bg-check { background: var(--warn); } .bg-done, .bg-sending { background: var(--ok); } .bg-pending, .bg-stale { background: var(--ink2); }

.conv-head { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--hair); position: sticky; top: 73px; background: #FFF; z-index: 5; }
.conv-head .back { display: none; }
.conv-head h2 { margin: 0; font-size: 18px; }
.conv-head .sub { font-size: 13px; color: var(--ink2); }
.conv-head .spacer { flex: 1; }
.thread { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.older { align-self: center; }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 80%; }
.msg.guest { align-items: flex-start; }
.msg.host { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 12px 16px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.guest .bubble { background: var(--muted); border-radius: 18px 18px 18px 4px; }
.msg.host .bubble { background: var(--ink); color: #FFF; border-radius: 18px 18px 4px 18px; }
.msg .ja { font-size: 13px; line-height: 1.5; color: var(--ink2); padding: 0 4px; white-space: pre-wrap; }
.msg .meta { font-size: 12px; color: var(--ink2); padding: 0 4px; }
.msg.latest .bubble { box-shadow: 0 0 0 2px var(--ink) inset; }

.side { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 22px; }
.side h3 { margin: 0; font-size: 18px; font-weight: 700; }
.side-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.draft-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.draft-ja { font-size: 13px; line-height: 1.55; color: var(--ink2); padding: 0 4px; white-space: pre-wrap; }
.warnbox { padding: 12px 14px; border-radius: var(--r-input); background: var(--warnbg); color: var(--warn); font-size: 13px; line-height: 1.55; }
.okbox { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-input); background: var(--muted); font-size: 14px; line-height: 1.55; }
.decide { display: flex; flex-direction: column; gap: 10px; }
.decide p { margin: 0; font-size: 14px; line-height: 1.6; }
.opt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-input); border: 1px solid var(--line); background: #FFF; text-align: left; width: 100%; }
.opt[aria-checked="true"] { border: 2px solid var(--ink); padding: 13px 15px; }
.opt .ring { width: 20px; height: 20px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--ink2); }
.opt[aria-checked="true"] .ring { border: 6px solid var(--ink); }
.opt strong { display: block; font-size: 15px; }
.opt span.d { display: block; font-size: 13px; color: var(--ink2); }
details.fold { border-top: 1px solid var(--hair); }
details.fold:last-of-type { border-bottom: 1px solid var(--hair); }
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; font-size: 15px; font-weight: 600; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .15s; flex-shrink: 0; }
details.fold[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
details.fold .fold-body { padding: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--ink2); flex-shrink: 0; }
.kv span:last-child { text-align: right; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor { display: flex; flex-direction: column; gap: 8px; }
.editor .row-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.fb { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hair); }
.fb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-top .thumbs { display: flex; gap: 8px; }
.thumb { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #FFF; display: grid; place-items: center; }
.thumb[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFF; }
.thumb svg { width: 18px; height: 18px; }

/* スマホ: 送信ボタンは画面の下に固定。その他の操作は下から出るシート */
.dock { display: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: #FFF; border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 92vh; overflow-y: auto; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .grab { align-self: center; width: 36px; height: 4px; border-radius: 999px; background: var(--line); }
.sheet h3 { margin: 4px 0 0; font-size: 18px; }
@media (min-width: 744px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; padding-bottom: 24px; } .sheet .grab { display: none; } }

@media (max-width: 1127px) {
  .inbox { grid-template-columns: 340px minmax(0, 1fr); }
  .col-conv { border-right: none; }
  .col-side { border-top: 1px solid var(--hair); }
  .conv-head { top: 69px; }
  .detail-wrap { grid-column: 2; display: flex; flex-direction: column; min-width: 0; }
}
@media (max-width: 743px) {
  .inbox { display: block; min-height: 0; }
  .detail-wrap { display: block; }
  .inbox.has-detail .col-list { display: none; }
  .inbox:not(.has-detail) .detail-wrap { display: none; }
  .col-list { border-right: none; }
  .conv-head { padding: 12px var(--gutter); top: 69px; }
  .conv-head .back { display: inline-grid; }
  .thread { padding: 16px var(--gutter) 20px; }
  .msg { max-width: 88%; }
  .side { padding: 20px var(--gutter) 120px; }
  .side .actions .primary-send { display: none; }
  .dock { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #FFF; border-top: 1px solid var(--hair); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  .dock .btn-primary { flex: 1; }
  .dock .btn { min-width: 0; }
}

/* ── 台帳 ── */
.page { max-width: 1160px; margin: 0 auto; padding: 36px var(--gutter) 140px; display: flex; flex-direction: column; gap: 24px; }
.page h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 743px) { .page { padding-top: 24px; } .page h1 { font-size: 26px; } }
.lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; background: #FFF; }
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.card strong { font-size: 17px; }
.meter { height: 8px; border-radius: 999px; background: var(--subtle); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.miss { font-size: 13px; font-weight: 700; color: var(--stop); }
.miss.zero { color: var(--ok); }
.ledger-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: none; font-size: 14px; font-weight: 600; padding: 8px 0; text-align: left; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: var(--ink3); padding: 3px; display: flex; transition: background .15s; }
.switch .track::after { content: ""; width: 20px; height: 20px; border-radius: 999px; background: #FFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] .track { background: var(--ink); }
.switch[aria-checked="true"] .track::after { transform: translateX(18px); }
.sec { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.sec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 20px; cursor: pointer; font-size: 17px; font-weight: 700; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary .cnt { font-size: 12px; font-weight: 700; margin-left: auto; }
.sec > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); flex-shrink: 0; }
.sec[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.sec[open] > summary { border-bottom: 1px solid var(--hair); }
.fieldrow { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--hair); }
.fieldrow:last-child { border-bottom: none; }
.fieldrow .fr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fieldrow .fr-top strong { font-size: 15px; }
.fieldrow .use { font-size: 12px; color: var(--ink2); }
.fieldrow .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fieldrow .opts .pill { min-height: 44px; padding: 0 16px; font-size: 14px; }
.fieldrow .opts .pill[aria-checked="true"] { background: var(--ink); color: #FFF; border: 1px solid var(--ink); font-weight: 700; }
.fieldrow .opts .pill[aria-checked="true"]::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4 5.6 10.4 11.5 3.8' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.fieldrow .opts .pill[aria-checked="false"] { color: var(--ink2); }
.fieldrow .opts .pill[aria-checked="false"]:hover { color: var(--ink); }
.fieldrow .inferred { margin: 0; font-size: 12px; color: var(--warn); }
.fieldrow .now { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: 13px; line-height: 1.55; color: var(--ink2); }
.fieldrow .now-label { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--subtle); color: var(--ink); }
.fieldrow .sug { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--warn); }
.fieldrow.missing input.box, .fieldrow.missing textarea.box { border-color: var(--stop); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #FFF; border-top: 1px solid var(--hair); padding: 12px 40px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.savebar .btns { display: flex; gap: 10px; }
@media (max-width: 743px) { .savebar { padding-left: var(--gutter); padding-right: var(--gutter); } .savebar .msg-line { width: 100%; } .savebar .btns { width: 100%; } .savebar .btns .btn { flex: 1; } }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.crumbs a { color: var(--ink2); }
.account { max-width: 560px; display: flex; flex-direction: column; }
.center { text-align: center; }
.auth-fine.big { font-size: 15px; }
.drawer-listing { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.drawer-listing .listing-pick { display: block; max-width: none; width: 100%; }
/* 規約などの文書 */
.doc { max-width: 760px; gap: 14px; }
.doc h2 { margin: 20px 0 0; font-size: 18px; }
.doc p, .doc li { font-size: 15px; line-height: 1.75; }
.doc p { margin: 0; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; }
.sysnote { align-self: center; font-size: 12px; color: var(--ink2); background: var(--muted); padding: 6px 12px; border-radius: 999px; }
.bubble.clamp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.clamp-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { background: none; border: none; padding: 4px 0; font-size: 13px; font-weight: 700; text-decoration: underline; color: inherit; }
.pick-one { grid-column: 2 / -1; }
@media (min-width: 744px) { .filters { flex-wrap: wrap; overflow: visible; } }

/* ログイン画面の背景（実写の動画・Higgsfield で生成） */
.auth-page.has-bg { position: relative; background: #2A2622; justify-content: center; }
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.auth-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.10) 38%, rgba(0,0,0,.30) 100%); }
.has-bg .auth-top { position: relative; z-index: 1; flex-direction: column; align-items: center; gap: 10px; padding-top: 32px; }
.has-bg .auth-card { position: relative; z-index: 1; margin-top: 8px; }
.logo.on-photo span { color: #FFF; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.auth-tagline { margin: 0; color: #FFF; font-size: 20px; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
@media (max-width: 743px) {
  .auth-page.has-bg { justify-content: flex-start; background: #2A2622; }
  .has-bg .auth-bg { bottom: auto; height: 52vh; height: 52dvh; }
  .has-bg .auth-top { display: flex; align-items: flex-start; min-height: 34vh; min-height: 34dvh; padding: calc(20px + env(safe-area-inset-top)) 20px 20px; justify-content: flex-start; }
  .auth-tagline { font-size: 22px; line-height: 1.35; }
  .has-bg .auth-card { flex: 1; margin: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 28px rgba(0,0,0,.18); min-height: 66vh; min-height: 66dvh; }
  .has-bg .auth-head { height: 56px; }
}
.auth-tagline .nb { display: inline-block; }

/* ── 物件の写真＋ゲストのアイコン（Airbnb のメッセージ一覧） ── */
.stack { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.stack-thumb { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--subtle); }
.stack-thumb.ph { display: block; background: linear-gradient(135deg, #EFE7DD, #D9CBB8); }
.stack-guest { position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; border-radius: 999px; object-fit: cover; border: 2px solid #FFF; background: var(--subtle); }
.stack-guest.initial { display: grid; place-items: center; color: #FFF; font-weight: 700; font-size: 15px; }
.stack.sm { width: 48px; height: 48px; }
.stack.sm .stack-thumb { width: 38px; height: 38px; border-radius: 8px; }
.stack.sm .stack-guest { width: 28px; height: 28px; font-size: 12px; }
.stack.md { width: 72px; height: 72px; }
.stack.md .stack-thumb { width: 60px; height: 60px; border-radius: 12px; }
.stack.md .stack-guest { width: 38px; height: 38px; }
.row .row-status { font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .row-status .row-meta { font-weight: 400; }
.row .row-prev { color: var(--ink2); }

/* ── スマホの下のタブバー ── */
.tabbar { display: none; }
@media (max-width: 743px) {
  .menu-btn { display: none !important; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #FFF; border-top: 1px solid var(--hair);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; justify-content: center;
    font-size: 10px; font-weight: 600; color: var(--ink2); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar .ti { position: relative; width: 26px; height: 26px; }
  .tabbar svg { width: 26px; height: 26px; }
  .tdot { position: absolute; top: -1px; right: -3px; width: 9px; height: 9px; border-radius: 999px; background: var(--brand); border: 2px solid #FFF; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.in-thread { padding-bottom: 0; }
  body.in-thread .tabbar { display: none; }
  .savebar { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .topbar { justify-content: space-between; }
}

/* ── 今日の情報 ── */
.today { gap: 32px; }
.today-head h1 { font-size: 32px; }
.today-head p { margin: 6px 0 0; font-size: 15px; }
@media (max-width: 743px) { .today-head h1 { font-size: 26px; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; background: #FFF; }
a.kpi:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.kpi-n { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.kpi-n.hot { color: var(--stop); }
.kpi-l { font-size: 13px; color: var(--ink2); }
.tsec { display: flex; flex-direction: column; gap: 14px; }
.tsec h2 { margin: 0; font-size: 22px; font-weight: 700; }
.filters.flat { padding: 0; }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
@media (max-width: 743px) {
  .rcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .rcards::-webkit-scrollbar { display: none; }
  .rcard { flex: 0 0 82%; scroll-snap-align: start; }
}
.rcard { border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; background: #FFF; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.rcard-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rcard-top > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rcard-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.rcard.k-out .rcard-label { color: var(--stop); }
.rcard.k-in .rcard-label { color: var(--ok); }
.rcard-name { font-size: 20px; font-weight: 700; }
.empty-card { display: flex; flex-direction: column; gap: 6px; box-shadow: none; background: var(--muted); border-color: transparent; }
.tl { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.tl-row, .notice-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.tl-when { flex-shrink: 0; min-width: 96px; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--muted); text-align: center; }
.tl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-main strong { font-size: 15px; }
a.notice-row:hover { background: var(--muted); }
.n-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; background: var(--info); }
.tone-stop .n-dot { background: var(--stop); } .tone-warn .n-dot { background: var(--warn); }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); margin-right: 6px; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 743px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-when { min-width: 84px; } }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-card); background: var(--muted); }
.stat-n { font-size: 26px; font-weight: 700; }
.menu-who { display: flex; align-items: center; gap: 14px; }
.menu-who > div { display: flex; flex-direction: column; }

/* メニュー: 通知・送信箱 */
.sec-title { margin: 8px 0 0; font-size: 20px; font-weight: 700; }
.toggle-row { align-items: center; }
.mail-row { text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.mail-row:hover { background: var(--muted); }
.mail-row span:first-child { font-weight: 600; }
.steps { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.8; }
.two-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.auto-msg > summary { gap: 14px; justify-content: flex-start; }
.auto-msg > summary .tl-when { min-width: 150px; font-size: 12px; }
.auto-link { margin-top: 8px; }
@media (max-width: 743px) { .auto-msg > summary { flex-wrap: wrap; } .auto-msg > summary .tl-when { min-width: 0; } }

/* 料金の提案 */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.price-month h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.status-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--muted); }
.status-chip.up { background: color-mix(in srgb, #12805c 16%, transparent); color: #12805c; }
.status-chip.down { background: color-mix(in srgb, #c13515 14%, transparent); color: #c13515; }
.price-msg { margin: 4px 0 10px; }
.price-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line, #ddd); margin-bottom: 10px; }
.price-row { display: grid; grid-template-columns: 84px 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #ddd); }
.price-why { grid-column: 2; }
.chg.up { color: #12805c; font-weight: 700; }
.chg.down { color: #c13515; font-weight: 700; }
@media (max-width: 743px) { .price-row { grid-template-columns: 64px 1fr; } }
.price-month > a { display: inline-block; margin: 2px 0 12px; }

/* Hospitable のプラン */
.plan-rows { display: flex; flex-direction: column; margin: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.plan-row { display: grid; grid-template-columns: 44px 1.6fr 1fr 1fr 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.plan-row.head { color: var(--sub, #6A6A6A); font-size: 12px; }
.plan-row.me { background: var(--muted); }
@media (max-width: 743px) { .plan-row { grid-template-columns: 36px 1.5fr 1fr 1fr; } .plan-row > :nth-child(5) { display: none; } }

/* 返信の送り方 */
.mode-row { align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-row .pills { margin: 0; }
.pill[disabled] { cursor: default; }
.pill[aria-pressed="false"][disabled] { opacity: .5; }
/* Slack でログイン（2026-10-15） */
.slack-login { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; margin-bottom: 6px; }
.slack-login[hidden] { display: none; }
/* ログインのスライド（2026-10-15）: 丸いつまみを右へ引くと Slack でログイン */
.slide { --p: 0; position: relative; height: 60px; border-radius: 999px; background: var(--ink); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.slide-fill { position: absolute; inset: 0; background: var(--cta); transform-origin: left; transform: scaleX(var(--p)); opacity: calc(.35 + var(--p) * .65); }
.slide[data-state="idle"] .slide-fill, .slide[data-state="hint"] .slide-fill { transition: transform .25s ease, opacity .25s ease; }
.slide-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 52px; color: #FFF; font-size: 15px; font-weight: 600; letter-spacing: .01em; pointer-events: none; }
.slide-knob { position: absolute; left: 4px; top: 4px; width: 52px; height: 52px; border-radius: 999px; border: none; background: #FFF; display: grid; place-items: center; cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.25); touch-action: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.slide[data-state="drag"] .slide-knob { transition: none; cursor: grabbing; }
.slide[data-state="hint"] .slide-knob { animation: slide-hint .7s ease; }
.slide[data-state="off"] { opacity: .45; }
.slide[data-state="off"] .slide-knob { cursor: not-allowed; }
@keyframes slide-hint { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(18px); } 70% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .slide-knob, .slide-fill { transition: none !important; } .slide[data-state="hint"] .slide-knob { animation: none; } }
/* ログインの手順（2026-10-15） */
.auth-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.auth-steps strong { color: var(--ink); }

/* お知らせ（2026-10-19） */
.ntc { display: grid; gap: 10px; }
.ntc-item { display: block; border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; background: #FFF; color: inherit; text-decoration: none; }
.ntc-item.new { border-color: var(--ink); }
.ntc-item .ntc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.ntc-item .ntc-new { background: var(--brand); color: #FFF; border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 11px; }
.ntc-item strong { display: block; margin-top: 4px; }
.ntc-item p { margin: 6px 0 0; white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.ndot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--brand); margin-left: 6px; vertical-align: 2px; }
.ndot[hidden], .tdot[hidden] { display: none; }
/* 料金の反映（2026-10-20） */
.price-apply { display: grid; gap: 10px; }
.price-apply .pills { margin: 0; }
.pending-card { display: grid; gap: 10px; border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; background: #FFF; }
.card.locked { opacity: .75; cursor: default; }
/* 台帳のトップ（2026-10-20）: 物件ごとの写真つきカードを横に流す */
.ledger-root { display: grid; gap: 18px; }
.lrail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 2px; padding: 4px 2px 12px; scrollbar-width: thin; }
@media (max-width: 743px) { .lrail { grid-auto-columns: 82%; } }
.lcard { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-card); background: #FFF; box-shadow: 0 2px 10px rgba(0,0,0,.08); overflow: hidden; cursor: pointer; color: inherit; }
.lcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lthumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--subtle); }
.lthumb.ph { background: linear-gradient(135deg, var(--subtle), var(--hair)); }
.lbody { display: grid; gap: 8px; padding: 14px 16px 16px; }
.ltitle { font-size: 16px; line-height: 1.35; }
.mode-box { display: grid; gap: 2px; border-top: 1px solid var(--hair); padding-top: 8px; margin-top: 2px; }
.mode-box .switch { justify-content: space-between; width: 100%; padding: 4px 0; }
.mode-box .switch[aria-checked="true"] .track { background: var(--brand); }
.mode-note { line-height: 1.5; }
/* 物件ごとの台帳の見出し（写真と名前を1行に・2026-10-29） */
.lhead { display: flex; gap: 12px; align-items: center; }
.lhead-img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.lhead h1 { min-width: 0; line-height: 1.25; }
/* 台帳ページの区切り（① 返信の送り方 ② 台帳）。見出しと細い線で分け、箱は使わない */
.lsec { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hair); }
.lsec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lsec-title { margin: 0; font-size: 18px; font-weight: 700; }
.lsec-head .switch { flex-shrink: 0; padding: 0; font-size: 13px; }
.lsec .mode-box { border-top: none; padding-top: 0; margin: 0; gap: 6px; }
.lsec .mode-ready { margin: 0; padding-top: 8px; border-top: 1px dashed var(--hair); line-height: 1.5; }
/* 売上アップオプションのカードは薄いブランドの色で目立たせる */
.promo-card { background: linear-gradient(135deg, #FFF1F4, #FFE4EA); border: 1px solid #FFC2CF; display: grid; gap: 4px; }
.promo-card strong { color: #C0045A; font-size: 17px; }
.promo-card .small { color: var(--ink); }
/* 台帳: 受け入れる選択のときだけ出す条件（2026-10-20） */
.cond-box { display: grid; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--muted); }
.cond-box.missing { background: var(--warnbg); }
.cond-label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.cond-need { color: var(--warn); font-weight: 600; }

/* ── 台帳ページの詰め（2026-10-21 黒須「文字の行間が広い。センテンスの纏まりが視覚的に分かりづらい」） ──
   1項目＝1ブロック。項目名と入力の間は詰め、項目と項目の間は線と余白で区切る */
.decide { gap: 12px; }
.sec > summary { min-height: 52px; padding: 0 16px; font-size: 16px; }
.fieldrow { gap: 6px; padding: 12px 16px 14px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.fieldrow .fr-top { gap: 4px 8px; }
.fieldrow .fr-top strong { font-size: 15px; line-height: 1.35; }
.fieldrow .use { font-size: 11px; }
.fieldrow input.box, .fieldrow textarea.box { padding: 9px 12px; line-height: 1.45; }
.fieldrow .opts { gap: 6px; }
.fieldrow .opts .pill { min-height: 36px; padding: 0 12px; font-size: 13px; }
.fieldrow .opts.special .pill { min-height: 28px; padding: 0 10px; font-size: 12px; font-weight: 500; }
.fieldrow .now { gap: 8px; font-size: 12px; line-height: 1.45; }
.fieldrow .now-label { padding: 1px 6px; }
.fieldrow .sug { gap: 8px; font-size: 12px; }
.cond-box { gap: 6px; margin-top: 4px; padding: 10px 12px; }
.cond-box .fieldrow { padding: 0; border: none; }
/* 返信の送り方のスイッチ: 左右に「返信は確認」「自動で返信」。今の側を太字に */
.mode-lr { display: flex; align-items: center; gap: 10px; }
.mode-lr .mode-side { font-size: 13px; color: var(--ink3); white-space: nowrap; }
.mode-lr .mode-side.on { color: var(--ink); font-weight: 700; }
.mode-box .mode-lr .switch { width: auto; padding: 0; flex-shrink: 0; }
.mode-box.compact .mode-lr .mode-side { font-size: 12px; }
/* 保存バー: 破棄は控えめな文字のボタン（押すと「本当に破棄する」に変わる） */
.savebar .btn { white-space: nowrap; min-height: 44px; }
.savebar .btn-primary { min-height: 44px; }
.btn-ghost { border-color: transparent; background: none; color: var(--ink2); text-decoration: underline; padding: 0 8px; font-weight: 500; font-size: 14px; }
.btn-ghost:hover { background: none; color: var(--ink); }
.btn-ghost.danger { color: #FFF; background: var(--stop); text-decoration: none; border-radius: var(--r-btn); }
@media (max-width: 743px) { .savebar .btns .btn-ghost { flex: 0 0 auto; } }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
/* 自動で送っているメッセージ（物件の台帳ページの一番下・たたんで置く） */
.auto-box { margin-top: 12px; }
.auto-inner { display: grid; gap: 10px; padding: 4px 16px 16px; }
.auto-phase { margin: 6px 0 4px; font-size: 13px; color: var(--ink2); }
.auto-group .auto-msg + .auto-msg { margin-top: 6px; }
.auto-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* 台帳ページは段落の間を詰める（2026-10-21） */
.ledger-page { gap: 16px; padding-top: 20px; }
.ledger-page h1 { font-size: 24px; }
.ledger-note { margin: 0; line-height: 1.5; }

/* ── メニュー（一覧 → 各ページ・2026-10-21 設計 reply/web/UX_MENU_PLAN.md） ── */
.menu-page { gap: 14px; padding-top: 20px; max-width: 720px; }
.menu-page h1 { font-size: 26px; }
.back-link { font-size: 14px; color: var(--ink2); text-decoration: none; }
.menu-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #FFF; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
.menu-item:last-child { border-bottom: none; }
.menu-item:active, .menu-item:hover { background: var(--muted); }
.mi-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--muted); display: grid; place-items: center; font-size: 18px; flex: none; }
.mi-text { display: grid; gap: 1px; flex: 1; min-width: 0; line-height: 1.35; }
.mi-text strong { font-size: 15px; }
.mi-state { font-size: 12px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.mi-state.ok { color: var(--ok); } .mi-state.bad { color: var(--stop); }
.mi-chev { font-size: 22px; color: var(--ink3); flex: none; }
.logout { align-self: flex-start; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--subtle); color: var(--ink); white-space: nowrap; }
.chip.ok { background: #E6F4E7; color: var(--ok); } .chip.bad { background: #FBEAE5; color: var(--stop); } .chip.warn { background: #FBF1DE; color: var(--warn); }
/* プラン */
.cur-plan { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: grid; gap: 6px; background: #FFF; }
.cur-plan.bad { border-color: var(--stop); }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-price { font-size: 24px; } .cp-price small { font-size: 12px; font-weight: 500; color: var(--ink2); }
.cp-meta { margin: 0; }
.cp-warn { margin: 0; color: var(--stop); font-size: 13px; font-weight: 600; }
.cur-plan .btn-sm { justify-self: start; margin-top: 4px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 16px 16px; display: grid; gap: 8px; align-content: start; background: #FFF; }
.plan-card.rec { border: 2px solid var(--brand); }
.plan-card.current { box-shadow: 0 0 0 3px #E6F4E7; }
.plan-rec { position: absolute; top: -11px; left: 16px; background: var(--brand); color: #FFF; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-name { margin: 0; font-size: 16px; }
.plan-price strong { font-size: 30px; letter-spacing: -0.02em; } .plan-price span { font-size: 12px; color: var(--ink2); }
.plan-plus { margin: 0; }
.plan-feats { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; }
.plan-feats li { padding-left: 22px; position: relative; }
.plan-feats li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.plan-cur { justify-self: start; }
.calc { border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; display: grid; gap: 8px; background: var(--muted); }
.calc-row, .calc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; }
.calc-total strong, .calc-sum { font-size: 22px; }
.calc .switch { justify-content: space-between; width: 100%; padding: 4px 0; }
.add-listing { border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; display: grid; gap: 10px; background: #FFF; }
.add-listing .sec-title { margin: 0; }
.add-listing > p { margin: 0; }
.req-list { display: grid; gap: 6px; } .req-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.add-flow { display: grid; gap: 10px; }
.add-flow[hidden] { display: none; }
.add-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 14px; }
.add-steps li { display: grid; gap: 6px; }
.add-steps .check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.add-cost { margin: 0; font-size: 13px; padding: 10px 12px; border-radius: var(--r-input); background: var(--muted); line-height: 1.5; }
/* 売上アップオプション */
.opt-hero { border-radius: var(--r-card); padding: 22px 18px; background: linear-gradient(135deg, #FFF0F3, #FFE3EA); display: grid; gap: 8px; }
.opt-kicker { margin: 0; font-size: 13px; font-weight: 700; color: #C0045A; }
.opt-title { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; }
.opt-lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.opt-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.opt-cta .confirm { display: grid; gap: 8px; width: 100%; }
.confirm-detail { margin: 0; font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: var(--r-input); background: #FFF; }
.opt-sec { display: grid; gap: 8px; }
.opt-sec .sec-title { margin: 0; }
.opt-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.opt-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: #FFF; }
.opt-list .no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #FFF; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.opt-example { border: 1px dashed var(--line); border-radius: var(--r-card); padding: 12px 14px; display: grid; gap: 6px; }
.opt-example p { margin: 0; font-size: 14px; line-height: 1.6; }
.opt-price { display: grid; gap: 4px; } .opt-price p { margin: 0; }
.menu-av { width: 44px; height: 44px; border-radius: 50%; background: #222; color: #FFF; display: grid; place-items: center; font-weight: 700; flex: none; }
.menu-who { display: flex; align-items: center; gap: 12px; }
.menu-who > div { display: grid; line-height: 1.35; }

/* ── メニュー・契約（2026-10-21 v2: 絵文字なし・線画アイコン・設定画面の行の形） ── */
.ic { display: inline-grid; place-items: center; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }
.menu-page { gap: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ink2); text-decoration: none; margin-bottom: -6px; }
.back-ic { width: 16px; height: 16px; transform: scaleX(-1); }
.menu-who { padding: 4px 2px; }
.menu-av { width: 48px; height: 48px; font-size: 18px; }
.group { display: grid; gap: 8px; }
.group-title { margin: 0 4px; font-size: 12px; font-weight: 700; color: var(--ink2); letter-spacing: .04em; }
.rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #FFF; overflow: hidden; }
.row, .rows > .row-slot > .row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border: none; background: #FFF; color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; position: relative; }
.rows > .row + .row::before, .rows > .row-slot + .row-slot::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; border-top: 1px solid var(--hair); }
.rows > .row-slot { position: relative; }
.rows > .row-slot + .row-slot::before { z-index: 1; }
.row:hover, .row:active { background: var(--muted); }
div.row { cursor: default; } div.row:hover { background: #FFF; }
.row-ic { width: 22px; height: 22px; color: var(--ink); }
.row-text { display: grid; gap: 2px; flex: 1; min-width: 0; line-height: 1.35; }
.row-text strong { font-size: 15px; font-weight: 600; }
.row-note { font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.row-state { font-size: 12px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.row-state.ok { color: var(--ok); } .row-state.bad { color: var(--stop); } .row-state.warn { color: var(--warn); }
.row-chev { width: 16px; height: 16px; color: var(--ink3); }
.row.danger .row-ic, .row.danger .row-text strong { color: var(--stop); }
.slot-open { padding: 0 16px 16px 52px; background: #FFF; }
@media (max-width: 420px) { .slot-open { padding-left: 16px; } }
/* 契約の内訳 */
.bill { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; background: #FFF; }
.bill-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bill-lines { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.bill-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.bill-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; }
.bill-total strong, .bill-total-n { font-size: 26px; letter-spacing: -0.02em; }
.bill .switch { justify-content: space-between; width: 100%; padding: 2px 0; }
/* 確認（お金が動く操作） */
.confirm-panel { display: grid; gap: 10px; }
.confirm-detail { margin: 0; font-size: 13.5px; line-height: 1.55; padding: 12px 14px; border-radius: 12px; background: var(--muted); }
.two-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-err { margin: 0; font-size: 13px; color: var(--stop); }
.form-err:empty { display: none; }
.add-flow { display: grid; gap: 12px; }
.add-steps { margin: 0; padding-left: 18px; display: grid; gap: 14px; font-size: 14px; }
.add-steps .check input { width: 18px; height: 18px; }
/* 料金とできること（たたむ） */
.plan-fold { border: 1px solid var(--line); border-radius: 16px; background: #FFF; }
.plan-fold > summary { padding: 14px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.plan-fold .plan-grid { padding: 0 12px 12px; }
.plan-card { border-radius: 14px; padding: 14px; gap: 6px; }
.plan-card.current { border-color: var(--ok); box-shadow: none; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-price strong { font-size: 24px; }
.plan-plus { font-size: 20px; font-weight: 700; margin-right: 2px; color: var(--ink2); }
/* オプション */
.opt-hero { background: #FFF5F7; border: 1px solid #FFD9E1; }
.opt-cta-confirm { width: 100%; }
.opt-cta-confirm .confirm-detail { background: #FFF; }
/* 売上アップオプション v3（初めての方にも伝わる説明・2026-10-21） */
.opt-title { font-size: 24px; }
.opt-lead { font-size: 15px; line-height: 1.65; color: var(--ink); }
.opt-price-big strong { font-size: 30px; letter-spacing: -0.02em; } .opt-price-big span { font-size: 13px; color: var(--ink2); }
.opt-payback { border-radius: 16px; padding: 14px 16px; background: #F3F8F3; border: 1px solid #D5EAD6; display: grid; gap: 6px; }
.opt-payback p { margin: 0; font-size: 15px; line-height: 1.6; }
.opt-payback .sec-title { margin: 0; }
.opt-scenes { display: grid; gap: 8px; }
.opt-scene { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; background: #FFF; display: grid; gap: 4px; }
.opt-scene strong { font-size: 15px; }
.opt-scene p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.opt-step { display: grid; gap: 2px; }
.opt-step strong { font-size: 15px; font-weight: 600; }
.opt-cta-bottom:empty { display: none; }
.promo-more { font-size: 13px; font-weight: 700; color: #C0045A; }
/* 売上アップオプション v4（LP と同じ構成・2026-10-22） */
.opt-lp { max-width: 820px; }
.opt-lp .sec-title { margin: 0; font-size: 19px; line-height: 1.45; }
.opt-lp .opt-title { font-size: 26px; line-height: 1.35; }
.opt-compare { display: grid; gap: 12px; }
.opt-cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.opt-cmp { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.opt-cmp.rec { border: 2px solid var(--brand); background: #FFFAFB; }
.opt-cmp p { margin: 0; } .opt-cmp strong { font-size: 17px; }
.opt-cmp ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.opt-label { margin: 0; font-size: 13px; font-weight: 700; }
.opt-label.sales { color: #C0045A; } .opt-label.cs { color: var(--info); }
.opt-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.opt-feat { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--hair); border-radius: 14px; padding: 14px; background: #FFF; }
.opt-feats.cs .opt-feat { background: #F7F9FC; border-color: #DDE5F1; }
.opt-feat-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #FFF; background: #C0045A; }
.opt-feats.cs .opt-feat-no { background: var(--info); }
.opt-feat strong { font-size: 15px; line-height: 1.45; }
.opt-feat p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink2); }
.opt-faq { display: grid; gap: 8px; }
.opt-faq .fold-body p { margin: 0; font-size: 14px; line-height: 1.6; }

/* 2026-10-23 申し込み・物件の追加で「売上アップオプションも付ける」を選ぶ（スイッチをやめてチェックに） */
.check.apply-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin: 12px 0 6px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check.apply-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check.apply-opt strong { display: block; font-size: 15px; }
.check.apply-opt .row-note a { margin-left: 4px; }
/* 値引きのルール */
.disc-form { display: grid; gap: 14px; }
.disc-q { display: grid; gap: 6px; }
.disc-q > span { font-weight: 700; font-size: 15px; }
.disc-q select { font-size: 16px; }
.disc-sum { padding: 12px; border-radius: 12px; background: var(--soft, #f7f7f7); font-size: 14px; line-height: 1.6; }
.learn-perks { margin: 12px 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.6; }

/* デモのアカウントの帯（2026-11-01・すべての画面の上） */
.demo-band { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px var(--gutter); background: #FFF4D6; border-bottom: 1px solid #F0D58A; font-size: 13px; line-height: 1.5; }
.demo-band .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }

/* ── お申し込み（/signup・2026-11-06 黒須「怪しくない・安心感・わかりやすい・早く登録したい」）
   箱・影・色つきの背景は使わず、余白・細い線・番号・文字の大小で組む。アイコンは線画（24px・線1.7） */
.su { max-width: 1040px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.su svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.su-steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.su-steps::before { content: ""; position: absolute; top: 14px; left: 16.6%; right: 16.6%; height: 1px; background: var(--line); }
.su-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink3); text-align: center; }
.su-steps small { font-size: 11px; font-weight: 500; color: var(--ink3); }
.su-n { width: 29px; height: 29px; border-radius: 999px; display: grid; place-items: center; background: #FFF; border: 1px solid var(--line); font-family: Figtree, sans-serif; font-size: 13px; font-weight: 700; color: var(--ink3); }
.su-steps li.on { color: var(--ink); }
.su-steps li.on small { color: var(--ink2); }
.su-steps li.on .su-n { background: var(--ink); border-color: var(--ink); color: #FFF; }

.su-grid { display: grid; grid-template-columns: 1fr; grid-template-areas: "intro" "form" "trust"; gap: 32px; }
.su-intro { grid-area: intro; }
.su-card { grid-area: form; display: grid; gap: 18px; }
.su-trust { grid-area: trust; }
.su h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.su-lead { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink2); }
.su-plan { margin-top: 26px; }
.su-price { margin: 0; display: flex; align-items: baseline; gap: 4px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.su-yen { font-family: Figtree, sans-serif; font-size: 52px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.su-unit { font-size: 18px; font-weight: 700; }
.su-per { margin-left: auto; font-size: 13px; color: var(--ink2); }
.su-points { list-style: none; margin: 0; padding: 0; }
.su-points li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.5; }
.su-points svg { color: var(--brand); }
.su-points b { font-weight: 700; }

.su-card-h { margin: 0; font-size: 20px; font-weight: 800; }
.su-f { display: grid; gap: 7px; }
.su-f > span { font-size: 14px; font-weight: 700; }
.su-f > span small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--ink2); }
.su-f > small { font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.su-f textarea.box { min-height: 0; }
.su-opt, .su-agree { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.su-opt { padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.su-opt input, .su-agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.su-opt > span { display: grid; gap: 3px; font-size: 15px; }
.su-opt em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink2); }
.su-opt small { font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.su-opt a, .su-agree a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.su-agree { font-size: 14px; line-height: 1.6; }
.su-go svg { width: 18px; height: 18px; stroke-width: 2.2; }
.su-safe { margin: -6px 0 0; display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--ink2); }
.su-safe svg { width: 15px; height: 15px; }
.su-note { margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--ink); font-size: 14px; line-height: 1.6; }
.su-offer { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--ink); background: var(--bg2, rgba(0,0,0,.04)); font-size: 14px; line-height: 1.6; color: var(--ink); }
.su-offer b { font-weight: 800; }
.su-offer small { display: block; color: var(--ink2); font-size: 12px; }
.su-total { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 13px; color: var(--ink2); }
.su-total b { margin-left: auto; font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.su-total small { flex-basis: 100%; text-align: right; font-size: 12px; }
.su-err { margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--stop); font-size: 13.5px; line-height: 1.65; color: var(--stop); white-space: pre-line; }
.su-err:empty { display: none; }

.su-trust { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.su-trust li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.su-trust svg { color: var(--ink); margin-top: 1px; }
.su-trust b { color: var(--ink); font-weight: 700; }
.su-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; }
.su-foot a { color: var(--ink2); text-decoration: none; }
.su-foot a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 900px) {
  .su { padding-top: 44px; }
  .su-steps { max-width: 560px; margin: 0 auto 56px; }
  .su-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "intro form" "trust form"; column-gap: 0; row-gap: 36px; align-items: start; }
  .su-intro { padding-right: 64px; }
  .su-trust { margin-right: 64px; }
  .su-card { padding-left: 64px; border-left: 1px solid var(--hair); }
  .su-trust { align-self: start; }
  .su h1 { font-size: 40px; }
  .su-yen { font-size: 64px; }
}

/* ── はじめかた（/start・2026-11-06 黒須「Slack に参加した後に迷子にならないように。パッと見でステップが少なく」）
   1画面に写真1枚と1行。押す場所は光る輪（画像に焼き込まず重ねる＝撮り直しても位置だけ直せばよい）。箱・影は使わない */
.st { max-width: 1040px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.st svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--brand); }
.st h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.st-n { width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; background: #FFF; border: 1px solid var(--line); font-family: Figtree, sans-serif; font-size: 13px; font-weight: 700; color: var(--ink3); }
.st-plan { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.st-plan a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 0; text-decoration: none; color: var(--ink3); }
.st-plan b { font-size: 15px; }
.st-plan small { font-size: 12px; }
.st-plan .on a { color: var(--ink); }
.st-plan .on .st-n { background: var(--ink); border-color: var(--ink); color: #FFF; }
.st-sec { margin-top: 44px; scroll-margin-top: 80px; }
.st h2 { margin: 0 0 18px; display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 800; line-height: 1.4; }
.st h2 .st-n { background: var(--ink); border-color: var(--ink); color: #FFF; }

.st-mail { padding: 14px 0 16px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 22px; }
.st-mail-l { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.st-mail-row { margin-top: 6px; display: flex; align-items: center; gap: 12px; }
.st-mail-v { flex: 1; min-width: 0; font-family: Figtree, "Noto Sans JP", sans-serif; font-size: 19px; font-weight: 700; word-break: break-all; user-select: all; -webkit-user-select: all; }
.st-mail-v.st-mail-wait { font-size: 15px; font-weight: 500; color: var(--ink2); user-select: auto; }
.st-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink); background: #FFF; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.st-copy svg { width: 16px; height: 16px; }
.st-copy.done { background: var(--ink); color: #FFF; }

.st-walk { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.st-walk::-webkit-scrollbar { display: none; }
.st-walk:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.st-slide { flex: 0 0 78%; max-width: 340px; margin: 0; scroll-snap-align: start; scroll-margin-left: var(--gutter); display: grid; gap: 12px; align-content: start; }
.st-shot { position: relative; aspect-ratio: 430 / 600; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #FFF; container-type: inline-size; }
.st-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.st-shot.c-bottom img { object-position: bottom; }
.st-shot.c-add img { object-position: 0 20%; }
.st-shot.c-center { background: var(--muted); }
.st-shot.c-center img { object-fit: contain; object-position: center; }
.st-dim { position: absolute; left: 0; right: 0; top: 0; height: 88%; background: rgba(255,255,255,.82); }
.st-ring { position: absolute; border: 3px solid var(--brand); border-radius: 16px; box-shadow: 0 0 0 5px rgba(255,56,92,.16); animation: st-pulse 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 10px rgba(255,56,92,.06); } }
@media (prefers-reduced-motion: reduce) { .st-ring { animation: none; } }
.st-ring-sub { border-style: dashed; animation: none; box-shadow: none; }
.st-shot.c-full { background: var(--muted); }
.st-shot.c-full img { object-fit: contain; object-position: center; }
/* 位置は撮った画面（430×900）で測った値から（final.mjs の出力）。1枚目は全体を縮めて中央（幅66.7%）に置く */
.r-nav1 { left: 42.6%; top: 93.6%; width: 14.3%; height: 5.6%; border-radius: 10px; }
.r-list1 { left: 19.6%; top: 29.6%; width: 60.8%; height: 8.2%; border-radius: 10px; }
.r-card2 { left: 4.4%; top: 12.4%; width: 91.2%; height: 40.4%; }
.r-add { left: 4.4%; top: 53.6%; width: 45.2%; height: 37.4%; }
.r-invite { left: 4.4%; top: 12.6%; width: 91.2%; height: 29.2%; }
.r-mail { left: 4.4%; top: 65%; width: 91.2%; height: 12.6%; border-radius: 12px; }
.r-perm { left: 4.4%; top: 42.2%; width: 91.2%; height: 24%; }
.r-next { left: 67.2%; top: 89%; width: 28.4%; height: 10%; }
.st-fill { position: absolute; left: 6.4%; top: 66.8%; width: 87%; height: 9%; display: flex; align-items: center; padding-left: 3%; background: #FFF; border-radius: 8px; font-size: 4cqw; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-fill:empty { display: none; }
.st-slide figcaption { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; }
.st-slide figcaption small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink2); }
.st-k { position: absolute; left: 0; top: 0; font-family: Figtree, sans-serif; font-size: 22px; font-weight: 300; color: var(--brand); line-height: 1.1; }
.st-nav { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.st-arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ink); background: #FFF; display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; }
.st-arrow[disabled] { border-color: var(--line); color: var(--ink3); cursor: default; }
.st-count { min-width: 56px; text-align: center; font-family: Figtree, sans-serif; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-after, .st-help { margin: 24px 0 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.65; }
.st-after svg { color: var(--ok, #008A05); margin-top: 1px; }
.st-help { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--ink2); }
.st-help svg { color: var(--ink); margin-top: 1px; }
.st-two { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
.st-shot-sm { aspect-ratio: 780 / 1100; border-radius: 16px; }
.st-list { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.st-list li { counter-increment: st; position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--hair); font-size: 14.5px; line-height: 1.6; }
.st-list li:first-child { padding-top: 0; }
.st-list li::before { content: counter(st); position: absolute; left: 0; font-family: Figtree, sans-serif; font-weight: 700; color: var(--ink3); }

@media (min-width: 900px) {
  .st { padding-top: 48px; }
  .st h1 { font-size: 40px; }
  .st-plan { max-width: 560px; }
  .st-mail { max-width: 560px; }
  .st-walk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; overflow: visible; margin: 0; padding: 0; }
  .st-slide { max-width: none; }
  .st-nav { display: none; }
  .st-two { grid-template-columns: 180px 1fr; gap: 32px; max-width: 760px; }
}

/* ★ 2026-11-19 紹介パートナー（運営だけ） */
.pt-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 24px; }
.pt { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: #FFF; }
.pt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-head .pt-edit { margin-left: auto; }
.pt-urlrow { display: flex; gap: 8px; align-items: center; }
.pt-urlrow .pt-url { flex: 1; min-width: 0; font-size: 14px; }
.pt-copy { flex: none; white-space: nowrap; }
.pt-est { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-cust { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pt-cust li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.pt-repbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-repbar .box { width: auto; flex: 1; min-width: 160px; }
.pt-report { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.pt-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.pt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 640px) { .pt-grid { grid-template-columns: 1fr; } }
.pt-field select.box { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-input); font-size: 16px; background: #FFF; width: 100%; }
.pt-field select.box:focus { outline: none; border: 2px solid var(--ink); padding: 0 13px; }
.pt-contract { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-contract .btn { align-self: flex-start; }
/* ★ 2026-11-20 パスキーでログイン */
.pk-login { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pk-or { margin: 0; font-size: 12px; color: var(--ink2); text-align: center; }
.pk-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: #FFF; }
.pk-banner p { margin: 0; flex: 1 1 220px; min-width: 0; }
.pk-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.pk-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: #FFF; }
.pk-item > div { min-width: 0; }
.pk-item .btn { flex: none; white-space: nowrap; }
/* ★ 2026-11-21 Slack で承認してログイン */
.ap-page { max-width: 440px; margin: 0 auto; padding: 48px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 12px; }
.ap-label { margin: 8px 0 0; font-size: 13px; color: var(--ink2); }
.ap-code { margin: 0; font-size: 56px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
#ap-box { display: flex; flex-direction: column; gap: 10px; }
#ap-box[hidden] { display: none; }
.sr-login { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sr-wait { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: #FFF; }
.sr-wait strong { font-size: 32px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* ★ 2026-11-22 Booking.com をつなぐ（Beds24） */
.b24-steps { margin: 4px 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 14px; line-height: 1.6; }
.b24-connect { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.b24-code { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-input); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; word-break: break-all; }
.b24-rooms { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.b24-room { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.b24-room > div { min-width: 0; flex: 1 1 180px; }
.b24-room p { margin: 2px 0 0; }
.b24-select { flex: 1 1 220px; min-width: 0; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-input); font: inherit; font-size: 14px; background: #fff; }
.b24-check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; line-height: 1.5; }
.b24-check input { margin-top: 3px; flex: none; }
.row-note.warn { color: var(--warn); }
