@charset "UTF-8";
/* =============================================
   共通フォームスタイル
   ============================================= */

/* フォームコンテナ */
.c-form {
  width: 100%;
}

/* フォーム行 */
.c-form-row {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #d4b99a;
}

.c-form-row:first-of-type {
  border-top: 1px solid #d4b99a;
}

fieldset.c-form-row {
  margin: 0;
  padding: 20px 0;
  min-width: 0;
  border: none;
  border-bottom: 1px solid #d4b99a;
}

legend.c-form-label-cell {
  float: left;
  padding: 0;
}

/* ラベルセル */
.c-form-label-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 180px;
  flex-shrink: 0;
  padding-top: 10px;
}

.c-form-label {
  color: #4a3728;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* 必須バッジ */
.c-form-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: #A30677;
  color: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.c-form-badge--either {
  font-size: 10px;
}

/* 入力セル */
.c-form-input-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* テキスト / tel / email 入力 */
.c-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c9a98a;
  border-radius: 6px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  color: #4a3728;
  background: #fdf8f4;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.c-form-input::placeholder {
  color: #6b5040;
  font-style: italic;
}

.c-form-input:focus {
  border-color: #6f380b;
  box-shadow: 0 0 0 3px rgba(111, 56, 11, 0.18);
}

/* テキストエリア */
.c-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c9a98a;
  border-radius: 6px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  color: #4a3728;
  background: #fdf8f4;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.c-form-textarea::placeholder {
  color: #6b5040;
  font-style: italic;
}

.c-form-textarea:focus {
  border-color: #6f380b;
  box-shadow: 0 0 0 3px rgba(111, 56, 11, 0.18);
}

/* ラジオボタン */
.c-form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.c-form-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.c-form-radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #9b7559;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}

.c-form-radio-label input[type="radio"]:checked {
  border-color: #6f380b;
  background: #6f380b;
}

.c-form-radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.c-form-radio-label input[type="radio"]:focus-visible {
  outline: 3px solid #6f380b;
  outline-offset: 2px;
}

.c-form-radio-text {
  color: #4a3728;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

/* チェックボックス */
.c-form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.c-form-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.c-form-check-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #9b7559;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.c-form-check-label input[type="checkbox"]:checked {
  border-color: #6f380b;
  background: #6f380b;
}

.c-form-check-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.c-form-check-label input[type="checkbox"]:focus-visible {
  outline: 3px solid #6f380b;
  outline-offset: 2px;
}

.c-form-check-text {
  color: #4a3728;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

/* サブフィールド（ご連絡先内の電話／メール） */
.c-form-subfield {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.c-form-subfield + .c-form-subfield {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #d4b99a;
}

.c-form-sublabel {
  color: #4a3728;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

/* 補足テキスト */
.c-form-note {
  color: #5c4635;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

/* セレクト */
.c-form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c9a98a;
  border-radius: 6px;
  background: #fdf8f4;
  color: #4a3728;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

.c-form-select:focus {
  border-color: #6f380b;
  box-shadow: 0 0 0 3px rgba(111, 56, 11, 0.18);
}

/* 日付入力グループ */
.c-form-date-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
  color: #4a3728;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
}

/* 送信ボタン */
.c-form-submit {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.c-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 80px;
  background: #6f380b;
  border: 4px solid #fff;
  border-radius: 40px;
  box-shadow: 0 4px 4px rgba(111, 56, 11, 0.25);
  color: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

.c-form-btn:hover {
  opacity: 0.85;
}

.c-form-btn:focus-visible {
  outline: 3px solid #4a3728;
  outline-offset: 4px;
}

/* =============================================
   レスポンシブ (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  .c-form-row {
    flex-direction: column;
    gap: 10px;
  }

  .c-form-label-cell {
    width: 100%;
    padding-top: 0;
  }

  .c-form-input-cell {
    width: 100%;
    align-self: stretch;
  }

  .c-form-radio-group,
  .c-form-check-group {
    gap: 12px 16px;
  }

  .c-form-btn {
    padding: 16px 48px;
    font-size: 18px;
  }
}
