/* style.css — KAIDOWALK 共有スタイル（ダーク×ゴールド／免許証ライン共通） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0a0e14; min-height: 100vh; color: #e6edf3;
  font-family: 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  padding: 20px 14px 64px; line-height: 1.6;
}
.wrap { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.topbar { text-align: center; }
.topbar .marker { font-size: 12px; letter-spacing: .3em; color: #c9a96e; opacity: .8; }
.topbar h1 { color: #c9a96e; font-size: 1.3rem; margin-top: 6px; text-shadow: 0 0 24px rgba(201,169,110,0.4); line-height: 1.5; }
.topbar .sub { font-size: 12px; opacity: .75; margin-top: 8px; }

.card {
  background: #0e131b; border: 1px solid #232a35; border-radius: 14px; padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.card > h2 {
  color: #c9a96e; font-size: 0.98rem; letter-spacing: .1em; margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.card > h2 .num {
  width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto;
  background: #c9a96e; color: #0a0e14; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.card > .desc { font-size: 13px; opacity: .8; margin: 4px 0 14px; }

label { display: block; font-size: 13px; color: #c9d2e0; margin: 12px 0 5px; }
label .req { color: #e0707a; margin-left: 4px; }
input[type=text], textarea, select {
  width: 100%; padding: 10px 13px; background: #161b22; border: 1px solid #30363d;
  border-radius: 8px; color: #e6edf3; font-size: 0.9rem; outline: none; font-family: inherit;
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: #c9a96e; }
textarea { resize: vertical; min-height: 60px; }

button, .btn {
  display: inline-block; padding: 12px 22px; background: #c9a96e; border: none; border-radius: 8px;
  color: #0a0e14; font-weight: bold; cursor: pointer; font-size: 0.9rem; text-decoration: none;
  transition: filter .2s; white-space: nowrap; text-align: center;
}
button:hover, .btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid #30363d; color: #c9d2e0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* 受付の免許証データ */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.kv .item { font-size: 13px; }
.kv .item .k { color: #8b94a3; font-size: 11px; display: block; }
.kv .item .v { color: #e6edf3; }

/* 街道canvas（3Dシーン） */
.walk-canvas { width: 100%; max-width: 100%; display: block; margin: 0 auto;
  border-radius: 12px; border: 1px solid #232a35; background: #0a0e14; }

/* 3Dシーンのヒーロー枠 */
.hero { padding: 12px; }
.scene-wrap { position: relative; }
.scene3d { width: 100%; height: 460px; border-radius: 12px; overflow: hidden; border: 1px solid #232a35;
  background: linear-gradient(#9fc0e8, #cfe0f2); }
.scene3d canvas { display: block; width: 100% !important; height: 100% !important; }

/* 経済シミュだと即わかるHUD（3Dの上に重ねる） */
.hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; pointer-events: none; }
.hud-title { font-size: 12px; font-weight: bold; color: #fff; background: rgba(10,14,20,0.55);
  padding: 4px 10px; border-radius: 999px; text-shadow: 0 1px 2px #000; }
.hud-chip { font-size: 12px; color: #fff; background: rgba(10,14,20,0.55); padding: 4px 9px; border-radius: 999px; }
.hud-chip b { color: #ffe08a; margin-left: 2px; }

.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.reach-big { display: flex; flex-direction: column; }
.reach-big .rk { font-size: 11px; color: #8b94a3; }
.reach-big .rv { font-size: 1.9rem; color: #6fd6a0; font-weight: 800; line-height: 1; }

/* アバター選択 */
.avatar-pick { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.avatar-pick .ap-label { font-size: 12px; color: #8b94a3; }

/* ゲージ（成長・到達率） */
.gauge { margin-top: 12px; }
.gauge .glabel { display: flex; justify-content: space-between; font-size: 12px; color: #c9d2e0; margin-bottom: 4px; }
.gauge .gbar { height: 14px; border-radius: 999px; background: #161b22; border: 1px solid #30363d; overflow: hidden; }
.gauge .gfill { height: 100%; width: 0; transition: width .5s ease;
  background: linear-gradient(90deg, #c9a96e, #f0d9a8); }
.gauge.reach .gfill { background: linear-gradient(90deg, #37b779, #6fd6a0); }

/* 経済循環パネル */
.econ { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.econ-item {
  background: #06090f; border: 1px solid #232a35; border-radius: 10px; padding: 10px 8px; text-align: center;
}
.econ-item .ei-icon { font-size: 18px; display: block; }
.econ-item .ei-k { font-size: 10px; color: #8b94a3; display: block; margin: 2px 0; }
.econ-item .ei-v { font-size: 15px; color: #c9a96e; font-weight: bold; }

/* チップ（入力カテゴリ） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid #30363d; background: #161b22;
  color: #c9d2e0; cursor: pointer; font-size: 0.85rem; transition: all .15s;
}
.chip .sub { font-size: 10px; opacity: .6; margin-left: 4px; }
.chip.on { background: #c9a96e; color: #0a0e14; border-color: #c9a96e; font-weight: bold; }
.chip.on .sub { opacity: .8; }

/* 入館不可 */
.denied { text-align: center; padding: 32px 18px; }
.denied .lock { font-size: 42px; }
.denied h2 { color: #e0707a; margin: 12px 0 8px; }
.denied p { font-size: 13px; opacity: .8; }

.notice { font-size: 12px; padding: 10px 13px; border-radius: 8px; margin-top: 8px; }
.notice.ok { background: rgba(55,183,121,0.12); border: 1px solid rgba(55,183,121,0.4); color: #6fd6a0; }
.notice.info { background: rgba(95,140,220,0.12); border: 1px solid rgba(95,140,220,0.4); color: #9fb6e6; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 5px 12px; border-radius: 999px; font-size: 11px;
  background: rgba(55,183,121,0.12); border: 1px solid rgba(55,183,121,0.4); color: #6fd6a0;
}
.muted { font-size: 11px; opacity: .55; }
pre.json { background: #06090f; border: 1px solid #232a35; border-radius: 8px; padding: 14px;
  font-size: 12px; color: #b9c4d4; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
