@charset "UTF-8";
/* ==============================
  Contact Form / Mailform Pro
============================== */
/* ==============================
  Jinraku Contact Form Override
  mailformpro.css / example.css 活用版
============================== */

body {
  background: #f4f8ff;
  color: #17345c;
  text-align: left;
}

div#wrapper {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 20px;
  background: none;
}

div#wrapper div#header {
  text-align: center;
  margin-bottom: 32px;
}

div#wrapper div#header h1 {
  padding: 0;
  background: none;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.4;
  color: #17345c;
  text-shadow: none;
}

div#wrapper div#header p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: #526985;
}

div#wrapper div#container {
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

form#mailformpro {
  max-width: 920px;
  margin: 0 auto;
  padding: 46px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(25, 73, 135, 0.12);
}

form#mailformpro dl.mailform {
  margin: 0;
  padding: 0;
}

div#wrapper div#container form#mailformpro dl dt,
form#mailformpro dl dt {
  float: none;
  width: auto;
  clear: both;
  margin: 26px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid #e4ebf5;
  text-align: left;
  color: #17345c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

div#wrapper div#container form#mailformpro dl dt:first-of-type,
form#mailformpro dl dt:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

div#wrapper div#container form#mailformpro dl dd,
form#mailformpro dl dd {
  margin: 12px 0 0;
  padding: 0;
  border: none;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.must {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  margin: 0 8px 0 0;
  padding: 4px 9px;
  border: none;
  border-radius: 999px;
  background: #e85b5b;
  box-shadow: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
  background-image: none;
}

.mfp_rows {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  clear: both;
}*/

.mfp_rows:after {
  content: none;
}

.mfp_rows .mfp_col5,
.mfp_rows .mfp_col10 {
  float: none;
  padding: 0;
}

.mfp_rows .mfp_col5 {
  flex: 1 1 calc(50% - 7px);
  width: auto;
  min-width: 0;
}

.mfp_rows .mfp_col10 {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

form#mailformpro input[type="text"],
form#mailformpro input[type="tel"],
form#mailformpro input[type="email"],
form#mailformpro select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid #ccd8ea;
  border-radius: 14px;
  background: #fdfefe;
  box-shadow: none;
  color: #17345c;
  font-size: 16px;
  line-height: 1.6;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

form#mailformpro textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 17px;
  border: 1px solid #ccd8ea;
  border-radius: 14px;
  background: #fdfefe;
  font-size: 16px;
  line-height: 1.6;
  min-height: 190px;

  resize: vertical;
}


form#mailformpro input::placeholder,
form#mailformpro textarea::placeholder {
  color: #9aa8ba;
}

form#mailformpro select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #2f5fa6 50%),
    linear-gradient(135deg, #2f5fa6 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

form#mailformpro input:focus,
form#mailformpro select:focus,
form#mailformpro textarea:focus {
  border-color: #2f5fa6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 95, 166, 0.12);
}

form#mailformpro label,
.mfp_rows label,
form#mailformpro .mfp_rows label {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  gap: 8px;
  margin: 6px 18px 6px 0;
  padding: 0;
  border: none;
  color: #243b5a;
  font-size: 15px;
  line-height: 1.7;
  white-space: normal;
  word-break: normal;
  cursor: pointer;
}

form#mailformpro input[type="checkbox"],
form#mailformpro input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2f5fa6;
  flex: 0 0 auto;
}

/* 選択済みラベル */
form#mailformpro label.mfp_checked {
  padding: 6px 10px;
  border: 1px solid #bdd0eb;
  border-radius: 999px;
  background: #eef5ff;
  box-shadow: none;
}

form#mailformpro label.mfp_not_checked {
  padding: 6px 10px;
  border: 1px solid #e3ebf6;
  border-radius: 999px;
  background: #fff;
}

/* エラー表示 */
.mfp_parent_error {
  border: none;
}

.problem {
  background-color: #fffafa !important;
  border-color: #e85b5b !important;
}

div.mfp_err {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  color: #d94b4b;
  font-size: 13px;
  font-weight: 700;
  background-position: 0 0.35em;
}

/* 確認画面 */
table#mfp_confirm_table {
  overflow: hidden;
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e1e9f5;
}

table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
  padding: 14px 16px;
  border-top: 1px solid #e1e9f5;
  font-size: 15px;
  line-height: 1.7;
}

table#mfp_confirm_table tr:first-child th,
table#mfp_confirm_table tr:first-child td {
  border-top: none;
}

table#mfp_confirm_table tr th {
  width: 220px;
  background: #f4f8ff;
  color: #17345c;
  font-weight: 800;
}

table#mfp_confirm_table tr td {
  background: #fff;
}

/* フェーズ表示 */
ul#mfp_phase_stat {
  margin: 0 0 24px;
  padding: 0;
  text-align: center;
}

ul#mfp_phase_stat li {
  font-size: 13px;
}

ul#mfp_phase_stat li.mfp_active_phase {
  background: #2f5fa6;
  border-color: #2f5fa6;
  box-shadow: 0 8px 18px rgba(47, 95, 166, 0.24);
  text-shadow: none;
  background-image: none;
}

ul#mfp_phase_stat li.mfp_inactive_phase {
  background: #eef3fa;
  border-color: #eef3fa;
  color: #7b8fa8;
  box-shadow: none;
  background-image: none;
}

/* ボタン */
div.mfp_buttons {
  clear: both;
  margin-top: 38px;
  padding: 0;
  text-align: center;
}

div.mfp_buttons button,
button.mfp_next,
button.mfp_prev,
.mfp_element_submit,
.mfp_element_reset,
.mfp_element_button {
  width: min(100%, 340px);
  margin: 8px;
  padding: 18px 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f5fa6 0%, #1f4e92 100%);
  box-shadow: 0 12px 26px rgba(47, 95, 166, 0.3);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button.mfp_prev,
.mfp_element_reset {
  background: #eef3fa;
  color: #2f5fa6;
  box-shadow: none;
}

div.mfp_buttons button:hover,
button.mfp_next:hover,
button.mfp_prev:hover,
.mfp_element_submit:hover,
.mfp_element_reset:hover,
.mfp_element_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(47, 95, 166, 0.34);
  background: linear-gradient(135deg, #2f5fa6 0%, #1f4e92 100%);
}

button.mfp_prev:hover,
.mfp_element_reset:hover {
  background: #e4edf8;
  color: #2f5fa6;
  box-shadow: 0 10px 22px rgba(47, 95, 166, 0.12);
}

/* thanks */
div#mfp_thanks {
  padding: 48px 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
}

div#mfp_thanks strong {
  display: block;
  margin-bottom: 12px;
  color: #2f5fa6;
  font-size: 28px;
}

/* footer */
div#wrapper div#footer {
  margin-top: 28px;
  text-align: center;
}

div#wrapper div#footer p {
  color: #7b8fa8;
}

/* SP */
@media screen and (max-width: 800px) {
  body {
    background: #f4f8ff;
  }

  div#wrapper {
    padding: 40px 16px;
  }

  div#wrapper div#header h1 {
    font-size: 28px;
  }

  div#wrapper div#header p {
    font-size: 14px;
  }

  form#mailformpro {
    padding: 26px 18px;
    border-radius: 20px;
  }

  div#wrapper div#container form#mailformpro dl dt,
  form#mailformpro dl dt {
    margin-top: 22px;
    padding: 22px 0 0;
    font-size: 15px;
  }

  div#wrapper div#container form#mailformpro dl dd,
  form#mailformpro dl dd {
    margin-top: 10px;
    padding: 0;
  }

  .mfp_rows {
    gap: 10px;
  }

  .mfp_rows .mfp_col5,
  .mfp_rows .mfp_col10 {
    flex: 1 1 100%;
    width: 100%;
  }

  form#mailformpro input[type="text"],
  form#mailformpro input[type="tel"],
  form#mailformpro input[type="email"],
  form#mailformpro select,
  form#mailformpro textarea {
    padding: 14px 15px;
    font-size: 16px;
    border-radius: 12px;
  }

  form#mailformpro textarea {
    min-height: 170px;
  }

  form#mailformpro label,
  .mfp_rows label,
  form#mailformpro .mfp_rows label {
    display: flex;
    width: 100%;
    margin: 8px 0;
  }

  table#mfp_confirm_table tr th,
  table#mfp_confirm_table tr td {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }

  table#mfp_confirm_table tr th {
    border-top: 1px solid #e1e9f5;
  }

  div.mfp_buttons {
    margin-top: 30px;
  }

  div.mfp_buttons button,
  button.mfp_next,
  button.mfp_prev,
  .mfp_element_submit,
  .mfp_element_reset,
  .mfp_element_button {
    width: 100%;
    margin: 8px 0;
    font-size: 16px;
  }
}



/* ==============================
   Thanks Page
============================== */

.thanks_contents {
  padding: 100px 20px;
  background: #f4f8ff;
}

.thanks_contents .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 48px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(25, 73, 135, 0.10);
}

.thanks_heading {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.5;
  font-weight: 800;
  color: #17345c;
  text-align: center;
  letter-spacing: 0.03em;
}

.thanks_caption {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 2;
  color: #4c6280;
  text-align: center;
}

.thanks_error {
  margin: 0;
  padding: 32px 36px;
  list-style: none;
  background: #f8fbff;
  border: 1px solid #dce7f5;
  border-radius: 20px;
}

.thanks_error li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 2;
  color: #2b4466;
}

.thanks_error li:last-child {
  margin-bottom: 0;
}

.thanks_error li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f5fa6;
  transform: translateY(-50%);
}

.thanks_tel {
  margin: 36px 0 0;
  padding: 28px 32px;
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid #2f5fa6;
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: #17345c;
  font-weight: 600;
}

.thanks_tel a {
  color: #2f5fa6;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.thanks_tel a:hover {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .thanks_contents {
    padding: 64px 16px;
  }

  .thanks_contents .inner {
    padding: 32px 22px;
    border-radius: 20px;
  }

  .thanks_heading {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.6;
  }

  .thanks_caption {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }

  .thanks_error {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .thanks_error li {
    padding-left: 22px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.9;
  }

  .thanks_tel {
    margin-top: 28px;
    padding: 22px 18px;
    font-size: 14px;
    line-height: 1.9;
  }

  .thanks_tel a {
    display: inline-block;
    margin-top: 6px;
    font-size: 18px;
  }
}

.mailform_contents {
  padding: 40px 0 80px 0;
}