:root {
  --page-bg: #dff4ff;
  --frame-bg: #ffffff;
  --shadow: 0 18px 50px rgba(0, 30, 96, 0.18);
  --lp-width: 100vw;
  --section-overlap: calc(var(--lp-width) * -0.11);
  --cta-x: 5%;
  --navy: #001e60;
  --pink: #f5336a;
  --error: #c7332f;
  --success: #00b86b;
  --cta-bottom-fv: calc(var(--lp-width) * 0.187);
  --cta-bottom-04: calc(var(--lp-width) * 0.101);
  --cta-bottom-05: calc(var(--lp-width) * 0.099);
  --cta-bottom-06: calc(var(--lp-width) * 0.101);
  --cta-bottom-07: calc(var(--lp-width) * 0.122);
}

* {
  box-sizing: border-box;
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 900;
}

.desktop-side {
  display: none;
}

.floating-cta {
  position: fixed;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(28px, env(safe-area-inset-left));
  z-index: 30;
  display: block;
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
  -webkit-mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-cta img {
  display: block;
  width: 100%;
  height: auto;
}

.lp {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--frame-bg);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--lp-width) * 0.15);
  padding: calc(var(--lp-width) * 0.05) calc(var(--lp-width) * 0.05);
  background: var(--navy);
}

.site-logo {
  display: block;
  width: min(calc(var(--lp-width) * 0.48), 200px);
}

.site-logo img,
.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-section {
  position: relative;
  display: block;
  margin: 0;
  line-height: 0;
}

.overlap-section {
  z-index: 3;
  margin-top: var(--section-overlap);
  margin-bottom: var(--section-overlap);
}

.lp-section img {
  display: block;
  width: 100%;
  height: auto;
}

.has-cta {
  position: relative;
}

.cta-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
  -webkit-mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
}

.cta-hotspot::after,
.faq-cta::after,
.desktop-line-cta::after,
.floating-cta::after,
.contact-form button::after {
  position: absolute;
  top: -35%;
  left: -55%;
  width: 34%;
  height: 170%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.78) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  content: "";
  pointer-events: none;
  transform: skewX(-24deg);
  animation: cta-shine 1.4s ease-in-out infinite;
}

.cta-hotspot img {
  display: block;
  width: 100%;
}

.cta-fv,
.cta-section-04,
.cta-section-05,
.cta-section-06,
.cta-section-07 {
  left: var(--cta-x);
  right: var(--cta-x);
}

.cta-fv {
  bottom: var(--cta-bottom-fv);
}

.cta-section-04 {
  bottom: var(--cta-bottom-04);
}

.cta-section-05 {
  bottom: var(--cta-bottom-05);
}

.cta-section-06 {
  bottom: var(--cta-bottom-06);
}

.cta-section-07 {
  bottom: var(--cta-bottom-07);
}

.cta-hotspot:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 3px;
}

.html-section {
  padding: calc(var(--lp-width) * 0.12) 0;
  color: var(--navy);
}

.faq-html {
  background: linear-gradient(180deg, #dff4ff 0%, #eefaff 100%);
}

.faq-headline {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 calc(var(--lp-width) * 0.03);
}

.faq-list {
  display: grid;
  gap: calc(var(--lp-width) * 0.03);
  padding: 0 calc(var(--lp-width) * 0.05);
  margin-bottom: calc(var(--lp-width) * 0.08);
}

.faq-list details {
  overflow: hidden;
  border-radius: calc(var(--lp-width) * 0.035);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 calc(var(--lp-width) * 0.02) calc(var(--lp-width) * 0.045) rgba(0, 30, 96, 0.12);
}

.faq-list summary {
  position: relative;
  list-style: none;
  padding: calc(var(--lp-width) * 0.04) calc(var(--lp-width) * 0.045) calc(var(--lp-width) * 0.04) calc(var(--lp-width) * 0.13);
  color: var(--navy);
  cursor: pointer;
  font-size: calc(var(--lp-width) * 0.037);
  font-weight: 900;
  line-height: 1.55;
}

.faq-list summary::marker {
  content: "";
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  position: absolute;
  top: calc(var(--lp-width) * 0.04);
  left: calc(var(--lp-width) * 0.045);
  display: grid;
  width: calc(var(--lp-width) * 0.065);
  height: calc(var(--lp-width) * 0.065);
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  content: "Q";
  font-size: calc(var(--lp-width) * 0.032);
}

.faq-list p {
  margin: 0;
  padding: 0 calc(var(--lp-width) * 0.045) calc(var(--lp-width) * 0.045);
  color: #233b71;
  font-size: calc(var(--lp-width) * 0.034);
  font-weight: 900;
  line-height: 1.7;
}

.faq-cta {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 calc(var(--lp-width) * 0.05);
  border-radius: 999px;
  mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
  -webkit-mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
}

.faq-cta img {
  display: block;
  width: 100%;
  height: auto;
}

.form-section {
  padding: calc(var(--lp-width) * 0.15) calc(var(--lp-width) * 0.05);
  background: #fffbd2;
  color: var(--navy);
}

.form-headline {
  display: block;
  width: calc(100% + var(--lp-width) * 0.1);
  max-width: none;
  height: auto;
  margin: 0 calc(var(--lp-width) * -0.05);
}

.form-lead {
  margin: 0 0 calc(var(--lp-width) * 0.07);
  color: var(--navy);
  font-size: calc(var(--lp-width) * 0.036);
  font-weight: 900;
  line-height: 1.7;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: calc(var(--lp-width) * 0.04);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  display: grid;
  gap: calc(var(--lp-width) * 0.01);
  padding: calc(var(--lp-width) * 0.04);
  border: 3px solid var(--error);
  border-radius: calc(var(--lp-width) * 0.035);
  background: #fff;
  color: var(--navy);
  font-size: calc(var(--lp-width) * 0.033);
  line-height: 1.65;
}

.form-alert p,
.form-alert ul {
  margin: 0;
}

.form-alert-title {
  color: var(--error);
  font-size: calc(var(--lp-width) * 0.042);
}

.field-error {
  display: block;
  margin: 0;
  color: var(--error);
  font-size: calc(var(--lp-width) * 0.032);
  font-weight: 900;
  line-height: 1.55;
}

.contact-form label {
  display: grid;
  gap: calc(var(--lp-width) * 0.018);
  color: var(--navy);
  font-size: calc(var(--lp-width) * 0.037);
  font-weight: 900;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--lp-width) * 0.025);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 3px solid var(--navy);
  border-radius: calc(var(--lp-width) * 0.026);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: calc(var(--lp-width) * 0.037);
  line-height: 1.55;
  padding: calc(var(--lp-width) * 0.032);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 30, 96, 0.42);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(245, 51, 106, 0.18);
}

.contact-form input.is-error,
.contact-form textarea.is-error,
.contact-form select.is-error,
.contact-method-box.is-error,
.privacy-check.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(199, 51, 47, 0.14);
}

.required,
.optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--lp-width) * 0.12);
  padding: calc(var(--lp-width) * 0.008) calc(var(--lp-width) * 0.025);
  border-radius: 999px;
  color: #fff;
  font-size: calc(var(--lp-width) * 0.032);
  line-height: 1.35;
}

.required {
  background: var(--pink);
}

.optional {
  background: var(--navy);
}

.contact-method-box {
  position: relative;
  display: grid;
  gap: calc(var(--lp-width) * 0.032);
  margin: 0;
  padding: calc(var(--lp-width) * 0.07) calc(var(--lp-width) * 0.045) calc(var(--lp-width) * 0.045);
  border: 3px solid var(--navy);
  border-radius: calc(var(--lp-width) * 0.04);
  background: rgba(255, 255, 255, 0.72);
}

.contact-method-box legend {
  padding: 0 calc(var(--lp-width) * 0.02);
  color: var(--navy);
  font-size: calc(var(--lp-width) * 0.04);
  font-weight: 900;
}

.or-note {
  position: absolute;
  top: calc(var(--lp-width) * 0.025);
  right: calc(var(--lp-width) * 0.035);
  width: fit-content;
  margin: 0;
  padding: calc(var(--lp-width) * 0.014) calc(var(--lp-width) * 0.035);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: calc(var(--lp-width) * 0.032);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.contact-method-error {
  margin: 0;
  padding: calc(var(--lp-width) * 0.028) calc(var(--lp-width) * 0.035);
  border: 3px solid var(--pink);
  border-radius: calc(var(--lp-width) * 0.025);
  background: #fff;
  color: var(--pink);
  font-size: calc(var(--lp-width) * 0.034);
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
}

.contact-method-help {
  margin: 0;
  padding: calc(var(--lp-width) * 0.028) calc(var(--lp-width) * 0.035);
  border-radius: calc(var(--lp-width) * 0.025);
  background: rgba(0, 30, 96, 0.07);
  color: #233b71;
  font-size: calc(var(--lp-width) * 0.031);
  font-weight: 900;
  line-height: 1.65;
}

.privacy-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: calc(var(--lp-width) * 0.025) !important;
  padding: calc(var(--lp-width) * 0.04);
  border: 3px solid rgba(0, 30, 96, 0.18);
  border-radius: calc(var(--lp-width) * 0.035);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.privacy-check input {
  width: calc(var(--lp-width) * 0.065);
  min-width: calc(var(--lp-width) * 0.065);
  height: calc(var(--lp-width) * 0.065);
  margin-top: calc(var(--lp-width) * 0.008);
  accent-color: var(--pink);
}

.privacy-check a {
  display: inline-block;
  color: var(--pink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.privacy-check span {
  font-size: calc(var(--lp-width) * 0.037);
}

.contact-form button {
  position: relative;
  overflow: hidden;
  min-height: calc(var(--lp-width) * 0.2);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #07D266 0%, #05BC44 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--lp-width) * 0.052);
  font-weight: 900;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    0 calc(var(--lp-width) * 0.03) calc(var(--lp-width) * 0.05) rgba(0, 184, 107, 0.28);
}

.contact-form button::after {
  animation-delay: 0.25s;
}

.site-footer {
  padding: calc(var(--lp-width) * 0.2) calc(var(--lp-width) * 0.05);
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.footer-logo {
  display: block;
  width: min(calc(var(--lp-width) * 0.54), 200px);
  margin: 0 auto calc(var(--lp-width) * 0.08);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: calc(var(--lp-width) * 0.055);
  margin-bottom: calc(var(--lp-width) * 0.2);
}

.site-footer a {
  color: #fff;
  font-size: calc(var(--lp-width) * 0.034);
  font-weight: 900;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.copyright {
  margin: 0;
  font-size: calc(var(--lp-width) * 0.03);
  font-weight: 900;
}

.thanks-section {
  display: grid;
  gap: calc(var(--lp-width) * 0.05);
  min-height: calc(var(--lp-width) * 1.2);
  padding: calc(var(--lp-width) * 0.18) calc(var(--lp-width) * 0.06);
  background: #fffbd2;
  color: var(--navy);
  text-align: center;
}

.thanks-kicker {
  width: fit-content;
  margin: 0 auto;
  padding: calc(var(--lp-width) * 0.018) calc(var(--lp-width) * 0.05);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: calc(var(--lp-width) * 0.034);
  line-height: 1.45;
}

.thanks-section h1 {
  margin: 0;
  color: var(--navy);
  font-size: calc(var(--lp-width) * 0.072);
  line-height: 1.35;
}

.thanks-section p {
  margin: 0;
  font-size: calc(var(--lp-width) * 0.04);
  line-height: 1.8;
}

.thanks-note {
  padding: calc(var(--lp-width) * 0.04);
  border-radius: calc(var(--lp-width) * 0.035);
  background: rgba(255, 255, 255, 0.72);
  color: #233b71;
  font-size: calc(var(--lp-width) * 0.034) !important;
}

.thanks-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--lp-width) * 0.15);
  padding: 0 calc(var(--lp-width) * 0.08);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: calc(var(--lp-width) * 0.042);
  text-decoration: none;
}

@media (min-width: 768px) {
  :root {
    --lp-width: min(520px, calc(100vw - 360px));
    --desktop-gap: clamp(24px, 4vw, 64px);
    --desktop-page-pad: 24px;
    --desktop-rail-width: min(320px, calc(100vw - var(--lp-width) - var(--desktop-gap) - var(--desktop-page-pad) * 2));
    --desktop-layout-width: calc(var(--desktop-rail-width) + var(--desktop-gap) + var(--lp-width));
    --desktop-layout-left: max(var(--desktop-page-pad), calc((100vw - var(--desktop-layout-width)) / 2));
    --desktop-left-space: calc(var(--desktop-layout-left) + var(--desktop-rail-width) + var(--desktop-gap));
  }

  body {
    background:
      linear-gradient(180deg, rgba(223, 244, 255, 0.52), rgba(223, 244, 255, 0.52)),
      url("assets/lp/background.webp") center center / cover fixed no-repeat,
      var(--page-bg);
    padding: 24px 0;
  }

  .lp {
    width: var(--lp-width);
    margin-right: auto;
    margin-left: var(--desktop-left-space);
  }

  .thanks-page {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 768px) {
  .site-header {
    display: none;
  }

  .thanks-page .site-header {
    display: flex;
  }

  .desktop-side {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    left: 0;
    width: var(--desktop-left-space);
    pointer-events: none;
  }

  .desktop-brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vh, 44px);
    min-height: 100vh;
  }

  .desktop-logo,
  .desktop-line-cta {
    display: block;
    pointer-events: auto;
  }

  .desktop-logo {
    width: min(var(--desktop-rail-width), 320px);
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
  }

  .desktop-line-cta {
    position: relative;
    overflow: hidden;
    width: min(var(--desktop-rail-width), 320px);
    border-radius: 999px;
    mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
    -webkit-mask: url("assets/lp/cta-2.webp") center / 100% 100% no-repeat;
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  .floating-cta {
    display: none;
  }

  .desktop-line-cta:hover {
    filter: brightness(1.04);
    transform: translateY(-2px);
  }

  .desktop-logo img,
  .desktop-line-cta img {
    display: block;
    width: 100%;
    height: auto;
  }
}

@keyframes cta-shine {
  0% {
    left: -55%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  64%,
  100% {
    left: 125%;
    opacity: 0;
  }
}
