@charset "UTF-8";

/* =========================
   page
========================= */
.contactPage {
  padding-top: 70px;
}

.contactPage {
  padding-top: 70px;
}

.contactSection {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.contactIntro,
.contactFormWrap,
.thanksPanel {
  padding: 36px;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid #dfe6e1;
  box-shadow: 0 18px 40px rgba(33, 52, 41, 0.08);
}

.contactFormWrap {
  margin-top: 28px;
}

.contactFormHead {
  margin-bottom: 24px;
}

.contactFormHead__sub {
  margin: 0 0 8px;
  color: #4d8d6f;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contactFormHead__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.4;
}

.contactIntro p {
  margin: 0;
  color: #66706a;
  line-height: 1.7;
}

/* =========================
   mailform override
========================= */
form#mail_form,
form#mail_form * {
  box-sizing: border-box;
}

form#mail_form {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.8;
}

form#mail_form dl {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid #e5ece7;
}

form#mail_form dl:first-of-type {
  border-top: 1px solid #e5ece7;
}

form#mail_form dl dt {
  width: 28%;
  padding: 28px 0 22px;
  text-align: left;
  color: #2f3431;
  font-weight: 700;
}

form#mail_form dl dd {
  width: 68%;
  padding: 22px 0 22px 4%;
}

form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
  margin-right: 10px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

form#mail_form dl dt span.required {
  background: #d9534f;
  border: 1px solid #d9534f;
}

form#mail_form dl dt span.optional {
  background: #4d8d6f;
  border: 1px solid #4d8d6f;
}

form#mail_form dl dd span.error_blank,
form#mail_form dl dd span.error_format,
form#mail_form dl dd span.error_match {
  color: #c43d37;
  font-size: 0.88rem;
}

form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"],
form#mail_form select,
form#mail_form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9e2dc;
  border-radius: 14px;
  background: #fbfcfb;
  color: #2f3431;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

form#mail_form input[type="text"]:focus,
form#mail_form input[type="email"]:focus,
form#mail_form input[type="tel"]:focus,
form#mail_form select:focus,
form#mail_form textarea:focus {
  outline: none;
  border-color: #4d8d6f;
  box-shadow: 0 0 0 4px rgba(77, 141, 111, 0.12);
  background: #ffffff;
}

form#mail_form textarea {
  min-height: 180px;
  height: auto;
  resize: vertical;
}

form#mail_form ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

form#mail_form ul li label {
  display: block;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7faf8;
  border: 1px solid #e3ebe5;
  transition: background 0.35s ease, border-color 0.35s ease;
}

form#mail_form ul li label:hover {
  background: #eef6f1;
  border-color: #c9d9cf;
}

form#mail_form ul li input[type="radio"],
form#mail_form ul li input[type="checkbox"] {
  margin: 0 10px 0 0;
  accent-color: #0a7a45;
}

form#mail_form input[name="company"] {
  width: 100%;
}

form#mail_form input[name="name_1"],
form#mail_form input[name="name_2"],
form#mail_form input[name="read_1"],
form#mail_form input[name="read_2"] {
  width: 40%;
}

form#mail_form input[name="postal"],
form#mail_form input[name="phone"],
form#mail_form input[name="schedule"] {
  width: min(320px, 100%);
}

form#mail_form input[name="mail_address"],
form#mail_form input[name="mail_address_confirm"] {
  width: min(620px, 100%);
}

form#mail_form input[name="postal"]+a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 18px;
  border: 1px solid #4d8d6f;
  border-radius: 999px;
  background: #eef6f1;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #2f3431;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

form#mail_form input[name="postal"]+a:hover {
  background: #dcefe3;
  border-color: #3f7c60;
  color: #2f3431;
}

form#mail_form p#form_submit {
  width: 100%;
  margin: 0;
  padding: 28px 0 0;
}

form#mail_form input[type="button"] {
  min-width: 220px;
  min-height: 58px;
  margin-left: 0;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a7a45, #065c34);
  box-shadow: 0 12px 28px rgba(10, 122, 69, 0.2);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  -webkit-appearance: none;
}

form#mail_form input[type="button"]:hover {
  cursor: pointer;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0a7a45, #065c34);
  box-shadow: 0 16px 34px rgba(10, 122, 69, 0.26);
  border: 0;
}

form#mail_form .privacy_check {
  text-align: center;
  padding: 1em;
}

form#mail_form .agreement {
  text-align: center;
  padding: 50px 0;
}

.text_style01 a {
  text-decoration: underline;
  color: #065c34;
}

.agree_label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 14px;
}

.agree_label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.agree_label a {
  color: #1d80c5;
  text-decoration: underline;
}

form#mail_form .privacy_check {
  text-align: center;
  padding: 1em;
}

form#mail_form input[type="button"]:disabled {
  background: #ddd;
  border: 1px solid #ddd;
}

form#mail_form input[type="button"]:disabled:hover {
  pointer-events: none;
  background: #ddd;
  border: 1px solid #ddd;
}

form#mail_form p#form_submit {
  width: 90%;
  margin: 0 auto;
  padding: 30px 0;
  text-align: center;
}

/* =========================
   thanks
========================= */
.contactThanks {
  padding-top: 70px;
}

.thanksPanel {
  text-align: center;
}

.thanksPanel__lead {
  margin: 0 0 12px;
  color: #2f3431;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
}

.thanksPanel__text {
  margin: 0;
  color: #66706a;
}

.thanksPanel__action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* =========================
   responsive
========================= */
@media screen and (max-width: 1000px) {
  form#mail_form dl dt {
    width: auto;
    float: none;
    padding: 24px 0 10px;
    text-align: left;
  }

  form#mail_form dl dd {
    width: auto;
    float: none;
    padding: 0 0 22px;
  }

  form#mail_form input[name="phone"],
  form#mail_form input[name="schedule"],
  form#mail_form input[name="mail_address"],
  form#mail_form input[name="mail_address_confirm"] {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {

  .contactIntro,
  .contactFormWrap,
  .thanksPanel {
    padding: 28px 22px;
  }

  form#mail_form input[name="name_1"],
  form#mail_form input[name="name_2"],
  form#mail_form input[name="read_1"],
  form#mail_form input[name="read_2"] {
    width: 100%;
  }

  form#mail_form input[name="name_2"],
  form#mail_form input[name="read_2"] {
    margin-left: 0;
    margin-top: 12px;
  }

  form#mail_form input[type="button"] {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {

  .contactIntro,
  .contactFormWrap,
  .thanksPanel {
    padding: 24px 18px;
  }
}