/* about — legacy about-ld look + Bootstrap layout + theme colors */

.jby-about {
  position: relative;
  z-index: 1;
  margin: 0 0 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  overflow-x: clip;
  overflow-y: visible;
  color: var(--jby-ink);
  background: #fff;
}

.jby-about__wrap.container,
.jby-about__wrap {
  --bs-gutter-x: 1.5rem;
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Hero — product theme gradient */
.jby-about__hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 78% 30%, color-mix(in srgb, #007aff 28%, #fff) 0, transparent 25%),
    linear-gradient(
      125deg,
      color-mix(in srgb, #007aff 5%, #fff),
      color-mix(in srgb, #007aff 12%, #fff) 58%,
      color-mix(in srgb, #007aff 4%, #fff)
    );
}
.jby-about__hero:after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -185px;
  width: 540px;
  height: 540px;
  border: 1px solid color-mix(in srgb, #007aff 28%, #fff);
  border-radius: 50%;
  box-shadow: 0 0 0 54px #007aff0c, 0 0 0 108px #007aff08;
}
.jby-about__hero-grid { position: relative; z-index: 1; }
.jby-about__kicker {
  margin: 0 0 17px;
  color: #1681ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.jby-about__hero h2 {
  margin: 0;
  font-size: 52px;
  letter-spacing: -3px;
  line-height: 1.16;
}
.jby-about__hero h2 span { color: var(--jby-blue); }
.jby-about__intro {
  max-width: 470px;
  margin: 24px 0 0;
  color: var(--jby-muted);
  font-size: 16px;
  line-height: 1.95;
}

.jby-about__art {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid #dcebf3;
  border-radius: 20px;
  background: #dcebf3;
  box-shadow: 0 24px 60px #1856771d;
}
.jby-about__art img,
.jby-about__slide {
  display: block;
  width: 100%;
  height: 355px;
  object-fit: cover;
}
.jby-about__slider { position: relative; }
.jby-about__slider .jby-about__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.jby-about__slider .jby-about__slide.is-active {
  position: relative;
  opacity: 1;
}
.jby-about__art:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, #09284145);
  pointer-events: none;
}
.jby-about__overline {
  position: absolute;
  z-index: 1;
  bottom: 21px;
  left: 23px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.jby-about__dots {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 17px;
  display: flex;
  gap: 7px;
}
.jby-about__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff88;
  cursor: pointer;
}
.jby-about__dots button.is-active {
  width: 20px;
  border-radius: 9px;
  background: #fff;
}

@keyframes jbyAboutRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.jby-about__hero-grid > .col-lg-6:first-child {
  animation: jbyAboutRise 0.7s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}
.jby-about__hero-grid .jby-about__art {
  animation: jbyAboutRise 0.8s 0.14s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

/* Story */
.jby-about__story { padding: 72px 0; }
.jby-about__company-intro {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--jby-shadow);
}
.jby-about__company-intro img {
  display: block;
  width: 100%;
  height: auto;
}
.jby-about__section-head { max-width: 720px; }
.jby-about__section-head p {
  margin: 0 0 14px;
  color: #1681ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.jby-about__section-head h2 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -2px;
  line-height: 1.25;
}
.jby-about__story-grid { margin-top: 36px; }
.jby-about__copy {
  padding: 34px;
  border: 1px solid var(--jby-line);
  border-radius: 18px;
  background: #fff;
  color: #60758a;
  font-size: 15px;
  line-height: 1.95;
  height: 100%;
}
.jby-about__copy strong {
  display: block;
  margin-bottom: 12px;
  color: var(--jby-ink);
  font-size: 18px;
}
.jby-about__copy p { margin: 0; }
.jby-about__copy p + p { margin-top: 18px; }
.jby-about__points {
  display: grid;
  gap: 16px;
}
.jby-about__point {
  position: relative;
  min-height: 150px;
  padding: 26px 28px 25px 86px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--jby-bg);
}
.jby-about__point b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}
.jby-about__point p {
  margin: 0;
  color: #687e92;
  font-size: 14px;
  line-height: 1.75;
}
.jby-about__no {
  position: absolute;
  top: 25px;
  left: 26px;
  color: #72aaf0;
  font-size: 13px;
  font-weight: 800;
}

/* Certificates */
.jby-about__certificates {
  padding: 72px 0;
  background: var(--jby-blue-soft);
}
.jby-about__cert-overview {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}
.jby-about__cert-overview img {
  display: block;
  width: 100%;
  height: auto;
}
.jby-about__cert-groups {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
.jby-about__cert-groups h3 {
  margin: 0 0 16px;
  font-size: 20px;
}
.jby-about__cert-item {
  margin: 0;
  padding: 18px;
  border: 1px solid #e1eaf1;
  border-radius: 14px;
  background: #f7fafc;
  text-align: center;
}
.jby-about__cert-item img {
  display: block;
  height: 126px;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
}
.jby-about__cert-item figcaption {
  margin-top: 13px;
  color: #536b80;
  font-size: 13px;
  line-height: 1.4;
}

/* Contact — 三卡等高、统一浅底 */
.jby-about__contact {
  padding: 72px 0;
  background: #fff;
}
.jby-about__contact-grid { margin-top: 32px; }
.jby-about__contact-card,
.jby-about__route-card,
.jby-about__map-card {
  padding: 28px 30px;
  border: 1px solid #dce7ef;
  border-radius: 18px;
  background: #f5f9fc;
  box-shadow: none;
}
.jby-about__contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--jby-font);
}
.jby-about__contact-card p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #e4eef5;
}
.jby-about__contact-card p:last-child { border-bottom: 0; }
.jby-about__contact-card b {
  display: block;
  margin: 0 0 6px;
  color: var(--jby-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: inherit;
}
.jby-about__contact-card span,
.jby-about__contact-card a {
  color: var(--jby-ink);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.7;
  text-decoration: none;
}
.jby-about__contact-card a:hover { color: var(--jby-blue); }
.jby-about__route-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--jby-ink);
}
.jby-about__route-card p {
  margin: 0;
  color: #647b8f;
  font-size: 14px;
  line-height: 1.9;
}
.jby-about__route-card p + p { margin-top: 16px; }
.jby-about__map-card {
  padding: 0;
  overflow: hidden;
}
.jby-about__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  margin: 0;
  border-radius: 18px;
  object-fit: cover;
}

/* Reveal */
.jby-about__reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.68s cubic-bezier(0.22, 0.8, 0.28, 1), transform 0.68s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.jby-about__reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .jby-about__hero h2 { font-size: 42px; letter-spacing: -1.5px; }
  .jby-about__section-head h2 { font-size: 32px; }
  .jby-about__art img,
  .jby-about__slide { height: 280px; }
  .jby-about__quote { font-size: 19px; }
  .jby-about__map-card,
  .jby-about__map { min-height: 240px; }
}

@media (max-width: 767.98px) {
  .jby-about {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .jby-about__wrap.container,
  .jby-about__wrap {
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
  }
  .jby-about__hero { padding-bottom: 48px; }
  .jby-about__hero:after { display: none; }
  .jby-about__hero h2 {
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.25;
  }
  .jby-about__intro { font-size: 15px; }
  .jby-about__art { margin-top: 8px; }
  .jby-about__art img,
  .jby-about__slide { height: 220px; }
  .jby-about__story,
  .jby-about__certificates,
  .jby-about__contact { padding: 48px 0; }
  .jby-about__story-grid,
  .jby-about__cert-groups,
  .jby-about__contact-grid { margin-top: 24px; }
  .jby-about__section-head h2 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }
  .jby-about__copy { padding: 24px; }
  .jby-about__point {
    min-height: 0;
    padding: 22px 22px 22px 72px;
  }
  .jby-about__cert-item img { height: 96px; }
  .jby-about__contact-card { padding: 22px; }
  .jby-about__quote { padding: 24px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .jby-about__hero-grid > .col-lg-6:first-child,
  .jby-about__hero-grid .jby-about__art { animation: none; }
  .jby-about__reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Contact hero */
.jby-about__hero {
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 64px 0;
  padding-top: 64px !important;
  background: #eaf6ff url('/wp-content/themes/jby-portal/assets/img/about/about-contact-hero.jpg') center / cover no-repeat;
}
.jby-about__hero:after { display: none; }
.jby-about__hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: jbyAboutRise 0.7s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}
.jby-about__hero-copy {
  display: inline-block;
  max-width: 100%;
  position: relative;
  top: 12px;
  text-align: center;
}
.jby-about__kicker {
  margin: 0 0 14px;
  color: #1b2028;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
}
.jby-about__kicker span { color: var(--jby-blue); }
.jby-about__hero h2 {
  margin: 0;
  color: #0b1a33;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.22;
}
.jby-about__hero h2 span { color: var(--jby-blue); }
.jby-about__hero-subtitle {
  margin: 18px 0 0;
  color: #4f5b66;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
}
.jby-about__hero-subtitle span {
  color: var(--jby-blue);
  font-weight: 700;
}
.jby-about__hero-slogan {
  margin: 8px 0 0;
  color: #4f5b66;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}
.jby-about__hero-slogan span {
  color: var(--jby-blue);
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .jby-about__hero {
    min-height: 300px;
    padding: 56px 0;
    padding-top: 56px !important;
  }
}

@media (max-width: 767.98px) {
  .jby-about__hero {
    min-height: 270px;
    padding: 42px 0;
    padding-top: 42px !important;
    background-position: 52% center;
  }
  .jby-about__hero-copy { display: block; top: 8px; width: 100%; }
  .jby-about__kicker {
    margin-inline: 0;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-align: center;
  }
  .jby-about__hero h2 { letter-spacing: -1px; line-height: 1.25; }
  .jby-about__hero-subtitle { margin: 14px 0 0; text-align: center; }
  .jby-about__hero-slogan { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .jby-about__hero-content { animation: none; }
}

/* Company introduction */
.jby-about__story { padding: 40px 0; }
.jby-about__story .jby-about__wrap {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
}
.jby-about__company-layout { margin: 0; }
.jby-about__company-image {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}
.jby-about__company-image img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}
.jby-about__company-copy {
  color: #666666;
  font-size: 15px;
  line-height: 1.9;
}
.jby-about__company-copy h2 {
  margin: 0 0 24px;
  color: #111111;
  font-size: clamp(28px, 2.3vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.25;
}
.jby-about__company-copy p {
  margin: 0 0 16px;
}
.jby-about__company-copy p:last-child { margin-bottom: 0; }
.jby-about__company-intro {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .jby-about__story { padding: 24px 0; }
  .jby-about__story .jby-about__wrap { width: calc(100% - 32px) !important; }
  .jby-about__company-image img { height: 300px; }
  .jby-about__company-copy { font-size: 14px; line-height: 1.8; }
  .jby-about__company-copy h2 { margin-bottom: 18px; font-size: 26px; }
  .jby-about__company-copy p { margin-bottom: 13px; }
}

/* Reasons */
.jby-about__certificates .jby-about__section-head,
.jby-about__reasons .jby-about__section-head,
.jby-about__culture .jby-about__section-head,
.jby-about__contact .jby-about__section-head {
  margin-inline: auto;
  text-align: center;
}
.jby-about__reasons {
  padding: 72px 0;
  background: #fff;
}
.jby-about__culture {
  padding: 72px 0;
  background: var(--jby-blue-soft);
}
.jby-about__culture-intro {
  margin: 14px 0 0 !important;
  color: var(--jby-muted) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.jby-about__culture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.jby-about__culture-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 224px;
  padding: 26px 24px;
  border: 1px solid #e1edf8;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}
.jby-about__culture-art {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4faff, #e6f3ff);
}
.jby-about__culture-art img { display: block; width: 112px; height: 112px; object-fit: contain; }
.jby-about__culture-copy { min-width: 0; }
.jby-about__culture-card h3 {
  margin: 0 0 10px;
  color: var(--jby-ink);
  font-size: 21px;
}
.jby-about__culture-card p {
  margin: 0;
  color: var(--jby-muted);
  font-size: 14px;
  line-height: 1.85;
}
@media (max-width: 767.98px) {
  .jby-about__culture-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    min-height: 190px;
    padding: 20px;
  }
  .jby-about__culture-art { width: 88px; height: 88px; }
  .jby-about__culture-art img { width: 88px; height: 88px; }
}
.jby-about__reason-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.jby-about__reason-intro {
  margin: 12px 0 0 !important;
  color: var(--jby-muted) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
.jby-about__reason-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 30px 24px 24px;
  border: 1px solid #e1ebf7;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 10px 26px rgba(28, 81, 140, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.jby-about__reason-card:hover {
  border-color: #b8d8f7;
  box-shadow: 0 16px 30px rgba(28, 81, 140, 0.13);
  transform: translateY(-4px);
}
.jby-about__reason-card h3 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 13px;
  color: #111111;
  font-size: 19px;
  line-height: 1.3;
}
.jby-about__reason-card h3::before {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--jby-blue);
  content: "";
}
.jby-about__reason-card p {
  margin: 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 1199.98px) {
  .jby-about__reason-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .jby-about__reasons { padding: 48px 0; }
  .jby-about__culture { padding: 48px 0; }
  .jby-about__reason-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .jby-about__reason-card { min-height: 0; padding: 24px 20px 22px; }
  .jby-about__reason-card h3 { margin-bottom: 10px; font-size: 18px; }
  .jby-about__reason-card p { font-size: 13px; }
  .jby-about__culture-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .jby-about__culture-card { min-height: 0; padding: 26px 22px; }
}
