:root { color-scheme: light; --ink:#17223b; --muted:#637083; --line:#dce2ea; --brand:#126b5b; --brand-dark:#0b4c40; --paper:#fff; --wash:#f3f7f5; --danger:#a43632; font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",sans-serif; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:linear-gradient(135deg,#edf6f1,#f8f5ec); min-height:100vh; }
a { color:var(--brand-dark); }
.site-header { background:#12372f; color:white; padding:18px max(20px,calc((100% - 1040px)/2)); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { margin:0; font-size:1.15rem; letter-spacing:.04em; }
.site-header a { color:white; }
.site-header nav { display:flex; flex-wrap:wrap; gap:12px 20px; }
.container { width:min(1040px,calc(100% - 32px)); margin:38px auto; }
.hero { margin-bottom:24px; }
h1 { font-size:clamp(1.7rem,5vw,2.6rem); margin:.2em 0; }
.lead,.note { color:var(--muted); line-height:1.75; }
.notice { display:inline-block; background:#fff2c7; color:#694d00; padding:7px 11px; border-radius:99px; font-weight:700; font-size:.82rem; }
.card { background:var(--paper); border:1px solid rgba(23,34,59,.08); border-radius:18px; padding:clamp(20px,4vw,34px); box-shadow:0 16px 40px rgba(32,64,52,.09); }
.field { margin-bottom:20px; }
label { display:block; font-weight:700; margin-bottom:8px; }
input,select,button { font:inherit; }
input,select { width:100%; padding:13px 14px; border:1px solid #bdc7d3; border-radius:9px; background:white; color:var(--ink); }
input:focus,select:focus { outline:3px solid rgba(18,107,91,.18); border-color:var(--brand); }
button { border:0; border-radius:9px; padding:14px 20px; background:var(--brand); color:white; font-weight:700; cursor:pointer; }
button:hover { background:var(--brand-dark); }
.secondary { background:#e8eeec; color:var(--brand-dark); }
.result { margin-top:24px; padding:22px; border-radius:14px; text-align:center; }
.result.success { background:#e6f5ec; border:1px solid #9bcdb0; }
.result.unavailable { background:#fff0ef; border:1px solid #e0aaa7; color:var(--danger); }
.result-label { font-weight:700; margin:0; }.price { font-size:clamp(2.2rem,8vw,3.4rem); font-weight:800; color:var(--brand-dark); margin:.15em 0; }.reason { font-weight:700; }
.settings-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }.settings-grid .field { margin:0; }.settings-grid small,td small { display:block; color:var(--muted); margin-top:4px; }
.actions { margin-top:18px; }
.table-wrap { overflow-x:auto; margin-top:24px; border-radius:14px; border:1px solid var(--line); background:white; }
table { border-collapse:collapse; width:100%; min-width:760px; } th,td { text-align:right; padding:14px; border-bottom:1px solid var(--line); } th { background:#eef4f1; font-size:.85rem; } th:first-child,td:first-child { text-align:left; }.badge { color:var(--danger); font-weight:700; }.error { color:var(--danger); text-align:left; }
footer { text-align:center; color:var(--muted); padding:20px; font-size:.82rem; }
.camera-page { max-width:760px; }.camera-notice { margin-bottom:20px; padding:14px 16px; border-radius:10px; background:#e8f2ff; color:#284f78; line-height:1.6; }.step { margin-bottom:20px; }.step-heading { display:flex; align-items:flex-start; gap:14px; margin-bottom:20px; }.step-heading>span { display:grid; flex:0 0 34px; height:34px; place-items:center; border-radius:50%; background:var(--brand); color:#fff; font-weight:800; }.step-heading h2 { margin:2px 0 5px; font-size:1.25rem; }.step-heading p { margin:0; color:var(--muted); line-height:1.6; }
.video-shell,.capture-shell { position:relative; overflow:hidden; border-radius:12px; background:#17223b; aspect-ratio:4/3; }.video-shell video,.capture-shell video { display:block; width:100%; height:100%; object-fit:cover; }.scan-guide { position:absolute; inset:33% 8%; border:3px solid #62dfbc; border-radius:9px; box-shadow:0 0 0 999px rgba(0,0,0,.3); }.button-row { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }.status { padding:11px 13px; border-radius:8px; background:var(--wash); line-height:1.5; }.status.error { color:var(--danger); background:#fff0ef; }.inline-form { display:grid; grid-template-columns:1fr auto; align-items:end; gap:12px; margin-top:18px; }.inline-form .field { margin:0; }.product-result { display:grid; gap:3px; margin-top:18px; padding:16px; border-left:5px solid var(--brand); border-radius:8px; background:#e6f5ec; }.product-result span,.product-result small { color:var(--muted); }.file-button { display:inline-block; margin:0; padding:14px 20px; border-radius:9px; background:#e8eeec; color:var(--brand-dark); cursor:pointer; }.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.photo-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:18px; }.photo-card { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:white; }.photo-card img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }.photo-card div { display:grid; gap:6px; padding:10px; }.quality { font-size:.82rem; line-height:1.4; }.quality.ok { color:var(--brand); }.quality.ng { color:var(--danger); font-weight:700; }.text-button { justify-self:start; padding:0; color:var(--brand-dark); background:transparent; text-decoration:underline; font-size:.85rem; }.text-button:hover { background:transparent; }.step fieldset { display:grid; gap:12px; margin:0 0 16px; padding:16px; border:1px solid var(--line); border-radius:10px; }.step fieldset label { display:flex; gap:9px; align-items:center; margin:0; font-weight:400; }.step fieldset input { width:auto; }
.barcode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.barcode-card { padding:20px; border:1px solid var(--line); border-radius:14px; background:white; text-align:center; }.barcode-card h2 { margin:0; font-size:1.05rem; }.barcode-card p { color:var(--muted); }.barcode-svg { display:block; width:100%; max-width:280px; height:auto; margin:auto; }
@media (max-width:760px) { .settings-grid { grid-template-columns:repeat(2,1fr); }.container { margin-top:24px; }.site-header { align-items:flex-start; flex-direction:column; } }
@media (max-width:560px) { .inline-form { grid-template-columns:1fr; }.photo-grid,.barcode-grid { grid-template-columns:1fr; } }
@media (max-width:430px) { .settings-grid { grid-template-columns:1fr; }.card { padding:18px; }.site-header nav { display:grid; gap:8px; } }
