/* #52 収集運搬のご予約 ― 色はロゴの青（Fukuyama Industries の文字）と緑（三角）から */
:root {
  --blue: #0b34b8;        /* ロゴの文字の青を少し深く（白い字が読める濃さ） */
  --blue-2: #2a5cf0;
  --blue-weak: #eef2ff;
  --green: #31ff00;       /* ロゴの三角の緑。線や飾りだけに使う */
  --green-ink: #178a00;   /* 緑の字・チェック用（読める濃さ） */
  --green-weak: #ecfde5;
  --ink: #0f172a;
  --sub: #5b6475;
  --line: #e3e7ef;
  --bg: #f5f7fb;
  --card: #fff;
  --err: #c62828;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-feature-settings: "palt";
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 上の帯 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .logo { height: 40px; width: auto; display: block; }
.top .tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-weak); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.stripe { height: 4px; background: linear-gradient(90deg, var(--green) 0%, #8dff5c 30%, var(--blue-2) 70%, var(--blue) 100%); }

/* ---------- 見出し ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 28px 20px 26px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #2a5cf0 0%, #0b34b8 45%, #08227a 100%);
}
.hero::after { /* ロゴの三角を大きく薄く */
  content: ""; position: absolute; right: -40px; top: -30px; width: 220px; height: 170px;
  background: var(--green); opacity: .18; clip-path: polygon(0 0, 100% 18%, 30% 52%, 26% 100%);
}
.hero .eyebrow { margin: 0; font-size: 13px; letter-spacing: .08em; opacity: .85; }
.hero h1 { margin: 4px 0 0; font-size: 26px; line-height: 1.3; letter-spacing: .02em; }
.hero .who { margin: 12px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; }
.hero .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(49, 255, 0, .25); }

main { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; }
.lift { margin-top: -14px; position: relative; z-index: 1; }

/* ---------- 進み具合 ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 6px; padding: 0; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; line-height: 1.2; color: var(--sub); font-weight: 600; }
.steps i {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--sub); font-size: 13px; font-style: normal; transition: background-color .2s, border-color .2s;
}
.steps li.ok i { background: var(--green-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--green-ink); color: transparent; }
.steps li.active i { background-color: var(--blue); border-color: var(--blue); color: #fff; }
.steps li.ok, .steps li.active { color: var(--ink); }

/* ---------- カード ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; margin: 14px 0; }
.card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; }
.card h2 .num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 14px; flex: none; }
.card.notice { background: var(--blue-weak); box-shadow: none; border: 1px solid #d9e1ff; font-size: 14px; color: #1e2a55; }
.card.notice b { color: var(--blue); }
label.f { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 8px; }
label.f:first-of-type { margin-top: 4px; }
.req { color: var(--err); font-size: 11px; font-weight: 700; margin-left: 6px; border: 1px solid currentColor; padding: 0 6px; border-radius: 6px; vertical-align: 1px; }
.opt { color: var(--sub); font-size: 12px; font-weight: 500; margin-left: 6px; }
.hint { font-size: 13px; color: var(--sub); margin: 6px 0 0; }

input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 4px rgba(42, 92, 240, .14); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------- 選ぶボタン ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.chips.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.chips label {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.3; transition: all .15s; user-select: none;
}
.chips.grid4 label { padding: 8px 4px; font-size: 14px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11, 52, 184, .25); }
.chips.kinds label:has(input:checked) { background: var(--blue-weak); color: var(--blue); box-shadow: none; }
.chips.kinds label::before { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #c3cad8; flex: none; transition: all .15s; }
.chips.kinds label:has(input:checked)::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--blue); }
.chips.kinds label { justify-content: flex-start; }
.chips label:has(input:disabled) { opacity: .35; cursor: not-allowed; box-shadow: none; }
.chips.big label { min-height: 64px; flex-direction: column; gap: 2px; }
.chips.big small { font-size: 12px; font-weight: 500; opacity: .8; }

/* ---------- カレンダー ---------- */
#timeLabel, #truckLabel { scroll-margin-top: 76px; }
.cal h3 { font-size: 15px; margin: 10px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.cal h3 small { color: var(--sub); font-weight: 500; }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wd { text-align: center; font-size: 11px; color: var(--sub); font-weight: 700; padding-bottom: 2px; }
.cal .wd:first-child { color: #c0392b; }
.cal .wd:nth-child(7) { color: #2a5cf0; }
.cal button, .cal .x { aspect-ratio: 1 / 1; min-height: 40px; border-radius: 12px; font-size: 16px; font-variant-numeric: tabular-nums; }
.cal button { border: 1.5px solid #d6dcf0; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; transition: all .12s; }
.cal button:active { transform: scale(.94); }
.cal button.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11, 52, 184, .3); }
.cal .x { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f1f3f7; color: #b0b7c4; line-height: 1.05; }
.cal .x small { font-size: 9px; font-weight: 700; margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--sub); margin: 0 0 6px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .ok::before { border: 1.5px solid #d6dcf0; background: #fff; }
.legend .ng::before { background: #e3e6ec; }
.legend .note2 { flex-basis: 100%; font-size: 11px; }
.picked { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--blue-weak); color: var(--blue); font-weight: 700; font-size: 15px; }
.picked.empty { background: #f4f5f8; color: var(--sub); font-weight: 500; }

/* ---------- 数の ＋− ---------- */
.qty { display: grid; gap: 10px; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; }
.qrow .ql { flex: 1; font-weight: 600; font-size: 15px; }
.qrow .ql small { display: block; color: var(--sub); font-weight: 500; font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--blue-weak); color: var(--blue); font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper button:active { transform: scale(.92); }
.stepper input { width: 56px; text-align: center; padding: 8px 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qrow select { width: auto; padding: 8px 32px 8px 12px; font-size: 14px; }

/* ---------- 写真 ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.photos .ph { position: relative; aspect-ratio: 1 / 1; }
.photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.photos .ph button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .7); color: #fff; cursor: pointer; font-size: 14px; }
.addphoto { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed #c6cfe6; border-radius: 14px; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer; background: #fafbff; }
.addphoto svg { width: 28px; height: 28px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; padding: 15px; font-size: 16px; font-weight: 800; cursor: pointer; transition: transform .1s, box-shadow .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.main { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: 0 10px 24px rgba(11, 52, 184, .3); }
.btn.sub { background: #fff; color: var(--blue); border: 1.5px solid #cfd8f5; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar .in { max-width: 608px; margin: 0 auto; display: grid; gap: 8px; }
.bar .btn.sub { padding: 11px; }

.err { color: var(--err); font-weight: 700; font-size: 14px; margin: 12px 0 0; white-space: pre-wrap; background: #fff1f1; border-radius: 12px; padding: 10px 14px; }

/* ---------- 確認 ---------- */
dl.sum { margin: 0; display: grid; grid-template-columns: 6.5em 1fr; }
dl.sum dt, dl.sum dd { padding: 11px 0; border-bottom: 1px solid #eef0f5; }
dl.sum dt { color: var(--sub); font-size: 13px; }
dl.sum dd { margin: 0; font-weight: 600; white-space: pre-wrap; word-break: break-all; }
dl.sum dt:last-of-type, dl.sum dd:last-of-type { border-bottom: 0; }
#sumPhotos { margin-top: 12px; }

/* ---------- 送ったあと・お知らせ ---------- */
.done { text-align: center; padding: 34px 20px 28px; }
.done .mark { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-weak); display: grid; place-items: center; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.done .mark svg { width: 40px; height: 40px; }
.done .mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .25s ease-out forwards; }
.done h2 { justify-content: center; font-size: 21px; }
.done p { color: #334155; text-align: left; }
.mark.info { background: var(--blue-weak); animation: none; }
.mark.info path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .done .mark path { stroke-dashoffset: 0; } }

.loading { display: grid; place-items: center; gap: 12px; padding: 60px 0; color: var(--sub); font-size: 14px; }
.loading::before { content: ""; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #dfe5f5; border-top-color: var(--blue); animation: spin .8s linear infinite; }
.hp { position: absolute; left: -9999px; }
.telLink { color: var(--blue); font-weight: 700; }
footer { text-align: center; font-size: 12px; color: var(--sub); padding: 8px 16px 140px; }
footer img { height: 22px; opacity: .8; display: block; margin: 0 auto 6px; }
