#risou-form {
  width: 90%;
  max-width: 768px;
  margin: 0 auto;
  font-size: 10px;
  color: #444;
  font-family: "Noto Sans JP", sans-serif, "ヒラギノ角ゴ ProN W6",
    "Hiragino Kaku Gothic StdN", "メイリオ", "Meiryo", "ヒラギノ角ゴシック",
    "Hiragino Sans";
}

@media screen and (max-width: 480px) {
  #risou-form {
    font-size: 2vw;
  }
}

.form__risou ::placeholder,
.form__risou select:invalid {
  color: #999;
}

.form__risou span.alert {
  display: block;
  font-size: 10px;
  color: rgb(255, 82, 82);
  margin-top: 10px;
}

/*********************************
  ヘッダー
*********************************/
.risou-header {
  width: 100%;
  height: clamp(400px, 100vw, 500px);
  margin-bottom: 40px;
}
.risou-header-sub {
  width: 100%;
  margin-bottom: 10px;
}

/*********************************
  入力フォーム
*********************************/

/* フォーム項目 */
.form__risou .visitor_input li p.form-label {
  font-weight: bold;
}

/* フォーム部品共通 */
.form__risou .visitor_input li input:not([type="checkbox"]),
.form__risou .visitor_input li select {
  height: 56px;
  width: 50%;
  margin-top: 10px;
  padding: 0 2%;
  font-size: 2em;
  border: 1px solid #e5e5e5;
  background-color: #fff;
  border-radius: 10px;
  appearance: checkbox;
}

/* 名前ボタン */
.form__risou .name-radio-wrap {
  display: flex;
  width: 100%;
  gap: 10px;
}
.form__risou .name-radio-wrap input {
  width: 100%;
}

/* ラジオボタン */
.form__risou .radio-wrap,
.form__risou .checkbox-wrap {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.form__risou .radio-wrap .radio-item,
.form__risou .checkbox-wrap .checkbox-item {
  width: 47.5%;
  text-align: center;
  margin: 1em 0;
  display: flex;
}

.form__risou .radio-item-btn,
.form__risou .checkbox-item-btn {
  visibility: hidden;
}

.form__risou .radio-item-btn + label,
.form__risou .checkbox-item-btn + label {
  /* ボタン内部配置 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15.5px 10.5px;
  text-decoration: none;
  line-height: 120%;
  /* ボタン色 */
  background: #f9f9f9;
  color: #5e5e5e;
  border: solid 1px #e5e5e5;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
}

/* 性別選択 */
.form__risou .radio-item-btn-man + label {
  /* ボタン内部配置 */
  font-size: 12px;
  font-weight: bold;
  width: 100%;
  padding: 18px 16px;
  text-decoration: none;
  /* ボタン色 */
  color: #fff;
  background: #4662f5;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-size: 16px;
}
.form__risou .radio-item-btn-woman + label {
  /* ボタン内部配置 */
  font-size: 12px;
  font-weight: bold;
  width: 100%;
  padding: 18px 16px;
  text-decoration: none;
  /* ボタン色 */
  color: #fff;
  background: #f5464b;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-size: 16px;
}

/* ボタン（クリック時） */
.form__risou .radio-item-btn:checked + label {
  color: #fff;
  background: #F5464B;
  border: solid 1px #F5464B;
}
.form__risou .checkbox-item-btn:checked + label {
  color: #fff;
  background: #F5464B;
  border: solid 1px #F5464B;
}
.form__risou .visitor_input li .radio-item input,
.form__risou .visitor_input li .checkbox-item input {
  display: none;
}

.form__risou .visitor_input li.prefecture select,
.form__risou .visitor_input li.occupation select,
.form__risou .visitor_input li.tel input,
.form__risou .visitor_input li.email input {
  width: 100%;
}

/* 必須・任意アイコン */
.form__risou .required {
  position: relative;
  font-size: 16px;
  font-weight: bold;
  color: #444;
}
.form__risou .required::after {
  content: "必須";
  color: #fff;
  background-color: #e37739;
  border-radius: 3px;
  font-weight: bold;
  font-size: 10px;
  line-height: 100%;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
  margin-left: 10px;
  padding: 3px 4px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}
.form__risou .optional {
  position: relative;
}
.form__risou .optional::after {
  content: "任意";
  color: #fff;
  background-color: #958879;
  border-radius: 1rem;
  font-size: 0.75em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
  margin-left: 2%;
  padding: 1%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}

.form__risou .unavailable {
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}

/* チェックボックス */
.form__risou .checkbox {
  display: flex;
  flex-direction: column;
}
.form__risou .checkbox input {
  visibility: hidden;
}

.form__risou .checkbox label {
  display: flex;
  position: relative;
  cursor: pointer;
  user-select: none; /* テキストの選択を防ぐ */
  font-size: 1.8em;
  padding-left: 2em;
  color: #958879;
}

.form__risou .checkbox label p {
  font-size: 1em;
}

.checkbox span {
  pointer-events: auto;
}
.checkbox label {
  pointer-events: none;
}

/* □ */
.form__risou .checkmark {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: 0;
  height: 32px; /* 大きさ */
  width: 32px; /* 大きさ */
  border: solid 2px #d4dae2; /* 線 */
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #fff;
}
.form__risou .checkbox input:checked + .checkmark {
  background-color: #F5464B;
  border: solid 2px #F5464B; /* 線 */
}
/* ✓ */
.form__risou .checkmark:after {
  content: "";
  position: absolute;
  left: 30%; /* チェックの位置 */
  bottom: 6px; /* チェックの位置 */
  width: 12px; /* チェックの大きさ */
  height: 20px; /* チェックの大きさ */
  color: #fff;
  border-width: 0 0.23rem 0.23rem 0;
  transform: rotate(45deg);
  opacity: 0; /* 透明にしておく */
}

/* チェックが入ったときの✓ */
.form__risou .checkbox input:checked + .checkmark:after {
  opacity: 1; /* 透明を解除 */
}

/*********************************
  個人情報保護
*********************************/

.form__risou p.privacy-policy-title {
  color: #958879;
  font-size: 2em;
  width: 100%;
  margin-bottom: 3%;
}

.form__risou p.privacy-policy-caption {
  font-size: 1.5em;
  margin: 15px 0;
}

.form__risou iframe.privacy {
  width: 100%;
  height: 243px;
  margin-top: 24px;
  padding: 0;
  background: #fff;
  border: 1px solid #b7b7b7;
}

.form__risou .personal_info_check label input {
  height: 0px;
  margin: 0;
  padding: 0;
}
.form__risou .personal_info_check p {
  color: #444;
}

.form__risou .submit-btn {
  margin-bottom: 10%;
  text-align: center;
}
.form__risou .submit-btn button {
  font-size: 20px;
  padding: 16px 0;
  width: 160px;
  border-radius: 10px;
  background: #e5e5e5;
  color: #fff;
}

.submit-btn-active {
  background: #F5464B;
  color: #fff;
  border: none;
}

/*********************************
  swiperの設定
*********************************/
.swiper-button-next {
  display: none;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  content: "";
}
.swiper-button-prev {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: auto;
  margin: 0 auto;
  padding: 0;
  left: auto;
  text-align: center;
  border-bottom: 1px solid #b7b7b7;
}
.swiper-button-prev::after {
  content: "１つ前に戻る";
  color: #444;
  font-size: 14px;
  line-height: 140%;
}
.swiper-button-prev.swiper-button-disabled {
  opacity: 0;
}
.swiper-container {
  overflow: hidden;
}

.hidden {
  display: none;
}

.question-gender {
  font-size: 24px;
  font-weight: bold;
  color: #444;
  line-height: 140%;
  text-align: center;
  margin-bottom: 32px;
}
.question-start {
  font-size: 14px;
  color: #444;
  line-height: 100%;
  text-align: center;
}
.question {
  color: #444;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 140%;
  padding: 6px 0;
  margin-bottom: 40px;
}
.sub-text {
  color: #444;
  font-size: 12px;
  font-weight: normal;
  text-align: center;
}

.risou-man,
.risou-woman {
  display: block;
  position: relative;
  font-size: 12px;
}
.risou-man span,
.risou-woman span {
  font-size: 32px;
}

.risou-man::after,
.risou-woman::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-size: cover;
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}
.risou-man::after {
  background: url("../img/icon_arrow-blue.svg") center center no-repeat;
}
.risou-woman::after {
  background: url("../img/icon_arrow-red.svg") center center no-repeat;
}

.progress-bar {
  width: 100%;
  margin-bottom: 40px;
}

/* テスト最後の質問用次へボタン */
.next-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 160px;
  height: 56px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 40px;
  background: #f9f9f9;
  color: #5e5e5e;
  border: solid 1px #e5e5e5;
}
.next-button-active {
  background: #F5464B;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* 個人情報入力 */
.personal-form-wrapper {
  background-color: #f9f9f9;
  width: 100%;
  padding: 24px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.personal-description {
  margin-bottom: 24px;
  color: #444;
  text-align: center;
}
.personal-description p:nth-child(1) {
  font-size: 20px;
  line-height: 140%;
  font-weight: bold;
  padding: 6px 0;
  margin-bottom: 24px;
}
.personal-description p:nth-child(2) {
  font-size: 14px;
  line-height: 180%;
  margin-bottom: 24px;
}
.personal-description p:nth-child(3) {
  font-size: 16px;
  line-height: 140%;
  font-weight: bold;
}

.swiper-slide-last {
  text-align: center;
}
.swiper-slide-last img {
  width: 90%;
}
.input-form-item {
  margin-bottom: 20px;
}

.input-form-item {
  position: relative;
}

.income::after,
.age::after {
  position: absolute;
  top: 70px;
  left: 52%;
  right: 10px; /* 適切な位置に調整 */
  transform: translateY(-50%); /* 上下中央寄せ */
  font-size: 14px;
}
.income::after {
  content: "万円";
}
.age::after {
  content: "歳";
}

.last-input-alert {
  margin-bottom: 24px;
  color: #f5464b;
  font-size: 12px;
  font-weight: bold;
  line-height: 150%;
}

/* 改行位置調整のため */
@media screen and (min-width: 426px) {
  .br-sp {
    display: none;
  }
  .br-pc {
    display: inline-block;
  }
}
@media screen and (max-width: 425px) {
  .br-pc {
    display: none;
  }
  .br-sp {
    display: inline-block;
  }
}
