@charset "utf-8";
/* =========================
  Contact page (add-on)
========================= */

.contact {
  padding: 56px 0 0;
  position: relative;
}

.contact__header {
  text-align: center;
  margin-bottom: 28px;
}

.contact__title {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.04em;
}

.contact__lead {
  margin: 14px 0 0;
  line-height: 1.8;
  font-size: var(--fs-body);
}

.contact__below{
  position: relative;
  padding: 18px 0 80px; /* 下の余白は好みで調整 */
}
.contact__below__thanks{
  position: relative;
  padding: 100px 0 400px; /* 下の余白は好みで調整 */
}
.contact__below::before{
  content:"";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #f3f4f6;
  z-index: -1;
}
.contact__note {
  margin: 18px auto 0;
  font-weight: 600;
  position: relative;
  z-index: 0;
  margin-bottom: 0;
  padding-bottom: 18px;
  padding-top: 30px;
  text-align: center;
  font-size: var(--fs-body);
}

.contact-form__help {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.contact__panel {
  margin: 26px auto 0;
  max-width: 1000px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 34px 50px 28px;
  position: relative;
  z-index: 1;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
}

.contact-form__row--textarea {
  align-items: start;
}

.contact-form__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  white-space: nowrap;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
	width: 100%;
    border: none;
    background: #f2f2f2;
    border-radius: 0;
    padding: 16px 14px;
    font-size: 16px;
    outline: none;
    margin: 0;
    box-shadow: none;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 180px;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}

.contact-form__zip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.contact__panel .contact-form__zipbtn.mfp_element_button {
  border: 1px solid rgba(0,0,0,0.45);
  background: #fff;
  border-radius: 15px;
  padding: 10px 40px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-size: 16px;
}

.contact-form__agree {
  padding: 16px 0 0;
  text-align: center;
}

.contact-form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.contact-form__check a {
  text-decoration: underline;
}

.contact-form__actions {
  display: flex;
  justify-content: center;
  padding: 30px 0 0;
}

.contact-form__submit {
  min-width: 240px;
}

/* Confirm */
.contact-confirm {
  margin: 26px auto 0;
  max-width: 860px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 34px 34px 28px;
  position: relative;  /* ← これ必須 */
  z-index: 1;          /* ← グレー帯より上に出す */
}

.contact-confirm__title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 22px;
}

.contact-confirm__list {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 18px;
  padding: 14px 0;
}

.contact-confirm__list dt {
  font-weight: 700;
}

.contact-confirm__list dd {
  margin: 0;
  padding: 12px 14px;
  background: #f3f4f6;
  border-radius: 8px;
  white-space: pre-wrap;
}

.contact-confirm__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 18px;
}

.contact-confirm__back {
  border: 1px solid rgba(0,0,0,0.45);
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.contact__panel .goccha-button.mfp_element_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 28px;
    border-radius: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .08s ease, opacity .2s ease;
    background: #16a34a;
    color: #fff;
    text-shadow: none;
}

/* SP */
@media (max-width: 768px) {
  .contact__panel,
  .contact-confirm {
    padding: 22px 16px 18px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-form__label {
    justify-content: flex-start;
  }

  .contact-confirm__list {
    grid-template-columns: 1fr;
  }
}
/* MailformProが付ける styleを上書き */
.contact-form textarea.mfp_element_textarea{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;     /* 固定したいなら auto を消して下のmin-heightを調整 */
  min-height: 220px;           /* 好みで 180〜320px くらい */
  box-sizing: border-box;
}
.contact__panel form#mailformpro.contact-form label.mfp_not_checked {
    padding: 3px;
    border: none;
}
.contact__panel table#mfp_confirm_table tr th, .contact__panel table#mfp_confirm_table tr td {
    text-align: left;
    font-size: 16px;
    border-top: solid 1px #CCC;
    padding: 15px 10px;
}
.contact__panel .mfp_element_submit,
.contact__panel .mfp_element_reset,
.contact__panel .mfp_element_button,
.contact__panel button.mfp_next,
.contact__panel button.mfp_prev {
    border-radius: 5px;
    padding: 5px 30px;
    border: solid 1px #CCC;
    background: #eee;
    text-shadow: none;
    font-size: 18px;
    cursor: pointer;
    outline: none;
}