:root {
  --cace-red: #b5121b;
  --cace-red-dark: #861018;
}

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 3000;
  padding: 10px 16px; color: #fff; background: var(--cace-red);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 1000; height: 76px; color: #fff;
  background: linear-gradient(100deg, var(--cace-red-dark), var(--cace-red) 62%, #c9232d);
  box-shadow: 0 2px 14px rgba(68, 0, 5, .18);
}
.shell { width: min(1400px, calc(100% - 64px)); margin: 0 auto; }
.header-inner { height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 330px; color: #fff; }
.brand-mark { display: grid; width: 51px; height: 51px; flex: 0 0 51px; place-items: center; background: transparent; }
.brand-mark img { width: 51px; height: 51px; object-fit: contain; filter: none; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font-size: 19px; letter-spacing: .04em; }
.brand i { margin-top: 4px; font-size: 12px; font-style: normal; opacity: .86; letter-spacing: .08em; }
.site-header .main-nav { display: flex; position: static !important; inset: auto !important; width: auto !important; height: auto !important; align-items: center; justify-content: center; flex: 1; gap: clamp(14px, 1.6vw, 30px); background: none !important; transform: none !important; }
.main-nav a { position: relative; padding: 27px 0 24px; color: rgba(255,255,255,.9); font-size: 15px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 0; height: 2px; background: #fff; transform: translateX(-50%); transition: width .2s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .phone { color: #fff; font: 600 14px/1 Arial, sans-serif; }
.site-header .button-small { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border: 1px solid rgba(255,255,255,.72); border-radius: 2px; color: #fff; font-size: 14px; }
.site-header .button-small:hover { color: var(--cace-red); background: #fff; }
.menu-toggle { display: none; position: relative; width: 42px; height: 42px; padding: 9px; color: #fff; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: currentColor; }
.menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mobile-header-actions { display: none; }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 8px 24px 18px; background: var(--cace-red-dark); box-shadow: 0 10px 20px rgba(0,0,0,.16); }
.mobile-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 15px; }

.reference-main { display: block; }
.reference-main .subBox_item { scroll-margin-top: 92px; }

.platform-visual { position: relative; width: 100%; }
.platform-visual > img { display: block; width: 100%; }
.platform-capability-label { position: absolute; z-index: 2; box-sizing: border-box; display: flex; width: 43%; height: 21%; align-items: center; padding: 0 2%; color: #fff; font-size: clamp(9px, 1vw, 18px); line-height: 1.25; }
.label-lowcode { top: 8%; left: 5%; background: #f2495c; }
.label-bpm { top: 8%; right: 5%; justify-content: flex-end; background: #2273f8; }
.label-integration { bottom: 8%; left: 5%; background: #b03978; }
.label-agent { right: 5%; bottom: 8%; justify-content: flex-end; background: #ac43f5; }
.platform-visual-badge { position: absolute; top: 50%; left: 50%; display: flex; width: 32%; height: 25%; align-items: center; justify-content: center; gap: 5%; border-radius: 30%; background: #fff; color: #111827; transform: translate(-50%, -50%); }
.platform-visual-badge img { width: 24%; height: auto; border-radius: 0 !important; }
.platform-visual-badge b { font-size: clamp(12px, 1.25vw, 22px); line-height: 1; }
.platform-visual-badge span { font-size: clamp(8px, .72vw, 13px); line-height: 1; }
.capability-title-cover { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; height: 48%; align-items: center; justify-content: center; gap: 3%; background: linear-gradient(135deg, #f7fcff 0%, #fff 55%, #fff9f8 100%); color: #111827; }
.capability-title-cover img { position: static !important; width: 8% !important; height: auto !important; object-fit: contain; }
.capability-title-cover b { font-size: clamp(13px, 1.5vw, 25px); white-space: nowrap; }
.capability-brand-cover { position: absolute; z-index: 2; top: 69%; left: 50%; display: flex; width: 34%; height: 12%; align-items: center; justify-content: center; gap: 5%; border-radius: 999px; background: rgba(255,255,255,.98); color: #111827; transform: translate(-50%, -50%); }
.capability-brand-cover img { position: static !important; width: 15% !important; height: auto !important; object-fit: contain; }
.capability-brand-cover b { font-size: clamp(9px, 1.2vw, 20px); white-space: nowrap; }
.lifecycle-title-cover { position: absolute; z-index: 2; top: 47%; left: 50%; display: flex; width: 46%; height: 18%; align-items: center; justify-content: center; gap: 4%; border-radius: 999px; background: rgba(255,255,255,.96); color: #111827; transform: translate(-50%, -50%); }
.lifecycle-title-cover img { position: static !important; width: 13% !important; height: auto !important; object-fit: contain; }
.lifecycle-title-cover b { font-size: clamp(10px, 1.35vw, 21px); white-space: nowrap; }

.project-contact { padding: 100px 0; background: linear-gradient(135deg, #f2f5fa 0%, #fbfcfe 58%, #f7eeee 100%); }
.contact-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); align-items: center; gap: clamp(56px, 7vw, 110px); }
.contact-copy h2 { max-width: 700px; margin: 0; color: #20242d; font-size: clamp(38px, 3.5vw, 50px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
.contact-copy h2 span { white-space: nowrap; }
.contact-copy p { max-width: 640px; margin: 28px 0 0; color: #555d6b; font-size: 18px; line-height: 1.9; }
.contact-card { margin: 0; padding: 18px 48px; border: 1px solid #dce1e9; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(104, 27, 33, .08); }
.contact-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; min-height: 102px; }
.contact-row + .contact-row { border-top: 1px solid #e3e7ed; }
.contact-row dt { color: #6d7788; font-size: 20px; }
.contact-row dd { min-width: 0; margin: 0; color: #20242d; font-size: 21px; font-weight: 700; }
.contact-row a { color: #9f111a; text-decoration: none; }
.contact-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-row a:focus-visible { outline: 2px solid var(--cace-red); outline-offset: 5px; }

.site-footer { color: rgba(255,255,255,.82); background: #731019; }
.footer-main { display: flex; align-items: center; justify-content: space-between; min-height: 128px; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; filter: none; }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand b { color: #fff; font-size: 19px; }
.footer-brand i { margin-top: 4px; font-size: 12px; font-style: normal; letter-spacing: .07em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.footer-links a { color: rgba(255,255,255,.8); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 20px 0 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; }
.footer-bottom a { color: inherit; }

@media (max-width: 1180px) {
  .shell { width: calc(100% - 40px); }
  .brand { min-width: 286px; }
  .brand b { font-size: 17px; }
  .main-nav { gap: 14px; }
  .header-actions .phone { display: none; }
}
@media (max-width: 1500px) {
  .header-actions .phone { display: none; }
}
@media (max-width: 900px) {
  .site-header { height: auto; }
  .site-header .main-nav, .site-header .button-small { display: none !important; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .mobile-header-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 9px 20px 11px; background: var(--cace-red-dark); }
  .mobile-header-actions a { display: flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.76); border-radius: 2px; color: #fff; font-size: 14px; }
  .mobile-header-actions a:active { transform: translateY(1px); }
  .mobile-header-actions a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .reference-main .subBox_item { scroll-margin-top: 150px; }
  .project-contact { padding: 72px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-main { align-items: flex-start; flex-direction: column; padding: 34px 0; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .site-header { height: auto; }
  .header-inner { height: 64px; }
  .shell { width: calc(100% - 30px); }
  .brand { min-width: 0; gap: 9px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-mark img { width: 42px; height: 42px; }
  .platform-visual-badge { width: 38%; }
  .platform-visual-badge span { display: none; }
  .brand b { font-size: 15px; }
  .brand i { font-size: 10px; }
  .reference-main .subBox_item { scroll-margin-top: 136px; }
  .project-contact { padding: 56px 0; }
  .contact-inner { gap: 30px; }
  .contact-copy h2 { font-size: 30px; line-height: 1.28; letter-spacing: -.025em; }
  .contact-copy h2 span { white-space: normal; }
  .contact-copy p { margin-top: 18px; font-size: 16px; line-height: 1.75; }
  .contact-card { padding: 8px 20px; }
  .contact-row { grid-template-columns: 88px minmax(0, 1fr); min-height: 82px; }
  .contact-row dt { font-size: 15px; }
  .contact-row dd { font-size: 17px; overflow-wrap: anywhere; }
  .footer-links { gap: 12px 18px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
