/* オフィス処分費AI診断 — ミニマル・洗練（白基調） */
:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --accent: #0071e3;
  --accent-dark: #0062c4;
  --bg-soft: #f5f5f7;
  --danger: #c2410c;
  --good: #0a7a3d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 960px; }

header.site {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); z-index: 10;
}
header.site .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--text); }

.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--accent); background: #eaf3fe; border-radius: 100px; padding: 5px 14px;
}
h1.hero {
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 18px 0 12px;
}
.sub { font-size: clamp(16px, 3.5vw, 19px); color: var(--muted); margin: 0 0 32px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600;
  border: none; border-radius: 100px; padding: 14px 36px; cursor: pointer; text-align: center;
  transition: background .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn.block { display: block; width: 100%; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }

section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(24px, 5vw, 32px); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 28px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }

.steps { display: grid; gap: 20px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.step .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.step p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.philosophy { text-align: center; }
.philosophy .lead { font-size: clamp(22px, 5vw, 30px); font-weight: 700; margin-bottom: 16px; }
.philosophy p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.trust { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 12.5px; }

/* ---- フォーム ---- */
label.field { display: block; margin-bottom: 18px; }
label.field .name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.field .req { color: var(--danger); font-size: 12px; margin-left: 6px; }
label.field .hint { color: var(--muted); font-weight: 400; font-size: 12px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid #d2d2d7; border-radius: 12px;
  background: #fff; color: var(--text); font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

.uploader {
  border: 2px dashed #c7c7cc; border-radius: 18px; padding: 36px 20px; text-align: center;
  color: var(--muted); cursor: pointer; background: var(--bg-soft); transition: border-color .2s;
}
.uploader:hover { border-color: var(--accent); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; }
.previews .ph { position: relative; }
.previews img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.previews .rm {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: #1d1d1f; color: #fff; border: none; font-size: 13px; line-height: 1; cursor: pointer;
}
.error-msg { color: var(--danger); font-size: 14px; margin: 10px 0; }
.consent { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---- ローディング ---- */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.96); z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px;
}
.loading-overlay.on { display: flex; }
.spinner {
  width: 44px; height: 44px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.9s linear infinite; margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-msg { font-size: 16px; font-weight: 600; }

/* ---- 結果画面 ---- */
.net-hero { text-align: center; padding: 44px 0 28px; }
.net-hero .label { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.net-hero .amount { font-size: clamp(34px, 8vw, 56px); font-weight: 700; letter-spacing: -0.02em; margin: 6px 0; }
.net-hero .amount.receive { color: var(--good); }

.breakdown-bar { display: flex; height: 14px; border-radius: 100px; overflow: hidden; margin: 18px 0 8px; }
.breakdown-bar div { height: 100%; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 12.5px; color: var(--muted); }
.bk-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: baseline; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.kcard { background: var(--bg-soft); border-radius: 14px; padding: 16px; }
.kcard .k { font-size: 12px; color: var(--muted); }
.kcard .v { font-size: 16px; font-weight: 700; margin-top: 2px; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.items { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.items th, table.items td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.items th { font-weight: 600; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 100px; padding: 2px 10px; white-space: nowrap; }
.tag.resale { background: #e5f5ec; color: var(--good); }
.tag.scrap { background: #eaf3fe; color: var(--accent); }
.tag.dispose { background: #fdece4; color: var(--danger); }
.rank-prices span { display: inline-block; margin-right: 10px; color: var(--muted); font-size: 12.5px; }
.rank-prices .assumed { color: var(--text); font-weight: 700; font-size: 13.5px; }

.note-block { background: var(--bg-soft); border-radius: 16px; padding: 22px 24px; margin: 20px 0; font-size: 14px; }
.note-block h3 { font-size: 15px; }
.warn-block { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 16px; padding: 18px 22px; margin: 20px 0; font-size: 14px; color: #9a3412; }
.disclaimer { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

.cat-lists { display: grid; gap: 14px; }
@media (min-width: 640px) { .cat-lists { grid-template-columns: repeat(3, 1fr); } }
.cat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 13.5px; }
.cat h4 { margin: 0 0 8px; font-size: 14px; }
.cat ul { margin: 0; padding-left: 18px; color: var(--muted); }

.cta-box { background: var(--bg-soft); border-radius: 20px; padding: 36px 26px; text-align: center; margin: 40px 0; }
.cta-box h2 { margin-bottom: 8px; }
.cta-box p { color: var(--muted); margin: 0 0 22px; }

/* ---- モーダル ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.on { display: flex; }
.modal { background: #fff; border-radius: 20px; padding: 30px 26px; max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal h3 { margin-top: 0; }
.modal .close { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }

.done-box { text-align: center; padding: 60px 0; }
.done-box .big { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
