.contact-page,
.contact-page * {
  box-sizing: border-box;
}

.contact-page {
  width: 100%;
  color: #1d1d1d;
}

.contact-banner {
  position: relative;
  height: 26.0417vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../images/contact/banner.png") center center / cover no-repeat;
}

.contact-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.contact-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.contact-banner-inner p {
  font-size: 1.0417vw;
  font-weight: 400;
  line-height: 1.4;
}

.contact-banner-inner h1 {
  margin-top: 0.9375vw;
  font-size: 2.5vw;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.contact-info {
  background: #fff;
  padding: 8.3333vw 0 9.375vw;
}

.contact-info-inner {
  width: 76.0417vw;
  max-width: calc(100% - 6.25vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3.75vw;
}

.contact-photo {
  width: 34.1146vw;
  flex-shrink: 0;
}

.contact-photo img {
  display: block;
  width: 100%;
  height: 31.1979vw;
  object-fit: cover;
}

.contact-detail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3.3333vw;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 2.1875vw;
}

.contact-item-center {
  align-items: center;
}

.contact-icon {
  width: 2.5vw;
  height: 2.5vw;
  flex-shrink: 0;
}

.contact-icon img {
  display: block;
  width: 2.5vw;
  height: 2.5vw;
}

.contact-item-body {
  flex: 1;
  min-width: 0;
}

.contact-block + .contact-block {
  margin-top: 1.25vw;
}

.contact-label {
  font-size: 1.0417vw;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
}

.contact-mail-row {
  margin-top: 0.2083vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8333vw;
}

.contact-mail-row a {
  font-size: 1.0417vw;
  font-weight: 350;
  line-height: 1.4;
  color: #808080;
  text-decoration: none;
}

.contact-mail-row span {
  font-size: 1.0417vw;
  font-weight: 300;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.5);
  text-align: right;
  white-space: nowrap;
}

.contact-desc {
  margin-top: 0.2083vw;
  font-size: 1.0417vw;
  font-weight: 350;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
}

.contact-num {
  font-weight: 300;
}

.contact-num span {
  margin: 0 0.1042vw;
}

.contact-map {
  width: 100%;
  height: 30.5208vw;
  overflow: hidden;
  background: #eef2f5;
}

.contact-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  background: #f7f3f9;
  padding: 7.6563vw 0 8.3333vw;
}

.contact-form-inner {
  width: 76.0417vw;
  max-width: calc(100% - 6.25vw);
  margin: 0 auto;
}

.contact-form-inner h2 {
  font-size: 2.0833vw;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: #1d1d1d;
}

#contactForm {
  margin-top: 3.3333vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.0417vw;
}

.form-row {
  display: flex;
  gap: 0.4167vw;
}

.field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625vw;
}

.field-message {
  width: 100%;
  flex: none;
  gap: 0.625vw;
}

.field-message label {
  font-weight: 400;
}

.field.field-message textarea {
  display: block;
  width: 100%;
  height: 8.8542vw;
  margin: 0;
  padding: 1.0417vw 1.25vw;
  border: none;
  outline: none;
  resize: none;
  overflow: auto;
  background: #fff;
  box-shadow: none;
  font-size: 1.0417vw;
  font-weight: 100;
  line-height: 1.4;
  color: #000;
}

.field.field-message textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 100;
}

.field.field-message.is-error textarea {
  outline: 1px solid #d93025;
}

.field label {
  font-size: 1.0417vw;
  font-weight: 350;
  line-height: 1.4;
  color: #000;
}

.req {
  color: #d93025;
  margin-left: 0.1042vw;
}

.field label em,
.agree-text em {
  margin-left: 0.1042vw;
  font-style: normal;
  color: #d93025;
}

.field .input,
.field textarea {
  width: 100%;
  background: #fff;
  border: none;
}

.field .input {
  height: 3.4896vw;
  display: flex;
  align-items: center;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.0417vw;
  font-weight: 100;
  color: #000;
}

.field input,
.field select {
  height: 3.4896vw;
  padding: 0 1.25vw;
}

.field textarea {
  height: 8.8542vw;
  padding: 1.0417vw 1.25vw;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 100;
}

.phone-input .prefix {
  position: relative;
  flex-shrink: 0;
  width: 6.7708vw;
  height: 3.4896vw;
}

.phone-input .prefix select {
  width: 6.7708vw;
  padding: 0 1.4583vw 0 1.25vw;
  font-weight: 100;
  color: rgba(0, 0, 0, 0.5);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.phone-input .prefix img {
  position: absolute;
  right: 0.8333vw;
  top: 50%;
  width: 0.3646vw;
  height: 0.3646vw;
  /* margin-top: -5px; */
  pointer-events: none;
}

.phone-input .split,
.select-input .split {
  width: 1px;
  height: 2.0833vw;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.phone-input input {
  flex: 1;
  width: auto;
  padding-left: 1.0417vw;
}

.select-input {
  position: relative;
}

.select-input .select-arrow {
  position: absolute;
  left: 1.25vw;
  top: 50%;
  width: 0.3646vw;
  height: auto;
  /* margin-top: -5px; */
  pointer-events: none;
}

.select-input .split {
  position: absolute;
  left: 2.6042vw;
  top: 50%;
  margin-top: -1.0417vw;
}

.select-input select {
  padding-left: 3.8542vw;
  color: rgba(0, 0, 0, 0.5);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-input select option {
  color: #000;
}

.picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.picker {
  position: relative;
  width: 100%;
  height: 100%;
}

.picker-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 1.0417vw;
  font-weight: 100;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.phone-input .picker-btn {
  padding: 0 1.6667vw 0 1.25vw;
}

.select-input .picker-btn {
  padding: 0 1.25vw 0 3.8542vw;
}

.picker-btn.has-value {
  color: #000;
}

.picker-list {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.2083vw);
  z-index: 30;
  min-width: 100%;
  width: max-content;
  max-width: 22vw;
  max-height: 16.6667vw;
  margin: 0;
  padding: 0.4167vw 0;
  overflow: auto;
  list-style: none;
  background: #fff;
  box-shadow: 0 0.4167vw 1.25vw rgba(0, 0, 0, 0.12);
}

.picker.is-open .picker-list {
  display: block;
}

.picker-list li {
  padding: 0.4167vw 0.8333vw;
  font-size: 0.8333vw;
  line-height: 1.4;
  color: #000;
  white-space: nowrap;
  cursor: pointer;
}

.picker-list li:hover,
.picker-list li.is-on {
  background: #f7f3f9;
  color: #5b108b;
}

.field .error,
.agree .error {
  display: none;
  margin: 0;
  font-size: 0.625vw;
  line-height: 0.9375vw;
  color: #d93025;
}

.field.is-error .error,
.agree.is-error .error {
  display: block;
}

.field.is-error .input,
.field.is-error textarea {
  outline: 1px solid #d93025;
}

.agree {
  margin-top: 0.2083vw;
}

.agree label {
  display: inline-flex;
  align-items: center;
  gap: 0.4167vw;
  cursor: pointer;
}

.agree input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.agree .circle {
  width: 0.8333vw;
  height: 0.8333vw;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.agree input:checked + .circle::after {
  content: "";
  position: absolute;
  left: 0.1563vw;
  top: 0.1563vw;
  width: 0.4167vw;
  height: 0.4167vw;
  border-radius: 50%;
  background: #5b108b;
}

.agree-text {
  font-size: 0.625vw;
  font-weight: 100;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.5);
}

.agree.is-error .circle {
  border-color: #d93025;
}

.submit-btn {
  margin-top: 2.2917vw;
  width: 10.4167vw;
  height: 3.3333vw;
  border: none;
  border-radius: 2.6042vw;
  background: #5b108b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1458vw;
  cursor: pointer;
}

.submit-btn span {
  font-size: 1.25vw;
  font-weight: 400;
  line-height: 1;
}

.submit-btn img {
  width: 1.25vw;
  height: 1.25vw;
  display: block;
}

.submit-btn:hover {
  background: #6c18a3;
}

.form-success {
  margin-top: 0.8333vw;
  min-height: 1.25vw;
  font-size: 0.8333vw;
  color: #5b108b;
  text-align: center;
}

@media screen and (max-width: 1200px) {
  .contact-info-inner,
  .contact-form-inner {
    max-width: calc(100% - 48px);
  }

  .contact-info-inner {
    gap: 40px;
  }

  .contact-photo {
    width: 42%;
  }

  .contact-photo img {
    height: 420px;
  }

  .contact-mail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-mail-row a {
    font-size: 20px;
  }
}

@media screen and (max-width: 1000px) {
  .contact-banner {
    height: 280px;
  }

  .contact-banner-inner p {
    font-size: 16px;
  }

  .contact-banner-inner h1 {
    margin-top: 10px;
    font-size: 28px;
  }

  .contact-info {
    padding: 48px 0 56px;
  }

  .contact-info-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    max-width: calc(100% - 32px);
  }

  .contact-photo {
    width: 100%;
  }

  .contact-photo img {
    height: auto;
    aspect-ratio: 655 / 599;
  }

  .contact-detail {
    gap: 32px;
  }

  .contact-item {
    gap: 16px;
  }

  .contact-map {
    height: 280px;
  }

  .contact-form {
    padding: 48px 0 64px;
  }

  .contact-form-inner {
    max-width: calc(100% - 32px);
  }

  .contact-form-inner h2 {
    font-size: 24px;
  }

  #contactForm {
    margin-top: 32px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .field input,
  .field select,
  .field textarea,
  .field.field-message textarea {
    font-size: 16px;
  }

  .submit-btn {
    margin-top: 28px;
  }
}

@media screen and (max-width: 768px) {
  .contact-banner {
    height: 220px;
    padding: 0 20px;
  }

  .contact-banner-inner p {
    font-size: 14px;
  }

  .contact-banner-inner h1 {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.4;
  }

  .contact-info {
    padding: 36px 0 40px;
  }

  .contact-info-inner,
  .contact-form-inner {
    max-width: calc(100% - 32px);
  }

  .contact-info-inner {
    gap: 24px;
  }

  .contact-photo img {
    height: auto;
  }

  .contact-detail {
    gap: 24px;
  }

  .contact-item,
  .contact-item-center {
    align-items: flex-start;
    gap: 12px;
  }

  .contact-icon,
  .contact-icon img {
    width: 40px;
    height: 40px;
  }

  .contact-label,
  .contact-desc,
  .contact-mail-row span {
    font-size: 14px;
  }

  .contact-mail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .contact-mail-row a {
    font-size: 16px;
    word-break: break-all;
  }

  .contact-mail-row span {
    white-space: normal;
    text-align: left;
  }

  .contact-desc {
    line-height: 1.6;
  }

  .contact-map {
    height: 220px;
  }

  .contact-form {
    padding: 40px 0 48px;
  }

  .contact-form-inner h2 {
    font-size: 20px;
    line-height: 1.5;
  }

  #contactForm {
    margin-top: 24px;
  }

  .form-rows {
    gap: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .field label,
  .field-message label {
    font-size: 16px;
  }

  .field .input {
    height: 48px;
  }

  .field input,
  .field select {
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }

  .phone-input .prefix,
  .phone-input .prefix select {
    width: 108px;
    height: 48px;
  }

  .phone-input .prefix select {
    padding: 0 22px 0 12px;
    font-size: 16px;
  }

  .phone-input input {
    padding-left: 12px;
  }

  .select-input select {
    padding-left: 58px;
    font-size: 16px;
  }

  .picker-btn,
  .phone-input .picker-btn,
  .select-input .picker-btn {
    font-size: 16px;
  }

  .select-input .picker-btn {
    padding-left: 58px;
  }

  .picker-list {
    max-width: 78vw;
    max-height: 240px;
    padding: 6px 0;
  }

  .picker-list li {
    padding: 8px 12px;
    font-size: 14px;
  }

  .select-input .select-arrow {
    left: 16px;
  }

  .select-input .split {
    left: 40px;
  }

  .field.field-message textarea {
    height: 140px;
    padding: 14px 16px;
    font-size: 16px;
  }

  .agree-text {
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
  }

  .submit-btn {
    width: 160px;
    height: 48px;
    margin-top: 24px;
    gap: 12px;
  }

  .submit-btn span {
    font-size: 18px;
  }

  .form-success {
    font-size: 14px;
  }
}
