/* WEBパック 不動産版：申込み・マイページ・管理の共通スタイル */
:root {
  --ink: #142033; --ink2: #4a5568; --mute: #8a94a6; --bg: #f4f6f9; --card: #fff; --line: #e2e7ef;
  --brand: #1d4e89; --brand-d: #143a66; --brand-soft: #eaf1fa; --accent: #e8a33d; --accent-soft: #fdf4e6;
  --ok: #138a5c; --ok-soft: #e6f6ef; --warn: #c26a00; --warn-soft: #fff3e0; --ng: #c8372d; --ng-soft: #fdecea;
  --r: 14px; --shadow: 0 6px 24px rgba(20, 32, 51, .07);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15.5px/1.75 "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
.num { font-family: Outfit, "Zen Kaku Gothic New", sans-serif; font-weight: 700; letter-spacing: -.01em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* ヘッダー */
.hd { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hd .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 17px; }
.logo .mk { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; }
.logo small { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 5px; padding: 1px 6px; margin-left: 2px; }
.hd .sp { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink2); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 12px 20px; font: 700 15px/1.3 inherit; font-family: inherit; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 137, .25); }
.btn.pri:hover { background: var(--brand-d); }
.btn.acc { background: var(--accent); color: #2a1a00; box-shadow: 0 6px 16px rgba(232, 163, 61, .3); }
.btn.ok { background: var(--ok); color: #fff; box-shadow: 0 6px 16px rgba(19, 138, 92, .25); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.link { background: none; color: var(--brand); padding: 6px 8px; }
.btn.sm { padding: 8px 13px; font-size: 13.5px; border-radius: 9px; }
.btn.lg { padding: 16px 28px; font-size: 17px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* カード・フォーム */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.card h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; display: grid; place-items: center; flex: none; }
.card .sub { color: var(--ink2); font-size: 14px; margin-bottom: 16px; }
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
label.f > span em { font-style: normal; font-size: 11px; color: #fff; background: var(--ng); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
label.f > span i { font-style: normal; font-weight: 500; color: var(--mute); font-size: 12px; margin-left: 6px; }
.in, textarea.in, select.in { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.in:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 137, .12); }
textarea.in { min-height: 110px; resize: vertical; line-height: 1.7; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.hint { font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.err { background: var(--ng-soft); color: var(--ng); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 14px; margin: 12px 0; }
.note { background: var(--brand-soft); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--ink2); }
.note.warn { background: var(--warn-soft); color: #6b3d00; }

/* 状態のバッジ */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 11px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.info { background: var(--brand-soft); color: var(--brand); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.mute { background: #eef0f4; color: var(--mute); }

/* プランの選択 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 20px 18px 18px; cursor: pointer; background: #fff; transition: border-color .12s, box-shadow .12s; }
.plan:hover { border-color: #b9c8dd; }
.plan input { position: absolute; opacity: 0; }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 78, 137, .1); }
.plan .nm { font-weight: 900; font-size: 16px; }
.plan .pr { font-size: 30px; color: var(--ink); margin: 6px 0 0; }
.plan .pr small { font-size: 13px; color: var(--mute); font-weight: 700; margin-left: 2px; }
.plan .per { font-size: 13px; color: var(--ink2); }
.plan .bd { position: absolute; top: -11px; right: 14px; background: var(--accent); color: #2a1a00; font-size: 12px; font-weight: 900; border-radius: 99px; padding: 1px 10px; }
.plan .ck { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.plan.on .ck { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.special { margin-top: 14px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 2px dashed #c9d4e3; border-radius: 14px; padding: 16px 18px; background: linear-gradient(120deg, #fff, var(--accent-soft)); }
.special b { font-size: 16px; }
.special p { font-size: 13.5px; color: var(--ink2); }

/* マイページ */
.top { background: linear-gradient(135deg, var(--brand) 0%, #2c6aa8 100%); color: #fff; padding: 26px 0 70px; }
.top h1 { font-size: 22px; font-weight: 900; }
.top p { opacity: .85; font-size: 14px; }
.stats { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: -50px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.tk { display: flex; align-items: center; gap: 18px; }
.tk .big { font-size: 46px; line-height: 1; color: var(--brand); }
.tk .big small { font-size: 16px; color: var(--ink2); margin-left: 4px; }
.tk .lbl { font-size: 13px; color: var(--mute); font-weight: 700; }
.tk .exp { font-size: 12.5px; color: var(--ink2); }
.newreq { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 28px 0 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--mute); padding: 10px 16px; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.tabs button .ct { background: var(--warn); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; margin-left: 4px; }

.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.job { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; border: 2px solid transparent; }
.job:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20, 32, 51, .12); }
.job.attn { border-color: var(--warn); }
.job .th { aspect-ratio: 16/9; background: #dde4ee center/cover no-repeat; position: relative; }
.job .th .chip { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.job .bd { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.job .tt { font-weight: 900; font-size: 15.5px; line-height: 1.5; }
.job .mt { font-size: 12.5px; color: var(--mute); }
.job .cta { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--warn); }
.empty { text-align: center; padding: 50px 20px; color: var(--ink2); background: #fff; border-radius: var(--r); border: 2px dashed var(--line); }
.empty b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }

/* 依頼フォーム */
.seg { display: inline-flex; background: #eef1f6; border-radius: 11px; padding: 4px; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink2); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(20, 32, 51, .08); }
.drop { border: 2.5px dashed #bccadc; border-radius: 14px; padding: 30px 18px; text-align: center; background: #f9fbfd; cursor: pointer; transition: background .12s, border-color .12s; }
.drop:hover, .drop.over { background: var(--brand-soft); border-color: var(--brand); }
.drop .ic { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.drop b { display: block; font-size: 16px; }
.drop span { font-size: 13px; color: var(--mute); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 4/3; border-radius: 10px; background: #e7ecf3 center/cover no-repeat; overflow: hidden; border: 2px solid transparent; }
.thumb.cover { border-color: var(--accent); }
.thumb .x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20, 32, 51, .7); color: #fff; font-size: 15px; cursor: pointer; line-height: 1; }
.thumb .cv { position: absolute; left: 5px; bottom: 5px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .92); font: 700 11.5px/1 inherit; font-family: inherit; padding: 5px 7px; cursor: pointer; color: var(--ink2); }
.thumb.cover .cv { background: var(--accent); color: #2a1a00; }
.thumb .pg { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(255, 255, 255, .5); }
.thumb .pg i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.thumb.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .45); }
.thumb.bad { border-color: var(--ng); }
.doc { display: flex; align-items: center; gap: 10px; background: #f6f8fb; border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.doc .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--ng-soft); color: var(--ng); display: grid; place-items: center; font-weight: 900; font-size: 11px; flex: none; }
.doc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .moods { grid-template-columns: 1fr 1fr; } }
.mood { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; font-size: 13px; }
.mood b { display: block; font-size: 14px; }
.mood span { color: var(--mute); font-size: 12px; line-height: 1.5; display: block; }
.mood.on { border-color: var(--brand); background: var(--brand-soft); }
.mood .sw { height: 8px; border-radius: 4px; margin-bottom: 7px; }
.submitbar { position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 22px; z-index: 20; }
.submitbar .wrap, .submitbar .narrow { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.submitbar .tx { font-size: 13.5px; color: var(--ink2); }

/* 確認・修正 */
.steps { display: flex; gap: 0; margin: 4px 0 20px; counter-reset: s; }
.steps li { list-style: none; flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--mute); position: relative; padding-top: 30px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #e2e7ef; color: #fff; display: grid; place-items: center; font-size: 12px; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: #e2e7ef; }
.steps li:first-child::after { display: none; }
.steps li.done, .steps li.now { color: var(--ink); }
.steps li.done::before, .steps li.done::after, .steps li.now::after { background: var(--brand); }
.steps li.now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.steps { padding: 0; }
.pv { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .pv { grid-template-columns: 1fr; } }
.frame { background: #1b2433; border-radius: var(--r); padding: 10px; }
.frame .bar { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; color: #c9d2e0; font-size: 12.5px; }
.frame .bar .seg { margin: 0 0 0 auto; background: rgba(255, 255, 255, .08); }
.frame .bar .seg button { color: #c9d2e0; font-size: 12.5px; padding: 5px 10px; }
.frame .bar .seg button.on { background: #fff; color: var(--ink); }
.frame iframe { display: block; width: 100%; height: 72vh; border: 0; border-radius: 8px; background: #fff; margin: 0 auto; transition: width .25s; }
.frame.mobile iframe { width: 390px; max-width: 100%; }
.side .card { padding: 20px; }
.decide { display: grid; gap: 10px; }
.rev-item { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fbfcfe; }
.rev-item .hd2 { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 13.5px; margin-bottom: 8px; }
.paste { border: 2px dashed #c3cfdf; border-radius: 10px; padding: 16px 10px; text-align: center; font-size: 13px; color: var(--ink2); cursor: pointer; background: #fff; outline: none; }
.paste:focus, .paste.over { border-color: var(--brand); background: var(--brand-soft); }
.paste b { color: var(--brand); }
.shots { display: grid; gap: 8px; margin-bottom: 8px; }
.shot { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot canvas { display: block; width: 100%; cursor: crosshair; touch-action: none; }
.shot .tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.shot .tools button { border: 0; border-radius: 6px; background: rgba(20, 32, 51, .75); color: #fff; font: 700 11.5px/1 inherit; font-family: inherit; padding: 6px 8px; cursor: pointer; }
.shot .tip { position: absolute; left: 6px; bottom: 6px; background: rgba(200, 55, 45, .9); color: #fff; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 7px; pointer-events: none; }
.hist { font-size: 13.5px; }
.hist .h { border-left: 3px solid var(--line); padding: 2px 0 10px 12px; margin-left: 4px; }
.hist .h.done { border-color: var(--ok); }
.hist .h b { font-size: 12.5px; color: var(--mute); display: block; }
.hist .h ul { margin: 4px 0 0; padding-left: 1.2em; }
.hist .h img { width: 64px; height: 44px; object-fit: cover; border-radius: 5px; margin: 4px 4px 0 0; border: 1px solid var(--line); }
.urlbox { display: flex; gap: 8px; align-items: center; background: var(--ok-soft); border-radius: 12px; padding: 12px; }
.urlbox input { flex: 1; min-width: 0; border: 0; background: #fff; border-radius: 8px; padding: 10px 12px; font: 700 14px/1.3 Outfit, monospace; color: var(--ink); }
.qr { display: block; margin: 12px auto 0; width: 150px; height: 150px; image-rendering: pixelated; }

/* ログイン */
.auth { max-width: 420px; margin: 50px auto; }
.auth h1 { font-size: 22px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth .sub { text-align: center; }
.foot { text-align: center; font-size: 12.5px; color: var(--mute); padding: 40px 0 30px; }
.foot a { color: var(--mute); margin: 0 6px; }

/* お知らせ（右下） */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(30px); background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 14px; opacity: 0; transition: .25s; z-index: 200; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ダイアログ */
.dlg { position: fixed; inset: 0; background: rgba(15, 22, 36, .55); display: grid; place-items: center; z-index: 150; padding: 16px; }
.dlg .card { width: min(480px, 100%); }
.dlg .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { text-align: center; padding: 60px; color: var(--mute); }

/* スマホ：下の固定バーとプランを詰める */
@media (max-width: 640px) {
  .submitbar .wrap, .submitbar .narrow { flex-wrap: nowrap; gap: 10px; }
  .submitbar .tx { font-size: 12px; line-height: 1.4; }
  .submitbar .tx .num { font-size: 20px !important; }
  .submitbar .btn.lg { padding: 13px 16px; font-size: 15px; }
  .plan { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
  .plan .nm { grid-column: 1; }
  .plan .per { grid-column: 1; font-size: 12px; }
  .plan .pr { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; margin: 0 26px 0 0; }
  .plan .ck { top: 50%; transform: translateY(-50%); right: 12px; }
  .card { padding: 18px; }
}
