@charset "UTF-8";

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================
   Form Layout / フォーム全体のレイアウト*/
#otherWrap,
#formWrap {
  padding: 40px 20px;
  color: #333;
}

#otherWrap .otherWrap-inner,
#formWrap .form-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
}

/* 共通レイアウト（PC想定） */
#formWrap .form-item:last-of-type {
  border-bottom: none;
}

.form-item__label-main {
  font-weight: 600;
  font-size: 14px;

  @media (width <=767px) {
    font-size: 16px;
  }
}

.form-item__label-sub {
  font-size: 12px;
}

#formWrap .form-item dd {
  flex: 1;
}

/* バッジ */
.status-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid #9E9E9E;
  color: #666;
  width: 40px;
  height: 21px;
  padding-top: 1px;

  @media (width <=767px) {
    font-size: 10px;
    width: 35px;
    height: 19px;
  }
}

.status-badge.is-accent {
  border-color: #e60033;
  color: #e60033;
  background: #fff5f7;
}

.status-badge.is-success {
  border-color: #28a745;
  color: #28a745;
  background: #e7f8ec;
}

/* テキスト系 */
#formWrap input[type=text],
#formWrap textarea,
#formWrap select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 14px;

  @media (width <=767px) {
    font-size: 16px;
  }
}

/* セレクト調整 */
#formWrap select {
  max-width: 460px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  background-color: #fff;
  background-image: none;
  padding-right: 40px;
  cursor: pointer;
  color: #333;
}

@media (max-width: 767px) {
  #formWrap select {
    padding-right: 10vw;
  }
}

/* IE対策（必要なら） */
select::-ms-expand {
  display: none;
}

/* ラッパー */
.select-wrap {
  width: 100%;
  max-width: 460px;
  position: relative;
}

/* デフォルト矢印消す（既に書いてたらそのままでOK） */
.select-wrap .form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  padding-right: 3em;
  /* 右に余白を少し追加 */
}

/* カスタム矢印（三角） */
.select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #555;
  /* ▼色・サイズここで調整 */
  pointer-events: none;
}

/* テキスト入力調整 */
#formWrap textarea,
#formWrap input[type=text] {
  max-width: 600px;
  background-color: #F4F4F4;
}

#formWrap textarea {
  min-height: 270px;
  resize: vertical;
}

/* プレースホルダー感 */
#formWrap input::placeholder,
#formWrap textarea::placeholder {
  color: #bbb;
}

/* 共通：チェックボックスリストをflex化 */
.form-item--checkbox dd .form-checkboxs {
  display: flex;
  flex-wrap: wrap;
  margin: -5px;
  /* 内側の余白調整用（好みで） */
  list-style: none;
  padding: 0;

  @media (width <=767px) {
    padding: 5px 0 0;
  }
}

.form-item--checkbox dd .form-checkboxs li {
  box-sizing: border-box;
  padding: 5px;
  width: 50%;
  /* PCデフォルト：3列 */
}

/* ボタン風デザインはそのまま使える */
.form-checkboxs li label {
  display: block;
}

.form-image-checkbox {
  display: none;
}

.form-image-checkbox__inner {
  font-size: 14px;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  cursor: pointer;
  background: #fff;
  border: solid 1px #e9e9eb;
  border-radius: 4px;
  box-shadow: 0 1px 1px 0 rgb(0 0 0 / 0.2);
  transition: all .2s ease-out;

  @media (width <=767px) {
    font-size: 16px;
  }
}

.form-image-checkbox:checked+.form-image-checkbox__inner {
  background-color: #e9f0fa;
  border-color: #2d4b87;
  box-shadow: 0 1px 1px 0 rgb(0 0 0 / .3) inset;
}

.form-checkboxs li label {
  display: block;
}

.form-image-checkbox {
  display: none;
}

/* エラーメッセージ */
.error-message {
  margin-top: 4px;
  min-height: 1em;
  font-size: 12px;
  color: #e60033;
}

/* プライバシー同意エリア */
.form-footer {
  text-align: center;
  padding: 20px;

  @media (width <=767px) {
    padding: 0 20px 20px 20px;
  }
}

.form-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #777;
  cursor: pointer;
  margin: 20px 0 40px;
}

/* 元のチェックボックスは隠す */
.form-privacy input[type=checkbox] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* カスタムチェックボックス本体 */
.form-privacy__box {
  width: 23px;
  height: 23px;
  box-sizing: border-box;
  border-radius: 3px;
  border: 1px solid #666;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* チェックマーク */
.form-privacy__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2.5px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* チェックされた時の状態 */
.form-privacy input[type=checkbox]:checked+.form-privacy__box {
  background: #28a745;
  /* 好きなブランドカラーに変更可 */
  border-color: #28a745;
}

.form-privacy input[type=checkbox]:checked+.form-privacy__box::after {
  opacity: 1;
}

/* テキスト部分 */
.form-privacy__text {
  line-height: 1.5;
  font-size: 14px;

  @media (width <=767px) {
    font-size: 13px;
  }
}

.form-privacy__link {
  color: #009944;
}

.form-privacy__link:hover {
  text-decoration: underline;
}

/* SPで少し大きめに */
@media (max-width: 767px) {
  .form-privacy {
    font-size: 3.1vw;
  }

  .form-privacy__box {
    width: 4vw;
    height: 4vw;
  }

  .form-privacy__box::after {
    left: 4.5px;
    top: 0.5px;
    width: 1.2vw;
    height: 2.5vw;
    border-right: 0.5vw solid #fff;
    border-bottom: 0.5vw solid #fff;
  }
}

/* ==========================================================
   Confirm Button / 送信ボタン
========================================================== */
/* ボタンは相対位置 */
.js-confirm-btn {
  position: relative;
  width: 100%;
  max-width: 450px;
  display: block;
  margin: 0 auto;
  padding: 21px 10px;
  font-size: 28px;
  font-weight: 600;
  border-radius: 6px;
  box-sizing: border-box;
  border: none;
  /* ここに共通トランジション（さっきのを流用） */
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* 無効状態 */
.js-confirm-btn.is-disabled,
.js-confirm-btn:disabled {
  color: #9A9A9A;
  background: #D7D7D7;
  pointer-events: none;
  border: none;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* 有効状態 */
.js-confirm-btn:not(.is-disabled):not(:disabled) {
  background: #28a745;
  color: #fff;
  border: 2px solid #ffffff;
  box-shadow: 2px 3px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* ▼ 白三角（有効時のみ表示） */
.js-confirm-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid #fff;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* is-disabled じゃない時だけ三角を見せる */
.js-confirm-btn:not(.is-disabled):not(:disabled)::after {
  opacity: 1;
}

/* ホバー時：凹む感じ */
.js-confirm-btn:not(.is-disabled):not(:disabled):hover {
  opacity: 0.8;
}

/* hover でちょっと右にスライド */
/* 押し込み時：さらに凹む */
.js-confirm-btn:not(.is-disabled):not(:disabled):active {
  background: #218838;
}

/* SPで少し小さく */
@media (max-width: 767px) {
  .js-confirm-btn {
    font-size: 4.4vw;
    padding: 4vw 2vw;
    border-radius: 2vw;
  }
}

/* PC only ================================= */
@media (min-width: 768px) {
  .only_pc {
    display: block;
  }

  #formWrap .dl-wrap {
    border: solid 1px #eee;
  }

  /* 左カラム背景 */
  #formWrap .form-item dt {
    width: 260px;
    background: #F7F7F7;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    /* 左右に配置 */
    align-items: center;
  }

  /* dt内テキストの配置 */
  #formWrap .form-item__label-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 150px;
    line-height: 1.2;
  }

  #formWrap .form-item dt .status-badge {
    white-space: nowrap;
    margin-top: 0;
    /* 上寄り対策 */
  }

  /* form-item全体の高さ揃え */
  #formWrap .form-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eee;
  }

  #formWrap .form-item dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 35px 30px;
  }
}

/* スマホ（〜767px） */
@media (max-width: 767px) {
  .only_pc {
    display: none;
  }

  #formWrap {
    padding: 24px 12px;
  }

  #formWrap .form-item {
    display: block;
    padding: 14px 0;
    font-size: clamp(18px, 3.5vw, 20px);
  }

  .form-item__label-sub {
    margin-left: -2vw;
  }

  #formWrap .form-item dt {
    display: flex;
    width: 100%;
    padding-right: 0;
    margin-bottom: 6px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  #formWrap input[type=text],
  #formWrap textarea,
  #formWrap select {
    padding: 2.8vw 3vw;
  }

  .form-item--checkbox dd .form-checkboxs li {
    padding: 4px;
  }

  .form-image-checkbox__inner {
    padding: 5.45vw 1vw;
    height: auto;

    @media (width <=767px) {
      padding: 7vw 1vw;
    }
  }

  .js-confirm-btn {
    font-size: clamp(20px, 4vw, 28px);
    padding: 3.5vw;
  }

  .js-confirm-btn::after {
    border-top: 2vw solid transparent;
    border-bottom: 2vw solid transparent;
    border-left: 1.8vw solid #fff;
  }
}

/* other page ================================= */
#otherWrap {
  text-align: center;
}

#otherWrap .otherWrap-inner .otherWrap-header {
  margin-bottom: 30px;
}

.back_btn input {
  position: relative;
  width: 100%;
  max-width: 450px;
  display: block;
  margin: 0 auto;
  padding: 21px 10px;
  font-size: 28px;
  font-weight: 600;
  border-radius: 6px;
  box-sizing: border-box;
  border: none;
  /* ここに共通トランジション（さっきのを流用） */
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* 無効状態 */
.back_btn input {
  color: #9A9A9A;
  background: #D7D7D7;
  pointer-events: none;
  border: none;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* reCAPTCHAロゴ非表示 */
.grecaptcha-badge {
  display: none !important;
}

/*# sourceMappingURL=form.css.map */