:root {
  --ink: #171725;
  --navy: #34205f;
  --navy-deep: #171725;
  --blue: #27bfd0;
  --yellow: #ffd34e;
  --red: #ef5146;
  --paper: #fff8ed;
  --white: #fff;
  --line: rgba(16, 19, 26, .2);
  --header-height: 78px;
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --shadow-comic: 5px 5px 0 var(--ink);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy-deep);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  padding-bottom: 108px;
  color: var(--ink);
  background: var(--paper);
  font-family: "BIZ UDPGothic", "Meiryo UI", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.5;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--red);
}

/* Brand header: a warm paper strip, heroic crest, and asymmetric color rule create a new identity. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 4px 0 var(--blue);
}

.site-header::before {
  position: absolute;
  top: 0;
  right: 0;
  width: min(22vw, 280px);
  height: 100%;
  background: var(--navy);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.site-header::after {
  position: absolute;
  right: -2%;
  bottom: -4px;
  width: 46%;
  height: 4px;
  background: var(--blue);
  content: "";
  transform: skewX(-28deg);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1440px);
  height: 100%;
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(4px 4px 0 var(--blue));
}

.brand-copy { display: grid; gap: 4px; line-height: 1; }

.brand-copy strong {
  color: var(--navy);
  font-family: "Arial Black", "BIZ UDPGothic", "Meiryo UI", sans-serif;
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.brand-copy small {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--blue);
  cursor: pointer;
  font-family: "BIZ UDPGothic", "Meiryo UI", "Yu Gothic UI", sans-serif;
  font-weight: 1000;
  transition: transform 150ms var(--ease-out), color 150ms var(--ease-out), background 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.menu-toggle:hover { color: var(--ink); background: var(--yellow); box-shadow: 6px 6px 0 var(--red); transform: translate(-1px, -1px); }
.menu-toggle-label { font-size: 13px; font-weight: 1000; letter-spacing: .08em; }
.menu-toggle-lines { display: grid; gap: 4px; width: 20px; }
.menu-toggle-lines i { display: block; height: 3px; background: currentColor; transition: transform 220ms var(--ease-out), opacity 150ms var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen menu: it is outside the sticky header so fixed positioning is truly viewport-based. */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(23, 23, 37, .84);
  backdrop-filter: blur(6px);
}

.menu-drawer.is-open { display: grid; animation: fade-in 220ms var(--ease-out) both; }

.menu-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: pointer; }

.menu-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 0 24px 24px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(135deg, rgba(39, 191, 208, .11), transparent 38%), linear-gradient(315deg, rgba(239, 81, 70, .08), transparent 42%);
  border: 3px solid var(--navy);
  box-shadow: 8px 8px 0 var(--blue), 14px 14px 0 var(--red);
  animation: panel-in 220ms var(--ease-out) both;
}

.menu-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 15px;
  background: var(--paper);
  border-bottom: 2px solid var(--navy);
}

.menu-panel-kicker {
  display: inline-block;
  padding: 3px 8px;
  color: var(--navy);
  background: var(--blue);
  border: 2px solid var(--navy);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.menu-panel-head p { margin: 6px 0 0; font-size: 22px; font-weight: 1000; letter-spacing: .04em; }

.menu-close {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--navy);
  box-shadow: 3px 3px 0 var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 1000;
}

.menu-close:hover { color: var(--ink); background: var(--yellow); }
.menu-close span { margin-left: 5px; font-size: 22px; line-height: 0; vertical-align: -2px; }

.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }

.menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 var(--blue);
  text-decoration: none;
  font-size: 16px;
  font-weight: 1000;
  transition: transform 150ms var(--ease-out), color 150ms var(--ease-out), background 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.menu-list a:hover,
.menu-list a.is-current { color: var(--ink); background: var(--yellow); box-shadow: 6px 6px 0 var(--red); transform: translate(-2px, -2px); }
.menu-list a span { display: grid; width: 38px; height: 31px; flex: 0 0 38px; place-items: center; color: var(--yellow); background: var(--navy); border: 2px solid var(--navy); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 900; transform: skew(-8deg); }
.menu-note { margin: 20px 0 0; padding-top: 14px; color: var(--navy); border-top: 2px dashed var(--blue); font-size: 12px; font-weight: 800; }

.lp-main { background: var(--navy-deep); }
.visual-section { scroll-margin-top: calc(var(--header-height) + 16px); background: var(--white); }
.visual-section + .visual-section { border-top: 7px solid var(--navy-deep); }
.visual-section picture,
.visual-section img { display: block; width: 100%; height: auto; }
.visual-section img { max-width: 1680px; margin: 0 auto; }

/* Footer: a comic-book end plate instead of the previous plain dark footer. */
.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--white);
  background-color: var(--navy-deep);
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  border-top: 9px solid var(--yellow);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: -5%;
  width: 55%;
  height: 12px;
  background: var(--red);
  content: "";
  transform: skewX(-35deg);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) 1.4fr;
  grid-template-areas: "brand nav" "copy nav" "copyright copyright";
  gap: 20px 42px;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 48px 0 30px;
}

.footer-brand {
  display: inline-block;
  align-self: start;
  width: fit-content;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--red);
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: .04em;
  transform: skew(-6deg);
}

.footer-copy { grid-area: copy; max-width: 27em; margin: 0; color: var(--white); font-size: 13px; font-weight: 700; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; grid-area: nav; }
.footer-nav a { padding: 10px 12px; color: var(--white); background: rgba(255,255,255,.08); border-left: 4px solid var(--yellow); text-decoration: none; font-size: 12px; font-weight: 900; }
.footer-nav a::before { margin-right: 6px; color: var(--yellow); content: "→"; }
.footer-nav a:hover { color: var(--ink); background: var(--yellow); border-left-color: var(--red); }
.footer-copyright { grid-area: copyright; padding-top: 18px; color: rgba(255,255,255,.72); border-top: 2px solid rgba(255,255,255,.26); font-size: 11px; font-weight: 700; }

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.sticky-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(620px, calc(100% - 24px));
  min-height: 58px;
  padding: 10px 24px;
  pointer-events: auto;
  color: var(--white);
  background: var(--blue);
  border: 4px solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--yellow);
  text-decoration: none;
  transition: transform 150ms var(--ease-out), filter 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.sticky-cta-link:hover { filter: saturate(1.15); box-shadow: 7px 7px 0 var(--red); transform: translate(-2px, -2px); }
.sticky-cta-link:active { box-shadow: 3px 3px 0 var(--red); transform: translate(2px, 2px); }
.sticky-cta-kicker { color: var(--yellow); font-size: 13px; font-weight: 1000; }
.sticky-cta-link strong { color: var(--white); font-size: clamp(18px, 3vw, 27px); font-weight: 1000; letter-spacing: .08em; text-shadow: 2px 2px 0 var(--ink); }
.sticky-cta-arrow { color: var(--yellow); font-size: 28px; font-weight: 1000; line-height: 1; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1023px) {
  .footer-inner { grid-template-columns: 1fr; grid-template-areas: "brand" "copy" "nav" "copyright"; }
  .footer-nav { max-width: 720px; }
}

@media (max-width: 767px) {
  :root { --header-height: 64px; }
  body { padding-bottom: 86px; }
  .header-inner { width: min(100% - 24px, 1440px); }
  .brand { gap: 9px; }
  .brand-logo { width: 44px; height: 44px; filter: drop-shadow(3px 3px 0 var(--blue)); }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 7px; letter-spacing: .04em; }
  .menu-toggle { min-height: 40px; padding: 7px 12px; box-shadow: 3px 3px 0 var(--blue); }
  .menu-toggle-label { font-size: 12px; }
  .menu-drawer { padding: 12px; }
  .menu-panel { max-height: calc(100vh - 24px); padding: 0 14px 16px; border-width: 3px; box-shadow: 6px 6px 0 var(--blue), 10px 10px 0 var(--red); }
  .menu-panel-head { padding: 14px 0 12px; }
  .menu-panel-head p { font-size: 18px; }
  .menu-close { padding: 7px 9px; }
  .menu-list { grid-template-columns: 1fr; gap: 9px; margin-top: 14px; }
  .menu-list a { min-height: 52px; padding: 8px 11px; font-size: 15px; }
  .menu-list a span { width: 34px; height: 28px; flex-basis: 34px; }
  .menu-note { margin-top: 15px; padding-top: 11px; font-size: 11px; }
  .visual-section + .visual-section { border-top-width: 5px; }
  .footer-inner { width: min(100% - 32px, 1240px); gap: 16px; padding: 38px 0 24px; }
  .footer-brand { font-size: 20px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .footer-nav a { padding: 9px 8px; font-size: 11px; }
  .sticky-cta-link { width: calc(100% - 20px); min-height: 50px; gap: 7px; padding: 8px 12px; box-shadow: 4px 4px 0 var(--yellow); }
  .sticky-cta-kicker { font-size: 10px; }
  .sticky-cta-link strong { font-size: 18px; }
  .sticky-cta-arrow { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
