.contact-content-wrapper {
    padding: 0 18vw;
}
#contact .content-wrapper {
    padding: 9.5rem 9.37rem 6.25rem;
    width: 100%;
}
#contactForm .cta-container {
    display: flex;
    justify-content: center;
    margin-top: 7.09rem;
}
.wpcf7-spinner {
  display: none !important;
}

#thanks-page .content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-size: var(--font-size-big-ttl);
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.09375rem;
}

.title-underline {
    width: 64px;
    height: 4px;
    background-color: var(--color-navy);
    margin: 0 auto 48px;
}
#contact-form .submit-button {
  width: 19.1875rem;
    padding: 1rem 1.2rem 1rem 7.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
/* .thanks-page .submit-button {
  overflow: visible;
} */

#contact-form .submit-button:before {
  width: 19.1875rem;
    padding: 1rem 1.2rem 1rem 3.5rem;

}
@media screen and (min-width: 1920px) {
    .contact-content-wrapper {
        padding: 0 21.5vw;
    }
}


@media screen and (max-width: 1500px) {
  #contact .content-wrapper {
    padding: 12.5rem 7.5vw 6.25rem;
}
}


@media screen and (max-width: 1200px) {
  #contact .content-wrapper {
    padding: 5rem 7rem 5.63rem;
}
    #contact-page .fv-content {
        padding: 8rem 3rem 40px;
    }
    #contact-page .fv-text,
    #thanks-page .fv-text {
      font-size: 2.75rem;
      margin-bottom: 0;
    }
    #contact-form .submit-button {
        padding: 1rem 1.2rem 1rem 6.5rem;
    }
    #thanks-page .content-container {
      margin-top: 7rem;
  }
  #contactForm .cta-container {
    margin-top: 3rem;
}
}
@media screen and (max-width: 1024px) {
  #contact-form .submit-button {
    padding: 1rem 1.2rem 1rem 1rem;
    font-size: 1rem;
  }
}
@media screen and (max-width: 768px) {
  #contact-form .submit-button {
    width: 7.1875rem;
    padding: 1rem 1.2rem 1rem 1rem;
    margin: 0;
    font-size: 1rem;
}
#contact-page .fv-content,
#thanks-page .fv-content {
  padding: 8rem 0 40px;
}
#contactForm .cta-container {
  margin-top: 3rem;
}
#thanks-page .content-container {
  margin-top: 3.12rem;
}
}

  /* Form Styles */
.contact-form {
    max-width: 1200px;
    margin: 6.25rem auto 0;
}
.confirm_area {
    display: none;
}

.form-group {
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%; 
}
.confirm-page .form-group {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.confirm-page .label-container {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  width:  300px;
}
.label-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width:  300px;
}

.input-container {
    flex: 1;
    min-width: 260px;
}

.required-badge, .optional-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 2.5rem;
    margin-right: 12px;
    color: var(--color-white);
    border-radius: 0.1875rem;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.875rem; /* 150% */
    letter-spacing: 0.0625rem;
}

.required-badge {
    background-color: var(--color-navy);
}

.optional-badge {
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 1px solid var(--color-navy);
}

label {
    font-weight: 500;
    font-size: var(--font-size-text);
    color: var(--color-black);
    line-height: normal;
    letter-spacing: 0.0625rem;
    font-family: var(--font-family-noto-sans-jp);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d8d8d8;
    font-size: var(--font-size-text);
    transition: border-color var(--transition-fast);
    color: var(--color-true-black);
  }
  
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  textarea:focus {
    outline: none;
    border: 2px solid var(--color-navy);
}

  input[type="text"]::placeholder,
  input[type="email"]::placeholder,
  input[type="tel"]::placeholder,
  textarea::placeholder {
    font-size: var(--font-size-text);
    color: #d8d8d8;
}
  .form-note {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--color-true-black);
    font-weight: 400;
    line-height: 1.875rem; /* 166.667% */
    letter-spacing: 0.0625rem;
  }
  
  /* Phone Input Styles */
  .phone-inputs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 420px; /* 任意 */
  }
  .phone-inputs input {
    text-align: start;
  }
  .phone-inputs .phone-input {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .phone-separator {
    margin: 0 8px;
    color: var(--color-black-navy);
    font-weight: 500;
  }

  /* Privacy Section */
  .privacy-section {
    margin-left: 300px;
    text-align: left;
  }
  
  .privacy-text {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.875rem;
    letter-spacing: 0.0625rem;
    }
  
  .privacy-link {
    color: var(--color-navy);
    transition: color var(--transition-fast);
  }
  @media (hover: hover) and (pointer: fine) {
  .privacy-link:hover {
    color: var(--color-navy);
  }
}
.wpcf7-checkbox input[type="checkbox"] {
  display: none;
}

.wpcf7-checkbox label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
}

.wpcf7-checkbox label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 57%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  background: white;
}

.wpcf7-checkbox input[type="checkbox"]:checked + span::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  font-size: 14px;
  color: var(--color-navy, #0a3760);
}
.wpcf7-checkbox input[type="checkbox"]:checked + span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%) rotate(-45deg);
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--color-navy);
  border-bottom: 2.5px solid var(--color-navy);
}
.wpcf7-list-item {
  margin: 0 1rem 0 0 !important;
  }
  /* .checkbox-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .wpcf7-list-item {
    margin: 0 !important;
    }

  .wpcf7-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
.wpcf7-checkbox input[type="checkbox"]:checked + span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
}
.wpcf7-checkbox label {
  cursor: pointer;
}
.wpcf7-checkbox input[type="checkbox"]:checked + span::before {
  border-color: #0297E0;
}
.wpcf7-checkbox input[type="checkbox"]:checked + span::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 5px;
  transform: translateY(-50%) rotate(-45deg);
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--color-navy);
  border-bottom: 2.5px solid var(--color-navy);
}
  .checkbox-label {
    cursor: pointer;
  } */
  
  /* Submit Button */
  .submit-container {
    display: flex;
    justify-content: center;
    margin-top: 7.69rem;
    gap: 3.12rem;
  }


  .submit-container .cta-button {
    height: auto;
  }
  
  .submit-button {
    background-color: var(--color-lightblue);
    color: var(--color-white);
    position: relative;
    z-index: 1;
    transition: color var(--transition-medium), background-color var(--transition-medium);
    padding: 1rem 1.69rem 1rem 1rem;
    font-size: var(--font-size-text);
    font-weight: 500;
    letter-spacing: 0.0625rem;
    border-radius: 2.3125rem;
    gap: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19.1875rem;
    height: 3.625rem;
    font-size: 1rem;
    border: none;
    overflow: hidden;
  }

  .wpcf7-submit.submit-button {
    padding: 1rem 1.69rem 1rem 3.5rem;
  }
  .submit-button::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--color-lightblue);
    border-radius: 2.3125rem;
    box-sizing: border-box;
    z-index: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    width: 19.1875rem;
    height: 3.625rem;
  }
  .submit-button:hover::before,
  .submit-button:focus-visible::before {
    opacity: 1;
    transform: scale(1);
  }
  .arrow-icon {
    margin-left: 12px;
    font-size: 20px;
    transition: transform var(--transition-fast);
  }


  .submit-container .cta-button {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #FFF;
      color: var(--color-lightblue);
      border: 2px solid var(--color-lightblue); /* ✅ 水色枠 */
      border-radius: 2.3125rem;
      width: 19.1875rem;
      height: 3.625rem;
      transition: background-color 0.3s ease, color 0.3s ease;
      cursor: pointer;
      overflow: hidden;
      z-index: 1;
  }


  .submit-container .cta-button.more-link-arrow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-lightblue); /* ✅ 水色枠 */
    border-radius: 2.3125rem;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
  }


  .submit-container .cta-button:hover {
    background-color: var(--color-lightblue);
    color: var(--color-white);
  }




  
  @media (hover: hover) and (pointer: fine) {
    .submit-button:hover {
      color: var(--color-lightblue);
      background: transparent;
    }
    .submit-button:hover::before {
      transform: scale(1);
      opacity: 1;
    }
  }
  /* Responsive Styles */
  @media screen and (max-width: 1500px) {
    .required-badge, .optional-badge {
      width: 4rem;
      height: 2rem;
      margin-right: 12px;
      font-size: 1rem;
      line-height: 1.5rem;
  }

  .submit-button::before {
    width: 18rem;
  }
  }
@media screen and (max-width: 1200px) {
    .contact-content-wrapper {
      padding: 0 7rem;
    }
    .contact-form {
        max-width: 100%;
        margin: 4rem auto 0;
    }
    #contact-form-wrapper {
      margin-top: 0;
    }

    .submit-container {
      margin-top: 2rem;
    }
    #thanks .submit-container {
      margin-top: 3rem;
    }

  .submit-container .cta-button {
    margin-top: 0;
  }
}
  @media screen and (max-width: 1024px) {
    #contact .content-wrapper {
      padding: 5rem 1.5rem 5.63rem;
  }
    .form-group {
        flex-direction: column;
    }
    .input-container {
        width: 100%;
      }
    .privacy-section {
        margin-left: 0;
    }
    .confirm-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0 2.5rem;
      margin-bottom: 2.5rem;
      margin-top: 4.5rem;
      display: flex;
      justify-content: center;
    }
    .confirm-table tbody,
    .confirm-table tr {
      display: block;
      width: 100%;
    }
    .confirm-table th,
    .confirm-table td {
      display: block;
      width: 100%;
      padding-right: 0;
    }
    .confirm-table th {
      margin-bottom: 0.5rem;
      padding-bottom: 0;
    }
    .confirm-table td {
      margin-bottom: 2.5rem;
      padding-top: 0;
    }

    .phone-inputs .phone-input {
      max-width: none;
        }
  }
  
  @media screen and (max-width: 768px) {
    .form-group {
      margin-bottom: 24px;
      flex-direction: column;
    }
    
    .label-container {
      width: 100%;
      margin-bottom: 8px;
    }
    
    .required-badge, .optional-badge {
      width: 56px;
      height: 28px;
      font-size: 12px;
    }
    
    .phone-inputs {
      flex-direction: row;
      gap: 4px;
    }
  
    
    .phone-separator {
        margin: 0 4px;
    }
    
    .submit-button {
        width: 100%;
        padding: 0 2.4rem;
        height: 3.625rem;
    }
    .contact-content-wrapper {
        padding: 0 1.5rem;
        margin: 0 auto;
    }

    #contact-page  .fv-content {
      gap: 1.4rem;
    }


    #contact-page .fv-title,
    #thanks-page .fv-title {
      display:block;
      font-size: 1.5625rem;
      font-style: normal;
      font-weight: 700;
      line-height: 1.75; 
      text-align: center;
 
    }


    .submit-container {
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center;
     gap: 1.25rem;
    }

    .submit-container  .cta-button {
      align-self: center;
      padding: 1rem 1.2rem 1rem 1.2rem;
      height: 4rem;
    }

    .submit-container {
      margin-top: 1.5rem;
    }
    #thanks .submit-container{
      margin-top: 5rem;
    }
  }
  
.thanks {
    padding-top:9.5rem;
}

.contact-thanks-message {
    font-size: var(--font-size-text);
    color: var(--color-black);
    font-weight: 400;
    line-height: 1.8rem;
    margin-top: 4.38rem;
    max-width: 616px;
    text-align: center;
}

#thanks .submit-button {
  width: 19.1875rem;
    padding: 1.87rem 4.19rem 1.75rem 1.87rem;
}

.confirm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 2.5rem;
  margin-bottom: 0;
  margin-top: 4.5rem;
  display: flex;
  justify-content: center;
  padding-right: 6rem;

}
.confirm-table th {
  text-align: left;
  vertical-align: top;
  font-weight: normal;
  padding-right: 6rem;
  white-space: nowrap;
}
.confirm-table td {
  text-align: left;
  vertical-align: top;
  font-size: var(--font-size-text);
  color: var(--color-black);
  line-height: 2.625rem;
  letter-spacing: 0.0625rem;
  word-break: break-all;
}
.confirm-table .required-badge,
.confirm-table .optional-badge {
  margin-right: 0.75rem;
  vertical-align: middle;
}
.more-button.more-link-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: var(--color-lightblue); /* ← 初期状態：水色背景 */
  border-radius: 2.3125rem;
  width: 19.1875rem;
  height: 3.625rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  font-weight: 500;
  font-family: var(--font-family-noto-sans-jp);
  z-index: 1;
}

/* 水色の枠線 */
.more-button.more-link-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-lightblue); /* ✅ 水色枠 */
  border-radius: 2.3125rem;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: -1;
}

/* ボタンテキスト */
.submit-button.confirm_button {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: var(--color-white); /* 初期は白文字 */
  font-weight: 500;
  font-size: 1rem;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-align: center;
}


.more-button.more-link-arrow::after {
  content: "→";
  position: absolute;
  right: 2rem;
  top: 28%;
  transform: translateY(0%) ;
  font-size: 1.2rem;
  color: var(--color-white);
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.submit-container .cta-button.more-link-arrow-l::after {
  content: "←";
  position: absolute;
  left: 2rem;
  top: 28%;
  font-size: 1.2rem;
  color: var(--color-lightblue);
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

/* ホバー時に色変更＆少し右へ動かす */
.more-button.more-link-arrow:hover::after {
  color: var(--color-lightblue);
}

.submit-container .cta-button.more-link-arrow-l:hover::after {
  color: var(--color-white);
}

.submit-container .cta-button.more-link-arrow-l::before {
  width: 100%;
  height: 100%;
}


/* ✅ Hover時の効果（背景透明＋水色文字＋枠線表示） */
@media (hover: hover) and (pointer: fine) {
  .more-button.more-link-arrow:hover {
    background-color: transparent;
  }
  .more-button.more-link-arrow:hover .submit-button.confirm_button {
    color: var(--color-lightblue); /* ✅ 水色文字 */
  }

  .more-button.more-link-arrow:hover::before {
    transform: scale(1);
    opacity: 1;
  }

  .more-button.more-link-arrow:hover::after {
    transform: translateX(0.5rem);
  }

  .submit-container .cta-button.more-link-arrow-l:hover::after {
    transform: translateX(-0.5rem);
  }
}

.back_button:before {
  width: 19.1875rem;
  height: 3.625rem;
}

@media screen and (max-width: 1500px) {
  #thanks .submit-button {
    width: 18rem;
    height: 3.25rem;
  }
}

@media screen and (max-width: 1200px) {
  .thanks {
    padding-top:0rem;
}
.contact-thanks-message {
  margin-top: 3rem;
}
}
@media screen and (max-width: 1024px) {
  .contact-thanks-message {
    text-align: center;
  }
}
@media screen and (max-width: 768px) {
  .submit-button.confirm_button {
    padding: 0 2.2rem 0 1.2rem;
  }

  .thanks {
    padding:3.12rem 1.88rem 0;
}
.more-button.more-link-arrow {
  height: 4rem;
}
#thanks .submit-button {
  height: 4rem;
}
.contact-thanks-message {
  margin-top: 2.5rem;
}
} 