.company-profile {
  --profile-accent: #c9362b;
  --profile-ink: #25303a;
  --profile-muted: #69747e;
  --profile-line: #e5e9ed;
  --profile-surface: #f4f6f8;
  color: var(--profile-ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

.company-profile *,
.company-profile *::before,
.company-profile *::after {
  box-sizing: border-box;
}

.company-profile main {
  display: block;
}

.profile-shell {
  width: min(1440px, 90%);
  margin: 0 auto;
}

.profile-intro {
  padding: clamp(76px, 7.2vw, 118px) 0 clamp(88px, 8vw, 132px);
}

.profile-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: clamp(56px, 6vw, 104px);
  align-items: start;
}

.profile-heading {
  margin-bottom: clamp(34px, 3vw, 48px);
}

.profile-heading__en {
  margin: 0 0 12px;
  color: #8b949c;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.profile-heading h2 {
  margin: 0;
  color: var(--profile-ink);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.profile-heading > span {
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 22px;
  background: var(--profile-accent);
}

.profile-richtext {
  color: var(--profile-muted);
  font-size: 16px;
  line-height: 2;
}

.profile-richtext p {
  margin: 0 0 18px;
}

.profile-richtext p:last-child {
  margin-bottom: 0;
}

.profile-richtext br + br {
  display: none;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(38px, 4vw, 56px) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--profile-line);
}

.profile-facts > div {
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid var(--profile-line);
}

.profile-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.profile-facts dt {
  margin: 0 0 7px;
  color: var(--profile-accent);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.profile-facts dd {
  margin: 0;
  color: #7b858e;
  font-size: 13px;
  line-height: 1.5;
}

.profile-intro__visual {
  position: relative;
  margin: 0;
  padding: 0 0 34px 34px;
}

.profile-intro__visual::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74%;
  background: var(--profile-surface);
}

.profile-intro__image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #e9ecef;
}

.profile-intro__image img {
  display: block;
  width: 100%;
  height: clamp(500px, 42vw, 640px);
  object-fit: cover;
  object-position: center 44%;
  transition: transform 0.7s ease;
}

.profile-intro__visual:hover .profile-intro__image img {
  transform: scale(1.025);
}

.profile-intro__visual figcaption {
  position: relative;
  z-index: 2;
  width: calc(100% - 54px);
  margin: -38px 0 0 auto;
  padding: 23px 28px;
  color: #fff;
  background: #681f20;
}

.profile-intro__visual figcaption strong,
.profile-intro__visual figcaption span {
  display: block;
}

.profile-intro__visual figcaption strong {
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.4;
}

.profile-intro__visual figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.profile-culture {
  padding: clamp(82px, 8vw, 128px) 0 clamp(96px, 9vw, 146px);
  background: var(--profile-surface);
}

.profile-heading--culture {
  margin-bottom: clamp(40px, 4.5vw, 68px);
}

.culture-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.culture-photo {
  position: relative;
  grid-row: 1 / 3;
  min-height: 572px;
  margin: 0;
  overflow: hidden;
  background: #dfe5ea;
}

.culture-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(16, 31, 45, 0.82), transparent);
}

.culture-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  transition: transform 0.7s ease;
}

.culture-photo:hover img {
  transform: scale(1.025);
}

.culture-photo figcaption {
  position: absolute;
  right: 34px;
  bottom: 32px;
  left: 34px;
  z-index: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}

.culture-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: clamp(30px, 3vw, 48px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.culture-card::after {
  content: "";
  position: absolute;
  right: -82px;
  bottom: -110px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: transform 0.55s ease;
}

.culture-card:hover::after {
  transform: translate(-18px, -18px);
}

.culture-card--blue {
  background: #bf2323;
}

.culture-card--gold {
  background: #9d2c2d;
}

.culture-card--red {
  background: #cf5a52;
}

.culture-card--slate {
  background: #7d2728;
}

.culture-card__index {
  position: absolute;
  top: 26px;
  right: 30px;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}

.culture-card > div {
  position: relative;
  z-index: 1;
}

.culture-card h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.culture-card p {
  max-width: 24em;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .profile-intro__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 48px;
  }

  .culture-grid {
    grid-template-columns: minmax(260px, 0.82fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(240px, 1fr));
  }

  .culture-photo {
    min-height: 492px;
  }

  .culture-card {
    min-height: 240px;
  }
}

@media (max-width: 900px) {
  .profile-intro__grid {
    grid-template-columns: 1fr;
  }

  .profile-intro__visual {
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .profile-intro__image img {
    height: min(72vw, 560px);
  }

  .culture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .culture-photo {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 440px;
    aspect-ratio: 16 / 9;
  }

  .culture-photo img {
    object-position: center 44%;
  }
}

@media (max-width: 600px) {
  .profile-shell {
    width: 90%;
  }

  .profile-intro {
    padding: 60px 0 76px;
  }

  .profile-heading {
    margin-bottom: 30px;
  }

  .profile-heading__en {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .profile-heading h2 {
    font-size: 30px;
  }

  .profile-heading > span {
    width: 48px;
    height: 3px;
    margin-top: 16px;
  }

  .profile-richtext {
    font-size: 15px;
    line-height: 1.85;
  }

  .profile-facts {
    gap: 18px 0;
    grid-template-columns: 1fr;
    padding-top: 22px;
  }

  .profile-facts > div,
  .profile-facts > div:first-child {
    padding: 0 0 0 18px;
    border: 0;
    border-left: 2px solid var(--profile-line);
  }

  .profile-facts dt {
    font-size: 23px;
  }

  .profile-intro__visual {
    padding: 0 0 22px 18px;
  }

  .profile-intro__image img {
    height: min(112vw, 520px);
  }

  .profile-intro__visual figcaption {
    width: calc(100% - 28px);
    margin-top: -24px;
    padding: 18px 20px;
  }

  .profile-culture {
    padding: 68px 0 82px;
  }

  .culture-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .culture-photo {
    grid-column: auto;
    min-height: 390px;
    aspect-ratio: 4 / 5;
  }

  .culture-photo img {
    object-position: 42% center;
  }

  .culture-photo figcaption {
    right: 24px;
    bottom: 24px;
    left: 24px;
    font-size: 15px;
  }

  .culture-card {
    min-height: 230px;
    padding: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-intro__image img,
  .culture-photo img,
  .culture-card::after {
    transition: none;
  }
}
