:root {
  color-scheme: dark;
  --bg: #101512;
  --panel: #181e18;
  --ink: #ede9da;
  --muted: #a4aa99;
  --gold: #dbb66c;
  --line: #343d2e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
body > header {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 5%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
}
.brand small {
  display: block;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 6px;
}
.crest {
  font-size: 34px;
  color: var(--gold);
}
nav {
  display: flex;
  gap: 28px;
  margin: auto;
  font-size: 14px;
}
nav a {
  padding: 35px 0 29px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
}
nav a[aria-current] {
  color: var(--gold);
  border-color: var(--gold);
}
.version {
  font-size: 12px;
  color: var(--muted);
}
.version i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #a9c58c;
  border-radius: 50%;
  margin-right: 8px;
}
.local-notice {
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  background: #20251a;
  color: #c1b78f;
  padding: 8px 5%;
}
.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  padding: 65px 7%;
  gap: 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 75% 30%, #3b4d3e66, transparent 60%), #111b17;
}
.hero-copy,
.mission {
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.6px;
  color: var(--gold);
  line-height: 1.8;
}
.hero-kicker {
  font-size: 15px;
  color: #c9c7b7;
  margin-top: 28px;
}
h1 {
  font-size: clamp(38px, 4.6vw, 67px);
  line-height: 1.25;
  letter-spacing: -2px;
  margin: 18px 0 24px;
}
h1 span {
  color: var(--gold);
}
.lead {
  font-size: 16px;
  line-height: 2;
  color: #b8c0ae;
}
.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--gold);
  color: #191b13;
  border: 1px solid var(--gold);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  min-height: 46px;
}
.primary:hover {
  background: #edcf92;
}
.secondary {
  padding: 14px 0;
  color: var(--ink);
  font-size: 14px;
}
.hero-foot {
  display: flex;
  gap: 35px;
  margin-top: 44px;
  font-size: 10px;
  color: var(--muted);
}
.hero-foot strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
  font-weight: 500;
}
.mission {
  align-self: end;
  margin-bottom: 25px;
  border: 1px solid #70745466;
  background: #101a17d9;
  padding: 30px;
  max-width: 340px;
  justify-self: end;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.mission h2 {
  font-size: 28px;
  line-height: 1.55;
  margin: 18px 0;
}
.mission p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.mission a {
  font-size: 13px;
  color: var(--gold);
  display: block;
  margin-top: 26px;
}
.seal {
  position: absolute;
  right: 10px;
  top: 30px;
  font-family: Georgia, serif;
  font-size: 125px;
  color: #eacb8110;
  pointer-events: none;
}
.landscape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.moon {
  position: absolute;
  right: 15%;
  top: 10%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #b2b99644,
    #717d5b11 65%,
    transparent
  );
  box-shadow: 0 0 100px #94a77e15;
}
.mountain {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 85%;
  height: 80%;
  clip-path: polygon(
    0 100%,
    14% 48%,
    23% 65%,
    40% 12%,
    51% 46%,
    63% 28%,
    78% 60%,
    88% 39%,
    100% 65%,
    100% 100%
  );
  background: #34463744;
}
.mountain.front {
  height: 55%;
  width: 65%;
  background: #0c1715b0;
  transform: scaleX(-1);
}
.citadel {
  position: absolute;
  right: 22%;
  bottom: 12%;
  height: 230px;
  display: flex;
  align-items: end;
  gap: 12px;
  opacity: 0.4;
}
.citadel b {
  display: block;
  width: 32px;
  height: 150px;
  background: #070f0e;
  clip-path: polygon(
    0 15%,
    20% 15%,
    20% 5%,
    45% 5%,
    50% 0,
    55% 5%,
    80% 5%,
    80% 15%,
    100% 15%,
    100% 100%,
    0 100%
  );
}
.citadel b:nth-child(2) {
  height: 230px;
  width: 50px;
}
.embers {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  right: 30%;
  top: 50%;
  box-shadow:
    60px -120px #cfa65a,
    120px 90px #b49b5f,
    -80px 180px #ad975f,
    180px -30px #b59c6b;
  opacity: 0.3;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift {
  50% {
    transform: translateY(-30px);
    opacity: 0.7;
  }
}
.stats {
  margin: 0 7%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stats article {
  padding: 30px 25px;
  border-right: 1px solid var(--line);
}
.stats article:first-child {
  padding-left: 0;
}
.stats article:last-child {
  border: 0;
}
.stats span,
.stats small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  margin: 12px 0;
  color: var(--gold);
}
.stats .word {
  font-family: inherit;
  font-size: 29px;
  margin: 20px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 64px 7% 26px;
}
.section-heading h2 {
  font-size: 30px;
  margin: 10px 0 0;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.prep-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  margin: 0 7%;
}
.panel {
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--panel);
}
.panel h3 {
  font-size: 21px;
  margin: 16px 0 25px;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}
.checklist input {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  flex: none;
}
.progress-track {
  height: 5px;
  background: #343a2b;
  margin-top: 30px;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.3s;
}
.checklist > p {
  font-size: 12px;
  color: var(--muted);
}
.route ol {
  padding: 0;
  list-style: none;
  margin: 0;
}
.route li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  position: relative;
}
.route li > span {
  font:
    16px Georgia,
    serif;
  color: var(--gold);
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
}
.route strong {
  font-size: 15px;
}
.route p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 8px 0;
}
.route em {
  margin-left: auto;
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}
.principles {
  margin: 0 7% 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.principles article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.principles span {
  font:
    30px Georgia,
    serif;
  color: var(--gold);
}
.principles h3 {
  font-size: 18px;
}
.principles p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
footer p {
  font: 10px monospace;
  letter-spacing: 2px;
  color: var(--gold);
}
footer small {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.inner-page {
  min-height: 65vh;
  padding-bottom: 70px;
}
.inner-page h1 {
  font-size: 38px;
  margin-bottom: 12px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 7%;
}
.filter-row button {
  padding: 10px 18px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.filter-row button[aria-pressed="true"] {
  background: var(--gold);
  color: #171b13;
}
.role-summary {
  margin: 0 7% 24px;
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.member-grid,
.event-grid {
  margin: 0 7%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--panel);
  border-radius: 5px;
  min-width: 0;
}
.card h3 {
  font-size: 20px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tag {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 5px 10px;
  display: inline-block;
}
.quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed #566049;
  text-align: center;
  padding: 65px 24px;
  background: radial-gradient(ellipse, #252d2066, transparent);
}
.empty strong {
  font-size: 22px;
  display: block;
  margin-bottom: 14px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.empty .empty-icon {
  display: block;
  font:
    48px Georgia,
    serif;
  color: var(--gold);
  margin-bottom: 20px;
}
.callout {
  margin: 0 7% 26px;
  padding: 22px;
  border-left: 3px solid var(--gold);
  background: var(--panel);
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.callout strong {
  color: var(--ink);
}
.timeline {
  margin: 0 7%;
  display: grid;
  gap: 18px;
}
.timeline .card {
  border-left: 3px solid var(--gold);
}
.timeline time {
  font: 12px monospace;
  color: var(--gold);
}
dialog {
  width: min(520px, calc(100% - 32px));
  background: #192019;
  color: var(--ink);
  border: 1px solid #5c6246;
  border-radius: 8px;
  padding: 28px;
  max-height: 90svh;
}
dialog::backdrop {
  background: #020806cc;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 22px;
  margin: 0 0 20px;
}
.dialog-heading button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 30px;
  align-self: start;
}
form label {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--muted);
}
input,
select,
textarea {
  color: var(--ink);
  background: #101710;
  border: 1px solid #4a533d;
  border-radius: 4px;
  padding: 12px;
  min-width: 0;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.hint {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 14px 22px;
  background: var(--gold);
  color: #11180e;
  border-radius: 5px;
  z-index: 10;
  font-size: 14px;
  box-shadow: 0 5px 30px #0008;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--gold);
  color: #111;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
@media (max-width: 1050px) {
  .hero {
    gap: 25px;
    padding: 50px 6%;
  }
  .hero h1 {
    font-size: 46px;
  }
  .mission {
    padding: 24px;
  }
  .version {
    display: none;
  }
  body > header {
    gap: 25px;
  }
  nav {
    gap: 20px;
  }
  .member-grid,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  body > header {
    height: auto;
    display: block;
    padding: 18px 6% 0;
  }
  .brand {
    font-size: 18px;
  }
  nav {
    margin: 12px 0 0;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }
  nav a {
    padding: 14px 0;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 42px 6%;
    gap: 34px;
    min-height: 0;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1px;
  }
  .mission {
    justify-self: stretch;
    max-width: none;
    margin: 0;
  }
  .mission h2 {
    font-size: 24px;
  }
  .hero-foot {
    gap: 18px;
    justify-content: space-between;
  }
  .hero-foot strong {
    font-size: 11px;
  }
  .lead {
    font-size: 14px;
  }
  .actions {
    gap: 20px;
    flex-wrap: wrap;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 6%;
  }
  .stats article {
    padding: 24px 14px;
    border-bottom: 1px solid var(--line);
  }
  .stats article:nth-child(2) {
    border-right: 0;
  }
  .stats article:nth-child(3) {
    padding-left: 0;
  }
  .stats article:last-child {
    border-bottom: 1px solid var(--line);
  }
  .stats small {
    font-size: 10px;
  }
  .section-heading {
    margin: 40px 6% 22px;
    display: block;
  }
  .section-heading .primary {
    margin-top: 14px;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .prep-grid,
  .principles {
    grid-template-columns: 1fr;
    margin-inline: 6%;
  }
  .panel {
    padding: 23px;
  }
  .principles {
    gap: 22px;
  }
  .route em {
    font-size: 9px;
  }
  .route li {
    gap: 12px;
  }
  .member-grid,
  .event-grid {
    grid-template-columns: 1fr;
    margin-inline: 6%;
  }
  .inner-page h1 {
    font-size: 32px;
  }
  .role-summary {
    gap: 14px;
    flex-wrap: wrap;
  }
  footer {
    display: grid;
    gap: 12px;
    padding: 26px 6%;
  }
  footer p {
    margin: 0;
  }
  .local-notice {
    text-align: left;
    font-size: 10px;
  }
  .callout,
  .timeline {
    margin-inline: 6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.launch-gate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 64px 28px;
  border: 1px solid #897243;
  background:
    radial-gradient(ellipse at 50% 45%, #18535255, transparent 65%),
    linear-gradient(130deg, #111e20, #101815 55%, #252015);
  text-align: center;
  box-shadow:
    inset 0 0 70px #0008,
    0 24px 80px #0003;
}
.launch-gate:before,
.launch-gate:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #efd08d, transparent);
  top: 12px;
}
.launch-gate:after {
  top: auto;
  bottom: 12px;
}
.launch-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: auto;
}
.launch-gate h2 {
  font-size: clamp(28px, 4.3vw, 52px);
  line-height: 1.4;
  margin: 16px 0;
}
.launch-gate h2 span {
  color: #efd08d;
}
.launch-subtitle {
  color: #c8d7cd;
  letter-spacing: 3px;
}
.gate-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  border: 1px solid #c7a56030;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.gate-orbit i {
  position: absolute;
  inset: 25px;
  border: 2px dashed #d6bc7630;
  border-radius: 50%;
  animation: rune-spin 95s linear infinite;
}
.gate-orbit i:after {
  content: "✦";
  position: absolute;
  top: -22px;
  color: #e9cf83;
  font-size: 34px;
  text-shadow: 0 0 26px #f8d06a;
}
.gate-orbit b {
  position: absolute;
  inset: 100px;
  display: grid;
  place-items: center;
  font-size: 260px;
  color: #c4b67108;
  animation: rune-spin 120s linear infinite reverse;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 690px;
  margin: 30px auto 20px;
}
.countdown > div {
  position: relative;
  border: 1px solid #a68c505e;
  background: linear-gradient(#263c36ec, #0c1616f5);
  padding: 20px 8px 16px;
  box-shadow:
    inset 0 1px #f8e5a944,
    0 12px 30px #0006;
}
.countdown > div:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #cfb87a20;
}
.countdown strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(40px, 7vw, 84px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: #ffe2a0;
  text-shadow: 0 0 28px #eac35d40;
}
.countdown span {
  display: block;
  color: #b8c8bd;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 12px;
}
.launch-gate .actions {
  justify-content: center;
  flex-wrap: wrap;
}
.launch-gate button.secondary {
  cursor: pointer;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 16px 22px;
}
.launch-source {
  font-size: 12px;
  line-height: 1.9;
  color: #a4aa99;
  max-width: 650px;
  margin: 25px auto 0;
}
.launch-source a,
.brief-grid a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 5px;
}
#launch-status {
  font-size: 13px;
  color: #c2c8ba;
}
.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 45px;
}
.brief-grid p {
  color: var(--muted);
  line-height: 1.95;
  font-size: 14px;
}
.brief-grid a {
  font-size: 13px;
}
.brief-grid h3 {
  line-height: 1.5;
}
@keyframes rune-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .launch-gate {
    padding: 40px 16px;
  }
  .countdown {
    gap: 7px;
  }
  .countdown span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .countdown > div {
    padding: 16px 4px;
  }
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .launch-subtitle {
    letter-spacing: 1px;
    font-size: 13px;
  }
  .gate-orbit {
    width: 460px;
    height: 460px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gate-orbit i,
  .gate-orbit b {
    animation: none;
  }
}
/* 背景は装飾として扱い、文字のコントラストを維持する。 */
.launch-gate {
  margin-bottom: 0;
  min-height: 690px;
  display: grid;
  place-items: center;
  background: #0c1718;
  padding: 55px 28px;
  border-left: 0;
  border-right: 0;
}
.portal-art {
  position: absolute;
  inset: -3%;
  z-index: -3;
  background: url("assets/portal-expedition.png") center 54% / cover no-repeat;
  animation: portal-breathe 24s ease-in-out infinite alternate;
  will-change: transform;
}
.launch-gate:before {
  inset: 0;
  height: auto;
  background:
    linear-gradient(90deg, #06131035, #06131099 35%, #06131099 65%, #06131035),
    linear-gradient(0deg, #0b1514, transparent 30%, #0b151422);
  z-index: -2;
}
.launch-gate:after {
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, #d4b56a, transparent);
}
.portal-mist {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 75%, #5fc6be22, transparent 50%),
    radial-gradient(ellipse at 80% 65%, #e7ae5222, transparent 40%);
  animation: mist-flow 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.portal-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, #ffe4a8 1px, transparent 2px),
    radial-gradient(circle, #91e1db 1px, transparent 2px);
  background-size:
    179px 223px,
    287px 197px;
  opacity: 0.45;
  mask-image: linear-gradient(transparent, #000 40%, #000);
  animation: sparks-rise 22s linear infinite;
}
.launch-gate .launch-content {
  text-shadow: 0 2px 18px #000;
}
.launch-gate .eyebrow {
  color: #fae1a1;
}
.launch-gate .countdown > div {
  backdrop-filter: blur(7px);
  background: linear-gradient(#17332edb, #071211ee);
}
.hero {
  min-height: 530px;
  background:
    linear-gradient(90deg, #08120fed, #08120f9c),
    url("assets/portal-expedition.png") center 88% / cover no-repeat;
}
.hero .landscape {
  opacity: 0.25;
}
.mission {
  backdrop-filter: blur(8px);
  background: #111b17b8;
}
.brief-grid .panel {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.brief-grid .panel:before {
  content: "";
  display: block;
  height: 125px;
  margin: -1px -1px 24px;
  background:
    linear-gradient(0deg, #181e18, transparent),
    url("assets/portal-expedition.png") 12% 45%/230% auto;
  opacity: 0.95;
}
.brief-grid .panel:nth-child(2):before {
  background-position: 55% 90%;
}
.brief-grid .panel:nth-child(3):before {
  background-position: 95% 40%;
}
.brief-grid .panel:hover {
  transform: translateY(-5px);
  border-color: #ab8c4d;
}
@keyframes portal-breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}
@keyframes mist-flow {
  from {
    transform: translateX(-3%);
    opacity: 0.4;
  }
  to {
    transform: translateX(3%);
    opacity: 1;
  }
}
@keyframes sparks-rise {
  from {
    background-position:
      0 220px,
      0 190px;
  }
  to {
    background-position:
      60px -223px,
      -40px -197px;
  }
}
@media (max-width: 700px) {
  .launch-gate {
    min-height: 650px;
    padding: 34px 16px;
  }
  .portal-art {
    background-position: 65% center;
    animation: none;
  }
  .launch-gate h2 {
    font-size: 28px;
  }
  .hero {
    min-height: auto;
  }
  .brief-grid .panel:before {
    height: 150px;
  }
  .launch-source {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-art,
  .portal-mist,
  .portal-sparks {
    animation: none;
    will-change: auto;
  }
  .brief-grid .panel {
    transition: none;
  }
  .brief-grid .panel:hover {
    transform: none;
  }
}
.account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 20px;
}
.account-bar p {
  margin: 0;
  line-height: 1.7;
}
.account-bar .card-actions {
  flex-wrap: wrap;
}
.form-error {
  color: #ffb3a6;
  line-height: 1.7;
}
#roster-status {
  color: var(--muted);
  font-size: 13px;
}
#roster-more {
  margin-top: 24px;
}
#member-list .quiet {
  margin-right: 10px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
#recovery-output {
  min-height: 150px;
  overflow-wrap: anywhere;
}
#recovery-dialog {
  max-width: 550px;
  padding: 30px;
}
#recovery-dialog p {
  line-height: 1.8;
}
@media (max-width: 700px) {
  .account-bar {
    display: block;
  }
  .account-bar .card-actions {
    margin-top: 16px;
  }
}
.registration-board {
  position: relative;
  overflow: hidden;
  border: 1px solid #b39452;
  border-radius: 8px;
  margin: 0 0 32px;
  padding: 28px;
  background:
    radial-gradient(ellipse at 100% 0, #9d783029, transparent 60%),
    linear-gradient(135deg, #22291d, #121c19);
  box-shadow: 0 14px 44px #0003;
}
.registration-board:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #9c762e, #ffe4a1, #9c762e);
}
.registration-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.registration-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #f4d48b;
  margin: 8px 0 12px;
}
.registration-heading p {
  color: #bfc7b6;
  line-height: 1.8;
}
.registration-public {
  white-space: nowrap;
  border: 1px solid #8c7544;
  color: #f4d48b;
  padding: 9px 15px;
  border-radius: 30px;
  font-size: 12px;
}
.registration-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.registration-entry {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #6c653744;
}
.registration-entry:first-child {
  background: linear-gradient(90deg, #b78c1c17, transparent);
  padding-left: 12px;
  border-left: 3px solid #d8b46a;
}
.arrival-icon {
  font-size: 24px;
  color: #e9c779;
  text-shadow: 0 0 16px #e3b54766;
}
.arrival-title {
  margin: 0 0 8px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.arrival-title strong {
  color: #f3d694;
}
.arrival-details,
.arrival-time {
  color: #b4bcae;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.registration-note,
#registration-status {
  font-size: 12px;
  color: #afb7a4;
  line-height: 1.9;
}
.registration-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.registration-entry .tag {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .registration-board {
    padding: 20px 16px;
  }
  .registration-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .registration-entry {
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }
  .arrival-time {
    grid-column: 2;
  }
  .registration-public {
    margin: 0 0 12px;
  }
  .registration-entry:first-child {
    padding-left: 8px;
  }
}

/* 公開統計とランキングのレスポンシブ表示 */
.insights-page {
  padding-bottom: 4rem;
}
.insights-page > :not(.section-heading) {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.insight-toolbar {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  background: #18231b;
  border: 1px solid #45513a;
  border-radius: 12px;
}
.insight-toolbar label {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}
.ranking-switch {
  display: flex;
  gap: 8px;
}
.ranking-switch button {
  padding: 12px 20px;
  background: #101a14;
  border: 1px solid #596443;
  color: #eee6cb;
  border-radius: 8px;
  cursor: pointer;
}
.ranking-switch button[aria-pressed="true"] {
  background: #d9b96c;
  color: #191e13;
  box-shadow: 0 0 24px #d9b96c22;
}
.insights-status {
  padding: 12px 4px;
  color: #b9c7ad;
  font-size: 0.85rem;
}
.podium-grid,
.kpi-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}
.podium-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.podium-card {
  padding: 28px;
  border: 1px solid #6e6038;
  border-radius: 12px;
  background: linear-gradient(140deg, #303325, #142018);
  overflow-wrap: anywhere;
}
.podium-card:first-child {
  border-color: #d9b96c;
  background: linear-gradient(140deg, #443c25, #19261b);
}
.podium-value {
  display: block;
  font-size: 2.2rem;
  color: #e8c777;
}
.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi-card {
  padding: 24px;
  border: 1px solid #3f503e;
  border-radius: 12px;
  background: #19241b;
}
.kpi-card strong {
  display: block;
  color: #e8c777;
  font-size: 2.7rem;
  font-variant-numeric: tabular-nums;
}
.kpi-card small {
  color: #bac7b0;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.chart-card {
  padding: 28px;
  border: 1px solid #3d4d39;
  border-radius: 12px;
  background: linear-gradient(145deg, #1d2a20, #111b15);
  min-width: 0;
}
.chart-card h2 {
  font-size: 1.4rem;
  margin-top: 0;
}
.chart-card > p {
  color: #bac7b0;
}
.chart-row {
  margin: 18px 0;
}
.chart-label {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.chart-label strong {
  white-space: nowrap;
  color: #ddc991;
  font-weight: 500;
}
.chart-row progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 12px;
  margin-top: 8px;
  background: #0c1510;
  overflow: hidden;
}
.chart-row progress::-webkit-progress-bar {
  background: #0c1510;
  border-radius: 12px;
}
.chart-row progress::-webkit-progress-value {
  background: linear-gradient(90deg, #46785b, #d8ba70);
  border-radius: 12px;
  transition: width 0.5s ease;
}
.chart-row progress::-moz-progress-bar {
  background: #82a374;
}
.guild-brief {
  margin-top: 24px;
}
.ranking-shell {
  overflow-x: auto;
  border: 1px solid #43533d;
  border-radius: 12px;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}
.ranking-table caption {
  text-align: left;
  padding: 18px 22px;
  color: #dfc57f;
}
.ranking-table th,
.ranking-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid #344333;
  overflow-wrap: anywhere;
}
.ranking-table th {
  background: #243023;
  font-size: 0.85rem;
  color: #d9cda7;
}
.ranking-table tbody tr:hover {
  background: #243226;
}
body > header nav {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .insights-page > :not(.section-heading) {
    margin-left: 16px;
    margin-right: 16px;
  }
  .podium-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi-card {
    padding: 16px;
  }
  .chart-card,
  .podium-card {
    padding: 22px;
  }
  .insight-toolbar {
    align-items: stretch;
  }
  .ranking-switch {
    width: 100%;
  }
  .ranking-switch button {
    flex: 1;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chart-row progress::-webkit-progress-value {
    transition: none;
  }
}

[data-wow-class="warrior"] {
  --class-color: #c69b6d;
}
[data-wow-class="paladin"] {
  --class-color: #f48cba;
}
[data-wow-class="hunter"] {
  --class-color: #aad372;
}
[data-wow-class="rogue"] {
  --class-color: #fff468;
}
[data-wow-class="priest"] {
  --class-color: #ffffff;
}
[data-wow-class="deathknight"] {
  --class-color: #c41e3a;
}
[data-wow-class="shaman"] {
  --class-color: #0070dd;
}
[data-wow-class="mage"] {
  --class-color: #3fc7eb;
}
[data-wow-class="warlock"] {
  --class-color: #8788ee;
}
[data-wow-class="monk"] {
  --class-color: #00ff98;
}
[data-wow-class="druid"] {
  --class-color: #ff7c0a;
}
[data-wow-class="demonhunter"] {
  --class-color: #a330c9;
}
[data-wow-class="evoker"] {
  --class-color: #33937f;
}

/* アイコンと文字を併用し、色だけで職業を識別させない。 */
:where(.class-themed) {
  --class-color: #d9b96c;
}
.class-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid var(--class-color, #d9b96c);
  border-radius: 10px;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 3px 14px #0005;
}
.unknown-icon {
  text-align: center;
  line-height: 44px;
  color: #d9b96c;
}
.card.class-themed,
.podium-card:where(.class-themed) {
  border-top: 3px solid var(--class-color);
}
.card.class-themed h3,
.podium-card.class-themed h2 {
  text-decoration: underline;
  text-decoration-color: var(--class-color);
  text-underline-offset: 7px;
  text-decoration-thickness: 3px;
}
.card.class-themed > .class-icon,
.podium-card.class-themed > .class-icon {
  margin-bottom: 12px;
}
.registration-entry:where(.class-themed) {
  border-left: 3px solid var(--class-color);
}
.arrival-icon .class-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.ranking-table .class-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 6px;
}
.ranking-table .class-themed td:first-child {
  border-left: 3px solid var(--class-color);
}
.chart-row.class-themed progress::-webkit-progress-value {
  background: var(--class-color);
}
.chart-row.class-themed progress::-moz-progress-bar {
  background: var(--class-color);
}
.class-picker {
  padding: 16px;
  margin: 16px 0;
  border: 1px solid #526143;
  border-radius: 12px;
  min-width: 0;
}
.class-picker legend {
  font-weight: 700;
  padding: 0 8px;
  color: #e8d6a1;
}
#class-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#class-options .class-option {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 12px 5px;
  margin: 0;
  border: 1px solid #42513c;
  border-radius: 10px;
  cursor: pointer;
  background: #141e17;
  color: #eee9da;
  font-size: 0.85rem;
}
#class-options .class-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.class-option:has(input:checked) {
  border-color: var(--class-color) !important;
  outline: 2px solid var(--class-color);
  background: #283425 !important;
}
.class-option:has(input:checked)::after {
  content: "✓";
  position: absolute;
  right: 6px;
  top: 3px;
  color: #fff;
  font-weight: 700;
}
.class-option:has(input:focus-visible) {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 420px) {
  #class-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .class-option .class-icon {
    width: 40px;
    height: 40px;
  }
}

.card.class-themed h3,
.podium-card.class-themed h2,
.registration-entry.class-themed .arrival-title strong:last-child {
  color: color-mix(in srgb, var(--class-color) 75%, white);
}

/* 公式情報とギルドの準備案を区別して表示する。 */
.guide-body {
  max-width: 1120px;
  margin: auto;
  padding: 0 20px 60px;
}
.guide-source {
  color: #bbc5af;
  font-size: 0.85rem;
  line-height: 1.9;
}
.guide-timeline,
.guide-raids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.guide-timeline article {
  border: 1px solid #76643a;
  border-top: 3px solid #dabb70;
  padding: 26px;
  border-radius: 12px;
  background: linear-gradient(145deg, #303326, #142018);
}
.guide-timeline strong,
.guide-raids strong {
  display: block;
  color: #e9c97f;
  font-size: 2.7rem;
  margin: 18px 0;
}
.guide-timeline small {
  display: block;
  font-size: 0.8rem;
  color: #cad0bb;
}
.guide-raids small {
  font-size: 1rem;
}
.guide-timeline h2 {
  font-size: 1.25rem;
}
.guide-block {
  margin-top: 28px;
}
.guide-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.guide-rules article {
  padding: 18px;
  background: #0e1913;
  border-radius: 10px;
  border: 1px solid #344938;
}
.guide-rules span {
  color: #d8b96e;
  font-size: 0.8rem;
}
.guide-callout {
  padding: 16px 20px;
  border-left: 3px solid #d9b96c;
  background: #d9b96c0a;
}
.guide-raids article {
  padding: 18px;
  border: 1px solid #40523d;
  border-radius: 10px;
}
.guide-raids progress {
  width: 100%;
  height: 10px;
  accent-color: #d9b96c;
}
.guide-actions {
  padding-left: 24px;
}
.guide-actions li {
  margin: 20px 0;
  line-height: 1.9;
}
.guide-page details {
  padding: 18px 0;
  border-bottom: 1px solid #3c4a36;
}
.guide-page summary {
  cursor: pointer;
  color: #e3cf98;
  font-weight: 600;
}
.guide-entry {
  margin: 24px 0;
}
@media (max-width: 760px) {
  .guide-timeline,
  .guide-raids {
    grid-template-columns: 1fr;
  }
  .guide-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-entry .primary {
    white-space: normal;
  }
  .guide-body {
    padding: 0 16px 40px;
  }
}
@media (max-width: 400px) {
  .guide-rules {
    grid-template-columns: 1fr;
  }
}

/* 公式ダウンロードへの導線を端末幅に合わせる。 */
.guide-resources {
  margin-top: 28px;
}
.guide-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.guide-resource-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  background: #0e1913;
  border: 1px solid #40523d;
  border-radius: 10px;
}
.guide-resource-grid article p {
  line-height: 1.8;
}
.guide-resource-grid article a {
  margin-top: auto;
}
.guide-resource-grid article:first-child {
  border-color: #d9b96c;
}
@media (max-width: 760px) {
  .guide-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* 公開手記と端末内の個人ログを明確に区別する。 */
.founding-journal,
.journal-local-heading {
  max-width: 860px;
  margin: 0 auto 32px;
}
.founding-journal {
  border-top: 3px solid #d9b96c;
  padding: clamp(22px, 4vw, 48px);
}
.founding-journal h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.5;
}
.founding-journal h3 {
  margin-top: 32px;
  color: #ecd49d;
}
.founding-journal p {
  line-height: 2;
}
.founding-journal blockquote {
  margin: 30px 0;
  border-left: 3px solid #d9b96c;
  padding: 16px 22px;
  background: #d9b96c0a;
  color: #ecd49d;
  line-height: 1.9;
}
.journal-signoff {
  color: #e9c97f;
  font-weight: 700;
}
.journal-local-heading {
  padding: 0 20px;
}
.journal-local-heading p {
  color: #bbc5af;
  line-height: 1.8;
}

/* 記事ヘッダーにはサイトナビゲーションの固定高さを適用しない。 */
.founding-journal > header {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.founding-journal > header .tag {
  display: inline-block;
}
.founding-journal > header h2 {
  margin: 18px 0 12px;
}
.founding-journal > header .guide-source {
  margin-bottom: 0;
}

/* 管理画面の長い ID とモバイル表示を調整する。 */
#admin-list .card {
  overflow-wrap: anywhere;
}
#admin-search {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 24px 0;
}
#admin-search label {
  flex: 1;
}
#admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 700px) {
  #admin-fields {
    grid-template-columns: 1fr;
  }
  #admin-search {
    flex-wrap: wrap;
  }
}

/* 特集の入口と個人用チェックリスト。 */
.feature-portals > a {
  display: block;
  text-decoration: none;
  transition: border-color 0.2s;
}
.feature-portals > a:hover {
  border-color: var(--gold);
}
.preparation-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  line-height: 1.8;
  cursor: pointer;
}
.preparation-list input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--gold);
}
.feature-portals h2 {
  font-size: 1.4rem;
}

.wechat-contact {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.wechat-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.wechat-contact span {
  min-width: 0;
  overflow-wrap: anywhere;
}
