@font-face {
  font-family: "Blue Ocean Sans";
  src: url("assets/fonts/blue-ocean-sans-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body,
body * {
  font-family: "Blue Ocean Sans", "Source Han Sans TW", sans-serif !important;
  font-synthesis: none;
}

.cms-tabs a {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 17px;
  line-height: 1.4;
}
.cms-tabs a:last-child { border-right: 0; }
.cms-tabs a:hover,
.cms-tabs a.active { color: #fff; background: #d6222b; }
.cms-client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
}
.cms-client-grid img {
  width: 100%;
  height: 110px;
  padding: 26px 30px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  object-fit: contain;
}
.cms-client-grid img:nth-child(5n) { border-right: 0; }
.cms-client-grid img:nth-child(n + 6) { border-bottom: 0; }
.cms-about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 60px; align-items: center; }
.cms-left-title { text-align: left; }
.cms-left-title i { margin-left: 0; }
.cms-about h2 { color: #d6222b; font-size: 28px; line-height: 1.45; }
.cms-about p { color: #666; font-size: 16px; line-height: 2; }
.cms-about > img { width: 100%; min-height: 360px; border-radius: 180px 0 180px 0; object-fit: cover; }
.cms-text-link { display: inline-block; margin-top: 16px; color: #d6222b; font-size: 16px; }
.cms-talent { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 440px; align-items: center; gap: 60px; }
.talent-section { background: #eef7ff; }
.cms-talent > div > p { margin: 0; color: #d6222b; letter-spacing: .16em; }
.cms-talent h1 { margin: 12px 0; color: #d6222b; font-size: 40px; }
.cms-talent h2 { margin: 0 0 28px; color: #333; font-size: 26px; line-height: 1.55; }
.cms-talent a, .cms-return { display: inline-block; padding: 13px 24px; border: 1px solid #d6222b; color: #d6222b; }
.cms-talent > img { width: 100%; height: 330px; border-radius: 20px; object-fit: cover; }
.ip-tabs { margin-bottom: 46px; }
.ip-tabs a { font-weight: 700; }
.ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ip-grid > a { display: block; color: #222; font-size: 18px; }
.ip-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 12px; object-fit: cover; }
.ip-page { display: flex; justify-content: center; gap: 8px; margin-top: 45px; }
.ip-page a, .ip-page b { min-width: 38px; padding: 9px 11px; border: 1px solid #ddd; color: #555; text-align: center; }
.cms-article, .cms-case-detail { width: min(1100px, calc(100% - 48px)); padding: 80px 0; }
.cms-crumb { color: #888; }
.cms-crumb a { color: #d6222b; }
.cms-article h1, .cms-case-detail h1 { margin: 28px 0 14px; color: #222; font-size: 40px; line-height: 1.3; }
.cms-article-summary, .cms-case-category { margin-bottom: 34px; color: #888; font-size: 16px; line-height: 1.8; }
.cms-article article, .cms-case-detail article { color: #404040; font-size: 17px; line-height: 2; }
.cms-article article img, .cms-case-detail article img { max-width: 100%; height: auto; }
.cms-case-cover { display: block; width: 100%; max-height: 660px; margin: 28px 0; object-fit: contain; background: #f5f5f5; }
.ip-footer { padding: 36px 20px; background: #99121a; color: #fff; text-align: center; }
.ip-footer small { display: block; margin-top: 10px; opacity: .78; }
.cms-honors { background: #faf8f2; }
.cms-honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cms-honors-grid a { display: grid; min-height: 250px; place-items: center; padding: 18px; border: 1px solid #dbcba9; background: #fff; box-shadow: 0 14px 24px rgba(68, 48, 16, .09); }
.cms-honors-grid img { width: 100%; height: 230px; object-fit: contain; }
.cms-clients { background: #fff; }
.cms-section-intro { width: min(700px, 100%); margin: 28px auto 42px; color: #666; font-size: 16px; line-height: 2; text-align: center; }
.cms-client-panels { display: grid; gap: 22px; }
.cms-client-panels a { display: block; overflow: hidden; border: 1px solid #e8e3d8; background: #fff; box-shadow: 0 14px 30px rgba(38, 24, 11, .07); transition: transform .24s ease, box-shadow .24s ease; }
.cms-client-panels a:hover { box-shadow: 0 20px 36px rgba(38, 24, 11, .14); transform: translateY(-4px); }
.cms-client-panels img { display: block; width: 100%; height: auto; }
.cms-jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cms-job { min-height: 220px; padding: 30px; border: 1px solid #eee; background: #fff; box-shadow: 0 12px 28px rgba(38, 38, 38, .06); }
.cms-job h2 { margin: 0 0 16px; color: #d6222b; font-size: 24px; }
.cms-job p { margin: 0 0 22px; color: #666; font-size: 15px; line-height: 1.9; }
.cms-job a { color: #d6222b; }

@media (max-width: 900px) {
  .cms-client-grid { grid-template-columns: repeat(2, 1fr); }
  .cms-client-grid img { height: 88px; padding: 20px; }
  .cms-client-grid img:nth-child(5n) { border-right: 1px solid #eee; }
  .cms-client-grid img:nth-child(2n) { border-right: 0; }
  .cms-client-grid img:nth-child(n + 6) { border-bottom: 1px solid #eee; }
  .cms-client-grid img:nth-last-child(-n + 2) { border-bottom: 0; }
  .cms-about, .cms-talent { grid-template-columns: 1fr; gap: 30px; }
  .cms-about > img { min-height: 230px; border-radius: 80px 0; }
  .cms-talent { padding: 60px 0; }
  .ip-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cms-article h1, .cms-case-detail h1 { font-size: 29px; }
  .cms-honors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cms-honors-grid a { min-height: 175px; padding: 10px; }
  .cms-honors-grid img { height: 155px; }
  .cms-section-intro { margin: 20px auto 28px; font-size: 15px; }
  .cms-client-panels { gap: 14px; }
  .cms-jobs { grid-template-columns: 1fr; gap: 14px; }
}
