:root {
  --bg: #eeeeee;
  --paper: #ffffff;
  --ink: #202124;
  --muted: #666666;
  --blue: #08008f;
  --line: #d7d7d7;
  --dark: #333333;
  --archive: #b8e3d8;
  font-family: "Helvetica Neue", Arial, "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}
body.is-altered { background: #dedede; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  height: 96px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: #fff;
  border-bottom: 1px solid #cfcfcf;
}

.brand-logo { justify-self: center; }
.brand-logo img {
  width: 180px;
  height: 60px;
  object-fit: contain;
}

.icon-button,
.search-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.icon-button {
  display: grid;
  place-content: center;
  gap: 6px;
}
.icon-button span {
  display: block;
  width: 32px;
  height: 3px;
  background: #202124;
}

.search-icon {
  position: relative;
  justify-self: end;
}
.search-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 20px;
  height: 20px;
  border: 4px solid #202124;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 29px;
  width: 17px;
  height: 4px;
  background: #202124;
  transform: rotate(45deg);
  transform-origin: left center;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-button {
  min-height: 34px;
  padding: 0 9px;
  color: var(--blue);
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.utility-button.is-waiting {
  color: #fff;
  background: #7c0606;
  border-color: #7c0606;
}

.hero {
  position: relative;
  height: min(750px, calc(100vh - 96px));
  min-height: 560px;
  overflow: hidden;
  background: #111;
}

.hero-photo,
.wide-photo,
.event-photo,
.poster-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hero-photo img {
  width: 100%;
  height: min(750px, calc(100vh - 96px));
  min-height: 560px;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.95);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 40px;
  padding: 24px;
  color: white;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.6;
}
.hero-copy p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.event-title-strip {
  padding: 64px clamp(28px, 7vw, 84px);
  text-align: center;
}
.event-title-strip span {
  display: block;
  height: 9px;
  background: #fff;
}
.event-title-strip h2 {
  margin: 38px 0;
  color: var(--blue);
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 1;
}

.section {
  width: min(900px, calc(100% - 72px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 92px) 0;
}

.party-section h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.25;
}

.primary-link {
  display: grid;
  place-items: center;
  min-height: 68px;
  margin: 0 0 72px;
  color: white;
  background: var(--blue);
  border: 1px solid #fff;
  border-radius: 5px;
  font-size: clamp(1.05rem, 3vw, 1.8rem);
  text-decoration: none;
}

.poster-card {
  aspect-ratio: 1.78;
  background: #f4ead7;
}
.poster-card img,
.wide-photo img,
.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-info {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  border: 4px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
}

.article-section {
  font-size: clamp(1.55rem, 4.5vw, 2.45rem);
  line-height: 1.65;
}
.article-section h2 {
  margin: 0 0 38px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.25;
}
.plain-info {
  display: grid;
  gap: 30px;
  margin: 0;
}
.plain-info div { display: grid; gap: 14px; }
.plain-info dt {
  color: var(--blue);
  font-weight: 900;
}
.plain-info dd { margin: 0 0 0 1.2em; }

.about-section {
  border-top: 4px solid #d5d5d5;
}
.about-section h2,
.members-section h2 {
  margin: 0 0 32px;
  color: var(--blue);
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
}
.about-section > p {
  margin: 0 0 36px;
  font-size: clamp(1.25rem, 3.6vw, 2rem);
  line-height: 1.8;
}
.info-grid,
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.info-grid article,
.member-card {
  background: #fff;
  border: 1px solid #d8d8d8;
}
.info-grid article {
  padding: 22px;
}
.info-grid span {
  display: block;
  color: var(--blue);
  font-weight: 900;
}
.info-grid strong {
  display: block;
  margin: 12px 0;
  font-size: 1.35rem;
}
.info-grid p,
.member-card p {
  line-height: 1.7;
}

.form-section {
  width: 100%;
  max-width: none;
  padding-inline: max(36px, calc((100% - 900px) / 2));
  background: #fff;
  border-top: 4px solid #d5d5d5;
}
.fake-form {
  position: relative;
  min-height: 640px;
  padding: clamp(28px, 6vw, 56px);
  overflow: hidden;
  color: rgba(0, 0, 0, 0.62);
  background: #ddd;
  border-top: 22px solid #b3a135;
  box-shadow: inset 0 0 0 2px #bbb;
}
.fake-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.fake-form h2,
.fake-form p,
.fake-form label,
.disabled-field,
.form-expand,
.login-modal { position: relative; z-index: 1; }
.fake-form h2 {
  margin: 0 0 28px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 400;
}
.fake-form label {
  display: block;
  margin-top: 56px;
  font-size: clamp(1.3rem, 4vw, 2rem);
}
.fake-form label span { color: #b00020; }
.disabled-field {
  height: 80px;
  margin-top: 18px;
  border-bottom: 2px solid #aaa;
}
.form-expand {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 86px;
  height: 86px;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
}
.form-expand::before {
  content: "↗";
  color: white;
  font-size: 2.3rem;
}
.login-modal {
  width: min(640px, 92%);
  margin: 72px auto 0;
  padding: 42px;
  color: #111;
  background: white;
  border-radius: 3px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.24);
}
.login-modal strong {
  display: block;
  margin-bottom: 26px;
  font-size: clamp(1.7rem, 5vw, 3rem);
}
.login-modal p {
  font-size: clamp(1rem, 3vw, 1.6rem);
  line-height: 1.7;
}

.meeting-section {
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 4.6vw, 2.7rem);
  line-height: 1.8;
}
.meeting-section h2,
.sub-page-title h1 {
  margin: 0 0 42px;
  color: var(--blue);
  font-family: Georgia, "Noto Serif JP", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
}
.line-button {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  margin-top: 34px;
  padding: 0 26px;
  color: white;
  background: #06c755;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  font-weight: 800;
  text-decoration: none;
}

.members-section {
  border-top: 4px solid #d5d5d5;
}
.member-card {
  overflow: hidden;
}
.member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.member-card h3 {
  margin: 20px 20px 8px;
  font-size: 1.2rem;
}
.member-card p {
  margin: 0 20px 22px;
  color: #444;
}

.gallery-section {
  width: min(1000px, calc(100% - 72px));
}
.wide-photo { aspect-ratio: 1.55; margin-bottom: 44px; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.event-photo { aspect-ratio: 1.5; }

.search-section { border-top: 4px solid #d5d5d5; }
.search-box label {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 900;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
}
.search-row input,
.search-row button {
  min-height: 52px;
  border: 1px solid #aaa;
  border-radius: 4px;
}
.search-row input { padding: 0 14px; }
.search-row button {
  color: white;
  background: var(--blue);
  cursor: pointer;
}
.search-result { margin-top: 24px; }
.data-entry {
  max-width: 480px;
  padding: 20px;
  color: #d9fff8;
  background: #101916;
  border: 1px solid #6aa99c;
  font-family: "Courier New", monospace;
}

.face-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url("../images/img_faceframe_overlay_1200x800.png");
  background-size: cover;
  mix-blend-mode: multiply;
}
.id-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #d9fff8;
  background: rgba(6, 29, 25, 0.78);
  border: 1px solid rgba(184, 227, 216, 0.65);
  border-radius: 3px;
  font-size: 0.8rem;
  opacity: 0;
}
.is-altered .face-overlay,
.is-altered .id-chip,
.staff-trigger:hover .face-overlay,
.staff-trigger:hover .id-chip {
  opacity: 1;
}

.sub-page-title,
.archive-hero {
  width: min(900px, calc(100% - 72px));
  margin: 0 auto;
  padding: 70px 0 24px;
}
.sub-page-title p { font-size: 1.5rem; }
.staff-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 38px;
  align-items: start;
}
.staff-photo-wrap {
  position: relative;
  overflow: hidden;
  background: #ddd;
}
.staff-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.scan-line {
  position: absolute;
  inset-inline: 0;
  top: -20%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(184, 227, 216, 0.52), transparent);
  animation: scan 4.5s infinite;
}
.staff-profile {
  padding: 26px;
  background: #fff;
  border: 1px solid #ddd;
}
.staff-profile h2 { color: var(--blue); font-size: 2.4rem; }
.staff-profile dl { display: grid; gap: 16px; }
.staff-profile dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}
.role-shift:hover { color: transparent; }
.role-shift { position: relative; }
.role-shift:hover::after {
  content: attr(data-secret);
  position: absolute;
  left: 0;
  color: #b00020;
}

.archive-page {
  color: #dce9e5;
  background: #0d1210;
}
.archive-page .site-header { background: #fff; }
.archive-hero h1 {
  margin: 0;
  color: var(--archive);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
}
.archive-intro,
.archive-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.archive-intro { grid-template-columns: 1fr 240px; }
.total-box,
.archive-panels article,
.data-card {
  padding: 20px;
  background: #121b18;
  border: 1px solid #263630;
}
.total-box strong { display: block; font-size: 4rem; }
.data-grid { display: grid; gap: 18px; }
.data-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}
.data-card img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
}
.data-card h2 { color: var(--archive); }
.access-log {
  font-family: "Courier New", monospace;
  border-top: 1px solid #263630;
}

.site-footer {
  display: grid;
  gap: 28px;
  padding: 70px clamp(36px, 7vw, 84px);
  color: #fff;
  background: #333;
  font-family: Georgia, "Noto Serif JP", serif;
}
.site-footer h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.social-row {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 44px 0;
  font-family: Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
}
.social-row span:last-child {
  align-self: center;
  padding: 8px 10px;
  background: #06c755;
  border-radius: 10px;
  font-size: 1rem;
}
.site-footer a,
.site-footer p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.noise-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  background-image: url("../images/img_noise_overlay_1920x1080.png");
  background-size: cover;
  mix-blend-mode: multiply;
}
.noise-layer.active { animation: noiseFlash 640ms steps(2) both; }
.fade-gate {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  color: #b8e3d8;
  background: rgba(7, 11, 10, 0);
  opacity: 0;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}
.fade-gate.active { animation: fadeGate 820ms ease both; }
.text-flicker { animation: textFlicker 520ms ease both; }

.site-alter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(210, 210, 210, 0.16) 0px,
      rgba(110, 110, 110, 0.22) 1px,
      rgba(185, 185, 185, 0.16) 2px,
      rgba(90, 90, 90, 0.18) 3px
    ),
    linear-gradient(180deg, rgba(120, 120, 120, 0.18), rgba(165, 165, 165, 0.18));
}

.site-alter-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-alter-layer,
.site-alter-flash,
.site-alter-message {
  position: absolute;
}

.site-alter-layer {
  inset: -8%;
  pointer-events: none;
  z-index: 1;
}

.site-alter-layer-1 {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(240, 240, 240, 0.18) 0px,
      rgba(70, 70, 70, 0.24) 1px,
      rgba(200, 200, 200, 0.18) 2px,
      rgba(90, 90, 90, 0.22) 3px,
      rgba(170, 170, 170, 0.14) 4px
    );
  mix-blend-mode: screen;
}

.site-alter-layer-2 {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(0, 0, 0, 0.12) 2px,
      rgba(255, 255, 255, 0.06) 4px,
      rgba(0, 0, 0, 0.08) 6px
    );
  mix-blend-mode: overlay;
}

.site-alter-layer-3 {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.16) 14%,
      rgba(0, 0, 0, 0.12) 28%,
      rgba(255, 255, 255, 0.10) 44%,
      rgba(0, 0, 0, 0.10) 62%,
      rgba(255, 255, 255, 0.12) 78%,
      rgba(255, 255, 255, 0) 100%
    );
  opacity: 0.55;
  filter: blur(0.4px);
}

.site-alter-flash {
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.16) 25%,
      rgba(255, 255, 255, 0) 52%,
      rgba(255, 255, 255, 0.12) 76%,
      rgba(255, 255, 255, 0) 100%
    );
  opacity: 0;
}

.site-alter-message {
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 760px);
  padding: 0 16px;
  text-align: center;
  white-space: nowrap;
  color: #7c0606;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.65;
  pointer-events: none;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.45),
    0 0 3px rgba(255, 255, 255, 0.25),
    0 0 4px rgba(0, 0, 0, 1),
    0 0 10px rgba(0, 0, 0, 0.98),
    0 0 18px rgba(0, 0, 0, 0.95),
    0 3px 6px rgba(60, 0, 0, 0.95),
    0 0 16px rgba(120, 0, 0, 0.7);
}

.site-alter-message::before,
.site-alter-message::after {
  content: "サイトが改変されました。";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-alter-message::before {
  color: rgba(255, 220, 220, 0.22);
  transform: translate(2px, 0);
  mix-blend-mode: screen;
}

.site-alter-message::after {
  color: rgba(50, 0, 0, 0.42);
  transform: translate(-2px, 1px);
}

.site-alter-overlay.is-active .site-alter-layer-1 {
  animation: staticBandA 0.08s steps(2, end) infinite;
}

.site-alter-overlay.is-active .site-alter-layer-2 {
  animation: staticBandB 0.11s steps(3, end) infinite;
}

.site-alter-overlay.is-active .site-alter-layer-3 {
  animation: rollingBand 0.28s linear infinite;
}

.site-alter-overlay.is-active .site-alter-flash {
  animation: flashSweep 0.32s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  55%, 100% { transform: translateY(760%); }
}
@keyframes noiseFlash {
  0%, 100% { opacity: 0; }
  20%, 52% { opacity: 0.18; }
}
@keyframes fadeGate {
  0% { opacity: 0; background: rgba(7, 11, 10, 0); }
  35%, 72% { opacity: 1; background: rgba(7, 11, 10, 0.82); }
  100% { opacity: 0; background: rgba(7, 11, 10, 0); }
}
@keyframes textFlicker {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.14; }
  58% { opacity: 0.72; }
}

@keyframes staticBandA {
  0% { opacity: 0.95; transform: translateY(-8px) scaleY(1.04); }
  50% { opacity: 0.7; transform: translateY(5px) scaleY(1.01); }
  100% { opacity: 0.92; transform: translateY(-3px) scaleY(1.05); }
}

@keyframes staticBandB {
  0% { opacity: 0.65; transform: translateX(-10px); }
  50% { opacity: 0.45; transform: translateX(12px); }
  100% { opacity: 0.7; transform: translateX(-6px); }
}

@keyframes rollingBand {
  0% { transform: translateY(-24%); }
  100% { transform: translateY(24%); }
}

@keyframes flashSweep {
  0% { opacity: 0; transform: translateY(-18%); }
  35% { opacity: 0.42; }
  100% { opacity: 0; transform: translateY(18%); }
}

@media (max-width: 760px) {
  .site-header {
    height: 88px;
    grid-template-columns: 42px 1fr auto;
    padding-inline: 14px;
  }
  .brand-logo img { width: 142px; height: 48px; }
  .header-actions { gap: 4px; }
  .utility-button {
    min-height: 28px;
    padding: 0 5px;
    font-size: 0.6rem;
  }
  .search-icon {
    width: 34px;
    height: 34px;
  }
  .search-icon::before {
    left: 7px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }
  .search-icon::after {
    left: 23px;
    top: 24px;
    width: 13px;
    height: 3px;
  }
  .hero,
  .hero-photo img {
    height: 748px;
    min-height: 0;
  }
  .section { width: calc(100% - 74px); }
  .event-grid,
  .info-grid,
  .member-grid,
  .staff-layout,
  .archive-intro,
  .archive-panels {
    grid-template-columns: 1fr;
  }
  .search-row { grid-template-columns: 1fr; }
  .data-card { grid-template-columns: 96px 1fr; }
  .data-card img { width: 96px; }
}

@media (max-width: 430px) {
  .brand-logo img { width: 124px; }
  .icon-button { width: 36px; }
  .icon-button span { width: 28px; }
  .event-title-strip { padding-inline: 28px; }
  .event-title-strip h2 { font-size: 3.4rem; }
  .fake-form { min-height: 600px; }
  .site-alter-message {
    white-space: normal;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }
}
