/* =============================
   Trial Section Styles
================================ */
.trial-section {
  padding: clamp(32px, 6vw, 80px) min(5vw, 24px);
  display: grid;
  place-items: center;
  background: #05060a;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 124px;
}

.trial-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250vmax;
  height: 250vmax;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  background:
    radial-gradient(80vmax 80vmax at 10% 10%, rgba(255, 32, 79, 0.45), transparent 60%),
    radial-gradient(70vmax 70vmax at 90% 90%, rgba(0, 64, 255, 0.45), transparent 65%),
    linear-gradient(135deg, #ff204f, #0040ff);
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.05) brightness(1.05);
  animation: spinCCW 10s linear infinite;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

.trial-section > * {
  position: relative;
  z-index: 1;
}

.trial-container {
  width: min(1120px, 100%);
}

.trial-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px hsl(210 22% 25% / 0.1), 0 3px 8px hsl(210 22% 25% / 0.08);
  overflow: clip;
  border: 1px solid hsl(210 20% 90% / 0.35);
}

.trial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 3vw, 28px);
}

@media (min-width: 960px) {
  .trial-grid {
    grid-template-columns: 1.1fr 0.9fr;
    padding: clamp(28px, 4vw, 40px);
  }
}

.trial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(200 100% 50% / 0.12);
  color: hsl(200 100% 45%);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: .9rem;
}

.trial-title {
  margin: 10px 0 6px;
  font-size: clamp(1.5rem, 2.5vw + .4rem, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
  color: hsl(215 25% 16%);
}

.trial-title .trial-accent {
  background: linear-gradient(90deg, hsl(200 100% 45%), hsl(204 100% 60%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trial-lead {
  margin: 0 0 8px;
  color: hsl(215 16% 46%);
  font-size: clamp(0.98rem, 1.2vw + .6rem, 1.15rem);
}

.trial-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 14px 18px;
  height: 48px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: #111;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.2s;
}

.trial-cta:hover {
  opacity: 0.7;
}

.trial-cta:active {
  transform: translateY(1px);
}

.trial-flow {
  position: relative;
  border-radius: 20px;
  padding: clamp(16px, 2.4vw, 24px);
  background: #f8f9fa;
  border: 1px dashed hsl(210 20% 85%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .6);
  margin-top: clamp(18px, 3vw, 26px);
}

.trial-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  position: relative;
  z-index: 2;
}

@media (min-width: 720px) {
  .trial-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.trial-step {
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
  border: 1px solid hsl(210 20% 90%);
  border-radius: 16px;
  padding: 16px;
  min-height: 132px;
}

.trial-step h3 {
  margin: 0;
  font-size: 1.05rem;
  color: hsl(215 25% 16%);
}

.trial-step p {
  margin: 0;
  color: hsl(215 16% 46%);
  font-size: .95rem;
}

.trial-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, hsl(200 100% 45%), hsl(204 100% 60%));
  box-shadow: 0 6px 16px hsl(200 100% 40% / 0.25);
}

.trial-bridge {
  display: none;
}

@media (min-width: 720px) {
  .trial-bridge {
    display: block;
    position: absolute;
    inset: auto 0 50% 0;
    transform: translateY(50%);
    pointer-events: none;
    z-index: 1;
  }
  .trial-bridge svg {
    width: 100%;
    height: 40px;
  }
}

.trial-note {
  display: inline-block;
  margin-top: 10px;
  font-size: .9rem;
  color: hsl(215 16% 46%);
}

.trial-form-shell {
  background: #fff;
  border: 1px solid hsl(210 20% 90%);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 22px);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .6);
}

.trial-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: hsl(215 25% 16%);
}

.trial-form-note {
  font-size: .9rem;
  color: hsl(215 16% 46%);
  margin: 0 0 16px;
}

.trial-button-unit {
  margin: 16px 0;
}

.trial-button-unit a {
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  transition: all 0.1s linear;
  text-decoration: none;
}

.trial-button-unit a div span {
  display: block;
}

.trial-button-unit a div span:nth-child(1) {
  font-size: 12px;
  font-weight: 400;
}

.trial-button-unit a div span:nth-child(2) {
  font-size: 18px;
  font-weight: 700;
}

.trial-button-unit_pink a {
  background-color: #ff3f68;
  transition: all 0.1s linear;
}

.trial-button-unit_pink a:hover {
  opacity: 0.6;
}

.trial-form-footer {
  margin-top: 12px;
  font-size: .9rem;
  color: hsl(215 16% 46%);
}

.trial-form-footer a {
  color: hsl(200 100% 45%);
  text-decoration: underline;
}

/* SP表示時の背景サイズ調整 */
@media (max-width: 767px) {
  .trial-section::before {
    width: 400vmax;
    height: 400vmax;
  }
}

/* Trial Form Styles */
.trial-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trial-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trial-form-field label {
  font-size: 14px;
  font-weight: 600;
  color: hsl(215 25% 16%);
}

.trial-required {
  color: #ff3f68;
}

.trial-form-field input[type="text"],
.trial-form-field input[type="email"] {
  width: 100%;
  height: 44px;
  border: 1px solid #e3e4ea;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.trial-form-field input:focus {
  border: 2px solid transparent;
  background-image:
    linear-gradient(white, white),
    linear-gradient(135deg, #0088ff 0%, #11c0ff 30%, #ff6fb3 70%, #8de3b9 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.2), 0 2px 8px rgba(255, 111, 179, 0.15);
}

.trial-field-help {
  font-size: 12px;
  color: hsl(215 16% 46%);
  line-height: 1.4;
}

.trial-error {
  font-size: 13px;
  color: #ff3f68;
  min-height: 18px;
}

.trial-form-consent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.trial-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
}

.trial-checkbox input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.trial-privacy-link {
  background: none;
  border: none;
  padding: 0;
  color: hsl(200 100% 45%);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.trial-privacy-link:hover {
  opacity: 0.8;
}

.trial-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.trial-submit[type="submit"] {
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
