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

.page-title-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 30px;
  display: flex;
  align-items: flex-end;
  gap: 30px;
}

.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 {
  text-decoration: underline;
}

.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;
}

.contact-form {
  border: 1px solid #b9b9b9;
  background: white;
}

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

.form-row:last-child {
  border-bottom: none;
}

.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;
}

.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;
}

.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;
}

.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 (max-width: 768px) {
  .breadcrumb {
    display: none;
  }

  .page-title-section {
    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 .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-title {
    font-size: 18px;
    line-height: 28px;
  }

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

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