@charset "utf-8";

/* =====================================================
   トップページ：お問い合わせへの導線
===================================================== */

.home-contact {
  margin: 55px 0 10px;
  padding: 44px 30px 48px;
  border-top: 6px solid #000;
  background: linear-gradient(135deg, #f1f1f1 0%, #fff 60%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.28);
  text-align: center;
  box-sizing: border-box;
}

.home-contact h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}

.home-contact p {
  margin-bottom: 24px;
}

.home-contact__button,
.home-contact__button:link,
.home-contact__button:visited {
  position: relative;
  display: inline-block;
  min-width: 310px;
  padding: 15px 55px 15px 30px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.home-contact__button::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
}

.home-contact__button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(45deg);
}

.home-contact__button:hover,
.home-contact__button:active {
  background: #444;
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   お問い合わせページ
===================================================== */

.contact-page .header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact-page .logo a {
  display: inline-block;
  text-decoration: none;
}

.contact-page #WRAP {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-main {
  flex: 1;
}

.contact-heading {
  padding: 48px 5%;
  background: linear-gradient(135deg, #111 0%, #555 100%);
  color: #fff;
}

.contact-heading__inner {
  width: 1080px;
  max-width: 100%;
  margin: 0 auto;
}

.contact-heading__en {
  margin: 0 0 5px;
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.2em;
}

.contact-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
}

.contact-content {
  width: 900px;
  max-width: calc(100% - 40px);
  margin: 55px auto 80px;
}

.contact-lead {
  margin-bottom: 30px;
  text-align: center;
}

.error-box {
  margin-bottom: 25px;
  padding: 20px 24px;
  border: 1px solid #b60000;
  background: #fff5f5;
  color: #9c0000;
}

.error-box p {
  margin-bottom: 8px;
  font-weight: 700;
}

.error-box ul {
  margin: 0;
  padding-left: 1.5em;
}

.error-box li {
  list-style: disc;
}

.contact-form {
  border-top: 1px solid #cfcfcf;
}

.form-row {
  display: flex;
  border-right: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  border-left: 1px solid #cfcfcf;
}

.form-label {
  display: flex;
  flex: 0 0 240px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 20px;
  background: #f1f1f1;
  font-weight: 700;
  box-sizing: border-box;
}

.form-row--message .form-label {
  align-items: flex-start;
}

.required {
  flex: 0 0 auto;
  padding: 2px 7px;
  background: #000;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
}

.form-control {
  flex: 1 1 auto;
  padding: 20px 24px;
  background: #fff;
  box-sizing: border-box;
}

.form-control input,
.form-control textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  line-height: 1.6;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.form-control textarea {
  min-height: 210px;
  resize: vertical;
}

.form-control input:focus,
.form-control textarea:focus {
  border-color: #000;
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 1px;
}

.form-submit {
  margin-top: 35px;
  text-align: center;
}

.form-submit button,
.back-button,
.back-button:link,
.back-button:visited {
  position: relative;
  display: inline-block;
  min-width: 310px;
  padding: 16px 58px 16px 35px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.form-submit button::before,
.back-button::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
}

.form-submit button::after,
.back-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(45deg);
}

.form-submit button:hover,
.back-button:hover,
.back-button:active {
  background: #444;
  color: #fff;
  text-decoration: none;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-complete {
  padding: 55px 30px 60px;
  border-top: 6px solid #000;
  background: #f5f5f5;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.contact-complete__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 52px;
  font-weight: 700;
}

.contact-complete h2 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}

.contact-complete p {
  margin-bottom: 30px;
  line-height: 2;
}

@media screen and (min-width: 1550px) {
  .contact-heading__inner {
    width: 1350px;
  }
}

@media screen and (max-width: 640px) {
  .home-contact {
    margin-top: 40px;
    padding: 34px 20px 38px;
  }

  .home-contact h2 {
    font-size: 20px;
  }

  .home-contact__button,
  .home-contact__button:link,
  .home-contact__button:visited,
  .form-submit button,
  .back-button,
  .back-button:link,
  .back-button:visited {
    width: 100%;
    min-width: 0;
  }

  .contact-heading {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .contact-heading h2 {
    font-size: 23px;
  }

  .contact-content {
    max-width: calc(100% - 30px);
    margin-top: 38px;
    margin-bottom: 55px;
  }

  .contact-lead {
    text-align: left;
  }

  .form-row {
    display: block;
  }

  .form-label {
    width: 100%;
    padding: 14px 15px;
  }

  .form-control {
    padding: 15px;
  }

  .form-control input,
  .form-control textarea {
    font-size: 16px;
  }

  .contact-complete {
    padding: 40px 20px 45px;
  }

  .contact-complete h2 {
    font-size: 20px;
  }
}
