:root {
  color-scheme: light;
  --page-background: #ffffff;
  --surface-muted: #f3f6fa;
  --text-primary: #061938;
  --text-secondary: #52647c;
  --border: #d6e2f1;
  --accent: #1769ff;
  --accent-dark: #0a4fcb;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--page-background);
  color: var(--text-primary);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-primary);
  transform: translateY(-160%);
  transition: transform 150ms ease-out;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.site-logo {
  display: block;
  width: 132px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.manga-story {
  width: 100%;
  background: var(--surface-muted);
}

.manga-desktop {
  display: block;
  width: 100%;
}

.desktop-manga-frame {
  width: min(100%, 864px);
  aspect-ratio: 864 / 1731;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

.desktop-manga-image {
  display: block;
  width: 100%;
  height: auto;
}

.manga-mobile {
  display: none;
}

.manga-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 40px;
  background: var(--surface-muted);
  text-align: center;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 560px);
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 150ms ease-out, box-shadow 150ms ease-out;
}

.primary-cta:hover {
  background: var(--accent-dark);
  box-shadow: 0 2px 8px rgb(6 25 56 / 20%);
}

.primary-cta:active {
  background: var(--accent-dark);
}

.cta-arrow {
  font-size: 26px;
  line-height: 1;
}

#cta-note {
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Deterministic source-pixel crop manifest for the intact 864x1821 PNG. */
.manga-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: var(--crop-width) / var(--crop-height);
}

.manga-panel__image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--image-width);
  max-width: none;
  height: auto;
  transform: translate(var(--offset-x), var(--offset-y));
}

.manga-panel[data-panel="1"] {
  --crop-x: 7;
  --crop-y: 4;
  --crop-width: 421;
  --crop-height: 235;
  --image-width: 205.225653%;
  --offset-x: -0.810185%;
  --offset-y: -0.219660%;
}

.manga-panel[data-panel="2"] {
  --crop-x: 434;
  --crop-y: 4;
  --crop-width: 422;
  --crop-height: 235;
  --image-width: 204.739336%;
  --offset-x: -50.231481%;
  --offset-y: -0.219660%;
}

.manga-panel[data-panel="3"] {
  --crop-x: 7;
  --crop-y: 245;
  --crop-width: 421;
  --crop-height: 258;
  --image-width: 205.225653%;
  --offset-x: -0.810185%;
  --offset-y: -13.454146%;
}

.manga-panel[data-panel="4"] {
  --crop-x: 434;
  --crop-y: 245;
  --crop-width: 422;
  --crop-height: 258;
  --image-width: 204.739336%;
  --offset-x: -50.231481%;
  --offset-y: -13.454146%;
}

.manga-panel[data-panel="5"] {
  --crop-x: 7;
  --crop-y: 509;
  --crop-width: 421;
  --crop-height: 270;
  --image-width: 205.225653%;
  --offset-x: -0.810185%;
  --offset-y: -27.951675%;
}

.manga-panel[data-panel="6"] {
  --crop-x: 434;
  --crop-y: 509;
  --crop-width: 422;
  --crop-height: 270;
  --image-width: 204.739336%;
  --offset-x: -50.231481%;
  --offset-y: -27.951675%;
}

.manga-panel[data-panel="7"] {
  --crop-x: 7;
  --crop-y: 784;
  --crop-width: 421;
  --crop-height: 305;
  --image-width: 205.225653%;
  --offset-x: -0.810185%;
  --offset-y: -43.053267%;
}

.manga-panel[data-panel="8"] {
  --crop-x: 434;
  --crop-y: 784;
  --crop-width: 422;
  --crop-height: 305;
  --image-width: 204.739336%;
  --offset-x: -50.231481%;
  --offset-y: -43.053267%;
}

.manga-panel[data-panel="9"] {
  --crop-x: 7;
  --crop-y: 1095;
  --crop-width: 421;
  --crop-height: 226;
  --image-width: 205.225653%;
  --offset-x: -0.810185%;
  --offset-y: -60.131796%;
}

.manga-panel[data-panel="10"] {
  --crop-x: 434;
  --crop-y: 1095;
  --crop-width: 422;
  --crop-height: 226;
  --image-width: 204.739336%;
  --offset-x: -50.231481%;
  --offset-y: -60.131796%;
}

.manga-panel[data-panel="11"] {
  --crop-x: 7;
  --crop-y: 1327;
  --crop-width: 421;
  --crop-height: 168;
  --image-width: 205.225653%;
  --offset-x: -0.810185%;
  --offset-y: -72.872048%;
}

.manga-panel[data-panel="12"] {
  --crop-x: 434;
  --crop-y: 1327;
  --crop-width: 422;
  --crop-height: 168;
  --image-width: 204.739336%;
  --offset-x: -50.231481%;
  --offset-y: -72.872048%;
}

.manga-panel[data-panel="13"] {
  --crop-x: 7;
  --crop-y: 1500;
  --crop-width: 849;
  --crop-height: 231;
  --image-width: 101.766784%;
  --offset-x: -0.810185%;
  --offset-y: -82.372323%;
}

@media (max-width: 767px) {
  .site-header {
    height: 64px;
    padding-inline: 20px;
  }

  .site-logo {
    width: 116px;
    max-height: 34px;
  }

  .manga-desktop {
    display: none;
  }

  .manga-mobile {
    display: block;
    width: 100%;
  }

  .manga-panels {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}

.request-main {
  width: min(100% - 40px, 640px);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 64px 0;
  background: #ffffff;
}

.request-main h1 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.35;
}

.request-main p {
  margin: 0 0 16px;
  font-size: 16px;
}

.request-notice {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.noscript-message {
  padding: 16px;
  border: 2px solid #b42318;
  border-radius: 8px;
  background: #fff5f4;
  color: #7a271a;
  font-weight: 700;
}

.request-form {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.request-form[hidden] {
  display: none;
}

.request-fields {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.form-field label,
.consent-field label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.required-marker {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 4px;
  background: #fce8e6;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #9eb2cc;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.form-field input[aria-invalid="true"],
.consent-field input[aria-invalid="true"] {
  border-color: #b42318;
}

.field-error {
  min-height: 1.6em;
  margin: 0;
  color: #b42318;
  font-size: 14px !important;
  line-height: 1.6;
}

.consent-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  min-width: 0;
}

.consent-field input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
}

.consent-field .field-error {
  grid-column: 2;
}

.consent-field a,
.secondary-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.request-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.request-submit:disabled {
  background: #8297b8;
  box-shadow: none;
  cursor: not-allowed;
}

.request-submit-note {
  margin: -12px 0 0 !important;
  color: var(--text-secondary);
  font-size: 14px !important;
  text-align: center;
}

.request-status {
  min-height: 1.6em;
  margin: -4px 0 0 !important;
  color: var(--text-secondary);
  font-size: 14px !important;
  text-align: center;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.request-complete {
  padding: 24px;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.request-complete[hidden] {
  display: none;
}

.request-complete h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.request-complete p:last-child {
  margin-bottom: 0;
}

.secondary-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .request-main {
    min-height: calc(100vh - 64px);
    padding: 40px 0;
  }

  .request-main h1 {
    font-size: 26px;
  }
}
