/* 「世界の攻撃と日本」（attack-globe.html）だけの見た目（2026-10-24 ブルー）。
   色・角丸・余白は style.css / pages.css の変数と同じものを使い、サイトの他のページとそろえる。
   Stitch は内蔵ブラウザで Google のログインが要り開けなかったため、既存ページ（ai-flow.html など）の型に合わせた。 */

/* ---------- 一番上: 文と地球 ---------- */
.ag-hero {
  min-height: 0;
  padding: 150px 7vw 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}
.ag-hero .hero-inner { max-width: 620px; }
.ag-hero h1 { font-size: clamp(40px, 5.6vw, 84px); }
.ag-hero .hero-copy { margin: 28px 0; }

.ag-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  max-width: 640px;
  justify-self: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #10141f 0%, #050608 70%);
  border: 1px solid #22252c;
}
.ag-globe {
  position: absolute;
  inset: 0;
  /* 縦のスワイプはページのスクロールに渡す（地球は横のドラッグで回す） */
  touch-action: pan-y;
}
.ag-globe canvas { display: block; outline: none; }
.ag-globe-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8c8c94;
  font-size: 13px;
  padding: 24px;
  text-align: center;
}
.ag-globe-wait::before {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2b4a7a, #0b1424 70%);
  box-shadow: 0 0 80px rgba(120, 170, 255, .18);
}
.ag-globe-wait span { position: relative; }
.ag-globe.is-ready .ag-globe-wait { display: none; }

/* 図の上に必ず出す断り書き（国ごとの割合やリアルタイムの攻撃に見せない） */
.ag-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(10, 10, 12, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e8e8ec;
  font-size: 12.5px;
  line-height: 1.6;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ag-caption b { color: var(--accent); font-weight: 800; }
.ag-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 12, .7);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #cfcfd6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  pointer-events: none;
}
.ag-credit {
  margin: 10px 0 0;
  color: #77777f;
  font-size: 11px;
  line-height: 1.6;
}

/* ---------- 数字 ---------- */
.ag-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ag-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ag-stat .ag-stat-who {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .04em;
}
.ag-stat .ag-stat-num {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.ag-stat-num small { font-size: .36em; letter-spacing: 0; font-weight: 800; margin-left: 4px; }
.ag-stat h3 { margin: 0; font-size: 16px; line-height: 1.55; }
.ag-stat p { margin: 0; font-size: 14px; color: #44444b; }
.ag-src {
  margin-top: auto !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px !important;
  color: var(--muted) !important;
  overflow-wrap: anywhere;
}
.ag-src a { text-decoration: underline; text-underline-offset: 3px; }
.ag-up { color: #b42318; font-weight: 800; }

.ag-note {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: 18px;
  background: #fffbea;
  border: 1px solid #f1e3a6;
  font-size: 14px;
}
.ag-note p { margin: 0 0 8px; }
.ag-note p:last-child { margin: 0; }
.ag-note q { font-weight: 700; }

/* ---------- 最近の主な被害 ---------- */
.ag-incidents {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ag-inc {
  background: #121216;
  border: 1px solid #26262c;
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ag-inc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ag-inc time { color: #a3a3ab; font-size: 13px; font-weight: 700; }
.ag-kind {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(166, 255, 0, .12);
  color: var(--accent);
  border: 1px solid rgba(166, 255, 0, .3);
}
.ag-inc h3 { margin: 0; font-size: 19px; line-height: 1.45; color: #fff; }
.ag-inc ul { margin: 0; padding-left: 1.2em; color: #c9c9d0; font-size: 14px; }
.ag-inc li { margin: 3px 0; }
.ag-inc .ag-src { border-top-color: #2a2a31; color: #8c8c94 !important; }
.ag-inc .ag-src a { color: #d8d8de; }
.ag-disclaimer { margin-top: 26px; color: #9a9aa2; font-size: 13px; }

/* ---------- 個人の PC でできること ---------- */
.ag-tips { counter-reset: tip; }
.ag-tips .pg-light-card h3::before {
  counter-increment: tip;
  content: counter(tip, decimal-leading-zero);
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.ag-more { margin-top: 28px; }
.ag-tips .pg-light-card a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .ag-hero { grid-template-columns: 1fr; padding-top: 130px; }
  .ag-figure { max-width: 560px; }
  .ag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ag-hero { padding: 110px 16px 56px; gap: 28px; }
  .ag-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .ag-stats, .ag-incidents { grid-template-columns: 1fr; }
  .ag-stat, .ag-inc { padding: 22px 18px; }
  /* スマホは図を縦長にして、断り書きが地球に重なりすぎないようにする */
  .ag-figure { aspect-ratio: 4 / 5; }
  .ag-caption { font-size: 11.5px; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; }
}
