*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --paper: #d8d2c7;
  --paper-ink: #141210;
  --panel-bg: #0f0e0c;
  --panel-ink: #e8e2d9;
  --accent: #c12a2a;
  --tape: rgba(220, 190, 70, 0.88);
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  background: var(--paper);
  color: var(--paper-ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

.hero {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 11px,
    rgba(20, 18, 16, 0.045) 11px,
    rgba(20, 18, 16, 0.045) 12px
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 34vw);
  grid-template-rows: 1fr;
  align-items: stretch;
}

.hero__paper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1rem, 3vw, 2.25rem);
}

.hero__club {
  margin: 0;
  line-height: 1.02;
}

.hero__club-sub {
  display: block;
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw + 0.55rem, 1.85rem);
  letter-spacing: 0.18em;
  margin-bottom: 0.35em;
  padding-bottom: 0.45em;
  border-bottom: 4px solid var(--paper-ink);
  width: fit-content;
  max-width: 100%;
  animation: enter-sub 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__club-main {
  display: block;
  font-weight: 900;
  font-size: clamp(2.85rem, 11vw + 0.85rem, 7.25rem);
  letter-spacing: -0.02em;
  margin-top: 0.2em;
  animation: enter-main 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero__goal {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.1vw + 0.65rem, 1.95rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--paper-ink);
  padding: 0.65em 0 0.65em 0.85em;
  border-left: 5px solid var(--accent);
  max-width: 36ch;
  animation: enter-goal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero__panel {
  position: relative;
  background: var(--panel-bg);
  color: var(--panel-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: -12px 0 40px rgba(15, 14, 12, 0.12);
  animation: enter-panel 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero__panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.15rem, 3vw, 1.65rem);
  max-width: min(22ch, 100%);
  position: relative;
  z-index: 1;
}

.hero__welcome {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.12rem, 2.35vw + 0.7rem, 1.5rem);
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(232, 226, 217, 0.95);
}

.hero__discord {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero__discord:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.35);
}

.hero__discord:active {
  transform: translateY(1px) scale(0.99);
}

.hero__discord:focus-visible {
  outline: 2px solid #f0f0f0;
  outline-offset: 4px;
}

.hero__discord-img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  vertical-align: top;
  border-radius: inherit;
}

.hero__tape {
  position: absolute;
  width: clamp(52px, 12vw, 76px);
  height: clamp(20px, 4vw, 28px);
  background: var(--tape);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hero__tape--one {
  top: 8%;
  left: 10%;
  transform: rotate(-14deg);
}

.hero__tape--two {
  bottom: 14%;
  right: 12%;
  transform: rotate(11deg);
}

@keyframes enter-sub {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enter-main {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enter-goal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enter-panel {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 720px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .hero__paper {
    justify-content: center;
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
  }
  .hero__goal {
    max-width: none;
  }
  .hero__panel {
    min-height: min(42dvh, 280px);
    box-shadow: 0 -10px 36px rgba(15, 14, 12, 0.15);
  }
  .hero__panel-inner {
    max-width: min(30ch, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__club-sub, .hero__club-main, .hero__goal, .hero__panel {
    animation: none;
  }
}