.contact-page {
  background: white;
  min-height: 100vh;
}

.page-title-section {
  max-width: 1200px;
  padding: 40px 20px 30px;
  display: flex;
  align-items: end;
  gap: 30px;
  z-index: 1;
  position: absolute;
  top: 175px;
  left: 0px;
  width: fit-content;
  background-color: rgba(255, 255, 255, 0.8);
}

.page-title {
  font-family: "Inter", sans-serif;
  font-size: 89px;
  font-weight: 700;
  color: #2b39d5;
  line-height: 1.3;
  margin: 0;
}

.page-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
  margin: 0;
  padding-bottom: 20px;
}

.intro-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.intro-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #4a4459;
  line-height: 45px;
  letter-spacing: 3px;
  margin: 0 0 24px;
}

.intro-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
}

.intro-text p {
  margin: 0 0 20px;
}

.intro-text .underline {
  color: #4a4459;
  text-decoration: underline;
  cursor: pointer;
}

.form-section {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 20px;
}

.section-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #2b39d5;
  line-height: 45px;
  letter-spacing: 3px;
  text-align: center;
  background: #f4f5fd;
  padding: 17.5px 0;
  margin: 0 0 40px;
}

.form-description {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
  margin: 0 0 40px;
}

.form-description.is-confirm-state {
  text-align: center;
  font-weight: 700;
  font-size: 24px;
}

.contact-form {
  background: white;
}

.form-row {
  display: flex;
  border: 1px solid #b9b9b9;
  border-top: none;
  min-height: 48px;
}

.form-row:first-child {
  border-top: 1px solid #b9b9b9;
}

.textarea-row {
  min-height: 181px;
}

.form-label {
  width: 362px;
  background: #f2f4fd;
  border-right: 1px solid #b9b9b9;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
}

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

.required-badge {
  background: #d53f2b;
  color: white;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  padding: 0 7px;
  border-radius: 5px;
  margin-left: auto;
}

.form-input {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  align-items: center;
}

.textarea-row .form-input {
  align-items: flex-start;
}

.input-field {
  border: 1px solid #b9b9b9;
  border-radius: 3px;
  padding: 5px 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  background: white;
}

.input-field:focus {
  outline: none;
  border-color: #2b39d5;
}

.contact-form .input-field:-webkit-autofill,
.contact-form .input-field:-webkit-autofill:hover,
.contact-form .input-field:-webkit-autofill:focus,
.contact-form .input-field:-webkit-autofill:active {
  -webkit-text-fill-color: #4a4459;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  caret-color: #4a4459;
  transition: background-color 9999s ease-out 0s;
}

.contact-form .input-field:-moz-autofill {
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.contact-form.is-confirm-state .input-field,
.contact-form.is-confirm-state .input-field:focus {
  border: none;
}

.input-field.error,
.radio-group.error {
  border-color: #ff0000;
}

.error-message {
  display: block;
  color: #ff0000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.5;
}

.full-width {
  width: 100%;
  max-width: 809px;
}

.medium-width {
  width: 380px;
}

.textarea-field {
  width: 100%;
  max-width: 809px;
  min-height: 158px;
  resize: vertical;
  padding: 10px;
}

.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.category-confirm-value {
  display: none;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
}

.contact-form.is-confirm-state .radio-group {
  display: none;
}

.contact-form.is-confirm-state .category-confirm-value {
  display: block;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
  cursor: pointer;
}

.radio-item input[type="radio"] {
  width: 13px;
  height: 13px;
  cursor: pointer;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.form-submit.is-confirm-state {
  gap: 0;
  flex-wrap: wrap;
}

.form-submit #submit-btn {
  min-width: 180px;
}

.form-submit.is-confirm-state .reffer-link {
  min-width: 180px;
}

.form-submit.is-confirm-state .reffer-link + .reffer-link {
  margin-left: 24px;
}

.form-submit .confirm-back-btn {
  background: #ffffff;
  color: #2b39d5;
}

.form-submit .confirm-back-btn svg path {
  fill: #2b39d5;
}

.form-submit .confirm-back-btn svg {
  right: auto;
  left: 20px;
  transform: rotate(180deg);
}

.form-submit .confirm-back-btn:hover {
  background: #2b39d5;
  color: #ffffff;
}

.form-submit .confirm-back-btn:hover svg path {
  fill: #ffffff;
}

.form-submit #submit-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-submit #submit-btn .submit-loader {
  width: 24px;
  height: 24px;
  animation: nb-spin 0.8s linear infinite;
}

@keyframes nb-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.phone-section {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 20px;
}

.phone-note {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
  margin: 24px 0 60px;
}

.phone-subsection {
  margin-bottom: 60px;
}

.phone-subsection-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #4a4459;
  line-height: 30px;
  margin: 0 0 24px;
}

.contact-table {
  width: 100%;
  border: 1px solid #b9b9b9;
  background: white;
  display: flex;
  flex-direction: column;
}

.contact-table .table-row {
  display: flex;
  width: 100%;
}

.contact-table .table-cell {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #b9b9b9;
  border-top: none;
  border-left: none;
  background: white;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 1.44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-text-size-adjust: 100%;
}

.contact-table .table-row:first-child .table-cell {
  border-top: 1px solid #b9b9b9;
}

.contact-table .table-cell:first-child {
  border-left: 1px solid #b9b9b9;
}

.contact-table .header-row .table-cell {
  font-size: 15px;
  color: #000000;
  line-height: 28px;
  background: #f2f4fd;
}

.contact-table .table-row:not(.header-row) .table-cell {
  font-size: 18px;
  color: #4a4459;
}

.contact-page .footer {
  margin-top: 0;
}

@media (max-width: 1630px) {
  .breadcrumb {
    margin-left: 3%;
    margin-right: 3%;
  }
}

@media (min-width: 769px) and (max-width: 1061px) {
  .page-title-section {
    top: clamp(195px, calc(195px * (1 + 0.4 * (1061px / 100vw - 1))), 450px);
  }

  .page-title-section .page-title {
    font-size: 7vw;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    display: none;
  }

  .page-title-section {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-left: 16px;
    padding: 20px 0;
  }

  .page-title {
    font-size: 30px;
  }

  .page-subtitle {
    font-size: 18px;
    padding-bottom: 0;
  }

  .intro-section {
    padding: 0 16px;
    margin-bottom: 60px;
  }

  .intro-title {
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }

  .intro-text {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1.12px;
  }

  .form-section {
    padding: 0 16px;
    margin-bottom: 80px;
  }

  .section-title {
    font-size: 19px;
    line-height: 30px;
    letter-spacing: 1.9px;
    padding: 25px 0;
    margin-bottom: 24px;
  }

  .form-description {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1.12px;
    margin-bottom: 24px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #b9b9b9;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1.28px;
  }

  .form-input {
    padding: 12px;
  }

  .input-field {
    font-size: 14px;
  }

  .full-width,
  .medium-width {
    width: 100%;
    max-width: 100%;
  }

  .textarea-field {
    max-width: 100%;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .radio-item {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1.12px;
  }

  .form-submit {
    margin-top: 40px;
  }

  .form-submit.is-confirm-state {
    flex-direction: column;
    gap: 16px;
  }

  .form-submit.is-confirm-state .reffer-link + .reffer-link {
    margin-left: 0;
  }

  .form-submit .reffer-link {
    width: 100%;
    height: 60px;
    font-size: 16px;
  }

  .form-submit .reffer-link svg {
    width: 32px;
    height: 32px;
  }

  .form-submit .reffer-link:hover svg path {
    fill: #2b39d5;
  }

  .phone-section {
    padding: 0 16px;
    margin-bottom: 80px;
  }

  .phone-note {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1.12px;
    margin: 16px 0 40px;
  }

  .phone-subsection {
    margin-bottom: 40px;
  }

  .phone-subsection-title {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 16px;
  }

  .contact-table .table-cell {
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 1.04px;
    padding: 8px 6px;
  }

  .contact-table .header-row .table-cell {
    font-size: 13px;
    line-height: 20px;
  }

  .contact-table .table-row:not(.header-row) .table-cell {
    font-size: 13px;
  }

  .contact-table br {
    display: none;
  }

  .contact-table .table-cell::after {
    content: " ";
  }
}

@media (max-width: 414px) {
  .page-title-section {
    margin-left: 8px;
    margin-right: 8px;
    padding: 16px 0;
  }

  .page-title {
    font-size: 24px;
  }

  .page-subtitle {
    font-size: 16px;
  }

  .intro-section {
    padding: 0 8px;
  }

  .intro-title {
    font-size: 18px;
    line-height: 28px;
  }

  .form-section {
    padding: 0 8px;
  }

  .section-title {
    font-size: 17px;
  }

  .phone-section {
    padding: 0 8px;
  }

  .contact-table .table-cell {
    font-size: 12px;
    padding: 6px 4px;
  }
}

body.contact-thanks-open {
  overflow: hidden;
}

.contact-thanks-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 16, 40, 0.62);
}

.contact-thanks-overlay.is-hidden {
  display: none;
}

.contact-thanks-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 14px;
  padding: 44px 36px 32px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.contact-thanks-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  color: #6f7387;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.contact-thanks-title {
  margin: 0 0 14px;
  color: #2b39d5;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.45;
}

.contact-thanks-body {
  margin: 0;
  color: #4a4459;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.contact-thanks-actions {
  margin-top: 28px;
}

.contact-thanks-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: #2b39d5;
  color: #fff;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.contact-thanks-button:hover {
  background: #1f2db8;
  color: #fff;
}

@media (max-width: 768px) {
  .contact-thanks-overlay {
    padding: 16px;
  }

  .contact-thanks-modal {
    max-width: 520px;
    padding: 38px 20px 24px;
  }

  .contact-thanks-title {
    font-size: 22px;
  }

  .contact-thanks-body {
    font-size: 16px;
  }
}
