@charset "utf-8";
.contact-form-container {
  display: block;
}

.contact-confirm {
  display: none;
}

.contact-form-container.is-hidden {
  display: none;
}

.contact-confirm.is-active {
  display: block;
}

.top-deco {
  position: absolute;
  width: 100%;
  height: 50px;
  background-image: url("../imgs/contact-header.png");
  background-repeat: repeat;
  background-position: center;
  background-size: 1366px auto;
}

.contact-page {
  background: #f6f2eb;
  padding: 120px 0 110px;
}

.contact-section {
  width: 1000px;
  margin: 0 auto;
}

.contact-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 80px;
  color: #663606;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
}

.contact-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #fbc400;
}

.contact-card {
  background: #fff;
  border-radius: 32px;
  padding: 50px 100px;
}

/* form */
.form-group {
  display: grid;
  grid-template-columns: 310px 1fr;
  align-items: center;
  column-gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e8e0d8;
}
.form-group:nth-of-type(7),
.form-group:nth-of-type(8) {
  align-items: start;
}
.form-group label {
  color: #663606;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin-left: 10px;
}
.form-group:nth-of-type(7) label,
.form-group:nth-of-type(8) label {
  margin-top: 10px;
}

.form-group.is-required label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group.is-required label::after {
  content: "必須";
  background: #c1272c;
  color: #fff;
  font-size: 12px;
  padding: 0.5px 7.5px;
  letter-spacing: 0.05rem;
  border-radius: 3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: #f2efed;
  padding: 15px;
  color: #663606;
  font-size: 15px;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #d9cdc1;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.address-row {
  display: flex;
  flex-direction: column;
}

.address-row input:first-child {
  width: 200px;
}

.address-row span {
  color: #663606;
  font-size: 16px;
  font-weight: 500;
}
.prefecture-wrap {
  position: relative;
  width: fit-content;
}
#prefecture {
  width: 200px;
  height: 48px;
  margin-top: 10px;
  padding: 0 45px 0 16px;
  font-size: 15px;
  color: #6b3a00;
  border: none;
  border-radius: 8px;
  background: #f3f0ed;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.prefecture-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: translateY(-30%) rotate(45deg);
  pointer-events: none;
}
#address {
  margin-top: 10px;
}
.form-error {
  grid-column: 2;
  margin-top: 8px;
  color: #c1272c;
  font-size: 13px;
  font-weight: 500;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border: 2px solid #c1272c;
  background: #fff5f5;
}
/* privacy */
.privacy-box {
  margin-top: 50px;
  height: 240px;
  overflow-y: auto;
  background: #f3f1f0;
  border-radius: 8px;
  padding: 35px 50px;
}
.privacy-box::-webkit-scrollbar {
  width: 8px;
}

.privacy-box::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-box::-webkit-scrollbar-thumb {
  background: #9a9a9a;
  border-radius: 999px;
}
.privacy-title {
  margin-bottom: 28px;
  color: #663606;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.privacy-box p,
.privacy-box li {
  color: #663606;
  font-size: 16px;
  line-height: 2;
}

.privacy-box p.flex{
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-box p.flex img{
  max-width:160px;
}
@media screen and (max-width: 768px) {
  .privacy-box p.flex{
 flex-direction:column;
 align-items:flex-start;
 gap: 3px;
}

.privacy-box p.flex img{
  max-width: 128px;
}
}



.privacy-box h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: #663606;
  font-size: 15px;
  font-weight: 500;
}

.privacy-indent {
  padding-left: 20px;
}

.privacy-list {
  padding-left: 18px;
  list-style: disc;
}

.privacy-list li + li {
  margin-top: 8px;
}

.privacy-address {
  margin-top: 18px;
  padding-left: 30px;
}

.privacy-mail-img {
  vertical-align: middle;
  width: auto;
  height: 18px;
}

.privacy-end {
  margin-top: 36px;
  text-align: right;
}

.privacy-note {
  margin-top: 26px;
  color: #c8323a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
}
.agree-check div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agree-check div span {
  color: #663606;
  font-size: 20px;
  font-weight: 500;
}
.agree-check {
  background-color: #f3f1f0;
  width: 460px;
  margin: 40px auto 0;
  padding: 17px 20px;
  border: 2px solid #663606;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.agree-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border: 2px solid #8a5a22;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.agree-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 2px;
  width: 7px;
  height: 14px;
  border-right: 2px solid #8a5a22;
  border-bottom: 2px solid #8a5a22;
  transform: rotate(45deg);
}
.agree-caption {
  color: #663606;
  font-size: 14px;
  text-align: center;
}
.agree-check.has-error {
  border-color: #c1272c;
  background: #fff5f5;
}
.agree-check .form-error {
  margin-top: 4px;
  color: #c1272c;
  font-size: 13px;
  text-align: center;
}

/* button */
.contact-confirm-btn,
.contact-back-btn,
.contact-submit-btn {
  border: none;
  cursor: pointer;
}

.contact-confirm-btn {
  display: block;
  /* margin: 0 auto 0; */
  background: #fbc600;
  border-radius: 999px;
  text-align: center;
  color: #006837;
  font-size: 20px;
  font-weight: 600;
  padding: 15px 80px 17px 66px;
  position: relative;
}

.contact-confirm-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 48px;
  width: 10px;
  height: 10px;
  border-top: 3px solid #006837;
  border-right: 3px solid #006837;
  transform: translateY(-50%) rotate(45deg);
}

/* confirm */

.confirm-list {
  width: 800px;
  margin: 0 auto;
}

.confirm-item {
  display: grid;
  grid-template-columns: 310px 1fr;
  column-gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #e8e0d8;
}
.confirm-item:nth-of-type(7),
.confirm-item:nth-of-type(8) {
  align-items: start;
}
.confirm-item dt {
  color: #663606;
  font-size: 14px;
  font-weight: 500;
  margin-left: 10px;
}

.confirm-item dd {
  color: #663606;
  font-size: 16px;
  line-height: 1.8;
}
.confirm-message {
  width: fit-content;
  margin: 40px auto;
}
.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 32px;
  align-items: center;
  margin-top: 30px;
}
.confirm-btn {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  padding: 14px 72px 18px 70px;
  border-radius: 999px;
}
.confirm-btn::after {
  content: "";
  position: absolute;
  top: 49%;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.contact-back-btn {
  background: #989898;
  color: #fff;
  padding-left: 68px;
}
.contact-back-btn::after {
  left: 45px;
  transform: translateY(-50%) rotate(-135deg);
}
.contact-submit-btn {
  background: #f6c400;
  color: #006837;
  padding-right: 68px;
}
.contact-submit-btn::after {
  right: 45px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .top-deco {
    height: 42px;
    background-size: 390px auto;
    background-image: url("../imgs/contact-header-sp.png");
  }

  .contact-page {
    padding: 75px 0 70px;
  }

  .contact-section {
    width: 90%;
  }

  .contact-title {
    margin-bottom: 50px;
    font-size: 23px;
  }

  .contact-title::after {
    bottom: -20px;
    width: 60px;
  }

  .contact-card {
    border-radius: 18px;
    padding: 24px 18px 34px;
  }

  .form-group {
    display: block;
    padding: 18px 0;
  }

  .form-group label {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
    font-size: 12px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 13px 14px;
    font-size: 14px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .address-row input:first-child,
  #prefecture {
    width: 150px;
  }

  .address-row span {
    font-size: 12px;
  }

  #prefecture {
    height: 42px;
  }
  .form-error {
    margin-top: 6px;
    font-size: 12px;
  }
  .privacy-box {
    margin-top: 28px;
    height: 300px;
    padding: 24px 18px;
  }
  .privacy-box h3 {
    line-height: 1.4;
    text-indent: -1.4em;
    padding-left: 1.4em;
  }
  .privacy-title {
    font-size: 16px;
  }
  .privacy-address {
    padding-left: 0;
  }
  .privacy-box p,
  .privacy-box li {
    font-size: 12px;
    line-height: 1.8;
  }

  .privacy-note {
    font-size: 13px;
  }

  .agree-check {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
  }
  .agree-check div {
    gap: 5px;
  }
  .agree-check div span {
    font-size: 16px;
  }

  .agree-check input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }
  .agree-check input[type="checkbox"]:checked::after {
    left: 6px;
    top: 1px;
  }
  .agree-caption {
    font-size: 14px;
    white-space: nowrap;
  }

  .contact-confirm-btn {
    font-size: 16px;
    padding: 11px 0 14px 0;
    min-width: 200px;
  }

  .contact-confirm-btn::after {
    right: 6vw;
  }

  .confirm-list {
    width: 100%;
  }

  .confirm-item {
    display: block;
    padding: 24px 0;
  }

  .confirm-item dt {
    margin: 0 0 14px;
    font-size: 13px;
  }

  .confirm-item dd {
    font-size: 15px;
  }

  .confirm-message {
    margin: 32px auto;
    font-size: 14px;
    text-align: center;
  }

  .confirm-buttons {
    margin: 40px auto 15px;
    gap: 12px;
    flex-direction: column;
  }

  .confirm-btn {
    font-size: clamp(13px, 4.6vw, 18px);
    padding: 13px 30px 16px 30px;
  }

  .contact-back-btn {
    padding-left: clamp(36px, 12.3%, 48px);
    font-size: 16px;
    min-width: 200px;
  }

  .contact-back-btn::after {
    left: 6vw;
  }

  .contact-submit-btn {
    padding-right: clamp(36px, 12.3%, 48px);
    min-width: 200px;
  }

  .contact-submit-btn::after {
    right: 5vw;
  }
  .form-group.is-required label::after {
    font-size: 10px;
  }
}

/* thanks page */
.thanks-page {
  background: #f6f2eb;
  padding: 150px 0 120px;
  flex: 1;
}

.thanks-section {
  width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.thanks-card {
  background: #fff;
  border-radius: 32px;
  padding: 60px 40px 70px;
}

.thanks-logo {
  width: 160px;
  margin: 0 auto 36px;
}

.thanks-card h1 {
  color: #663606;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 20px;
}

.thanks-card p {
  color: #663606;
  font-size: 14px;
  line-height: 1.8;
}

.thanks-btn {
  display: inline-block;
  position: relative;
  margin-top: 50px;
  padding: 16px 82px 18px 66px;
  background: #fbc600;
  border-radius: 999px;
  color: #006837;
  font-size: 20px;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
}

.thanks-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 48px;
  width: 10px;
  height: 10px;
  border-top: 3px solid #006837;
  border-right: 3px solid #006837;
  transform: translateY(-50%) rotate(45deg);
}

@media screen and (max-width: 768px) {
  .thanks-page {
    padding: 85px 0 85px;
  }

  .thanks-section {
    width: 90%;
  }

  .thanks-card {
    border-radius: 20px;
    padding: 38px 20px 48px;
  }

  .thanks-logo {
    width: 120px;
    margin-bottom: 26px;
  }

  .thanks-card h1 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .thanks-card p {
    font-size: 13px;
    line-height: 1.8;
    text-align: justify;
  }

  .thanks-btn {
    margin-top: 34px;
    font-size: 18px;
    padding: 14px 64px 16px 48px;
  }

  .thanks-btn::after {
    right: 36px;
  }
}
