:root {
  --bg: #f4f6f8; --panel: #fff; --text: #1d2733; --muted: #66758a; --line: #dde3ea;
  --primary: #0b6e8a; --primary-ink: #fff; --accent: #e8a33d; --navy: #12303d;
  --primary-soft: color-mix(in srgb, var(--primary) 13%, #fff);
  --primary-faint: color-mix(in srgb, var(--primary) 6%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 20%, #fff); --danger: #c0392b; --ok: #2e8b57;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
button, input, select, textarea { font: inherit; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--navy); color: #fff; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.brand small { font-weight: 400; font-size: 12px; opacity: .7; }
.brand-mark { background: var(--accent); color: var(--navy); border-radius: 6px; padding: 2px 6px; font-size: 13px; }
.brand-logo { height: 28px; width: auto; display: block; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.switcher { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.switcher select { padding: 4px 6px; border-radius: 4px; border: 0; }
.bell { background: transparent; border: 1px solid #ffffff55; color: #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.badge { background: var(--danger); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.tabs { display: flex; gap: 2px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.view { max-width: 1200px; margin: 0 auto; padding: 20px; }
h2 { margin: 0 0 12px; font-size: 18px; }
h3 { margin: 18px 0 8px; font-size: 15px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filters label, .form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
input, select, textarea { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); min-width: 0; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.form .wide { grid-column: 1 / -1; }
.req::after { content: " *"; color: var(--danger); }
.btn { background: var(--primary); color: var(--primary-ink); border: 0; border-radius: 4px; padding: 7px 14px; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn.sub { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 3px 9px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef2f5; font-size: 12px; color: var(--muted); white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f6fbfd; }
.muted { color: var(--muted); font-size: 12px; }
.pill { display: inline-block; border-radius: 10px; padding: 1px 8px; font-size: 12px; white-space: nowrap; background: #e6edf2; }
.st-open { background: var(--primary-soft); color: var(--primary); }
.st-matched { background: var(--accent-soft); color: #9a6400; }
.st-contracted { background: #e9e3fb; color: #5b3fb5; }
.st-dispatched, .st-in_transit { background: #e2f5e9; color: #2e8b57; }
.st-delivered { background: #d8eadf; color: #1d5e39; }
.st-cancelled, .st-withdrawn, .st-rejected, .st-declined { background: #f0f0f0; color: #888; }
.st-pending { background: var(--primary-soft); color: var(--primary); }
.st-invited { background: #fde5e1; color: #b0442f; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.drawer { position: fixed; inset: 0; background: #0006; display: flex; justify-content: flex-end; z-index: 10; }
.drawer-panel { background: var(--bg); width: min(640px, 100%); height: 100%; overflow-y: auto; padding: 20px; position: relative; }
.drawer-close { position: sticky; float: right; top: 0; z-index: 1; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 12px; }
dl.kv dd { margin: 0; }
.steps { display: flex; gap: 4px; margin: 10px 0 16px; flex-wrap: wrap; }
.steps span { flex: 1; min-width: 70px; text-align: center; padding: 6px 4px; font-size: 12px; border-radius: 4px; background: #e6edf2; color: var(--muted); }
.steps span.done { background: var(--primary); color: #fff; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); margin-left: 4px; }
.timeline li .muted { display: block; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-top: 10px; }
.contact { background: #fffbea; border: 1px solid #f1d98a; }
.notice { background: var(--primary-faint); border-left: 3px solid var(--primary); padding: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 6px; z-index: 20; }
.toast.err { background: var(--danger); }
.notif { padding: 10px 0; border-bottom: 1px solid var(--line); }
.notif.unread { font-weight: 700; }
.topbar a { color: #fff; text-decoration: none; }
.nav-links { display: flex; gap: 14px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.nav-links a { opacity: .85; }
.nav-links a:hover { opacity: 1; text-decoration: underline; }
.nav-links form { margin: 0; }
.linkbtn { background: none; border: 0; color: #fff; opacity: .85; cursor: pointer; padding: 0; font-size: 13px; }
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.page.wide { max-width: 1000px; }
.page h1 { font-size: 22px; margin: 0 0 16px; }
.msgs { list-style: none; padding: 0; margin: 0 0 16px; }
.msgs li { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; background: #e6f4ea; color: #1d5e39; }
.msgs li.error { background: #fdecea; color: #a12c20; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=file],
.field select, .field textarea, .field input:not([type]) { width: 100%; }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 3px; }
.errorlist { color: var(--danger); font-size: 12px; list-style: none; padding: 0; margin: 4px 0 0; }
.hero { background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; padding: 56px 16px; text-align: center; }
.hero h1 { font-size: 30px; margin: 0 0 12px; }
.hero p { opacity: .9; margin: 0 0 24px; font-size: 16px; }
.hero .btn { background: var(--accent); color: var(--navy); font-weight: 700; padding: 12px 28px; font-size: 16px; text-decoration: none; display: inline-block; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price { font-size: 32px; font-weight: 700; color: var(--primary); }
.footer { text-align: center; padding: 24px 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); margin: 0 8px; }
.banner { background: #fff4e0; border-bottom: 1px solid #f1d98a; padding: 10px 20px; font-size: 13px; text-align: center; }
.banner a { color: var(--primary); font-weight: 700; }
.banner.prelaunch { background: var(--primary-faint); border-bottom-color: color-mix(in srgb, var(--primary) 30%, #fff); color: var(--navy); display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.banner .banner-btn { background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.banner .banner-btn:hover { filter: brightness(1.1); }
.legal h2 { font-size: 16px; margin-top: 24px; }
.legal table td:first-child { width: 30%; color: var(--muted); }
.todo { background: #fff4e0; padding: 0 4px; color: #9a6400; }
a.btn { text-decoration: none; display: inline-block; }
/* ---- トップページ（LP） ---- */
.lp-hero { position: relative; color: #fff; background: var(--navy) var(--hero-img) center / cover no-repeat; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--navy) 88%, transparent) 0%, color-mix(in srgb, var(--navy) 65%, transparent) 45%, color-mix(in srgb, var(--navy) 20%, transparent) 100%); }
.lp-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 96px 24px 88px; }
.lp-hero h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; margin: 0 0 18px; letter-spacing: .02em; }
.lp-lead { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.8; opacity: .92; margin: 0 0 30px; max-width: 620px; }
.lp-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin: 0 0 12px; }
.lp-eyebrow.dark { color: var(--primary); }
.lp-cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.btn.lp-btn { background: var(--accent); color: var(--navy); font-weight: 700; padding: 14px 30px; font-size: 16px; border-radius: 6px; text-decoration: none; display: inline-block; }
.btn.lp-btn-static { cursor: default; }
.lp-link { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.lp-badges { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 34px 0 0; }
.lp-badges li { font-size: 13px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.08); }
.lp-section { max-width: 1100px; margin: 0 auto; padding: 72px 24px; }
.lp-alt { max-width: none; background: var(--primary-faint); }
.lp-alt > * { max-width: 1052px; margin-left: auto; margin-right: auto; }
.lp-h2 { text-align: center; font-size: clamp(22px, 2.6vw, 30px); margin: 0 auto 40px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.lp-pain { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.lp-pain h3 { margin: 14px 0 8px; font-size: 17px; }
.lp-pain p { margin: 0; color: var(--muted); line-height: 1.7; }
.lp-pain-icon, .lp-ficon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: var(--accent-soft); }
.lp-ficon { background: var(--primary-soft); }
.lp-pain-icon svg, .lp-ficon svg { width: 26px; height: 26px; fill: var(--navy); }
.lp-ficon svg { fill: var(--primary); }
.lp-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1052px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.lp-steps li { background: #fff; border-radius: 14px; padding: 20px 20px 24px; box-shadow: 0 2px 10px color-mix(in srgb, var(--navy) 6%, transparent); text-align: center; }
.lp-steps img { width: 100%; height: auto; display: block; margin-bottom: 14px; }
.lp-step-no { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .1em; }
.lp-steps h3 { margin: 6px 0 8px; font-size: 18px; }
.lp-steps p { margin: 0; color: var(--muted); line-height: 1.7; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-split + .lp-split { margin-top: 64px; }
.lp-split.reverse img { order: 2; }
.lp-split img { width: 100%; height: auto; border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 10px 30px color-mix(in srgb, var(--navy) 15%, transparent); }
.lp-split h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 18px; line-height: 1.4; }
.lp-checks { list-style: none; padding: 0; margin: 0; }
.lp-checks li { position: relative; padding: 8px 0 8px 30px; line-height: 1.6; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lp-alt .features { max-width: 1052px; margin: 0 auto; }
.lp-feature { text-align: center; }
.lp-feature h3 { margin: 14px 0 6px; font-size: 17px; }
.lp-feature p { margin: 0; color: var(--muted); line-height: 1.7; }
.lp-band { position: relative; color: #fff; text-align: center; background: var(--navy) var(--band-img) center / cover no-repeat; }
.lp-band::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 85%, transparent); }
.lp-band-inner { position: relative; padding: 72px 24px; }
.lp-band h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 14px; }
.lp-band p { margin: 0 0 22px; opacity: .9; }
@media (max-width: 760px) {
  .lp-hero-inner { padding: 64px 16px 56px; }
  .lp-hero::before { background: color-mix(in srgb, var(--navy) 78%, transparent); }
  .lp-section { padding: 52px 16px; }
  .lp-split { grid-template-columns: 1fr; gap: 20px; }
  .lp-split.reverse img { order: 0; }
  br.pc { display: none; }
}
@media (max-width: 600px) {
  .view { padding: 12px; }
  .topbar { padding: 10px 12px; }
  dl.kv { grid-template-columns: 90px 1fr; }
}
