:root {
  --bg: #eef5ff;
  --ink: #0b1b3a;
  --muted: #4f617a;
  --accent: #2f6df6;
  --accent-strong: #1f4dd8;
  --accent-soft: #dbeafe;
  --glow: rgba(47, 109, 246, 0.18);
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.78);
  --shadow: 0 32px 64px rgba(12, 31, 60, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px circle at 12% 8%, rgba(191, 219, 254, 0.55) 0%, transparent 60%),
    radial-gradient(800px circle at 88% 12%, rgba(224, 242, 254, 0.6) 0%, transparent 62%),
    linear-gradient(150deg, #f5f9ff 0%, #eaf1ff 45%, #f8fbff 100%);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.72;
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: float 18s ease-in-out infinite;
}

.orb--one {
  background: radial-gradient(circle at 30% 30%, rgba(147, 197, 253, 0.9) 0%, rgba(147, 197, 253, 0) 65%);
  top: -140px;
  left: -120px;
}

.orb--two {
  background: radial-gradient(circle at 60% 30%, rgba(186, 230, 253, 0.9) 0%, rgba(186, 230, 253, 0) 70%);
  bottom: -200px;
  right: -100px;
  animation-delay: -6s;
}

.orb--three {
  background: radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.7) 0%, rgba(96, 165, 250, 0) 68%);
  top: 30%;
  right: 50%;
  animation-delay: -10s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.16;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 78px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 52px;
  align-items: start;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.brand__label {
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.brand__title {
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
}

.hero__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  margin: 6px 0 0;
  color: var(--accent-strong);
}

.contact {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.contact__note {
  margin: 0 0 22px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink);
  background: rgba(47, 109, 246, 0.14);
  border-left: 4px solid var(--accent-strong);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.14);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-weight: 600;
  font-size: 14px;
}

.field__input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47, 109, 246, 0.15);
  background: rgba(248, 251, 255, 0.9);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
  background: #fff;
}

.field__textarea {
  resize: vertical;
  min-height: 140px;
}

.field__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.field__error {
  margin: 0;
  font-size: 12px;
  color: #b42330;
  min-height: 14px;
}

.field--recaptcha {
  align-items: flex-start;
}

.field--recaptcha .g-recaptcha {
  transform-origin: 0 0;
}

.submit {
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #3b82f6 0%, #1d4ed8 100%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.35);
}

.submit:disabled,
.submit.is-sent {
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
  background: linear-gradient(120deg, #9bbcff 0%, #7aa3ff 100%);
}

.form-status {
  font-size: 14px;
  min-height: 20px;
  color: var(--accent-strong);
  font-weight: 500;
}

.form-status.is-error {
  color: #b42330;
}

.recaptcha-legal {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.6;
}

.recaptcha-legal a {
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.4);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(26px, -26px, 0);
  }
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 28px 22px;
  }
}

@media (max-width: 420px) {
  .field--recaptcha .g-recaptcha {
    transform: scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  [data-animate] {
    animation: none;
    transition: none;
  }
}
