
.g3 {
  --g3-bg: #0c1a2e;
  --g3-line: rgba(255, 255, 255, .12);
  --g3-text: #b8c4d4;
  --g3-muted: #8a9bb3;   
  --g3-white: #fff;
  --g3-lime: #ccff00;
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(56px, 5vw + 24px, 104px);
  background: var(--g3-bg); color: var(--g3-text); font-family: var(--font, "Montserrat", system-ui, sans-serif);
}
.g3 :focus-visible { outline: 3px solid var(--g3-lime); outline-offset: 3px; }


.g3-grid {
  display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.15fr); grid-template-areas: "copy stage" "list stage";
  column-gap: clamp(28px, 4vw, 64px); row-gap: 0; align-items: center;
}
.g3-copy { grid-area: copy; min-width: 0; align-self: end; }
.g3-list { grid-area: list; align-self: start; }
.g3-stage { grid-area: stage; min-width: 0; }

.g3-copy h2 { margin: 0; color: var(--g3-white); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; }
.g3-lead { margin: 14px 0 0; max-width: 46ch; font-size: 1.08rem; line-height: 1.55; }


.g3-list { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--g3-line); }
.g3-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px; margin-inline: -12px; border-bottom: 1px solid var(--g3-line); border-radius: 8px; transition: background-color .18s ease;
}
.g3-row::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--g3-lime); opacity: 0; transition: opacity .18s ease; }
.g3-row.is-active { background: rgba(255, 255, 255, .05); }
.g3-row.is-active::after { opacity: 1; }
.g3-flag { position: relative; width: 34px; height: 34px; flex: none; }
.g3-flag img { display: block; width: 34px; height: 34px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); image-rendering: auto; }
.g3-flag-jp { display: block; width: 34px; height: 34px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); position: relative; filter: grayscale(.5) opacity(.8); }
.g3-flag-jp::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; background: #bc002d; }
.g3-status { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border: 2px solid var(--g3-bg); background: var(--g3-lime); }   
.g3-status--soon { background: var(--g3-bg); box-shadow: inset 0 0 0 2px var(--g3-muted); }
.g3-row-text { min-width: 0; line-height: 1.3; }
.g3-row-text b { display: block; color: var(--g3-white); font-weight: 700; font-size: 1.02rem; }
.g3-row-text small { display: block; margin-top: 2px; color: var(--g3-muted); font-size: .84rem; }
.g3-on { color: var(--g3-lime); font-weight: 600; }
.g3-soon-text { color: var(--g3-text); font-weight: 600; }
.g3-region { display: block; margin-top: 3px; color: var(--g3-text); font-size: .8rem; font-style: normal; }
.g3-links { display: flex; gap: 8px; flex: none; }
.g3-links a, .g3-soon {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .22); color: var(--g3-white); font-size: .86rem; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.g3-links a:hover { background: var(--g3-lime); color: var(--g3-bg); border-color: var(--g3-lime); }
.g3-soon { color: var(--g3-muted); border-style: dashed; }
.g3-row--soon .g3-row-text b { color: var(--g3-text); }
@media (pointer: coarse) { .g3-links a, .g3-soon { min-height: 44px; } }


.g3-view {
  position: relative; width: min(100%, 640px); aspect-ratio: 1 / 1; margin: 0 auto; min-height: 320px;
  touch-action: pan-y;             
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.g3-view.is-live { cursor: grab; }
.g3-view.is-dragging { cursor: grabbing; }
.g3-img, .g3-canvas, .g3-leaders, .g3-labels { position: absolute; inset: 0; width: 100%; height: 100%; }
.g3-img { display: block; object-fit: contain; }
.g3-img[hidden], .g3-canvas[hidden], .g3-leaders[hidden], .g3-labels[hidden] { display: none; }
.g3-canvas { display: block; }
.g3-leaders, .g3-labels { pointer-events: none; overflow: visible; }
.g3-leaders line { stroke: rgba(204, 255, 0, .7); stroke-width: 1.5; }
.g3-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 5px 9px; border-radius: 4px;
  background: rgba(12, 26, 46, .86); border: 1px solid rgba(204, 255, 0, .35); color: var(--g3-white);
  font-size: .78rem; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: .01em; box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  will-change: transform, opacity; transition: opacity .25s ease;
}
.g3-label small { margin-left: 5px; color: var(--g3-text); font-weight: 600; font-size: .68rem; }
.g3-label.is-active { background: var(--g3-lime); color: var(--g3-bg); border-color: var(--g3-lime); }
.g3-label.is-active small { color: #3a4a00; }
.g3-label.is-back { opacity: 0; }



@media (max-width: 980px) {
  .g3-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "list"; row-gap: 28px; }
  .g3-copy { align-self: auto; }
  .g3-view { width: min(100%, 560px); }
  .g3-list { margin-top: 0; }
}
@media (max-width: 640px) {
  .g3 { padding-block: 48px; }
  .g3-view { width: 100%; min-height: 0; }
  .g3-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
  .g3-links { grid-column: 2; }
  .g3-lead { font-size: 1rem; }
  .g3-label { font-size: .72rem; padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .g3-row, .g3-row::after, .g3-links a, .g3-label { transition: none; }
}
