.contact-us-page {
  --contact-bg: #f2f9ff;
  --contact-surface: #f9fcff;
  --contact-surface-strong: #ffffff;
  --contact-text: #2f3548;
  --contact-muted: #6c7485;
  --contact-primary: #128cff;
  --contact-primary-soft: #69b7ff;
  --contact-note: #0063e6;
  --contact-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  background: var(--contact-bg);
}

.contact-us-main {
  position: relative;
  overflow: clip;
  background: var(--contact-bg);
}

.contact-page-hero {
  position: relative;
  min-height: 400px;
  background: #d8e9fb;
}

.contact-page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    url("./assets/contact-us/top-bg.png") center top / cover no-repeat;
}

.contact-page-hero__inner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 148px 0 56px;
}

.contact-page-title {
  width: min(497px, 100%);
  text-align: center;
  color: var(--contact-text);
}

.contact-page-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-page-title__en {
  margin: 10px 0 0;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
  color: #5f6574;
}

.contact-page-title__summary {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--contact-text);
  letter-spacing: 0.2em;
}

.contact-content-section {
  position: relative;
  padding: 60px 0 58px;
}

.contact-content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(104, 182, 255, 0.16), transparent 26%),
    radial-gradient(circle at 80% 74%, rgba(104, 182, 255, 0.1), transparent 30%);
  pointer-events: none;
}

.contact-content-section .container {
  position: relative;
  z-index: 1;
}

.contact-card-group + .contact-card-group {
  margin-top: 60px;
}

.contact-card-group__tab {
  width: min(520px, 100%);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--contact-primary) 0%, var(--contact-primary-soft) 100%);
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 26px rgba(55, 137, 239, 0.18);
}

.contact-card-panel {
  position: relative;
  margin-top: 20px;
  border-radius: 12px;
  background: var(--contact-surface);
  box-shadow: var(--contact-shadow);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.contact-card-group:hover .contact-card-panel,
.contact-card-group:focus-within .contact-card-panel,
.contact-card-group:focus .contact-card-panel,
.contact-card-group:focus-visible .contact-card-panel {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(58, 120, 214, 0.12);
}

.contact-card-panel--primary {
  padding: 30px 20px 20px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 36px;
  align-items: start;
  padding: 0 20px 18px;
}

.contact-info-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  min-height: 120px;
}

.contact-info-item__visual {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(77, 110, 171, 0.12));
}

.contact-info-item__visual--phone {
  width: 132px;
}

.contact-info-item__visual--team {
  width: 188px;
}

.contact-info-item__copy {
  min-width: 0;
  max-width: 100%;
}

.contact-info-item__label,
.contact-address-line {
  margin: 0;
  color: var(--contact-text);
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.1em;
}

.contact-info-item__value {
  display: inline-block;
  margin-top: 20px;
  color: var(--contact-text);
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.contact-info-item__value--phone {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1;
  white-space: nowrap;
}

.contact-info-item--wechat {
  gap: 16px;
}

.contact-wechat-qr,
.contact-recruit-copy__qr {
  display: block;
  width: 112px;
  height: 112px;
  margin-top: 10px;
  object-fit: contain;
}

.contact-info-item__note,
.contact-recruit-copy__note {
  margin: 12px 0 0;
  color: var(--contact-note);
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.1em;
}

.contact-address-line {
  padding: 0 20px;
}

.contact-address-line span:first-child {
  font-weight: 700;
  margin-right: 12px;
}

.contact-map-shell {
  position: relative;
  isolation: isolate;
  margin-top: 18px;
  height: 760px;
  overflow: hidden;
  border: 1px solid rgba(169, 169, 169, 0.9);
  border-radius: 12px;
  background: #eef5ff;
}

.contact-map-shell__fallback {
  position: absolute;
  inset: 0;
  background: url("./assets/contact-us/map-fallback.png") center center / cover no-repeat;
  opacity: 0.24;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.contact-map-shell.is-loaded .contact-map-shell__fallback {
  opacity: 0;
}

.contact-map-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
}

.contact-card-panel--recruit {
  min-height: 480px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 36px 50px;
}

.contact-recruit-visual {
  width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 20px 36px rgba(77, 110, 171, 0.14));
}

.contact-recruit-copy__lead {
  margin: 0;
  color: var(--contact-text);
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.1em;
}

.contact-recruit-copy__message {
  margin: 0 0 26px;
  color: #101523;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.08em;
}

.contact-recruit-copy__message p {
  margin: 0;
}

.contact-recruit-copy__message p + p {
  margin-top: 2px;
}

.contact-recruit-copy__qr {
  width: 120px;
  height: 120px;
  margin-top: 14px;
}

.contact-card-group--recruit .contact-card-panel {
  overflow: hidden;
}

@media (max-width: 1380px) {
  .contact-info-grid {
    gap: 40px;
  }

  .contact-card-panel--recruit {
    gap: 40px;
    padding-inline: 36px;
  }
}

@media (max-width: 1100px) {
  .contact-card-panel--primary {
    padding: 26px 18px 18px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-inline: 10px;
  }

  .contact-card-panel--recruit {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 0;
    padding: 34px 26px 40px;
  }

  .contact-recruit-copy {
    width: 100%;
    max-width: 820px;
  }

  .contact-recruit-copy__message {
    text-align: left;
  }

  .contact-recruit-copy__qr {
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .contact-page-hero {
    min-height: 320px;
  }

  .contact-page-hero__inner {
    min-height: 320px;
    padding: 118px 0 42px;
  }

  .contact-page-title h1 {
    font-size: 28px;
  }

  .contact-page-title__summary {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.08em;
  }

  .contact-content-section {
    padding: 42px 0 40px;
  }

  .contact-card-group + .contact-card-group {
    margin-top: 42px;
  }

  .contact-card-group__tab {
    min-height: 52px;
    font-size: 20px;
  }

  .contact-card-panel {
    margin-top: 16px;
  }

  .contact-info-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  .contact-info-item__copy {
    width: 100%;
  }

  .contact-info-item__value {
    margin-top: 12px;
  }

  .contact-info-item__value--phone {
    font-size: clamp(24px, 7.4vw, 34px);
    line-height: 1.18;
    word-break: break-word;
  }

  .contact-wechat-qr {
    margin-inline: auto;
  }

  .contact-info-item__label,
  .contact-address-line,
  .contact-info-item__note,
  .contact-recruit-copy__lead,
  .contact-recruit-copy__note {
    font-size: 15px;
    line-height: 28px;
    letter-spacing: 0.05em;
  }

  .contact-address-line {
    padding: 0 8px;
  }

  .contact-recruit-copy__message {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.04em;
  }

  .contact-map-shell {
    height: 420px;
  }

  .contact-map-shell::before {
    opacity: 0.18;
  }

  .contact-map-frame {
    position: absolute;
    left: calc(50% - 755px);
    top: calc(50% - 410px);
    width: 1500px;
    height: 860px;
    max-width: none;
    transform: none;
  }

  .contact-recruit-visual {
    width: min(260px, 70vw);
  }
}

@media (max-width: 480px) {
  .contact-page-title h1 {
    font-size: 24px;
  }

  .contact-page-title__en {
    font-size: 14px;
  }

  .contact-card-panel--primary {
    padding: 22px 14px 14px;
  }

  .contact-card-group__tab {
    width: 100%;
    font-size: 18px;
  }

  .contact-info-grid {
    padding-inline: 4px;
  }

  .contact-info-item__visual--phone {
    width: 96px;
  }

  .contact-info-item__visual--team {
    width: min(150px, 46vw);
  }

  .contact-wechat-qr,
  .contact-recruit-copy__qr {
    width: 108px;
    height: 108px;
  }

  .contact-info-item__note {
    letter-spacing: 0.02em;
  }

  .contact-map-shell {
    height: 420px;
  }

  .contact-card-panel--recruit {
    padding: 28px 18px 32px;
  }

  .contact-recruit-copy__message {
    font-size: 14px;
    line-height: 1.72;
    letter-spacing: 0.02em;
  }
}
