/* ====================================
   Form Page Styles
   ==================================== */

/* ---------- form section ---------- */
section.form {
  background: linear-gradient(to bottom, #ffffff 0%, #DBDEE4 100%);
  padding: 120px 5% 100px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1f2c5c;
}

.form__title {
  font-size: 64px;
  font-weight: 800;
  text-align: center;
  font-family: "Barlow", sans-serif;
  margin-bottom: 10px;
}

.form__subtitle {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1f2c5c;
}

.form__card {
  /* background: #fff;
  border-radius: 20px;
  padding: 50px 60px; */
  max-width: 700px;
  margin: 0 auto;
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
}

iframe {
  width: 100%;
  height: 1500px;
  max-width: 1000px;
  padding-top: 10px;
  background-color: rgb(247, 249, 252);
}

.form__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3%;
  gap: 10px;
}

.form__row label {
  font-weight: 700;
  font-size: 15px;
  color: #1f2c5c;
  min-width: 10%;
}

.form__row input[type="text"],
.form__row input[type="tel"],
.form__row input[type="email"],
.form__row select {
  border: 1px solid #b7bccf;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
}

.form__row select {
  appearance: none;
  background: #fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path fill="gray" d="M0 0l5 6 5-6z"/></svg>') no-repeat right 10px center;
  background-size: 10px;
}

.form__row input[type="radio"] {
  margin-right: 5px;
}

.form__agree {
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #555;
}

.form__submit {
  justify-content: center;
}

.form__submit button {
  background: #1f2c5c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.form__submit button:hover {
  opacity: 0.8;
}

.form_bold {
  font-weight: 700;
  color: #1f2c5c;
}

.form_label_pc {
  min-width: 5% !important;
  margin-left: 2%;
}

.time_label_pc {
  min-width: 5% !important;
  margin-left: 3%;
}
/* ===== 同意リンクの色変更 ===== */
.form__agree a {
  color: #1f2c5c; /* 濃いグレー */
  text-decoration: none;
  font-weight: 700;
}
.form__agree a:hover {
  text-decoration: underline;
}

/* ===========================
   App Store / Google Play ボタン
=========================== */
.store__subtitle {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #3e3e3e;
}
.app-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 15px auto 40px;
  flex-wrap: wrap;
}
.app-buttons a img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}
.app-buttons a:hover img {
  transform: scale(1.05);
}

/* ---------- Responsive (SP) ---------- */
@media (max-width: 970px) {
  section.form {
    padding: 120px 0 100px;
  }
  .form__card {
    padding: 50px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  iframe {
    height: 2100px;
  }

  .form__row {
    display: flex;
    gap: 10px 12px;
    flex-wrap: nowrap;
  }

  .form__row label {
    font-size: 14px;
    font-weight: 700;
  }

  .form_label_sp {
    font-size: 14px;
    font-weight: 700;
    color: #1f2c5c;
  }

  .form__row input[type="text"],
  .form__row input[type="tel"],
  .form__row input[type="email"],
  .form__row select {
    border: 1.5px solid #b7bccf;
    border-radius: 6px;
    padding: 10px;
    font-size: 15px;
    flex: 1;
  }

  /* 姓・名／セイ・メイ */
  .form__row:nth-of-type(1),
  .form__row:nth-of-type(2) {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .form__row:nth-of-type(1) input,
  .form__row:nth-of-type(2) input {
    flex: 1;
    width: 48%;
    min-width: 0;
  }

  /* 生年月日 */
  .form__row:nth-of-type(3) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .form__row:nth-of-type(3) select {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  /* 性別ラジオ */
  .form__row:nth-of-type(4) {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .form__row:nth-of-type(4) input[type="radio"] {
    accent-color: #1f2c5c;
    transform: scale(1.1);
  }

  /* 第一希望・第二希望 */
  .form__row:nth-of-type(8),
  .form__row:nth-of-type(9) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .form__row:nth-of-type(8) select,
  .form__row:nth-of-type(9) select {
    width: 100%;
  }

  /* 同意チェック */
  .form__agree label {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
  }

  /* ボタン */
  .form__submit {
    margin-top: 20px;
  }
  .form__submit button {
    width: 100%;
    background: #1f2c5c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 700;
  }
  .app-buttons {
    margin: 20px auto;
  }
  .app-buttons a img {
    height: 50px;
  }
}
