.form-group {
  margin: 0 0 35px 0;
}

/* ラベル周り */
.form-group dt {
  display: flex;
  align-items: center;
  letter-spacing: 0.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.form-group dd {
  margin: 0;
}

/* ==========================================================================
   2. 共通フォーム部品 (Input, Select, Textarea)
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 20px 15px;
  border: 1px solid var(--color-black);
  border-radius: 4px;
  font-size: var(--font-size); /* モバイルズーム防止 */
  color: var(--color-black);
  letter-spacing: 0.1em;
  transition: border-color 0.3s;
  margin-top: 5px;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3498db;
}

::placeholder {
  color: #777777;
}

/* ==========================================================================
   3. バッジ (必須・任意)
   ========================================================================== */
.badge-required,
.badge-optional {
  display: inline-block;
  padding: 4px 5px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  letter-spacing: normal;
  vertical-align: middle;
  box-sizing: border-box;
  margin-left: 2px;
  margin-right: 12px;
}

.badge-required {
  background: var(--color-main);
  color: #fff;
}

.badge-optional {
  background: #dddddd;
  color: #777777;
}

/* ==========================================================================
   4. チェックボックス & ラジオボタン
   ========================================================================== */
/* 共通リセット */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  vertical-align: text-bottom;
  width: 24px;
  height: 24px;
  margin: 0 10px 0 0;
  border: 1px solid #ddd;
  border-radius: 2px;
  background-color: #ddd;
  cursor: pointer;
  position: relative;
}

input[type="radio"] {
  border-radius: 50%;
}

/* --- チェックボックス用枠 --- */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  padding-top: 5px;
  gap: 15px;
}

.checkbox-box {
  border: 1px solid var(--color-black);
  border-radius: 5px;
  padding: 14px 28px 14px 18px;
  display: flex;
  align-items: center;
}

.checkbox-box:not(:last-child) {
}

/* --- ラジオボタン用枠 --- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 5px;
}

.radio-box {
  border: 1px solid var(--color-black);
  border-radius: 30px;
  background-color: #fff;
}

.radio-box label {
  display: block;
  padding: 15px 25px 15px 15px;
  cursor: pointer;
  white-space: nowrap;
}

/* --- チェック時の装飾 (疑似要素) --- */
.checkbox-box input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0px;
  width: 8px;
  height: 14px;
  border: solid var(--color-black);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  background: var(--color-black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   5. 横並びレイアウト (生年月日・郵便番号)
   ========================================================================== */
.select-inline-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.select-inline-group .select-unit:not(:last-child) + span {
}

/* 単位（年・月など）の装飾がある場合 */
.select-inline-group .select-unit + span {
  font-size: var(--text-18);
  font-weight: 600;
  margin-right: 15px;
}
/* セレクトボックスの矢印カスタマイズ */
.select-unit {
  position: relative;
  display: inline-block;
}

.select-unit select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 35px; /* 矢印スペース */
  min-width: 200px;
  width: auto;
  /* iOS特有のデフォルトスタイルを解除 */
  -webkit-appearance: none; /* Safari, Chrome用 */
  appearance: none; /* 標準プロパティ */

  /* グレーの背景（背景色）をリセット */
  background-color: transparent;

  /* 任意：内側の影（iOSでよく出るもの）を消す */
  background-image: none;
}

.select-unit::after {
  content: "";
  position: absolute;
  top: 55%;
  right: 20px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--color-main);
  pointer-events: none;
}

/* 郵便番号・住所 */
input#zip {
  max-width: 200px;
}

input#address {
  margin-top: 13px;
}

.form-note {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

/* ==========================================================================
   6. 個人情報保護方針・送信ボタン
   ========================================================================== */
.policy-box {
  border: 1px solid #dddddd;
  border-radius: 5px;
  padding: 25px 30px;
  height: 300px;
  overflow-y: scroll;
  margin: 15px 0 18px;
  font-size: var(--text-s);
  color: #666;
}

.policy-box h3 {
  font-size: var(--text-20);
  margin-bottom: 1em;
}

.policy-box ul.num {
  margin-top: 25px;
  font-size: var(--text-15);
  font-weight: bold;
}

.policy-box ul.num li {
  font-size: var(--font-size);
  line-height: 2;
}

.policy-box ul.num li p {
  font-weight: normal;
}

.policy-box ul.num li + li {
  margin-top: 30px;
}

/* 同意チェック */
.agree-check {
  border: 1px solid var(--color-black);
  border-radius: 5px;
  padding: 14px 28px 14px 18px;
  text-align: center;
  max-width: 300px;
  width: 100%;
  margin-inline: auto;
}

/* 送信ボタンエリア */
.form-submit {
  margin-top: 65px;
  max-width: 910px;
  width: 100%;
  margin-inline: auto;
}

.form-submit .btn-primary {
  padding: 15px 50px;
  width: 100%;
  max-width: 100%;
}

/* 260220 */
.agree-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0px;
  width: 8px;
  height: 14px;
  border: solid var(--color-black);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}


