/* 変数 */
.footer-content {
  --mk-label-w: 300px;         /* ラベル固定幅（PC） */
  --mk-gap: 16px;              /* ラベルと入力の間隔 */
  --mk-card-maxw: 950px;       /* カード最大幅（現行値） */
  --mk-card-pad: 32px;         /* カード内余白 */
  --mk-field-h: 42px;          /* 単一行フィールドの高さ */
  --mk-bd: #DDE2EB;            /* フィールド枠色 */
  --mk-focus: #0070E0;         /* フォーカス色 */
  --mk-text-mute: #555;        /* 補助テキスト色 */
  --mk-badge-req-bg: #F1DEC0;  /* 必須バッジ背景 */
  --mk-badge-req-fg: #766332;  /* 必須バッジ文字 */
  --mk-badge-opt-bg: #E5E8EF;  /* 任意バッジ背景 */
  --mk-badge-opt-fg: #555;     /* 任意バッジ文字 */
}

/* Container */
.footer-content .mktoForm {
  background: #FFF !important;
  border-radius: 8px !important;
  /* box-shadow: 0 4px 16px rgba(0,0,0,.06) !important;  現行どおり無効 */
  padding: var(--mk-card-pad) !important;
  margin: 0 auto !important;
  max-width: var(--mk-card-maxw) !important;
  overflow: hidden !important;
}

/* Heading */
.footer-content .mktoForm h1 {
  font: 700 2rem/1.3 "Noto Sans JP", system-ui, sans-serif !important;
  text-align: center !important;
  margin: 0 0 28px !important;
}
.footer-content .mktoForm .mktoHtmlText {
  width: 100% !important;
  font-size: 1.4rem !important;
  line-height: 1.7 !important;
  color: var(--mk-text-mute) !important;
  word-break: break-word !important;
}

/* mktoFormRow */
.footer-content .mktoForm .mktoFormRow {
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--mk-gap) !important;
  margin-bottom: 20px !important;
}

/* 既定余白の削除 */
.footer-content .mktoForm .mktoGutter,
.footer-content .mktoForm .mktoOffset,
.footer-content .mktoForm .mktoClear {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Label */
.footer-content .mktoForm .mktoLabel {
  display: flex !important;
  align-items: flex-start !important;
  gap: 4px !important;
  flex: 0 0 var(--mk-label-w) !important;
  width: var(--mk-label-w) !important;
  margin: 10px 0 0 !important;
  white-space: nowrap !important;
  font: 600 1.4rem/1.4 "Noto Sans JP", system-ui, sans-serif !important;
  color: #1A1A1A !important;
}

/* 既定の必須*を非表示 */
.footer-content .mktoForm .mktoAsterix { display: none !important; }

/* 必須・任意バッジ追加 */
.footer-content .mktoForm .mktoRequiredField > label { position: relative !important; }
.footer-content .mktoForm .mktoRequiredField > label::after,
.footer-content .mktoForm .mktoFieldWrap:not(.mktoRequiredField) > label::after {
  font-size: 1.0rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  margin-left: 8px !important;
  line-height: 1.6 !important;
  margin-top: 0 !important;
  content: attr(data-badge);
}
.footer-content .mktoForm .mktoRequiredField > label::after {
  content: "必須" !important;
  background: var(--mk-badge-req-bg) !important;
  color: var(--mk-badge-req-fg) !important;
}
.footer-content .mktoForm .mktoFieldWrap:not(.mktoRequiredField) > label::after {
  content: "任意" !important;
  background: var(--mk-badge-opt-bg) !important;
  color: var(--mk-badge-opt-fg) !important;
}

.footer-content .mktoForm .mktoFieldWrap {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.footer-content .mktoForm .mktoField {
  height: var(--mk-field-h) !important;
  padding: 0 12px !important;
  font-size: 1.4rem !important;
  border: 1px solid var(--mk-bd) !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  transition: border-color .2s !important;
  flex: 1 1 0% !important;
}
.footer-content .mktoForm .mktoField:focus {
  border-color: var(--mk-focus) !important;
  outline: none !important;
}
.footer-content .mktoForm textarea.mktoField {
  height: 120px !important;
  resize: vertical !important;
  padding: 8px 12px !important;
}

/* Checkbox / Radio装飾 */
.footer-content .mktoForm .mktoCheckboxList,
.footer-content .mktoForm .mktoRadioList {
  margin-top: 4px !important;
  text-align: left !important;
}
.footer-content .mktoForm .mktoFieldWrap .mktoCheckboxList,
.footer-content .mktoForm .mktoFieldWrap .mktoRadioList {
  align-self: flex-start !important;
}
.footer-content .mktoForm input[type="checkbox"],
.footer-content .mktoForm input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
  accent-color: var(--mk-focus) !important;
  position: relative !important;
  top: 4px !important;
}
.footer-content .mktoForm .mktoCheckboxList label,
.footer-content .mktoForm .mktoRadioList label {
  font-size: 1.4rem !important;
  line-height: 1.6 !important;
}

/* 送信ボタン */
.footer-content .mktoForm .mktoButtonRow {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 24px 0 0 !important;
}
.footer-content .mktoForm .mktoButtonWrap {
  display: inline-block !important;
  margin: 0 auto !important;
  float: none !important;
}
.footer-content .mktoForm .mktoButton {
  width: 280px !important;
  max-width: 360px !important;
  padding: 16px 0 !important;
  font: 700 1.7rem "Noto Sans JP", system-ui, sans-serif !important;
  letter-spacing: .06em !important;
  color: #fff !important;
  background: linear-gradient(to bottom, #DCAE63 0%, #90783e 100%) !important;
  border: 0 !important;
  border-radius: 48px !important;
  cursor: pointer !important;
  transition: opacity .2s !important;
}
.footer-content .mktoForm .mktoButton:hover { opacity: .85 !important; }
.footer-content .mktoForm .mktoButton:focus,
.footer-content .mktoForm .mktoButton:active { outline: none !important; }

/* 動的非表示項目の空白調整 */
.footer-content .mktoForm .mktoPlaceholderHtmlText_2024-09-30T09,
.footer-content .mktoForm .mktoPlaceholderinquiry_occupation,
.footer-content .mktoForm .mktoPlaceholderinquiry_workplace,
.footer-content .mktoForm .mktoPlaceholderinquiry_free_txt,
.footer-content .mktoForm .mktoPlaceholderinquiry_service_other {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.footer-content .mktoForm .mktoFormRow:has(
  .mktoPlaceholderHtmlText_2024-09-30T09,
  .mktoPlaceholderinquiry_occupation,
  .mktoPlaceholderinquiry_workplace,
  .mktoPlaceholderinquiry_free_txt,
  .mktoPlaceholderinquiry_service_other
) {
  margin-bottom: 0 !important;
}

/* レスポンシブデザイン */

/* タブレット(≤1023px) */
@media (max-width: 1023px) {
  .footer-content { --mk-label-w: 240px; }
}

/* スマホ(≤767px) */
@media (max-width: 767px) {
  .footer-content .mktoForm { padding: 0px !important; }

  .footer-content .mktoForm .mktoFormRow { display: block !important; }

  .footer-content .mktoForm .mktoLabel {
    display: inline-flex !important; 
    align-items: center !important;
    gap: 8px !important;
    flex: none !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }

  .footer-content .mktoForm .mktoFieldWrap {
    display: block !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .footer-content .mktoForm .mktoField {
    width: 100% !important;
    flex: none !important;
  }
  .footer-content .mktoForm .mktoCheckboxList,
  .footer-content .mktoForm .mktoRadioList {
    text-align: left !important;
  }
  .footer-content .mktoForm .mktoFieldWrap .mktoCheckboxList,
  .footer-content .mktoForm .mktoFieldWrap .mktoRadioList {
    align-self: flex-start !important;
  }

  .footer-content .mktoForm .mktoRequiredField > label::after,
  .footer-content .mktoForm .mktoFieldWrap:not(.mktoRequiredField) > label::after {
    align-self: center !important;
    line-height: 1 !important;
    position: relative !important;
    top: 0.05em !important;
  } 
  .footer-content .mktoForm .mktoFormRow .mktoLabel strong {
    line-height: 1.3 !important;
  }
}
