/* 入札の新着メール — 案A「監視センター」。濃い紺の地にグリッド、青緑の光で「見張っている」ことを見せる。PCは2段組み、スマホは1段 */
:root {
  --bg: #070d18;
  --bg-2: #0a1424;
  --panel: #0c1729;
  --panel-2: #0f1c2e;
  --grid: #0f1a2a;
  --line: #1c3150;
  --line-soft: #15263f;
  --ink: #e6eef8;
  --sub: #9fb1c8;
  --mute: #7088a6;
  --acc: #16e0b0;           /* 青緑。動いているもの・押すもの */
  --acc-2: #5cf0cc;
  --acc-ink: #04131a;       /* 青緑の上の文字 */
  --acc-tint: rgba(22, 224, 176, .1);
  --warn: #ffb547;          /* 締切・注意。青緑と明るさも違う */
  --radius: 10px;
  --w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; font-feature-settings: "palt" 1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; background-attachment: fixed;
}
a { color: var(--acc-2); }
a:hover { color: #bff7e8; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ヘッダー */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 13, 24, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .04em; font-size: 17px; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.top nav a { color: var(--sub); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top .cta-s { color: var(--acc-ink); background: var(--acc); padding: 9px 16px; border-radius: 6px; font-weight: 700; }
.top .cta-s:hover { color: var(--acc-ink); background: var(--acc-2); }
@media (max-width: 760px) { .top nav a:not(.cta-s) { display: none; } .top .wrap { height: 60px; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; padding: 13px 22px; background: var(--acc); color: var(--acc-ink); transition: background .15s, box-shadow .2s, transform .15s; }
.btn:hover { background: var(--acc-2); color: var(--acc-ink); box-shadow: 0 0 24px rgba(22, 224, 176, .35); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #2a3b54; color: #8094ae; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc-2); box-shadow: none; }
.btn.big { font-size: 17px; padding: 16px 30px; }
.small { font-size: 13px; color: var(--sub); }

/* ---------- トップの見出し ---------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -240px; width: 900px; height: 600px; transform: translateX(-10%); background: radial-gradient(closest-side, rgba(22, 224, 176, .12), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--acc); letter-spacing: .06em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: blink 1.6s infinite; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.25; margin: 18px 0 20px; letter-spacing: .01em; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero p.lead { font-size: 17px; color: var(--sub); margin: 0 0 28px; }
.hero .cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero .cta .price { color: var(--sub); font-size: 14px; }
.hero .cta .price b { color: var(--ink); font-size: 20px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--sub); list-style: none; padding-left: 0; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { flex: none; }

/* 監視パネル（47都道府県が順に光る） */
.watch { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .03); }
.watch .bar { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--mute); margin-bottom: 14px; letter-spacing: .06em; }
.watch .bar .live { color: var(--acc); }
.tiles { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.tiles li { height: 32px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: #8aa0bb; font-size: 11px; display: flex; align-items: center; justify-content: center; white-space: nowrap; animation: lit 4.4s infinite; }
.tiles li.r1 { animation-delay: .55s; } .tiles li.r2 { animation-delay: 1.1s; } .tiles li.r3 { animation-delay: 1.65s; } .tiles li.r4 { animation-delay: 2.2s; } .tiles li.r5 { animation-delay: 2.75s; }
.tiles .scan { position: absolute; left: -10px; right: -10px; top: 0; height: 2px; background: var(--acc); box-shadow: 0 0 18px var(--acc); animation: scan 4.4s linear infinite; pointer-events: none; }
.log { font-family: var(--mono); font-size: 12.5px; line-height: 2.1; color: var(--sub); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; list-style: none; padding-left: 0; margin-bottom: 0; }
.log li { opacity: 0; animation: logIn .5s forwards; }
.log li:nth-child(2) { animation-delay: .7s; } .log li:nth-child(3) { animation-delay: 1.4s; } .log li:nth-child(4) { animation-delay: 2.1s; color: var(--acc); }
.log b { color: var(--ink); font-weight: 600; margin-right: 12px; }
@keyframes lit { 0%, 100% { background: var(--panel-2); box-shadow: none; color: #8aa0bb; } 12% { background: var(--acc); box-shadow: 0 0 14px var(--acc); color: var(--acc-ink); } 40% { background: #0f3a40; color: #bdeee2; } }
@keyframes scan { 0% { transform: translateY(-8px); opacity: 0; } 6% { opacity: 1; } 70% { opacity: 1; } 76% { transform: translateY(232px); opacity: 0; } 100% { transform: translateY(232px); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding: 44px 0 40px; } }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tiles li { font-size: 10px; } }

/* ---------- セクション ---------- */
section.blk { padding: 72px 0; border-top: 1px solid var(--line-soft); }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--acc); letter-spacing: .12em; margin: 0 0 8px; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; margin: 0 0 10px; font-weight: 800; }
h2 + .small { margin-top: 0; }
h3 { font-size: 17px; margin: 0 0 6px; }

/* 仕組み: 4つの段階と、届くメールの見本 */
.how { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 23px; top: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 14px var(--acc); animation: travel 6s ease-in-out infinite; }
.steps li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 10px 0 22px; }
.steps .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.steps li.key .ic { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-tint); }
.steps .tm { font-family: var(--mono); font-size: 12px; color: var(--acc); letter-spacing: .06em; }
.steps h3 { margin: 2px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--sub); font-size: 14.5px; }
@keyframes travel { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--travel, 330px)); opacity: 0; } }

.sample { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.sample .bar { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--mute); padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.sample .subj { font-weight: 700; padding: 14px 16px 4px; }
.sample ul { list-style: none; margin: 0; padding: 0 16px 12px; }
.sample li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 1.6; color: var(--sub); }
.sample li b { display: block; color: var(--ink); }
.sample li i { font-style: normal; color: var(--warn); font-size: 12px; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* 安全への取り組み */
.sec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; list-style: none; padding: 0; }
.sec li { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.sec li:hover { border-color: var(--acc); transform: translateY(-2px); }
.sec .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--acc-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sec h3 { font-size: 16px; }
.sec p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.75; }
@media (max-width: 900px) { .sec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sec { grid-template-columns: minmax(0, 1fr); } }

/* けさの新着: PCは左に絞り込み、右に一覧 */
.board { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; margin-top: 24px; align-items: start; }
.filters { position: sticky; top: 88px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters label.f, .filters span.f { display: block; font-size: 13px; font-weight: 700; color: var(--sub); margin: 0 0 6px; }
.filters .grp + .grp { margin-top: 16px; }
select, input[type=text] { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--ink); }
select:focus, input[type=text]:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
input[type=text]::placeholder { color: var(--mute); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; border: 0; background: var(--bg-2); padding: 8px 0; cursor: pointer; color: var(--sub); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed=true] { background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.list-head .count b { font-size: 30px; font-family: var(--mono); color: var(--acc); }
.items { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line-soft); animation: logIn .35s both; }
.item:first-child { border-top: 0; }
.item:hover { background: rgba(22, 224, 176, .04); }
.item .t { font-weight: 700; line-height: 1.55; word-break: break-word; }
.item .t a { color: var(--ink); text-decoration: none; }
.item .t a:hover { color: var(--acc-2); text-decoration: underline; }
.item .m { font-size: 13px; color: var(--sub); margin-top: 3px; }
.tag { display: inline-block; font-size: 12px; line-height: 1.6; padding: 0 7px; border-radius: 3px; background: var(--acc-tint); color: var(--acc-2); margin-right: 6px; font-weight: 700; }
.item .d { font-size: 13px; text-align: right; color: var(--sub); line-height: 1.6; }
.item .d b { color: var(--warn); font-weight: 700; }
.empty { padding: 40px 18px; text-align: center; color: var(--sub); }
.more-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 18px 20px; background: var(--acc-tint); border: 1px solid rgba(22, 224, 176, .3); border-radius: var(--radius); }
@media (max-width: 860px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
  .filters .grp + .grp { margin-top: 0; }
  .item { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; }
  .item .d { text-align: left; }
}

/* できること・できないこと */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.box ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--sub); }
.box li + li { margin-top: 6px; }
.box h3 { color: var(--acc); }
.box.no h3 { color: var(--warn); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.tbl th, .tbl td { padding: 13px 16px; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--bg-2); border-top: 0; font-size: 13px; color: var(--sub); }
.tbl tbody th { color: var(--sub); font-weight: 700; white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl tr.us td { background: var(--acc-tint); }
.tbl b.num { color: var(--acc); font-size: 1.15em; }
.scroll-x { overflow-x: auto; }

/* よくある質問 */
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
details + details { margin-top: 10px; }
details[open] { border-color: #2a4870; }
summary { cursor: pointer; font-weight: 700; }
summary::marker { color: var(--acc); }
details p { margin: 8px 0 0; color: var(--sub); }

/* 最後の申込の呼びかけ */
.final { text-align: center; padding: 80px 0; border-top: 1px solid var(--line-soft); background: radial-gradient(600px 240px at 50% 0, rgba(22, 224, 176, .1), transparent); }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--sub); margin: 0 0 26px; }

/* フォーム（条件） */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { display: flex; align-items: baseline; gap: 8px; }
.panel h3 .small { font-weight: 400; }
.region { margin-top: 12px; }
.region-h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.region-h button { font: inherit; font-size: 12px; background: none; border: 0; color: var(--acc-2); cursor: pointer; padding: 0; text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--sub); user-select: none; transition: background .15s, color .15s, box-shadow .2s; }
.chip input:hover + span { border-color: #2a4870; color: var(--ink); }
.chip input:checked + span { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 700; box-shadow: 0 0 12px rgba(22, 224, 176, .35); }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.side { position: sticky; top: 88px; }
.preview { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.preview .big { font-size: 48px; font-weight: 700; line-height: 1.15; color: var(--acc); font-family: var(--mono); }
.preview ol { margin: 12px 0 0; padding-left: 1.3em; font-size: 14px; line-height: 1.6; color: var(--sub); }
.preview ol li + li { margin-top: 8px; }
.preview .warn { color: var(--warn); font-size: 14px; margin-top: 8px; }
.apply { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.apply .btn { width: 100%; }
.apply ul { margin: 12px 0 0; padding-left: 1.2em; font-size: 13px; color: var(--sub); }
.ts { min-height: 70px; margin: 0 0 12px; }
.err { color: var(--warn); font-size: 14px; margin-top: 8px; min-height: 1em; }
@media (max-width: 960px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }

/* 1枚もののお知らせ画面（確認・停止など） */
.notice { max-width: 640px; margin: 72px auto; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.notice h1 { font-size: 26px; margin: 0 0 12px; line-height: 1.4; }
.notice p { color: var(--sub); }
.notice .btn { margin-top: 12px; }
.notice .done { color: var(--acc); font-weight: 700; }
@media (max-width: 640px) { .notice { margin: 24px 16px; padding: 24px; } }

/* 文章ページ */
.doc { max-width: 860px; margin: 48px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 40px 48px; }
.doc h1 { font-size: 28px; margin: 0 0 20px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li { color: #c3d0e0; }
.doc dl { display: grid; grid-template-columns: 200px 1fr; margin: 0; border-top: 1px solid var(--line-soft); }
.doc dt, .doc dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.doc dt { font-weight: 700; color: var(--sub); font-size: 14px; }
@media (max-width: 640px) { .doc { margin: 16px; padding: 24px; } .doc dl { grid-template-columns: 1fr; } .doc dt { border-bottom: 0; padding-bottom: 0; } }

/* フッター */
footer { margin-top: 0; border-top: 1px solid var(--line-soft); background: rgba(7, 13, 24, .9); padding: 32px 0 40px; font-size: 13px; color: var(--sub); }
footer .src { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--sub); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 8px; }
footer nav a { color: var(--sub); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#start-head { padding-top: 40px; padding-bottom: 16px; }

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .log li { opacity: 1; }
}
.hero h1 em { white-space: nowrap; }
main { padding-bottom: 64px; }
main:has(> .hero) { padding-bottom: 0; }
