:root {
  color-scheme: light;
  --paper: #f8faff;
  --mist: #ddebff;
  --blue: #2659e8;
  --ink: #1f2c48;
  --lime: #e8f57a;
  --page-width: 700px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

h1, h2, h3, .headline { word-break: auto-phrase; text-wrap: balance; line-break: strict; }

.page {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  background: var(--paper);
  box-shadow: 0 18px 64px rgb(31 44 72 / 13%);
}

.visual-section { position: relative; margin: 0; line-height: 0; }
.visual-section img { display: block; width: 100%; height: auto; }
.image-cta {
  position: absolute;
  z-index: 2;
  left: 4.8%;
  right: 4.8%;
  bottom: 2.8%;
  height: 7.3%;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
}
.visual-section--final .image-cta { left: 4%; right: 4%; bottom: 3.7%; height: 8.6%; }
.image-cta:focus-visible, .floating-cta:focus-visible, .back-to-top:focus-visible, .skip-link:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
}

.site-footer {
  padding: 48px clamp(24px, 6vw, 64px) 64px;
  border-top: 1px solid #c5d8f6;
  background: var(--paper);
  line-height: 1.8;
}
.footer-brand { color: var(--blue); font-size: 15px; letter-spacing: .26em; }
.site-footer h2 { margin: 32px 0 8px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; }
.site-footer p { max-width: 48em; margin: 0 0 12px; font-size: clamp(15px, 1.7vw, 17px); }
.site-footer .demo-note { color: #5a6782; font-size: 13px; }
.back-to-top { display: inline-block; margin-top: 16px; color: var(--blue); font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.floating-cta {
  position: fixed;
  z-index: 10;
  right: max(16px, calc((100vw - var(--page-width)) / 2 + 20px));
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 156px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 7px 24px rgb(38 89 232 / 28%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.floating-cta span { font-size: 18px; font-weight: 400; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--blue);
  border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 600px) {
  .page { box-shadow: none; }
  .site-footer { padding: 36px 20px 64px; }
  .footer-brand { font-size: 13px; }
  .image-cta { border-radius: 7px; }
}

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