:root {
  --sky: #eaf6ff;
  --ice: #f8fcff;
  --ink: #163047;
  --line: #b7d1e7;
  --aqua: #2fa8c9;
  --navy: #245175;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf7ff, #f7fcff),
    var(--sky);
}
a { color: inherit; text-decoration: none; }

.rim {
  position: sticky;
  top: 0;
  z-index: 48;
  background: rgba(248, 252, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.rim-in {
  width: min(1340px, 97vw);
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.sigil {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Fjalla One", sans-serif;
  letter-spacing: 0.03em;
}
.sigil img { width: 42px; height: 42px; }
.pulldown {
  justify-self: end;
  display: none;
  border: 1px solid #7fa8c6;
  background: #ffffff;
  border-radius: 7px;
  padding: 8px 11px;
  font-weight: 700;
}
.trail {
  justify-self: end;
  display: flex;
  gap: 8px;
}
.trail a {
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 8px 11px;
  font-size: 0.9rem;
  font-weight: 700;
}
.trail a.hit,
.trail a:hover {
  border-color: var(--aqua);
  background: #e3f6fc;
}

.band {
  width: min(1340px, 97vw);
  margin: 22px auto 70px;
  display: grid;
  gap: 16px;
}
.headerfield {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ice);
  padding: clamp(20px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}
.headerfield h1 {
  margin: 0;
  font-family: "Fjalla One", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--navy);
}
.bannerlist {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.bannerlist div {
  border-left: 5px solid #5ca6cd;
  background: #ecf8ff;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
}
.sidepanel {
  border: 1px solid #a8cae2;
  border-radius: 14px;
  background: #f3fbff;
  padding: 16px;
}
.sidepanel h2 {
  margin: 0 0 8px;
  font-family: "Fjalla One", sans-serif;
  font-size: 1.12rem;
  color: var(--aqua);
}

.stagewrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}
.stagewrap header {
  padding: 12px 16px;
  background: #f1fbff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.stagewrap h2 {
  margin: 0;
  font-family: "Fjalla One", sans-serif;
  font-size: 1rem;
}
.stagewrap iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  display: block;
}

.gridline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gridline article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fdff;
  padding: 13px;
}
.gridline h3 {
  margin: 0 0 6px;
  font-family: "Fjalla One", sans-serif;
  font-size: 0.95rem;
  color: var(--aqua);
}

.sheetbox {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: clamp(18px, 3vw, 34px);
}
.sheetbox h1 {
  margin-top: 0;
  font-family: "Fjalla One", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  color: var(--navy);
}
.sheetbox h2 {
  margin: 14px 0 6px;
  color: var(--aqua);
  font-size: 1.03rem;
}

.footedge {
  border-top: 1px solid var(--line);
  background: #f0f8ff;
}
.footedge-in {
  width: min(1340px, 97vw);
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footedge nav { display: flex; flex-wrap: wrap; gap: 12px; }

.agecover {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: none;
  place-items: center;
  background: rgba(19, 45, 67, 0.72);
  padding: 12px;
}
.agecover.show { display: grid; }
.ageframe {
  width: min(500px, 95vw);
  border: 1px solid #6496b8;
  border-radius: 12px;
  background: #f7fdff;
  padding: 20px;
}
.ageframe h2 {
  margin: 0 0 8px;
  font-family: "Fjalla One", sans-serif;
  color: var(--navy);
}
.agebtns { margin-top: 14px; display: flex; gap: 10px; }
.agebtns button {
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 700;
}
.agego { background: var(--aqua); color: #f4fcff; }
.ageno { background: #f07f86; color: #3a1318; }

@media (max-width: 980px) {
  .headerfield { grid-template-columns: 1fr; }
  .gridline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pulldown { display: inline-flex; }
  .trail {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    padding-bottom: 10px;
  }
  .trail.open { display: flex; }
  .trail a { border: 1px solid #aecce2; border-radius: 8px; }
  .gridline { grid-template-columns: 1fr; }
}