@charset "UTF-8";

/* Contact Page Styles */
#contact-form {
  position: relative;
  min-width: 100%;
  overflow: hidden;
  min-height: 100vh;
}

@media (max-width: 750px) {
  .contact-confirm footer {
    position: absolute;
    bottom: 0;
  }
}

#contact-form .hex4 {
  top: 341px;
  left: calc(50% + 246px);
  width: 900px;
  height: auto;
}

#contact-form .hex3 {
  top: 980px;
  right: calc(50% + 130px);
  width: 900px;
  height: auto;
}

@media (max-width: 750px) {
  #contact-form .hex4 {
    top: calc(110 / 375 * 100vw);
    right: calc(-92 / 375 * 100vw);
    width: calc(271 / 375 * 100vw);
    height: auto;
    left: auto;
  }

  #contact-form .hex3 {
    top: calc(785 / 375 * 100vw);
    right: calc(-92 / 375 * 100vw);
    width: calc(272 / 375 * 100vw);
    height: auto;
    left: calc(-125 / 375 * 100vw);
  }
}

.contact-form h2 {
  font-size: 78px;
  font-family: "Lato", sans-serif;
  padding-top: min(calc(125 / 1920 * 100vw), 125px);
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 750px) {
  .contact-form h2 {
    padding-top: calc(40 / 375 * 100vw);
    font-size: calc(38 / 375 * 100vw);
    text-align: center;
  }
}

.contact-form p {
  line-height: 2;
  padding-bottom: min(calc(20 / 1920 * 100vw), 20px);
}

.contact-form .contact-form-center {
  text-align: center;
  padding-top: min(calc(70 / 1920 * 100vw), 70px);
  padding-bottom: min(calc(30 / 1920 * 100vw), 30px);
}

@media (max-width: 750px) {
  .contact-form .contact-form-center {
    text-align: left;
    font-size: calc(16 / 375 * 100vw);
    padding: min(calc(45 / 350 * 100vw), 30px) 0;
  }
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 40px;
  font-size: 14px;
  color: #0e196d;
  position: relative;
}

@media (max-width: 750px) {
  .contact-form {
    max-width: 100%;
    width: 90%;
    font-size: calc(14 / 375 * 100vw);
    padding: 0 0 calc(110 / 375 * 100vw);
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid #095fc3;
  border-radius: 4px;
}

.small-text {
  font-size: 70%;
}

@media (max-width: 750px) {
  .form-group {
    margin-bottom: calc(30 / 375 * 100vw);
  }

  .form-group label {
    margin-bottom: calc(10 / 375 * 100vw);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: calc(15 / 375 * 100vw) calc(25 / 375 * 100vw);
    font-size: calc(16 / 375 * 100vw);
  }
}

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

@media (max-width: 750px) {
  .form-group textarea {
    height: calc(160 / 375 * 100vw);
  }
}

.submit-btn {
  color: #fff;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  background: #095fc3;
  width: 100%;
  border-radius: 30px;
}

.submit-btn:hover {
  background: #04428a;
}

@media (max-width: 750px) {
  .submit-btn {
    padding: calc(20 / 375 * 100vw) 0;
    font-size: calc(14 / 375 * 100vw);
    border-radius: calc(30 / 375 * 100vw);
  }
}

.contact-confirm .submit-btn {
  width: 30%;
}

.contact-confirm .edit-btn {
  width: 30%;
}

/* Contact Page Styles */

/* Contact Confirmation Page */
.contact-confirm {
  max-width: 800px;
  margin: 0 auto;
  width: 90%;
  /* padding: 40px 0; */
}

.confirm-details {
  background: #f9f9f9;
  padding: 50px;
  margin-bottom: min(calc(110 / 1920 * 100vw), 110px);
  border-radius: 5px;
  /* margin-top: min(calc(110 / 1920 * 100vw), 110px); */
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.confirm-details p {
  margin-bottom: 10px;
  font-weight: bold;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.confirm-details p span {
  width: 160px;
  padding-right: 10px;
}

.form-actions {
  display: flex;
  gap: 5%;
}

.edit-btn {
  background: #666;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 750px) {
  .confirm-details {
    padding: calc(20 / 375 * 100vw);
    margin-bottom: calc(50 / 375 * 100vw);
  }

  .confirm-details p {
    font-size: calc(14 / 375 * 100vw);
    width: 100%;
  }

  .confirm-details p span {
    width: calc(130 / 375 * 100vw);
    padding-right: 0;
  }

  .confirm-details p span.input-value {
    width: calc(165 / 375 * 100vw);
  }

  .edit-btn {
    padding: calc(20 / 375 * 100vw) 0;
    font-size: calc(14 / 375 * 100vw);
    border-radius: calc(30 / 375 * 100vw);
  }
}

.edit-btn:hover {
  background: #888;
}

.contact-thanks .main {
  height: calc(100vh - 215px - 46px);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
}

@media screen and (max-width: 1920px) {
  .contact-thanks .main {
    height: calc(100vh - 15vw - 46px);
    min-height: calc(100vh - 190px - 46px);
  }
}
/* Contact Confirmation Page */

/* Thank You Page */
.contact-thank-you {
  text-align: center;
  padding: 60px 0;
}

.thank-you-message {
  max-width: 800px;
  margin: 0 auto;
  /* padding-top: 20px; */
}

.contact-thank-you p.thank-you-center {
  text-align: center;
  padding-top: min(calc(70 / 1920 * 100vw), 70px);
  padding-bottom: min(calc(30 / 1920 * 100vw), 30px);
}


@media (max-width: 750px) {
  .contact-thank-you p.thank-you-center {
    text-align: left;
    font-size: calc(14 / 375 * 100vw);
    padding: min(calc(45 / 350 * 100vw), 30px) 0;
  }

  .thank-you-message p {
    text-align: left;
  }
}


.home-btn {
  color: #fff;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  background: #095fc3;
  /* width: 100%; */
  width: 30%;
  border-radius: 30px;
  display: block;
  /* margin-top: 100px; */
  margin: min(calc(125 / 1920 * 100vw), 125px) auto
    min(calc(125 / 1920 * 100vw), 125px);
  text-decoration: none;
}

.home-btn:hover {
  background: #04428a;
}

@media (max-width: 750px) {
  .home-btn {
    padding: calc(20 / 375 * 100vw) calc(20 / 375 * 100vw);
    font-size: calc(14 / 375 * 100vw);
    border-radius: calc(30 / 375 * 100vw);
    margin-bottom: calc(50 / 375 * 100vw);
    width: 50%;
  }
}
/* Thank You Page */

/* Checkbox Styles */

.form-group label {
  font-weight: normal;
}

.checkbox-group-wrap {
  margin-bottom: 35px;
}
.checkbox-group {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.checkbox-group label {
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: nowrap;
  /* padding-left: 35px; */
  width: auto;
  justify-content: flex-start;
}

.checkbox-group input[type="checkbox"],
.agree input[type="checkbox"] {
  border: none;
}

/*  */
.checkbox-group input[type="checkbox"] {
  appearance: none;
  outline: none;
  display: block;
  position: relative;
  text-align: center;
  cursor: pointer;
  padding-left: 30px;
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.agree input[type="checkbox"] {
  appearance: none;
  outline: none;
  display: block;
  position: relative;
  text-align: center;
  cursor: pointer;
  /* padding-left: 30px; */
  /* width: 32px;
    height: 32px; */
  margin: 0 auto;
}

/* // チェックボックスのデザイン */
.checkbox-group input[type="checkbox"]::before {
  border: 2px solid #095fc3;
  background: #fff;
  display: block;
  position: absolute;
  content: "";
  top: 2px;
  left: 0px;
  width: 22px;
  height: 22px;
  border-radius: 3px;
}

.agree input[type="checkbox"]::before {
  border: 2px solid #095fc3;
  background: #fff;
  display: block;
  position: absolute;
  content: "";
  top: -14px;
  left: -55px;
  width: 32px;
  height: 32px;
  border-radius: 3px;
}

/* // チェックボックスの背景をチェック後に変更 */
.checkbox-group input[type="checkbox"]:checked::before,
.agree input[type="checkbox"]:checked::before {
  background-color: #095fc3;
}

/* // チェックマークのデザイン */
.checkbox-group input[type="checkbox"]::after {
  display: block;
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 8px;
  height: 16px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
}

.agree input[type="checkbox"]::after {
  display: block;
  content: "";
  position: absolute;
  left: -43px;
  top: -12px;
  width: 10px;
  height: 26px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
}

/* // チェックするとチェックマークの透明化を解除 */
.checkbox-group input[type="checkbox"]:checked::after,
.agree input[type="checkbox"]:checked::after {
  opacity: 1;
}
/*  */

/* Responsive adjustments */
@media (max-width: 750px) {
  .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: start;
    flex-wrap: wrap;
    gap: 0px calc(30 / 375 * 100vw);
  }
  .checkbox-group label {
    /* padding-left: 30px; */
    /* font-size: 16px; */
    margin-bottom: calc(15 / 375 * 100vw);
    width: calc(110 / 375 * 100vw);
    display: flex;
    flex-wrap: nowrap;
  }

  .checkbox-group label:nth-child(2n) {
    width: calc(190 / 375 * 100vw);
  }

  #contact-form .container {
    width: 90%;
    margin: 0 auto;
  }

  .checkbox-group input[type="checkbox"] {
    padding-left: calc(15 / 375 * 100vw);
    /*width: calc(22 / 375 * 100vw);
        height: calc(22 / 375 * 100vw);*/
    width: 0;
    height: 0;
    margin: 0;
  }

  .agree input[type="checkbox"] {
    padding-left: calc(15 / 375 * 100vw);
    /*width: calc(32 / 375 * 100vw);
        height: calc(32 / 375 * 100vw);*/
    border: none;
  }

  .checkbox-group input[type="checkbox"]::before {
    top: calc(3 / 375 * 100vw);
    left: 0;
    width: calc(22 / 375 * 100vw);
    height: calc(22 / 375 * 100vw);
    border-radius: 3px;
  }

  .agree input[type="checkbox"]::before {
    top: calc(-15 / 375 * 100vw);
    left: calc(-30 / 375 * 100vw);
    width: calc(32 / 375 * 100vw);
    height: calc(32 / 375 * 100vw);
    border-radius: 3px;
  }

  .checkbox-group input[type="checkbox"]::after {
    left: calc(7 / 375 * 100vw);
    top: calc(4 / 375 * 100vw);
    width: calc(8 / 375 * 100vw);
    height: calc(16 / 375 * 100vw);
  }

  .agree input[type="checkbox"]::after {
    /*left: calc(12 / 375 * 100vw);
        top: calc(5 / 375 * 100vw);*/
    left: calc(-18 / 375 * 100vw);
    top: calc(-15 / 375 * 100vw);
    width: calc(10 / 375 * 100vw);
    height: calc(26 / 375 * 100vw);
  }
}

.checkbox-group input {
  width: 100%;
}

.privacy-text {
  text-align: center;
}

.agree {
  display: flex;
  justify-content: center;
  padding-bottom: 100px;
}

@media (max-width: 750px) {
  p.privacy-text {
    text-align: left;
    padding-bottom: calc(15 / 375 * 100vw);
  }

  .agree {
    padding-bottom: calc(50 / 375 * 100vw);
  }
}

.agree label {
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: nowrap;
  /* padding-left: 45px; */
  width: auto;
  justify-content: flex-start;
}

.agree input[type="checkbox"] {
  /* position: absolute; */
  /* left: 0; */
  /* width: auto; */
  /* padding: 10px; */
  /* border: 1px solid #4da3c8; */
  /* border-radius: 4px; */
}

.agree label:has(input[type="checkbox"])::after {
  aspect-ratio: 16 / 9;
  border-bottom: 4px solid var(--color-blue);
  border-left: 4px solid var(--color-blue);
  rotate: -45deg;
  scale: 0;
  -webkit-transform: translateY(25%);
  transform: translateY(25%);
}

button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* modal */

.modal {
  display: none;
  height: 100%;
  position: fixed;
  top: 0;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
.modal-bg {
  background: rgba(0, 0, 0, 0.6);
  height: 100vh;
  width: 100%;
}
.modal-content {
  width: 300px;
  height: 200px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  padding: 10px 30px;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.scroll-wrap {
  max-width: 800px;
  width: 70vw;
  margin: auto;
  background: #fff;
  padding: min(7vw, 70px) min(5vw, 50px) min(5vw, 50px);
  height: 70vh;
  z-index: 100;
  position: absolute;
  overflow-y: scroll;
}

.modal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.closeBtn {
  /* display: grid; */
  position: absolute;
  right: 5vw;
  top: 3vw;
  /* width: 9vw; */
  z-index: 2;
  /* height: 8vw; */
  line-height: 1;
  align-items: start;
  justify-content: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
  background: none;
  border: none;
  width: min(5vw, 40px);
  height: min(5vw, 40px);
  background: url("/assets/img/contact/close-btn.webp") no-repeat center;
  background-size: cover;
  cursor: pointer;
  overflow: hidden;
}

.modal h4,
.modal h5 {
  margin-bottom: 5px;
}
