.form-content {
  max-width: 750px;
  margin: 0 auto;
}

/* ========================================
   flow-wrap
======================================== */
.flow-wrap {
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  width: 400px;
}

.flow-wrap .flow-wrap-circle {
  background-color: #fff;
  color: #818181;
  width: 96px;
  height: 96px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ececec;
  z-index: 1;
}

.flow-wrap .flow-wrap-circle.is-active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.flow-wrap .flow-wrap-circle.is-active .flow-wrap-text-step,
.flow-wrap .flow-wrap-circle.is-active .flow-wrap-text {
  color: #fff;
}

.flow-wrap .flow-image {
  width: max-content;
  margin: 0 auto 2px;
}

.flow-wrap .flow-image img {
  width: 20px;
}

.flow-wrap .flow-wrap-text-step,
.flow-wrap .flow-wrap-text {
  color: #919191;
  text-align: center;
  font-weight: bold;
  line-height: 1.4;
}

.flow-wrap .flow-wrap-text-step {
  font-size: 12px;
}

.flow-wrap .flow-wrap-text {
  font-size: 13px;
  margin-bottom: 14px;
}

/* bg-line */
.bg-line {
  position: relative;
}

.bg-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  background-color: #ececec;
  z-index: 0;
}

/* ========================================
   radio-button
======================================== */
.custom-radio {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #50b06d;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.custom-radio:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #50b06d;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ========================================
   checkbox
======================================== */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #50b06d;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.custom-checkbox:checked {
  background-color: #50b06d;
}

.custom-checkbox:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(45deg);
  background: none;
  border-radius: 0;
}

/* ヘッダー */
.form-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.header-accent {
  width: 76px;
  height: 4px;
  background-color: #4cbf65;
  border-radius: 100px;
  margin: 0 auto 20px;
}

.form-header h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 48px;
  color: #424641;
  margin-bottom: 20px;
}

.header-description {
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
  color: #424641;
  max-width: 1000px;
  margin: 0 auto;
}

/* 注意書き */
.notice-text {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 26px;
  color: #424641;
}

/* フォームセクション */
.form-sections {
  max-width: 752px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-section {
  background-color: rgba(80, 143, 93, 0.08);
  border-radius: 20px;
  padding: 24px;
}

.form-section h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: #424641;
  margin-bottom: 12px;
}

.section-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-dark-secondary);
  margin-bottom: 12px;
}

.section-description-multi {
  margin-bottom: 12px;
}

.section-description-multi p {
  font-size: 14px;
  line-height: 24px;
  color: #4a5565;
}

/* フォームフィールド */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-field label {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #424641;
}

.required {
  color: #d4183d;
  margin-left: 4px;
}

.error-message-main {
  color: #d4183d;
  font-size: 14px;
  border: 1px solid #d4183d;
  padding: 13px;
  border-radius: 5px;
  margin-bottom: 15px;
  background-color: #fff7f8;
}

.error-message {
  color: #d4183d;
  font-size: 14px;
}

.error-message-list {
  margin: -4px 0 16px;
  padding-left: 20px;
  color: #d4183d;
  font-size: 13px;
  line-height: 1.6;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #424641;
  line-height: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
}

.form-field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 50px;
}

.form-field input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(10, 10, 10, 0.2);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #4cbf65;
}

.form-field textarea {
  min-height: 93.5px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23B4B4B4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ラジオボタン */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-group>label {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #424641;
}

.radio-option {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.radio-option:hover {
  border-color: #4cbf65;
}

.radio-option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #4cbf65;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.radio-option input[type="radio"]:checked {
  border-color: #4cbf65;
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #4cbf65;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-option label {
  cursor: pointer;
  flex: 1;
}

.radio-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #424641;
  margin-bottom: 4px;
}

.radio-subtitle {
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
  color: var(--gray-dark-secondary);
  margin-top: 5px;
}

/* インラインラジオボタン */
.radio-option-inline {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 17px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.3s;
}

.radio-option-inline:hover {
  border-color: #4cbf65;
}

.radio-option-inline input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #4cbf65;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.radio-option-inline input[type="radio"]:checked {
  border-color: #4cbf65;
}

.radio-option-inline input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #4cbf65;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-option-inline .radio-option-inline-text,
.radio-option-inline label {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #424641;
  cursor: pointer;
}

/* オプショングループ */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-group-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #424641;
  display: block;
}

/* チェックボックス */
.checkbox-option {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 17px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.3s;
}

.checkbox-option:hover {
  border-color: #4cbf65;
}

.checkbox-option input[type="checkbox"] {
  margin-right: 12px;
  flex-shrink: 0;
}

.checkbox-option label {
  cursor: pointer;
  flex: 1;
}

.checkbox-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #424641;
}

.checkbox-subtitle {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #4a5565;
  margin-top: 4px;
}

/* 同意事項 */
.agreement-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agreement-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #424641;
}

.agreement-text {
  font-size: 14px;
}

.confirm-readonly {
  pointer-events: none;
}

.confirm-readonly,
.confirm-readonly * {
  cursor: default !important;
}

.confirm-readonly .radio-option.is-selected,
.confirm-readonly .checkbox-option.is-selected {
  background-color: rgba(80, 176, 109, 0.08);
  border-color: var(--primary-color);
  opacity: 1;
}

.confirm-readonly .radio-option.is-unselected,
.confirm-readonly .checkbox-option.is-unselected,
.confirm-readonly .agreement-option.is-unselected,
.form-field-unselected {
  background-color: #f8f9fa;
  border-color: #e0e0e0;
  opacity: 0.45;
  cursor: unset !important;
}

.confirm-readonly .agreement-option.is-selected {
  opacity: 1;
}

.confirm-readonly .radio-option-inline.is-selected {
  background-color: rgba(80, 176, 109, 0.08);
  border-color: var(--primary-color);
  opacity: 1;
}

.confirm-readonly .radio-option-inline.is-unselected {
  background-color: #f8f9fa;
  border-color: #e0e0e0;
  opacity: 0.45;
}

/* 送信ボタン */
.submit-button-container {
  text-align: center;
  margin-top: 40px;
}

/* application-login */
.application-login-notice {
  margin: 0 auto 24px;
  padding: 16px 20px;
  border: 1px solid #d9e7df;
  border-radius: 12px;
  background: #f4f9f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.application-login-notice p {
  margin: 0;
  color: #2f3a34;
  font-size: 14px;
  line-height: 1.6;
}

.application-login-notice .mypage-btn {
  margin: 0;
}

.application-login-notice.is-alert {
  border-color: #d4183d;
  background-color: #fff7f8;
}

.complete-text {
  text-align: center;

  h3 {
    margin-bottom: 16px;
  }
}

.form-field-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-dark-secondary);
}

@media (max-width: 768px) {
  .application-login-notice {
    flex-direction: column;
    align-items: flex-start;
  }

  .application-login-notice .btn {
    width: 100%;
    text-align: center;
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .flow-wrap {
    width: 270px;
    margin: 0 auto 40px;
  }

  .flow-wrap .flow-wrap-circle {
    width: 72px;
    height: 72px;
  }

  .flow-wrap .flow-image {
    line-height: 1;
    margin: 0 auto;
  }

  .flow-wrap .flow-image img {
    width: 16px;
  }

  .flow-wrap .flow-wrap-text-step {
    font-size: 10px;
  }

  .flow-wrap .flow-wrap-text {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .form-header h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .header-description {
    font-size: 16px;
    line-height: 26px;
  }

  .form-section {
    padding: 20px 16px;
  }

  .form-section h2 {
    font-size: 20px;
    line-height: 30px;
  }

  .section-description,
  .section-description-multi p {
    font-size: 13px;
    line-height: 22px;
  }

  .form-field label,
  .radio-group>label,
  .option-group-label,
  .agreement-label {
    font-size: 14px;
    line-height: 21px;
  }

  .radio-title,
  .checkbox-title {
    font-size: 14px;
    line-height: 21px;
  }

  .radio-subtitle,
  .checkbox-subtitle {
    font-size: 13px;
    line-height: 20px;
  }

  .agreement-option label {
    font-size: 14px;
    line-height: 22px;
  }

  .radio-option,
  .checkbox-option {
    padding: 14px 12px;
  }

  .radio-option-inline {
    padding: 16px 14px;
  }

  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="tel"],
  .form-field input[type="number"],
  .form-field input[type="date"],
  .form-field select,
  .form-field textarea {
    font-size: 14px;
  }

  .form-field input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .submit-button {
    font-size: 15px;
    padding: 14px 50px;
  }
}

@media (max-width: 480px) {
  .form-header h1 {
    font-size: 24px;
    line-height: 34px;
  }

  .header-description {
    font-size: 14px;
    line-height: 24px;
  }

  .form-section h2 {
    font-size: 18px;
    line-height: 28px;
  }

  .radio-option input[type="radio"],
  .radio-option-inline input[type="radio"],
  .checkbox-option input[type="checkbox"],
  .agreement-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .radio-option input[type="radio"]:checked::after,
  .radio-option-inline input[type="radio"]:checked::after {
    width: 10px;
    height: 10px;
  }

  .agreement-option input[type="checkbox"]:checked::after {
    width: 10px;
    height: 10px;
  }
}
