/* GAIA 2026 LINE — 共通デザインシステム（設計図.md §4） */
/* Cinzel は各ページの <head> で Google Fonts から1ウェイトのみ読込（display=swap）。
   日本語はシステムフォント（--sans）でWebフォント不使用。 */

:root{
  /* ground */
  --bg:#0a0713;        /* 深い藍紫。純黒にしない */
  --bg-2:#150e26;      /* カード面 */
  --line:rgba(255,255,255,.10);
  --text:#efe9ff;
  --text-dim:#a99fc7;
  /* brand */
  --gold:#d9b45a;      /* 見出し。GAIA ロゴの金 */
  --gold-2:#f3dc9a;
  --magenta:#ff3ec8;   /* リッチメニューの左右カード枠 */
  --cyan:#3fe0ff;      /* 中央カード枠 */
  /* element = area colors（公式準拠）*/
  --earth:#6f7a3c;     /* GAIA STAGE */
  --water:#1e8fc8;     /* SWAMP */
  --air:#1d3f8f;       /* HOLISTIC / KIDS */
  --fire:#c1441c;      /* EXTREME */
  --ether:#2aa3b8;     /* ART GALLERY / SHOP */
  --food:#e8873a;      /* FOOD AREA（マップ準拠のオレンジ）*/
  /* semantic */
  --now:#3fe0ff;       /* 「今」= cyan */
  --ok:#7ad38a; --warn:#ffcc66;
  /* type */
  --display:"Cinzel","Hiragino Mincho ProN",serif;
  --sans:-apple-system,"Hiragino Sans","Noto Sans JP",system-ui,sans-serif;
  --mono:"SF Mono",Menlo,monospace;
  --radius:14px;
  --header-h:52px;
  --nav-h:64px;
}

*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  background:var(--bg); color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
  overflow-wrap:break-word;
}
body{
  min-height:100vh;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(255,62,200,.06), transparent 60%),
    radial-gradient(60% 40% at 100% 20%, rgba(63,224,255,.06), transparent 60%),
    var(--bg);
  padding-top:var(--header-h);
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font-family:inherit; }

:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:2px;
}

.tabular{ font-variant-numeric:tabular-nums; }

/* ---------- ヘッダー ---------- */
.gaia-header{
  position:fixed; top:0; left:0; right:0; z-index:20;
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 14px;
  background:rgba(10,7,19,.85);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.gaia-header .logo{
  font-family:var(--display);
  color:var(--gold);
  font-size:16px;
  letter-spacing:.04em;
  text-decoration:none;
}
.gaia-header .official-link{
  font-size:12px;
  color:var(--text-dim);
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 10px;
  min-height:28px;
  display:inline-flex;
  align-items:center;
}
.gaia-header .official-link:active{ color:var(--text); }

/* ---------- 下部ナビ ---------- */
.gaia-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:20;
  height:calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  display:flex;
  background:rgba(10,7,19,.92);
  backdrop-filter:blur(8px);
  border-top:1px solid var(--line);
}
.gaia-nav a{
  flex:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px;
  min-height:44px;
  text-decoration:none;
  color:var(--text-dim);
  font-size:11px;
  position:relative;
}
.gaia-nav a svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; }
.gaia-nav a[aria-current="page"]{ color:var(--text); }
.gaia-nav a[aria-current="page"]::after{
  content:"";
  position:absolute; top:2px; left:50%; transform:translateX(-50%);
  width:28px; height:2px; border-radius:2px;
  background:var(--cyan);
  box-shadow:0 0 8px var(--cyan);
}
.gaia-nav a:nth-child(1)[aria-current="page"]::after{ background:var(--magenta); box-shadow:0 0 8px var(--magenta); }
.gaia-nav a:nth-child(3)[aria-current="page"]::after{ background:var(--magenta); box-shadow:0 0 8px var(--magenta); }

@media (prefers-reduced-motion:reduce){
  .gaia-nav a[aria-current="page"]::after{ box-shadow:none; }
}

/* ---------- 共通レイアウト ---------- */
main{ padding:16px 14px 24px; max-width:560px; margin:0 auto; }
h1,h2,h3{ font-weight:600; }
h1{ font-family:var(--display); color:var(--gold); font-size:20px; letter-spacing:.02em; margin:0 0 12px; }
h2{ font-size:15px; color:var(--gold-2); margin:20px 0 10px; }
p{ line-height:1.6; color:var(--text); }
.text-dim{ color:var(--text-dim); }

/* ---------- カード ---------- */
.card{
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
}
.card + .card{ margin-top:10px; }

/* ---------- ボタン ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 18px;
  border-radius:999px;
  font-size:14px; font-weight:600;
  text-decoration:none;
  border:1px solid var(--line);
  background:transparent; color:var(--text);
}
.btn-primary{
  background:var(--gold); color:#1a1408; border-color:var(--gold);
}
.btn-primary:active{ background:var(--gold-2); }
.btn-ghost:active{ background:rgba(255,255,255,.06); }
.btn + .btn{ margin-left:8px; }

/* ---------- エリアチップ ---------- */
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px 4px 6px;
  border-radius:999px;
  font-size:12px; font-weight:600;
  color:#fff;
  min-height:28px;
}
.chip .dot{
  width:16px; height:16px; border-radius:50%;
  background:currentColor;
  flex:none;
}
.chip[data-element="earth"]{ background:var(--earth); }
.chip[data-element="water"]{ background:var(--water); }
.chip[data-element="air"]{ background:var(--air); }
.chip[data-element="fire"]{ background:var(--fire); }
.chip[data-element="ether"]{ background:var(--ether); }
.chip[data-element="food"]{ background:var(--food); }

/* ---------- ハブ（index.html） ---------- */
.hub-cards{
  display:flex; flex-direction:column; gap:14px;
  margin-top:8px;
}
.hub-card{
  display:flex; align-items:center; gap:14px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  text-decoration:none;
  color:var(--text);
  min-height:44px;
}
.hub-card .icon{
  width:40px; height:40px; flex:none;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
}
.hub-card:nth-child(1) .icon, .hub-card:nth-child(3) .icon{ box-shadow:0 0 0 1px var(--magenta) inset; color:var(--magenta); }
.hub-card:nth-child(2) .icon{ box-shadow:0 0 0 1px var(--cyan) inset; color:var(--cyan); }
.hub-card .icon svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; }
.hub-card .label{ font-family:var(--display); font-size:16px; letter-spacing:.03em; }
.hub-card .desc{ display:block; font-family:var(--sans); font-size:12px; color:var(--text-dim); margin-top:2px; }

/* ---------- 準備中プレースホルダ ---------- */
.placeholder{
  text-align:center;
  color:var(--text-dim);
  padding:40px 10px;
}

/* ---------- Shops: タブ ---------- */
.tabs{
  display:flex;
  gap:8px;
  margin-bottom:14px;
}
.tab{
  flex:1;
  min-height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text-dim);
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
}
.tab[aria-selected="true"]{
  background:var(--bg-2);
  color:var(--gold);
  border-color:var(--gold);
}

/* ---------- Shops: 検索 ---------- */
.searchbox{
  position:relative;
  margin-bottom:14px;
}
.searchbox input{
  width:100%;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--bg-2);
  color:var(--text);
  font-size:14px;
  font-family:inherit;
}
.searchbox input::placeholder{ color:var(--text-dim); }
.searchbox input:focus{ border-color:var(--cyan); }

/* ---------- Shops: カード一覧 ---------- */
#shop-list{ display:flex; flex-direction:column; gap:10px; }
.shop-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.shop-card-main{ min-width:0; flex:1; }
.shop-card-name{
  font-weight:700;
  font-size:15px;
  word-break:break-word;
}
.shop-card-sub{
  font-size:13px;
  margin:4px 0 8px;
  word-break:break-word;
}
.shop-card-action{ flex:none; align-self:flex-end; }
.ig-btn{ min-height:36px; padding:0 14px; font-size:13px; }
.badge-unconfirmed{
  display:inline-block;
  margin-left:6px;
  font-size:11px;
  font-weight:600;
  color:var(--warn);
  border:1px solid var(--warn);
  border-radius:999px;
  padding:1px 8px;
  vertical-align:middle;
}
#shop-empty{
  text-align:center;
  color:var(--text-dim);
  padding:30px 10px;
}
.shops-notes{
  margin-top:24px;
  font-size:13px;
  color:var(--text-dim);
  line-height:1.7;
}
.shops-notes li{ margin-bottom:4px; }

/* ---------- Map: 地図ビューア ---------- */
.map-viewer{
  position:relative;
  width:100%;
  aspect-ratio:2500/1767;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--bg-2);
  touch-action:none;
  -webkit-user-select:none; user-select:none;
}
.map-viewer-inner{
  position:absolute;
  top:0; left:0;
  width:100%;
  transform-origin:0 0;
  will-change:transform;
}
.map-viewer-inner img{
  width:100%;
  height:auto;
  display:block;
  pointer-events:none;
  -webkit-user-drag:none;
}
.map-hint{
  text-align:center;
  font-size:12px;
  color:var(--text-dim);
  margin:8px 0 0;
}

/* ---------- Map: 凡例 ---------- */
.legend-group{ margin-top:6px; }
.legend-group + .legend-group{ margin-top:8px; }
.legend-list{
  display:flex; flex-wrap:wrap; gap:8px;
  list-style:none; margin:0; padding:0;
}
.legend-item{
  display:inline-flex; align-items:center; gap:6px;
  flex:none;
  white-space:nowrap;
  font-size:12px;
  color:var(--text);
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 10px 5px 6px;
  min-height:28px;
}
.legend-item .dot{
  width:12px; height:12px; border-radius:50%;
  flex:none;
  background:var(--text-dim);
}
.legend-item[data-element="earth"] .dot{ background:var(--earth); }
.legend-item[data-element="water"] .dot{ background:var(--water); }
.legend-item[data-element="air"] .dot{ background:var(--air); }
.legend-item[data-element="fire"] .dot{ background:var(--fire); }
.legend-item[data-element="ether"] .dot{ background:var(--ether); }
.legend-item[data-kind="bar"] .dot{ background:var(--food); }
.legend-item[data-kind="entrance"] .dot{ background:var(--magenta); }
.legend-item[data-kind="info"] .dot{ background:var(--gold); }
.legend-item[data-kind="firstaid"] .dot{ background:#e0473f; }

/* ---------- Map: 会場カード ---------- */
.venue-card .venue-name{ font-weight:700; font-size:15px; }
.venue-card .venue-address{ font-size:13px; margin:4px 0 12px; }

/* ---------- Map: アクセス アコーディオン ---------- */
.access-accordion{ padding:0 14px; }
.access-accordion summary{
  cursor:pointer;
  list-style:none;
  display:flex; align-items:center; justify-content:space-between;
  min-height:52px;
  font-weight:600;
  color:var(--gold-2);
  font-size:14px;
}
.access-accordion summary::-webkit-details-marker{ display:none; }
.access-accordion summary::after{
  content:"+";
  font-size:18px;
  color:var(--text-dim);
  flex:none;
  margin-left:8px;
}
.access-accordion[open] summary::after{ content:"–"; }
.access-body{ padding:0 0 14px; font-size:13px; line-height:1.7; }
.access-body h3{ font-size:13px; color:var(--text-dim); margin:12px 0 4px; font-weight:600; }
.access-body h3:first-child{ margin-top:0; }
.access-table{ width:100%; border-collapse:collapse; font-size:13px; }
.access-table td{ padding:2px 0; }
.access-table td:last-child{ text-align:right; color:var(--text-dim); }
.access-body a{ text-decoration:underline; }
.onsen-item{ margin-bottom:14px; }
.onsen-item:last-child{ margin-bottom:0; }
.onsen-item .onsen-name{ font-weight:700; font-size:14px; }
.onsen-item .onsen-meta{ font-size:12px; color:var(--text-dim); margin:2px 0 8px; }

/* ---------- Timetable: 開催前/終了後バナー ---------- */
.tt-banner{
  text-align:center;
  font-size:14px;
  color:var(--gold-2);
  margin-bottom:14px;
}

/* ---------- Timetable: NOW バー ---------- */
.now-bar{
  margin-bottom:14px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.now-bar-inner{
  display:flex;
  gap:8px;
  width:max-content;
}
.now-card{
  min-width:180px;
  max-width:220px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-left:3px solid var(--text-dim);
  border-radius:var(--radius);
  padding:10px 12px;
}
.now-card[data-element="earth"]{ border-left-color:var(--earth); }
.now-card[data-element="water"]{ border-left-color:var(--water); }
.now-card[data-element="fire"]{ border-left-color:var(--fire); }
.now-card[data-element="air"]{ border-left-color:var(--air); }
.now-card-area{
  font-family:var(--display);
  font-size:11px;
  letter-spacing:.04em;
  color:var(--gold-2);
  margin-bottom:4px;
}
.now-card-cur{ font-size:13px; font-weight:600; line-height:1.4; }
.now-card-next{ font-size:12px; margin-top:2px; }

/* ---------- Timetable: 日付タブ / エリアチップ共通 ---------- */
.tabs-wrap{ flex-wrap:wrap; }
.tab-area{
  flex:none;
  padding:0 14px;
  min-height:36px;
  font-size:12px;
}
.tab-area[data-element="earth"][aria-selected="true"]{ border-color:var(--earth); color:var(--text); }
.tab-area[data-element="water"][aria-selected="true"]{ border-color:var(--water); color:var(--text); }
.tab-area[data-element="fire"][aria-selected="true"]{ border-color:var(--fire); color:var(--text); }
.tab-area[data-element="air"][aria-selected="true"]{ border-color:var(--air); color:var(--text); }

/* ---------- Timetable: タイムライン ---------- */
.timeline{ display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.tt-empty{ text-align:center; padding:30px 10px; }
.tt-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-left:4px solid var(--text-dim);
  border-radius:10px;
  padding:9px 12px;
  min-height:44px;
}
.tt-row[data-element="earth"]{ border-left-color:var(--earth); }
.tt-row[data-element="water"]{ border-left-color:var(--water); }
.tt-row[data-element="fire"]{ border-left-color:var(--fire); }
.tt-row[data-element="air"]{ border-left-color:var(--air); }
.tt-row.is-past{ opacity:.45; }
.tt-row.is-now{
  border-left-color:var(--now);
  box-shadow:0 0 0 1px var(--now), 0 0 12px rgba(63,224,255,.35);
}
@media (prefers-reduced-motion:reduce){
  .tt-row.is-now{ box-shadow:0 0 0 1px var(--now); }
}
.tt-time{
  flex:none;
  width:56px;
  font-size:12px;
  color:var(--text-dim);
  padding-top:2px;
  position:relative;
}
.tt-main{ flex:1; min-width:0; }
.tt-area-tag{
  display:block;
  font-size:10px;
  letter-spacing:.04em;
  color:var(--text-dim);
  margin-bottom:2px;
}
.tt-name{ font-size:14px; font-weight:600; word-break:break-word; }
.tt-type{
  flex:none;
  font-size:11px;
  color:var(--text-dim);
  padding-top:2px;
}
.tt-now-badge{
  display:block;
  margin-top:3px;
  font-size:10px;
  font-weight:700;
  color:var(--now);
  letter-spacing:.05em;
}

/* ---------- KIDS セクション ---------- */
.kids-body{ margin-top:4px; }
.kids-day{ margin-bottom:18px; }
.kids-day h3{ font-size:14px; color:var(--gold-2); margin:0 0 8px; }
.kids-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.kids-list li{
  font-size:13px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
  line-height:1.5;
}
.kids-list li.is-now{ border-color:var(--now); box-shadow:0 0 0 1px var(--now); }
.kids-time{ color:var(--gold-2); margin-right:4px; }
.kids-info{
  margin-top:10px;
  padding:12px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.kids-info h3{ font-size:13px; color:var(--gold-2); margin:0 0 8px; }
.kids-info p{ font-size:12px; line-height:1.7; margin:0 0 6px; }
.kids-info p:last-child{ margin-bottom:0; }

.tt-footer{ text-align:center; font-size:12px; margin-top:14px; }

/* ---------- 現在地・方角（設計図_現在地.md §4） ---------- */

/* §4-1: 現在地 FAB。.map-viewer の中に絶対配置、地図の外側に重ねる */
.locate-fab{
  position:absolute;
  right:10px; bottom:10px;
  z-index:5;
  width:44px; height:44px;
  min-width:44px; min-height:44px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--bg-2);
  color:var(--text-dim);
  display:flex; align-items:center; justify-content:center;
  padding:0;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.locate-fab svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; }
.locate-fab[data-state="follow"]{ color:#0b1013; background:var(--cyan); border-color:var(--cyan); }
.locate-fab[data-state="free"]{ color:var(--cyan); background:var(--bg-2); border-color:var(--cyan); }
.locate-fab[hidden]{ display:none; }
/* OFF のときは目立たせる（2026-09-18: 灰色の丸だけでは気づかれない） */
.locate-fab[data-state="off"]{ color:var(--cyan); border-color:var(--cyan); }
/* FAB の案内ラベル（OFF のときだけ locate.js が表示）。地図の外＝ビューアのすぐ下・右寄せ、矢印が真上の FAB を指す */
.locate-fab-label{
  position:relative;
  display:block;
  margin:9px 0 0 auto;
  min-height:30px;
  padding:0 12px;
  border-radius:15px;
  border:1px solid var(--cyan);
  background:var(--bg-2);
  color:var(--text);
  font:inherit; font-size:12px; font-weight:600; line-height:1.3;
}
.locate-fab-label::after{
  content:""; position:absolute; right:27px; top:-6px;
  width:10px; height:10px;
  background:var(--bg-2);
  border-top:1px solid var(--cyan); border-left:1px solid var(--cyan);
  transform:rotate(45deg);
}
.locate-fab-label[hidden]{ display:none; }

/* §4-3: 許可の求め方シート */
.locate-sheet{
  position:fixed; inset:0; z-index:40;
  display:flex; align-items:flex-end; justify-content:center;
  padding:0 12px calc(12px + env(safe-area-inset-bottom));
  background:rgba(10,7,19,.55);
}
.locate-sheet-card{
  width:100%; max-width:480px;
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
}
.locate-sheet-card p{ font-size:13px; line-height:1.7; margin:0 0 12px; color:var(--text); }
.locate-sheet-card .btn{ width:100%; }
.locate-sheet-card .btn + .btn{ margin:8px 0 0; }

/* §7-1: マーカー用オーバーレイ層（.map-viewer-inner の中 = パン・ズームに自動追従） */
.map-overlay{ position:absolute; inset:0; pointer-events:none; }

/* §4-2: 現在地マーカー */
.geo-marker{ position:absolute; inset:0; pointer-events:none; }
.geo-marker[hidden]{ display:none; }

.geo-accuracy{
  position:absolute;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:rgba(63,224,255,.15);
  border:1px solid rgba(63,224,255,.5);
}
.geo-accuracy[hidden]{ display:none; }

.geo-dot{
  position:absolute;
  width:14px; height:14px;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 0 2px #fff, 0 0 0 8px rgba(63,224,255,.25);
  transform:translate(-50%,-50%);
}
.geo-dot[hidden]{ display:none; }
@media (prefers-reduced-motion:no-preference){
  .geo-dot{ animation:geo-halo 2.2s ease-in-out infinite; }
}
@keyframes geo-halo{
  0%,100%{ box-shadow:0 0 0 2px #fff, 0 0 0 6px rgba(63,224,255,.3); }
  50%{ box-shadow:0 0 0 2px #fff, 0 0 0 12px rgba(63,224,255,.1); }
}

.geo-cone{
  position:absolute;
  width:36px; height:36px;
  transform-origin:50% 100%;
  clip-path:polygon(50% 100%, 20% 0%, 80% 0%);
  background:linear-gradient(to top, rgba(63,224,255,.85), transparent);
}
.geo-cone[hidden]{ display:none; }
.geo-cone.is-lowacc{ opacity:.4; filter:saturate(.5); } /* コンパス精度が低い時（webkitCompassAccuracy>30） */

/* §4-4: 状態チップ（.map-hint の位置） */
.geo-chip{
  display:flex; align-items:center; gap:8px;
  justify-content:center;
  margin:8px 0 0;
  padding:6px 10px;
  border-radius:999px;
  background:var(--bg-2);
  border:1px solid var(--line);
  font-size:12px;
  color:var(--text-dim);
}
.geo-chip[hidden]{ display:none; }
.geo-chip-text{ flex:1; min-width:0; overflow-wrap:break-word; }
.geo-chip-text a{ color:var(--cyan); text-decoration:underline; }
.geo-chip-close{
  flex:none;
  width:24px; height:24px;
  min-width:24px; min-height:24px;
  border-radius:50%;
  border:none;
  background:transparent;
  color:var(--text-dim);
  font-size:14px;
  line-height:1;
  padding:0;
}

/* ---------- キャリブレーションモード（設計図_現在地.md §5、?calib=1 のみ） ---------- */

/* §5-1: 下部固定・半透明パネル。地図は上に出しっぱなしでピンチ/タップ可能なまま */
.calib-panel{
  position:fixed;
  left:0; right:0;
  bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
  z-index:15;
  max-height:44vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  background:rgba(21,14,38,.92);
  backdrop-filter:blur(6px);
  border-top:1px solid var(--line);
  box-sizing:border-box;
}
.calib-panel-inner{
  padding:12px 14px calc(14px + env(safe-area-inset-bottom));
  max-width:560px; margin:0 auto;
  box-sizing:border-box;
}
.calib-panel h2{ font-size:14px; color:var(--gold-2); margin:16px 0 8px; }
.calib-panel h2:first-child{ margin-top:0; }
.calib-source{ font-size:11px; color:var(--text-dim); margin:0 0 10px; }
.calib-row{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:0 0 10px; flex-wrap:wrap;
}
.calib-row .btn{ min-height:40px; padding:0 14px; font-size:13px; }
.calib-manual-form{ display:flex; flex-direction:column; gap:8px; margin:0 0 10px; }
.calib-manual-form input{
  min-height:40px; box-sizing:border-box; width:100%;
  border-radius:10px; border:1px solid var(--line);
  background:var(--bg); color:var(--text); padding:0 12px; font-size:14px;
}
.calib-hint{ font-size:12px; color:var(--text-dim); margin:0 0 10px; }
.calib-point-row{ align-items:flex-start; border-top:1px solid var(--line); padding-top:10px; }
.calib-point-info{ display:flex; flex-direction:column; gap:2px; font-size:12px; }
.calib-point-actions{ display:flex; gap:6px; flex:none; }
.calib-point-actions button{
  min-width:40px; min-height:40px;
  border-radius:10px; border:1px solid var(--line);
  background:var(--bg-2); color:var(--text);
  font-size:16px;
}
.calib-fit{ font-size:12px; line-height:1.7; margin:0 0 10px; }
.calib-toggle{ display:flex; align-items:center; gap:8px; font-size:13px; min-height:44px; }
.calib-json{
  width:100%; box-sizing:border-box;
  min-height:100px;
  background:var(--bg); color:var(--text-dim);
  border:1px solid var(--line); border-radius:10px;
  font-family:var(--mono); font-size:11px;
  padding:8px;
}
.calib-warn{ color:var(--warn); }

/* §5-1: 地図上の番号ピン（#map-overlay の中、pointer-events:auto。長押し→ドラッグでu,v調整） */
.calib-pin{
  position:absolute;
  transform:translate(-50%,-50%);
  width:22px; height:22px;
  border-radius:50%;
  background:var(--magenta);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700;
  border:2px solid #fff;
  pointer-events:auto;
  touch-action:none;
  cursor:grab;
  box-shadow:0 1px 4px rgba(0,0,0,.4);
}
.calib-pin-num{ pointer-events:none; }

/* ---------- お知らせ（設計図_お知らせ.md §2-3） ---------- */
.notice-bar{ margin:0 0 14px; }
.notice{
  border-radius:var(--radius);
  padding:12px 14px;
  border:1px solid;
  background:var(--bg-2);
  margin-bottom:8px;
}
.notice-urgent{ border-color:var(--fire); background:rgba(193,68,28,.18); }
.notice-warn{ border-color:var(--warn); background:rgba(255,204,102,.12); }
.notice-info{ border-color:var(--cyan); background:rgba(63,224,255,.10); }
.notice-title{ font-weight:700; }
.notice-body{ margin-top:4px; }
.notice-meta{ margin-top:4px; color:var(--text-dim); font-size:.85em; }
.notice-link{ display:inline-block; margin-top:6px; }
