@charset "UTF-8";

/* ==================================================
   Mailform Pro：動作に必要な共通要素
================================================== */

/* Mailform Proが生成する隠しフィールド */
#mfp_hidden {
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#mfp_hidden input {
  margin: 10px;
}

/* ==================================================
   入力エラー・警告
================================================== */

.mfp_err {
  display: none;
  clear: both;
  margin: 6px 0 0;
  padding-left: 1.4em;
  color: var(--red, #a33a32);
  font-size: .75rem;
  line-height: 1.6;
  text-align: left;
}

.mfp_err::before {
  margin-left: -1.4em;
  content: "！";
  font-weight: 700;
}

.mfp_parent_error {
  outline: 2px solid var(--red, #a33a32);
  outline-offset: 2px;
}

.problem,
.mfp_ng {
  background-color: rgba(163, 58, 50, .1) !important;
}

.mfp_ok {
  background-color: rgba(30, 115, 74, .1);
}

div.mfp_ok {
  display: none;
  margin-top: 5px;
  padding: 2px 6px;
  color: #1e734a;
  font-size: .7rem;
  line-height: 1.5;
}

#mfp_error,
#mfp_warning {
  display: none;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid var(--red, #a33a32);
  border-radius: 3px;
  color: var(--red, #a33a32);
  background: rgba(163, 58, 50, .08);
}

#mfp_error p,
#mfp_warning p {
  margin: 0;
  padding: 0;
  font-size: .82rem;
  line-height: 1.7;
  text-align: center;
}

#mfp_error strong,
#mfp_warning strong {
  font-size: .95rem;
}

/* 入力中に表示される補助メッセージ */
.mfp_guide {
  position: relative;
  width: 1px;
  height: 1px;
}

.mfp_guide > div {
  position: absolute;
  z-index: 10;
  bottom: 4px;
  left: 0;
  display: none;
  padding: 5px 9px;
  border-radius: 3px;
  color: #fff;
  background: var(--red, #a33a32);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* ==================================================
   確認画面
================================================== */

#mfp_phase_confirm {
  clear: both;
}

#mfp_phase_confirm h4 {
  margin: 0 0 24px;
  padding: 0;
  color: var(--navy, #102e59);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  text-align: center;
}

#mfp_confirm_table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

#mfp_confirm_table tr {
  border-bottom: 1px dotted var(--line, #c9baa0);
}

#mfp_confirm_table tr.mfp_colored,
.mfp_colored {
  background: rgba(255, 255, 255, .35);
}

#mfp_confirm_table tr.mfp_achroma,
.mfp_achroma {
  background: transparent;
}

#mfp_confirm_table th,
#mfp_confirm_table td {
  padding: 14px 16px;
  border: 0;
  font-size: .82rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

#mfp_confirm_table th {
  width: 190px;
  color: var(--navy, #102e59);
  font-weight: 700;
  white-space: nowrap;
}

#mfp_confirm_table td {
  word-break: break-word;
}

/* 入力・確認・完了の進行表示 */
#mfp_phase_stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  text-align: center;
}

#mfp_phase_stat li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid var(--line, #c9baa0);
  border-radius: 999px;
  font-size: .72rem;
  list-style: none;
}

#mfp_phase_stat .mfp_phase_arrow {
  min-width: auto;
  padding-inline: 2px;
  border: 0;
  color: var(--line, #c9baa0);
}

#mfp_phase_stat .mfp_active_phase {
  color: #fff;
  border-color: var(--navy, #102e59);
  background: var(--navy, #102e59);
  font-weight: 700;
}

#mfp_phase_stat .mfp_inactive_phase {
  color: #776c5c;
  background: rgba(255, 255, 255, .3);
}

/* 確認画面でMailform Proが生成するボタン */
.mfp_buttons {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 0;
  text-align: center;
}

#mfp_button_send,
#mfp_button_cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 54px;
  padding: 12px 28px;
  border: 1px solid var(--navy, #102e59);
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, background-color .2s, transform .2s;
}

#mfp_button_send {
  color: #fff;
  background: var(--navy, #102e59);
  box-shadow: 0 5px 14px rgba(16, 46, 89, .22);
}

#mfp_button_cancel {
  color: var(--navy, #102e59);
  background: rgba(255, 255, 255, .45);
}

#mfp_button_send:hover,
#mfp_button_cancel:hover {
  transform: translateY(-2px);
}

.mfp_submit_enable {
  opacity: 1;
}

.mfp_submit_disable {
  opacity: .45;
  cursor: not-allowed !important;
}

/* ==================================================
   オーバーレイ・ローディング
================================================== */

#mfp_overlay {
  position: absolute;
  z-index: 10001;
  display: none;
}

#mfp_overlay_inner {
  width: min(640px, 90%);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--line, #c9baa0);
  border-radius: 5px;
  background: var(--paper-light, #fbf7ed);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

#mfp_overlay_background {
  position: absolute;
  z-index: 10000;
  display: none;
  background: rgba(0, 0, 0, .65);
}

#mfp_loading_screen {
  position: absolute;
  z-index: 20000;
  display: none;
  background: rgba(0, 0, 0, .7);
}

#mfp_loading {
  position: absolute;
  z-index: 20001;
  display: none;
  width: 40px;
  height: 40px;
  background: url("_images/mfp_loading.gif") no-repeat center / contain;
}

/* ==================================================
   送信完了画面
================================================== */

.mfp_thanks {
  padding: 30px;
  text-align: center;
}

.mfp_thanks p {
  margin: 0 0 12px;
  line-height: 1.8;
}

.mfp_thanks .mfp_caution {
  margin: 16px 0 0;
  padding: 0;
}

.mfp_thanks .mfp_caution li {
  display: block;
  margin: 0;
  padding: 5px 0;
  color: var(--red, #a33a32);
  list-style: none;
}

#mfp_thanks {
  padding: 24px 0;
  font-size: 1rem;
  text-align: center;
}

#mfp_thanks strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy, #102e59);
  font-size: 1.35rem;
}

/* ==================================================
   スマートフォン
================================================== */

@media (max-width: 600px) {
  #mfp_confirm_table th,
  #mfp_confirm_table td {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }

  #mfp_confirm_table th {
    padding-bottom: 2px;
    white-space: normal;
  }

  #mfp_confirm_table td {
    padding-top: 2px;
  }

  #mfp_phase_stat {
    gap: 5px;
  }

  #mfp_phase_stat li {
    flex: 1;
    padding: 5px 7px;
    font-size: .68rem;
  }

  #mfp_phase_stat .mfp_phase_arrow {
    display: none;
  }

  .mfp_buttons {
    flex-direction: column;
    align-items: stretch;
  }

  #mfp_button_send,
  #mfp_button_cancel {
    width: 100%;
    min-width: 0;
  }

  .mfp_guide > div {
    max-width: min(280px, 80vw);
    white-space: normal;
  }

  .mfp_thanks {
    padding: 24px 16px;
  }
}
