:root {
  --blue: #1b99dd;
  --blue-deep: #1468a8;
  --navy: #0d4868;
  --ink: #333333;
  --muted: #666666;
  --line: #d5dde3;
  --paper: #f7f8fa;
  --white: #ffffff;
  --danger: #c62828;
  --focus: rgba(27, 153, 221, 0.35);
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

a {
  color: var(--blue-deep);
}

.skip {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 10;
  padding: 8px 12px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-120%);
}

.skip:focus {
  transform: none;
  top: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 20px 36px;
  text-align: center;
  background-color: #8ec8ea;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.45) 0 150px, transparent 151px),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.32) 0 110px, transparent 111px),
    radial-gradient(circle at 92% 78%, rgba(255, 255, 255, 0.4) 0 190px, transparent 191px),
    radial-gradient(circle at 8% 86%, rgba(255, 255, 255, 0.28) 0 130px, transparent 131px),
    linear-gradient(180deg, #9fd4f2 0%, #5eaddf 42%, #2f86c4 100%);
}

.hero::before {
  content: none;
}

.hero-kicker,
.cover,
.pill,
.hero-note {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.cover {
  display: block;
  width: min(640px, 100%);
  height: auto;
  margin-inline: auto;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(8, 58, 84, 0.28);
}

.pill,
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 36px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.free-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.pill {
  display: flex;
  width: fit-content;
  margin: 26px auto 0;
  min-height: 64px;
  padding: 6px 28px 6px 8px;
  gap: 12px;
  border: 3px solid #ffffff;
  font-size: 18px;
}

.pill svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

button svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pill:hover,
button:hover,
.button:hover {
  background: #0f568a;
  color: var(--white);
}

.pill:focus-visible,
button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.hero-note {
  margin: 18px auto 0;
  max-width: 640px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.know {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto;
  padding: 28px 32px 24px;
  border: 6px solid transparent;
  border-radius: 18px;
  background-color: transparent;
  background-image:
    linear-gradient(rgba(160, 166, 172, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(160, 166, 172, 0.08) 2px, transparent 2px),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(100deg, #1b99dd 0%, #0097a7 48%, #0d4868 100%);
  background-origin: padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, border-box;
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.know h2,
.next h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.know h2 {
  width: fit-content;
  margin-inline: auto;
  font-weight: 900;
  background-image: linear-gradient(100deg, #1b99dd 0%, #0097a7 48%, #0d4868 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.know ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.know li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-weight: 700;
}

.know li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}

.next {
  width: min(640px, calc(100% - 32px));
  margin: 8px auto 28px;
  text-align: center;
}

.next h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--blue);
}

.next p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-panel {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto 96px;
}

.field {
  margin-top: 16px;
}

.field label,
.consent {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.req {
  display: inline-block;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #c5ced6;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

input::placeholder {
  color: #9aa3ab;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}

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

.fine {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-weight: 500;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
}

.form-panel button,
.success .button {
  width: 100%;
  margin-top: 48px;
}

.form-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4f4;
  color: var(--danger);
  font-size: 14px;
}

.success {
  padding: 12px 0 8px;
  text-align: center;
}

.success h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.success p {
  margin: 12px 0 0;
}

.site-footer {
  background: var(--navy);
  color: #e7f2f8;
  text-align: center;
}

.footer-inner {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 36px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 14px;
}

.site-footer a {
  color: #b9e2f8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--white);
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 16px 28px;
  }

  .hero-kicker,
  .know h2,
  .next h2 {
    font-size: 16px;
  }

  .know {
    padding: 20px 16px;
  }

  .pill,
  button,
  .button {
    width: min(100%, 420px);
  }
}
