@charset "utf-8";

form#mail_form {
  --form-accent: #1d74d0;
  --form-accent-dark: #1560b0;
  --form-border-focus: #1d74d0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(239, 227, 210, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(190, 170, 145, 0.1);
  padding: 32px 0 48px;
}

form#mail_form dl dt span.required {
  color: #ffffff;
  background: #e0472f;
  border: none;
  border-radius: 4px;
  padding: 2px 10px;
}

form#mail_form ul li label:has(input:checked) {
  border-color: var(--form-accent);
  background: #eef4fc;
  box-shadow: 0 0 0 1px rgba(29, 116, 208, 0.15);
}

form#mail_form ul li label:has(input:checked)::before {
  border-color: var(--form-accent);
  background: var(--form-accent);
}

form#mail_form input[type="button"] {
  background: var(--form-accent);
  box-shadow: 0 4px 16px rgba(29, 116, 208, 0.35);
}

form#mail_form input[type="button"]:hover {
  background: var(--form-accent-dark);
  box-shadow: 0 6px 20px rgba(29, 116, 208, 0.4);
}

form#mail_form input[type="text"]:focus,
form#mail_form input[type="email"]:focus,
form#mail_form input[type="tel"]:focus,
form#mail_form textarea:focus {
  box-shadow: 0 0 0 3px rgba(29, 116, 208, 0.18);
}

/* セクション見出し */
form#mail_form .form-section-title {
  width: 90%;
  margin: 0 auto;
  padding: 28px 0 4px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333333;
  border-top: 1px solid #eeeeee;
}

form#mail_form .form-section-title:first-child {
  padding-top: 0;
  border-top: none;
}

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

/* 2列フィールド */
form#mail_form .form-row {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

form#mail_form .form-row dl {
  width: 100%;
  margin: 0;
}

/* 補助テキスト */
form#mail_form .form-help {
  margin-top: 8px;
  font-size: 1.2rem;
  color: #666666;
  font-weight: 400;
  line-height: 1.6;
}

/* 賛助プラン */
form#mail_form ul.plan-list {
  flex-direction: column;
  gap: 10px;
}

form#mail_form ul.plan-list li label.plan-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px 14px 44px;
  font-weight: 400;
}

form#mail_form ul.plan-list li label.plan-card::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

form#mail_form ul.plan-list li label.plan-card:has(input[type="radio"]:checked)::after {
  left: 21px;
}

form#mail_form .plan-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

form#mail_form .plan-card__name {
  font-weight: 700;
  font-size: 1.5rem;
  color: #333333;
}

form#mail_form .plan-card__desc {
  font-size: 1.2rem;
  color: #666666;
  line-height: 1.5;
}

form#mail_form .plan-card__price {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #333333;
  white-space: nowrap;
}

form#mail_form .plan-card__price strong {
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  form#mail_form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  form#mail_form ul.plan-list li label.plan-card {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 16px;
  }

  form#mail_form .plan-card__price {
    padding-left: 0;
    margin-top: 4px;
  }
}
