:root {
  --ink: #16283c;
  --paper: #f5fafd;
  --sky: #2e9dd8;
  --sky-soft: #d8effb;
  --mist: #6f8ea6;
  --shadow: 6px 6px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Zen Maru Gothic", sans-serif;
  background:
    radial-gradient(60rem 40rem at 110% -5%, rgba(141, 211, 243, .35), transparent 60%),
    radial-gradient(55rem 40rem at -15% 45%, rgba(141, 211, 243, .22), transparent 60%),
    linear-gradient(180deg, #ffffff, #e6f4fc 45%, #bfe4f8);
  color: var(--ink);
  overflow-x: hidden;
  cursor: url("../assets/cursor.png") 2 2, auto;
}
body[data-lang="ja"] { font-family: "Zen Maru Gothic", "Manrope", sans-serif; }

a, button, .linkcard, .lang button, .burger {
  cursor: url("../assets/cursor.png") 2 2, pointer;
}

.sr {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden;
}

img { max-width: 100%; display: block; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 1.2rem;
  background: rgba(245, 250, 253, .9);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.brand {
  font-family: "Anton", sans-serif;
  font-size: 1.25rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--sky); }

.mainnav { display: flex; gap: 1.1rem; margin-left: auto; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { border-bottom-color: var(--sky); }

.lang { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; font: inherit; font-weight: 800;
  font-size: .78rem; padding: .3rem .6rem; color: var(--ink);
}
.lang button + button { border-left: 2px solid var(--ink); }
.lang button.on { background: var(--sky); color: #fff; }

.burger { display: none; }

.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem;
  align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 4.5rem 1.5rem 3.5rem;
}

.kicker {
  font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mist); font-size: .85rem;
}

.hero h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: .95; margin: .4rem 0 1.2rem;
}
.hero h1 span { display: block; }

.stripes {
  color: var(--sky);
  background: repeating-linear-gradient(115deg,
    var(--sky) 0 22px, var(--ink) 22px 30px, var(--sky) 30px 52px);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead { font-size: 1.12rem; font-weight: 600; max-width: 34rem; }

.cta { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .75rem 1.4rem;
  border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink);
  font: inherit; font-weight: 800; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.solid { background: var(--sky); color: #fff; }
.btn.big { font-size: 1.1rem; }

.hero-photo { position: relative; transform: rotate(2deg); }
.hero-photo img {
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: var(--shadow);
  aspect-ratio: 1; object-fit: cover;
}

.ticker {
  background: var(--ink); color: var(--sky-soft);
  transform: rotate(-1.2deg) scale(1.02);
  border-block: 2px solid var(--ink);
  overflow: hidden; padding: .55rem 0; margin: 1rem 0 2rem;
}
.ticker-track {
  display: flex; gap: 2rem; width: max-content;
  font-family: "Anton", sans-serif; font-size: 1.05rem; letter-spacing: .06em;
  animation: slide 22s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }

.wrap { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.5rem; }

h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 2rem; }
h2 em {
  display: block; font-style: normal; font-size: .9rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mist);
}
h2 span {
  font-family: "Anton", sans-serif;
  border-bottom: 6px solid var(--sky);
}
h2.sub { margin-top: 3.5rem; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; }

.bio p { margin-bottom: 1rem; font-size: 1.05rem; font-weight: 500; }

.facts {
  border: 2px solid var(--ink); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem; height: fit-content;
  transform: rotate(1deg);
}
.facts div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 2px dashed var(--sky-soft);
}
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 800; color: var(--sky); white-space: nowrap; }
.facts dd { text-align: right; font-weight: 600; }
.facts small { display: block; color: var(--mist); }

.timeline {
  list-style: none; position: relative;
  display: flex; justify-content: space-between; gap: .5rem;
  padding: 10rem 0 .5rem;
}
.timeline::before {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 3.2rem;
  height: 4px; background: repeating-linear-gradient(90deg,
    var(--sky) 0 14px, var(--ink) 14px 22px);
  border-radius: 4px;
}
.timeline li {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.tl-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink);
  padding: 0; position: relative; z-index: 1;
  transition: background .15s, transform .15s;
}
.tl-dot:hover, .tl-dot[aria-expanded="true"] {
  background: var(--sky); transform: scale(1.25);
}
.timeline b {
  font-family: "Anton", sans-serif; font-size: 1.15rem; color: var(--sky);
  letter-spacing: .04em;
}
.tl-pop {
  position: absolute; bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  width: 15rem; z-index: 5;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem .9rem;
}
.tl-pop::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--ink);
}
.timeline li:first-child .tl-pop { left: 0; transform: none; }
.timeline li:first-child .tl-pop::after { left: 10px; transform: none; }
.timeline li:last-child .tl-pop { left: auto; right: 0; transform: none; }
.timeline li:last-child .tl-pop::after { left: auto; right: 10px; transform: none; }
.tl-pop p { font-weight: 500; font-size: .9rem; margin: 0; }
.tl-close {
  position: absolute; top: .3rem; right: .5rem;
  background: none; border: 0; font-size: 1.15rem; line-height: 1;
  color: var(--sky); font-weight: 800; padding: .1rem .2rem;
}
.tl-close:hover { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cards.extra { grid-template-columns: repeat(2, 1fr); margin-top: 1.8rem; }

.card {
  border: 2px solid var(--ink); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
  padding: 1.3rem 1.2rem;
  transition: transform .15s;
}
.card:nth-child(odd) { transform: rotate(-.7deg); }
.card:nth-child(even) { transform: rotate(.7deg); }
.card:hover { transform: rotate(0) translateY(-4px); }
.card h3 {
  font-family: "Anton", sans-serif; letter-spacing: .03em;
  font-size: 1.25rem; margin-bottom: .5rem;
  color: var(--sky);
}
.card p { font-size: .95rem; font-weight: 500; }

.cosgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.cosgrid img {
  width: 100%; height: auto; display: block;
  border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.cosgrid img:nth-child(3n+1) { transform: rotate(-.6deg); }
.cosgrid img:nth-child(3n) { transform: rotate(.6deg); }
.cosgrid img:hover {
  transform: rotate(0) scale(1.02);
  box-shadow: 6px 6px 0 var(--sky);
}

.intro {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(170deg,
    #ffffff 0%, #f0f9fe 35%, #c9e9fa 65%, #8fd3f3 100%);
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
  transition: transform .55s cubic-bezier(.6, 0, .3, 1);
}
.intro[hidden] { display: none; }
.intro.leaving { transform: translateY(-100%); }
.intro-inner { text-align: center; padding: 0 1.5rem; }
.intro-kicker {
  letter-spacing: .3em; font-weight: 800; font-size: .8rem;
  color: var(--mist); margin-bottom: 1rem;
}
.intro-logo {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 10vw, 6rem); line-height: 1;
  color: var(--ink);
}
.intro-logo span { display: block; color: var(--sky); }
.intro-hint {
  margin: 3.5rem auto 0; background: none; border: 0;
  color: var(--ink); font: inherit; font-weight: 800;
  letter-spacing: .25em; font-size: .85rem;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  text-indent: .25em;
}
.intro .chev {
  width: 14px; height: 14px;
  border-top: 3px solid var(--sky); border-left: 3px solid var(--sky);
  transform: rotate(45deg);
  animation: chevup 1.4s ease-in-out infinite;
}
.intro .chev:nth-child(2) { animation-delay: .15s; }
.intro .chev:nth-child(3) { animation-delay: .3s; margin-bottom: .6rem; }
@keyframes chevup {
  0%, 100% { opacity: .25; transform: rotate(45deg) translate(0, 0); }
  50% { opacity: 1; transform: rotate(45deg) translate(-4px, -4px); }
}

.yeartabs { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.yeartabs button {
  font: inherit; font-weight: 800; font-size: .95rem;
  padding: .4rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.yeartabs button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.yeartabs button.on { background: var(--sky); color: #fff; }

.evlist {
  border: 2px solid var(--ink); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}
.ev-month {
  font-family: "Anton", sans-serif; letter-spacing: .04em;
  color: var(--sky); font-size: 1.1rem;
  margin: 1.2rem 0 .5rem;
  border-bottom: 2px dashed var(--sky-soft); padding-bottom: .25rem;
}
.ev-month:first-child { margin-top: 0; }
.ev-row { display: flex; gap: .9rem; padding: .3rem 0; align-items: baseline; }
.ev-day {
  flex: 0 0 3.4rem; text-align: right;
  font-weight: 800; color: var(--mist); font-size: .85rem;
}
.ev-row p { font-weight: 500; font-size: .97rem; margin: 0; }

.linkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.linkcard {
  border: 2px solid var(--ink); border-radius: 14px;
  background: #fff; box-shadow: 4px 4px 0 var(--ink);
  padding: 1rem 1.1rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .15rem;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.linkcard:hover {
  transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink);
  background: var(--sky-soft);
}
.linkcard b { font-size: 1.05rem; }
.linkcard span { font-weight: 700; color: var(--sky); font-size: .95rem; }
.linkcard small { color: #5f7789; font-weight: 600; }
.linkcard.gold:hover { background: #e2f4fe; }

.linkcard.agegate { position: relative; }
.linkcard.agegate .agegate-content {
  filter: blur(6px); user-select: none; pointer-events: none;
}
.linkcard.agegate .agegate-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(245, 250, 253, .55);
  color: var(--ink); font-weight: 800; letter-spacing: .06em; font-size: .95rem;
}

.agegate-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(22, 40, 60, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.agegate-modal[hidden] { display: none; }
.agegate-box {
  position: relative; max-width: 26rem; width: 100%;
  background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow); padding: 1.8rem 1.6rem 1.6rem;
  text-align: center;
}
.agegate-title {
  font-family: "Anton", sans-serif; font-size: 1.3rem;
  color: var(--sky); letter-spacing: .02em; margin-bottom: .8rem;
}
.agegate-box p:not(.agegate-title) { font-size: .95rem; font-weight: 500; margin-bottom: 1.4rem; }
.agegate-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.agegate-box .tl-close { position: absolute; top: .3rem; right: .6rem; font-size: 1.3rem; }

.support { grid-template-columns: repeat(4, 1fr); }

.contact { text-align: center; padding-bottom: 5rem; }
.contact h2 span { border-bottom-color: var(--sky); }
.contact p { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.6rem; }

footer {
  background: var(--ink); color: var(--sky-soft);
  text-align: center; padding: 2rem 1rem;
}

.wrap > *, .hero-copy > *, .hero-photo {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.seen { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .wrap > *, .hero-copy > *, .hero-photo { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .cards, .support { grid-template-columns: repeat(2, 1fr); }
  .linkgrid { grid-template-columns: repeat(2, 1fr); }
  .cosgrid { gap: .7rem; }

  .timeline { overflow-x: auto; padding-top: 11rem; gap: 0; }
  .timeline::before { display: none; }
  .timeline li { min-width: 84px; }
  .timeline li::before {
    content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px;
    background: repeating-linear-gradient(90deg,
      var(--sky) 0 14px, var(--ink) 14px 22px);
  }
  .tl-pop { width: 12.5rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-photo { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; }

  .mainnav {
    position: fixed; inset: 58px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    display: none; padding: .5rem 0;
  }
  .mainnav.open { display: flex; }
  .mainnav a { padding: .8rem 1.5rem; border-bottom: 0; }

  .burger {
    display: block; margin-left: auto;
    background: none; border: 0; padding: .4rem;
  }
  .burger i {
    display: block; width: 22px; height: 3px; background: var(--ink);
    margin: 4px 0; border-radius: 2px;
  }
  .lang { margin-left: auto; }
  .burger { margin-left: 0; }
}

@media (max-width: 520px) {
  .linkgrid, .cards, .support { grid-template-columns: 1fr; }
  .ticker { margin-top: 2rem; }
}
