:root {
  --paper: #f2ecdd;
  --paper-light: #fffaf0;
  --ink: #15253d;
  --ink-2: #30435a;
  --muted: #687383;
  --line: rgba(21, 37, 61, 0.18);
  --orange: #df4b2f;
  --orange-dark: #a92e1f;
  --blue: #2b68cc;
  --green: #1d835d;
  --yellow: #e7cb42;
  --gray: #89919a;
  --shadow: 0 18px 52px rgba(17, 29, 47, 0.14);
  --shadow-small: 0 8px 22px rgba(17, 29, 47, 0.1);
  --display: "M PLUS Rounded 1c", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

.page-texture {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.27;
  background-image:
    radial-gradient(rgba(21,37,61,.18) .55px, transparent .7px),
    radial-gradient(rgba(223,75,47,.12) .55px, transparent .7px);
  background-position: 0 0, 8px 7px;
  background-size: 13px 13px, 17px 17px;
  mix-blend-mode: multiply;
}

.shell { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: 9px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--yellow); font-weight: 900; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.mission-header {
  position: relative;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink);
}
.mission-header::before {
  content: ""; position: absolute; right: -130px; top: -280px;
  width: 650px; height: 650px; border: 50px solid var(--orange); border-radius: 50%;
}
.mission-header::after {
  content: ""; position: absolute; right: -80px; bottom: -170px;
  width: 450px; height: 250px; border: 30px solid rgba(231,203,66,.8); border-radius: 50%; transform: rotate(-12deg);
}
.mission-header__grid {
  position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.2) 1px,transparent 1px);
  background-size: 52px 52px; mask-image: linear-gradient(90deg,#000,transparent 88%);
}
.mission-header__inner { position: relative; z-index: 1; padding: 30px 0 34px; }
.topline { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:17px; border-bottom:1px solid rgba(255,255,255,.2); }
.dispatch-stamp {
  display:inline-flex; align-items:center; min-height:28px; padding:4px 10px;
  color:var(--ink); border-radius:3px; background:var(--yellow); box-shadow:3px 3px 0 rgba(0,0,0,.35);
  font-family:var(--display); font-size:.7rem; font-weight:900; letter-spacing:.08em; transform:rotate(-1deg);
}
.dispatch-stamp--dark { color:var(--paper-light); background:var(--ink); box-shadow:3px 3px 0 var(--orange); }
.local-badge { display:flex; align-items:center; gap:8px; color:rgba(255,255,255,.66); font-size:.76rem; font-weight:800; }
.local-badge i { width:8px; height:8px; border-radius:50%; background:#5fda9f; box-shadow:0 0 0 5px rgba(95,218,159,.13); }

.hero-layout { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr); gap:70px; align-items:center; padding:55px 0 40px; }
.eyebrow { margin:0 0 12px; color:var(--yellow); font-family:var(--display); font-size:.76rem; font-weight:900; letter-spacing:.12em; }
.hero-copy h1 { margin:0; font-family:var(--display); font-size:clamp(3.8rem,8vw,7rem); line-height:.88; letter-spacing:-.075em; }
.hero-copy h1 em { color:var(--paper-light); font-style:normal; position:relative; }
.hero-copy h1 em::after { content:""; position:absolute; z-index:-1; left:-8px; right:-18px; bottom:2px; height:18px; background:var(--orange); transform:rotate(-1deg); }
.hero-lead { max-width:680px; margin:27px 0 0; color:rgba(255,255,255,.7); font-size:.96rem; line-height:1.9; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }

.primary-button, .ghost-button {
  min-height:46px; padding:10px 17px; border:2px solid var(--ink); border-radius:9px; cursor:pointer; font-weight:900;
  box-shadow:4px 4px 0 var(--ink); transition:transform .14s ease,box-shadow .14s ease;
}
.primary-button { color:#fff; background:var(--orange-dark); }
.ghost-button { background:transparent; }
.ghost-button--light { color:#fff; border-color:#fff; box-shadow:none; }
.primary-button:hover,.ghost-button:hover { transform:translate(-1px,-1px); box-shadow:6px 6px 0 var(--ink); }
.ghost-button--light:hover { box-shadow:none; background:rgba(255,255,255,.08); }
.primary-button:active,.ghost-button:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }

.progress-ticket { color:var(--ink); border:2px solid var(--ink); border-radius:7px; background:var(--paper-light); box-shadow:12px 13px 0 var(--orange); transform:rotate(1.5deg); }
.progress-ticket__head { display:flex; justify-content:space-between; gap:10px; padding:12px 16px; color:#fff; background:var(--blue); font-family:var(--display); font-size:.7rem; font-weight:900; letter-spacing:.08em; }
.progress-ticket__main { display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:center; padding:20px; }
.progress-ring {
  display:grid; width:112px; height:112px; place-items:center; border-radius:50%;
  background:conic-gradient(var(--green) var(--progress),rgba(21,37,61,.11) 0);
  position:relative;
}
.progress-ring::before { content:""; position:absolute; inset:9px; border-radius:50%; background:var(--paper-light); }
.progress-ring div { position:relative; display:flex; align-items:baseline; gap:3px; }
.progress-ring strong { font-family:var(--display); font-size:2rem; }
.progress-ring span { color:var(--muted); font-size:.8rem; }
.progress-ticket dl { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0; }
.progress-ticket dl div { padding:9px 11px; border-bottom:1px dashed var(--line); }
.progress-ticket dl div:nth-child(odd) { border-right:1px dashed var(--line); }
.progress-ticket dt { color:var(--muted); font-size:.68rem; font-weight:700; }
.progress-ticket dd { margin:1px 0 0; font-family:var(--display); font-size:1.1rem; font-weight:900; }
.linear-progress { height:9px; margin:0 20px 20px; overflow:hidden; border:1px solid var(--line); border-radius:999px; background:rgba(21,37,61,.07); }
.linear-progress span { display:block; width:0; height:100%; background:var(--green); transition:width .3s ease; }

.action-lanes { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.action-lane { display:grid; grid-template-columns:auto 1fr; gap:13px; align-items:start; min-height:125px; padding:17px; color:var(--ink); border:2px solid var(--ink); border-radius:13px; background:var(--paper-light); }
.action-lane--urgent { background:#ffe09a; }
.action-lane__number { display:grid; width:38px; height:38px; place-items:center; color:#fff; border-radius:50%; background:var(--ink); font-family:var(--display); font-size:.72rem; font-weight:900; }
.action-lane small { color:var(--orange-dark); font-weight:900; letter-spacing:.05em; }
.action-lane h2 { margin:3px 0 2px; font-family:var(--display); font-size:1rem; }
.action-lane p { margin:0; color:var(--muted); font-size:.75rem; line-height:1.65; }

.main-shell { padding:28px 0 90px; }
.pickup-alert { display:grid; grid-template-columns:auto 1fr auto auto; gap:16px; align-items:center; padding:18px 20px; border:2px solid var(--ink); border-radius:12px 26px 12px 26px; background:#dce8ff; box-shadow:var(--shadow-small); }
.pickup-alert__icon { display:grid; width:48px; height:48px; place-items:center; color:#fff; border-radius:50%; background:var(--blue); font-family:var(--display); font-size:1.2rem; font-weight:900; }
.pickup-alert strong { display:block; }
.pickup-alert p { margin:3px 0 0; color:var(--muted); font-size:.78rem; }
.pickup-alert__rules { display:flex; gap:5px; flex-wrap:wrap; }
.pickup-alert__rules span { padding:4px 7px; border:1px solid var(--line); border-radius:999px; background:var(--paper-light); font-size:.66rem; font-weight:800; }
.pickup-alert__rules .is-best { color:#fff; background:var(--green); }
.pickup-alert > a { color:var(--blue); font-size:.74rem; font-weight:900; white-space:nowrap; }

.filter-panel { display:grid; grid-template-columns:minmax(270px,1fr) minmax(390px,1.45fr) auto; gap:14px; align-items:end; margin:24px 0; padding:16px; border:1px solid var(--line); border-radius:16px; background:rgba(255,250,240,.84); box-shadow:var(--shadow-small); }
.search-box { position:relative; display:block; }
.search-box > span { position:absolute; left:14px; top:50%; transform:translateY(-52%); color:var(--orange); font-family:var(--display); font-size:1.45rem; }
.search-box input, .select-filters select, .detail-input, .detail-textarea {
  width:100%; min-height:44px; color:var(--ink); border:1.5px solid rgba(21,37,61,.25); border-radius:9px; outline:none; background:#fffdf7;
}
.search-box input { padding:9px 12px 9px 42px; }
.search-box input:focus,.select-filters select:focus,.detail-input:focus,.detail-textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(43,104,204,.13); }
.status-pills { grid-column:2 / 3; display:flex; gap:5px; flex-wrap:wrap; }
.status-pills button { min-height:38px; padding:6px 10px; border:1px solid var(--line); border-radius:999px; background:transparent; cursor:pointer; font-size:.7rem; font-weight:900; }
.status-pills button b { display:inline-grid; min-width:20px; height:20px; padding:0 4px; place-items:center; border-radius:999px; background:rgba(21,37,61,.08); }
.status-pills button.is-active { color:#fff; border-color:var(--ink); background:var(--ink); }
.status-pills button.is-active b { color:var(--ink); background:var(--yellow); }
.select-filters { grid-column:1 / 3; display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.select-filters label { display:grid; gap:4px; color:var(--muted); font-size:.66rem; font-weight:900; }
.select-filters select { padding:7px 30px 7px 9px; }
.text-button { min-height:38px; padding:5px 7px; color:var(--blue); border:0; background:transparent; cursor:pointer; font-weight:900; text-decoration:underline; text-underline-offset:4px; }
.text-button--light { color:#fff; }

.content-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:22px; align-items:start; }
.list-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:13px; }
.section-code { color:var(--orange-dark); font-size:.68rem; font-weight:900; letter-spacing:.1em; }
.list-heading h2 { margin:2px 0 0; font-family:var(--display); font-size:2rem; }
.list-heading p { margin:0; color:var(--muted); font-size:.78rem; }
.checklist-grid { display:grid; gap:11px; }

.check-card {
  --status-color:var(--ink-2);
  display:grid; grid-template-columns:auto 100px minmax(0,1fr) auto; gap:14px; align-items:center;
  padding:12px; border:1.5px solid var(--line); border-left:7px solid var(--status-color); border-radius:9px 20px 9px 20px;
  background:rgba(255,250,240,.93); box-shadow:var(--shadow-small); transition:transform .16s ease,opacity .16s ease;
}
.check-card:hover { transform:translateY(-2px); }
.check-card[data-status="bought"] { --status-color:var(--green); background:#eef9f2; }
.check-card[data-status="missing"] { --status-color:var(--orange-dark); background:#fff1ec; }
.check-card[data-status="missing"] h3 { text-decoration:line-through; text-decoration-thickness:1.5px; }
.check-card[data-status="unknown"] { --status-color:var(--yellow); }
.check-card__check {
  display:grid; width:44px; height:44px; place-items:center; border:2px solid var(--status-color); border-radius:50%; background:transparent; cursor:pointer;
  font-family:var(--display); font-size:1.15rem; font-weight:900;
}
.check-card[data-status="bought"] .check-card__check { color:#fff; background:var(--green); }
.check-card__image { width:100px; height:82px; object-fit:contain; border:1px solid var(--line); border-radius:8px; background:#fff; }
.check-card__image--fallback { display:grid; place-items:center; color:var(--status-color); font-family:var(--display); font-size:1.4rem; font-weight:900; }
.check-card__main { min-width:0; }
.check-card__top { display:flex; gap:5px; flex-wrap:wrap; align-items:center; }
.tag { display:inline-flex; align-items:center; min-height:24px; padding:2px 7px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:.62rem; font-weight:900; }
.tag--id { color:#fff; border-color:var(--ink); border-radius:4px; background:var(--ink); font-family:var(--display); }
.tag--must { color:#fff; border-color:var(--orange-dark); background:var(--orange-dark); }
.tag--normal { background:var(--yellow); }
.check-card h3 { margin:7px 0 4px; font-family:var(--display); font-size:1rem; line-height:1.35; }
.check-card__meta { display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:.7rem; }
.check-card__meta b { color:var(--ink); }
.check-card__stock { margin-top:6px; color:var(--muted); font-size:.7rem; }
.check-card__stock strong { color:var(--orange-dark); }
.check-card__side { display:grid; gap:7px; justify-items:end; min-width:138px; }
.check-card__price { font-family:var(--display); font-size:.92rem; font-weight:900; text-align:right; }
.status-select { width:138px; min-height:39px; padding:6px 27px 6px 8px; border:1.5px solid var(--status-color); border-radius:8px; background:#fff; cursor:pointer; font-size:.72rem; font-weight:900; }
.details-toggle { min-height:34px; padding:3px 6px; color:var(--blue); border:0; background:transparent; cursor:pointer; font-size:.68rem; font-weight:900; }
.check-card__details { grid-column:2 / -1; display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:11px; border-top:1px dashed var(--line); }
.check-card__details[hidden] { display:none; }
.check-card__details label { display:grid; gap:4px; color:var(--muted); font-size:.65rem; font-weight:800; }
.detail-field--wide { grid-column:1 / -1; }
.privacy-note { grid-column:1 / -1; margin-top:-4px; color:var(--muted); font-size:.66rem; }
.detail-input,.detail-textarea { padding:8px 9px; font-size:.76rem; }
.detail-textarea { min-height:66px; resize:vertical; }
.source-links { grid-column:1 / -1; display:flex; gap:7px 14px; flex-wrap:wrap; }
.source-link { color:var(--blue); font-size:.7rem; font-weight:900; }

.route-column { position:sticky; top:16px; display:grid; gap:14px; }
.route-board { overflow:hidden; border:2px solid var(--ink); border-radius:8px 20px 8px 20px; background:var(--paper-light); box-shadow:var(--shadow-small); }
.route-board__head { display:flex; justify-content:space-between; gap:8px; padding:12px 14px; color:#fff; background:var(--blue); font-family:var(--display); font-size:.68rem; font-weight:900; letter-spacing:.05em; }
.route-item { display:grid; grid-template-columns:auto 1fr; gap:10px; padding:13px; border-top:1px dashed var(--line); }
.route-item:first-child { border-top:0; }
.route-date { display:grid; min-width:48px; height:30px; place-items:center; color:#fff; border-radius:6px; background:var(--ink); font-family:var(--display); font-size:.66rem; font-weight:900; }
.route-item h3 { margin:0; font-family:var(--display); font-size:.82rem; }
.route-item ul { margin:5px 0 0; padding-left:16px; color:var(--muted); font-size:.68rem; }
.legend-card { padding:15px; border:1.5px solid var(--line); border-radius:14px; background:rgba(255,250,240,.82); }
.legend-card h3 { margin:0 0 10px; font-family:var(--display); }
.legend-card ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.legend-card li { display:grid; grid-template-columns:auto 1fr; gap:8px; align-items:start; color:var(--muted); font-size:.69rem; }
.legend-card b { color:var(--ink); }
.dot { width:10px; height:10px; margin-top:5px; border-radius:50%; background:var(--ink-2); }
.dot--bought { background:var(--green); }.dot--missing { background:var(--orange-dark); }.dot--unknown { background:var(--yellow); }

.empty-state { padding:55px 20px; border:2px dashed var(--line); border-radius:18px; text-align:center; }
.empty-state[hidden] { display:none; }
.empty-state strong { display:block; margin-bottom:12px; font-family:var(--display); }

.footer { color:#fff; background:var(--blue); }
.footer__inner { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:end; padding:55px 0 70px; }
.footer h2 { margin:15px 0 0; font-family:var(--display); font-size:clamp(2rem,4vw,3.6rem); }
.footer p { margin:0; color:rgba(255,255,255,.72); }
.mobile-dock { display:none; }
.toast { position:fixed; z-index:100; left:50%; top:18px; max-width:calc(100% - 28px); padding:11px 17px; color:#fff; border:2px solid var(--ink); border-radius:999px; background:var(--green); box-shadow:4px 4px 0 var(--ink); opacity:0; pointer-events:none; transform:translate(-50%,-18px); transition:.18s; font-size:.76rem; font-weight:900; }
.toast.is-visible { opacity:1; transform:translate(-50%,0); }

@media (max-width:1020px) {
  .hero-layout { grid-template-columns:1fr .8fr; gap:35px; }
  .action-lanes { grid-template-columns:1fr; }
  .action-lane { min-height:0; }
  .pickup-alert { grid-template-columns:auto 1fr; }
  .pickup-alert__rules,.pickup-alert>a { grid-column:2; }
  .filter-panel { grid-template-columns:1fr; }
  .status-pills,.select-filters { grid-column:auto; }
  .select-filters { grid-template-columns:1fr 1fr; }
  .filter-panel>.text-button { justify-self:start; }
  .content-layout { grid-template-columns:1fr; }
  .route-column { position:static; grid-template-columns:1.3fr .7fr; }
}

@media (max-width:760px) {
  body { padding-bottom:78px; }
  .shell { width:min(100% - 22px,680px); }
  .mission-header::before { width:400px; height:400px; right:-210px; top:-170px; border-width:30px; }
  .topline { align-items:flex-start; }
  .local-badge { max-width:145px; text-align:right; }
  .hero-layout { grid-template-columns:1fr; padding:43px 0 30px; }
  .hero-copy h1 { font-size:clamp(3.5rem,17vw,5.5rem); }
  .progress-ticket { width:min(95%,390px); margin-inline:auto; }
  .action-lanes { gap:7px; }
  .pickup-alert { grid-template-columns:1fr; padding:16px; }
  .pickup-alert__icon { width:38px; height:38px; }
  .pickup-alert__rules,.pickup-alert>a { grid-column:auto; }
  .select-filters { grid-template-columns:1fr 1fr; }
  .status-pills { flex-wrap:wrap; overflow-x:visible; padding-bottom:0; }
  .check-card { grid-template-columns:auto 78px minmax(0,1fr); align-items:start; }
  .check-card__image { width:78px; height:72px; }
  .check-card__side { grid-column:2 / -1; grid-template-columns:1fr auto auto; justify-items:stretch; align-items:center; min-width:0; }
  .check-card__price { text-align:left; }
  .status-select { width:auto; min-width:122px; }
  .check-card__details { grid-column:1 / -1; }
  .route-column { grid-template-columns:1fr; }
  .footer__inner { grid-template-columns:1fr; gap:25px; padding-bottom:120px; }
  .mobile-dock { position:fixed; z-index:50; left:8px; right:8px; bottom:8px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 9px 9px 15px; border:2px solid var(--ink); border-radius:14px; background:rgba(255,250,240,.95); box-shadow:0 14px 40px rgba(21,37,61,.28); backdrop-filter:blur(12px); }
  .mobile-dock div { display:flex; align-items:baseline; gap:4px; }
  .mobile-dock strong { font-family:var(--display); font-size:1.25rem; }
  .mobile-dock span { color:var(--muted); font-size:.7rem; }
}

@media (max-width:470px) {
  .hero-actions { display:grid; }
  .progress-ticket__main { grid-template-columns:1fr; justify-items:center; }
  .progress-ticket dl { width:100%; }
  .select-filters { grid-template-columns:1fr; }
  .check-card { grid-template-columns:auto minmax(0,1fr); }
  .check-card__image { grid-column:2; width:100%; height:130px; }
  .check-card__main { grid-column:1 / -1; }
  .check-card__side { grid-column:1 / -1; grid-template-columns:1fr 1fr; }
  .details-toggle { grid-column:1 / -1; }
  .check-card__details { grid-template-columns:1fr; }
  .detail-field--wide { grid-column:auto; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; }
}
