/* D案 Simple ── 白と黒と線だけ。装飾・アイコン・Webフォントなし。端末のダークモードに自動対応 */
:root {
  --bg: #fff; --ink: #111; --sub: #6b6b6b; --faint: #a3a3a3;
  --line: #e6e6e6; --line-2: #cfcfcf; --soft: #f6f6f6; --err: #c62828; --inv: #fff;
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, sans-serif;
  --w: 560px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --ink: #f1f1f1; --sub: #9e9e9e; --faint: #6f6f6f; --line: #262626; --line-2: #3a3a3a; --soft: #1a1a1a; --err: #ff6b6b; --inv: #111; color-scheme: dark; }
}
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.8; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip-ic, .card-icon { display: none !important; }

/* ---------- ヘッダー ---------- */
.head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-in { max-width: var(--w); margin: 0 auto; height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 14px; font-weight: 700; }
.head a { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--ink); transition: width .3s; }

/* ---------- ご案内 ---------- */
main { max-width: var(--w); margin: 0 auto; }
.intro { padding: 44px 20px 8px; }
.intro h1 { font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.intro p { margin-top: 14px; color: var(--ink); }
.intro .meta { font-size: 13px; color: var(--sub); margin-top: 10px; }
.info { padding: 32px 20px 0; }
.info h2 { font-size: 13px; font-weight: 600; color: var(--sub); letter-spacing: .04em; margin-bottom: 10px; }
.rows > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { color: var(--sub); }
.num-list { counter-reset: n; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 24px 1fr; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.num-list li:last-child { border-bottom: 1px solid var(--line); }
.num-list li::before { content: counter(n) "."; color: var(--sub); }
.dash-list li { position: relative; padding-left: 16px; font-size: 14px; }
.dash-list li + li { margin-top: 4px; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--sub); }

/* ---------- フォーム ---------- */
.apply { padding-top: 48px; }
.apply-title { padding: 0 20px 4px; font-size: 22px; font-weight: 700; }
.apply-sub { padding: 0 20px; font-size: 13px; color: var(--sub); }
.f-sec { padding: 36px 20px 0; }
.f-sec-head { padding-bottom: 4px; }
.f-num { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.f-en { display: none; }
.f-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin-top: 2px; }
.f-lead { font-size: 13px; color: var(--sub); margin-top: 4px; line-height: 1.75; }

.f-field { margin-top: 22px; }
.f-label { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.req, .opt { font-size: 11px; font-weight: 400; }
.req { color: var(--err); }
.opt { color: var(--faint); }
.f-row { gap: 0 12px; }
.f-row > .f-field { min-width: 0; }
.f-input { background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 14px; min-height: 48px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.f-input::placeholder { color: var(--faint); }
.f-input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.f-unit .f-input { padding-right: 44px; }
.f-suffix { font-size: 13px; color: var(--sub); }
.f-hint { font-size: 12px; color: var(--sub); margin-top: 6px; line-height: 1.7; }
.f-count { margin-left: 6px; }
.f-count.is-on { color: var(--ink); font-weight: 600; }
.f-error { color: var(--err); font-size: 12.5px; margin-top: 6px; }
.is-invalid .f-input, .is-invalid .chip > span, .is-invalid .seg, .is-invalid .cards { border-color: var(--err); }

.chips { gap: 6px; }
.chip > span { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13.5px; line-height: 1.4; transition: background .12s, color .12s, border-color .12s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--inv); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chips-cup { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.chips-cup .chip > span { justify-content: center; padding: 6px 0; min-height: 44px; font-size: 15px; }
.chips-cup .chip:last-child { grid-column: span 2; }
.chips-cup .chip:last-child > span { font-size: 13px; }
.groups { display: grid; }
.group-title { font-size: 12px; color: var(--sub); margin: 14px 0 7px; }
.f-field-wants .f-label { margin-bottom: 0; }

.seg { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg span { min-height: 44px; font-size: 13.5px; padding: 4px 2px; line-height: 1.3; transition: background .12s, color .12s; }
.seg input:checked + span { background: var(--ink); color: var(--inv); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -3px; }

.cards { display: grid; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.card-opt + .card-opt .card-body { border-top: 1px solid var(--line); }
.card-body { gap: 12px; padding: 12px 14px; transition: background .12s; }
.card-check { order: -1; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: .12s; }
.card-check .ic { display: none; }
.card-text b { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.card-text small { font-size: 12px; color: var(--sub); line-height: 1.5; }
.card-opt input:checked + .card-body { background: var(--soft); }
.card-opt input:checked + .card-body .card-check { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--bg); }
.card-opt input:focus-visible + .card-body { outline: 2px solid var(--ink); outline-offset: -3px; }

.f-field-plain { margin-top: 14px; }
.agree { gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.6; }
.agree-box { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--line-2); margin-top: 1px; }
.agree-box .ic { width: 14px; height: 14px; color: var(--inv); stroke-width: 2.6; }
.agree input:checked + .agree-box { background: var(--ink); border-color: var(--ink); }
.agree input:focus-visible + .agree-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.f-agrees { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); }

.f-submit { padding: 28px 20px 0; }
.btn-submit { width: 100%; height: 52px; border-radius: 8px; background: var(--ink); color: var(--inv); font-size: 15px; font-weight: 700; transition: opacity .15s; }
.btn-submit:active { opacity: .8; }
.btn-submit.is-sending { opacity: .5; pointer-events: none; }
.btn-submit.is-sending span::after { content: "…"; }
.f-privacy { font-size: 12px; color: var(--sub); margin-top: 10px; text-align: center; }

.done { padding: 40px 20px 0; outline: none; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.done-mark .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.done-en { display: none; }
.done-title { font-size: 22px; font-weight: 700; margin: 16px 0 10px; }
.done-text { font-size: 14.5px; }
.done-note { font-size: 13px; color: var(--sub); margin-top: 10px; }
.done-demo { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.done-demo b { display: block; color: var(--ink); font-weight: 600; }
.done-admin { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; text-underline-offset: 4px; }

.foot { max-width: var(--w); margin: 56px auto 0; padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); }

/* ---------- 年齢確認 ---------- */
.gate { background: var(--bg); place-items: center; }
.gate-panel { max-width: 340px; text-align: left; }
.gate-eyebrow { font-size: 12px; color: var(--sub); }
.gate-title { font-size: 22px; font-weight: 700; line-height: 1.5; margin: 6px 0 10px; }
.gate-text { font-size: 14px; color: var(--sub); margin-bottom: 24px; }
.gate-yes, .lock-btn { width: 100%; height: 50px; border-radius: 8px; background: var(--ink); color: var(--inv); font-size: 15px; font-weight: 700; }
.gate-no { height: 50px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 15px; }
.gate-bye { font-size: 14px; color: var(--err); }

.toast { background: var(--ink); color: var(--inv); border-radius: 8px; padding: 10px 16px; font-size: 13px; }

/* =========================================================
   依頼者用ページ
   ========================================================= */
.page-admin .lock { min-height: 100svh; display: grid; place-items: center; padding: 24px 20px; }
.lock-panel { width: 100%; max-width: 340px; }
.lock-brand { font-size: 13px; color: var(--sub); }
.lock-en { display: none; }
.lock-title { font-size: 22px; font-weight: 700; margin: 4px 0 6px; }
.lock-text { font-size: 14px; color: var(--sub); margin-bottom: 20px; }
.lock-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 14px; color: var(--sub); }
.lock-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lock-field .ic { width: 18px; height: 18px; }
.lock-field input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.lock-field input::placeholder { color: var(--faint); }
.lock-btn { margin-top: 12px; }
.lock-demo { font-size: 12px; color: var(--faint); margin-top: 12px; }

.adm { max-width: var(--w); margin: 0 auto; padding-bottom: 30px; }
.adm-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.adm-brand { display: none; }
.adm-head-text { flex: 1; }
.adm-en { display: none; }
.adm-title { font-size: 17px; font-weight: 700; }
.adm-lock { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--sub); }
.adm-lock .ic { width: 17px; height: 17px; }

.stats { margin: 0 20px; border-bottom: 1px solid var(--line); }
.stat { padding: 16px 0 14px; }
.stat b { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--sub); }

.toolbar { position: sticky; top: 56px; z-index: 15; background: var(--bg); padding: 0 0 10px; }
.tabs { gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 0 10px; font-size: 13.5px; color: var(--sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab i { font-style: normal; margin-left: 4px; font-size: 12px; }
.tab.is-on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.search { gap: 8px; margin: 10px 20px 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; color: var(--faint); }
.search:focus-within { border-color: var(--ink); }
.search .ic { width: 17px; height: 17px; }
.search input { height: 42px; color: var(--ink); }
.search input::placeholder { color: var(--faint); font-size: 13.5px; }

.list { padding: 0 20px; }
.item { gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .avatar { display: none; }
.item-top { gap: 8px; }
.item-name { font-size: 15.5px; font-weight: 700; }
.item-age { font-size: 13px; color: var(--sub); }
.dot-new { width: 7px; height: 7px; border-radius: 50%; background: var(--err); font-size: 0; }
.item-sub { font-size: 12.5px; color: var(--sub); }
.item-tags { gap: 6px; margin-top: 6px; }
.tag { font-size: 11.5px; color: var(--sub); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }
.tag .ic { display: none; }
.tag-ok { color: var(--ink); border-color: var(--ink); }
.item-side { gap: 6px; align-self: stretch; justify-content: space-between; }
.item-time { font-size: 12px; color: var(--faint); }
.pill { font-size: 11.5px; color: var(--sub); }
.pill.st-new { color: var(--ink); font-weight: 700; }
.st-declined .item-main { opacity: .45; }
.empty { text-align: center; color: var(--faint); padding: 40px 0; font-size: 14px; }
.adm-foot { font-size: 12px; color: var(--faint); padding: 24px 20px 0; }
.adm-reset { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; font-size: 12px; }

/* 詳細 */
.sheet-backdrop { background: rgba(0, 0, 0, .3); }
.sheet-panel { inset: 0; background: var(--bg); transform: translateX(100%); }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-panel > * { max-width: var(--w); margin-left: auto; margin-right: auto; }
.d-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.d-head .avatar { display: none; }
.d-close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.d-close .ic { width: 17px; height: 17px; }
.d-name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.d-name small { font-size: 13px; font-weight: 400; color: var(--sub); margin-left: 8px; }
.d-meta { font-size: 12px; color: var(--sub); }
.d-body { padding: 16px 20px 40px; }
.d-status { margin-bottom: 4px; }
.d-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.d-h { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 10px; }
.d-n { font-weight: 400; }
.d-contact { gap: 8px; }
.d-id { font-size: 16px; font-weight: 700; }
.d-btn { height: 38px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; }
.d-btn .ic { width: 15px; height: 15px; }
.d-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.d-grid > div { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-grid dt { font-size: 11px; color: var(--sub); }
.d-grid dd { font-size: 18px; font-weight: 700; }
.d-grid dd small { font-size: 12px; font-weight: 400; color: var(--sub); margin-left: 1px; }
.d-grid .dd-s { font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .t { font-size: 13px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 6px; }
.tags-ng .t { color: var(--err); border-color: currentColor; }
.d-group + .d-group { margin-top: 10px; }
.d-group-title { font-size: 12px; color: var(--sub); margin-bottom: 5px; }
.d-film { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.d-film .ic { width: 18px; height: 18px; color: var(--sub); }
.d-film b { font-weight: 700; }
.d-film.f-ng b { color: var(--err); }
.d-note { margin-top: 8px; font-size: 13px; color: var(--sub); }
.d-msg { font-size: 14.5px; }
.d-none { font-size: 13px; color: var(--faint); }
.d-toggle { font-size: 14px; }
.d-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: .2s; }
.d-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); transition: .2s; }
.d-toggle input:checked + .d-switch { background: var(--ink); }
.d-toggle input:checked + .d-switch::after { left: 21px; }
.d-toggle input:focus-visible + .d-switch { outline: 2px solid var(--ink); outline-offset: 2px; }
.d-consent { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); margin: 10px 0; }
.d-consent .ic { width: 15px; height: 15px; }
.d-memo { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 16px; line-height: 1.7; color: var(--ink); outline: none; resize: vertical; }
.d-memo:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.d-mail { margin-top: 18px; }
.d-mail summary { font-size: 13px; color: var(--sub); text-decoration: underline; text-underline-offset: 4px; }
.d-mail summary .ic { width: 16px; height: 16px; }
.d-mail pre { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 12.5px; line-height: 1.8; color: var(--sub); }
