body.page-case-medical-tech,
body.page-case-detail {
  --case-tech-ink: #0f172a;
  --case-tech-muted: rgba(15, 23, 42, 0.64);
  --case-tech-subtle: rgba(15, 23, 42, 0.42);
  --case-tech-border-soft: rgba(15, 23, 42, 0.08);
  --case-tech-border: rgba(15, 23, 42, 0.12);
  --case-tech-accent: var(--brand, #0054e1);
  --case-tech-surface: rgba(255, 255, 255, 0.98);
  --case-tech-shell-shadow: var(--shadow-soft);
  --case-shell-inline-gap: 88px;
  --case-shell-width: min(
    var(--container),
    calc(100% - var(--case-shell-inline-gap))
  );
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}

body.page-case-medical-tech main,
body.page-case-detail main {
  flex: 1 0 auto;
  min-width: 0;
}

body.page-case-medical-tech #siteFooter,
body.page-case-detail #siteFooter {
  margin-top: auto;
}

body.page-case-medical-tech img,
body.page-case-detail img {
  max-width: 100%;
}

body.page-case-medical-tech
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  ),
body.page-case-detail
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  ) {
  background: transparent;
  border-bottom-color: transparent;
  color: #ffffff;
}

body.page-case-medical-tech
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .brand-logo,
body.page-case-medical-tech
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .site-nav,
body.page-case-medical-tech
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .nav-link,
body.page-case-medical-tech
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .nav-text,
body.page-case-detail
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .brand-logo,
body.page-case-detail
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .site-nav,
body.page-case-detail
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .nav-link,
body.page-case-detail
  .site-header:not(.is-solid):not(.is-menu-active):not(.is-nav-open):not(
    .is-focus-active
  )
  .nav-text {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(4, 10, 18, 0.3);
}

body.page-case-medical-tech .site-header.is-nav-open,
body.page-case-medical-tech .site-header.is-menu-active,
body.page-case-medical-tech .site-header.is-focus-active,
body.page-case-medical-tech .site-header.is-solid,
body.page-case-detail .site-header.is-nav-open,
body.page-case-detail .site-header.is-menu-active,
body.page-case-detail .site-header.is-focus-active,
body.page-case-detail .site-header.is-solid {
  background: #ffffff;
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-header);
}

body.page-case-medical-tech .hero-bg,
body.page-case-medical-tech .hero-case-medical-bg,
body.page-case-detail .hero-bg,
body.page-case-detail .hero-case-medical-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.page-case-medical-tech .hero-case-medical,
body.page-case-detail .hero-case-medical {
  position: relative;
  min-height: var(--subpage-banner-image-min-height);
  padding: var(--subpage-banner-padding-top) 0 var(--subpage-banner-padding-bottom);
  overflow: visible;
}

body.page-case-medical-tech .hero-case-medical-bg,
body.page-case-detail .hero-case-medical-bg {
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 30, 0.44) 0%,
      rgba(7, 16, 30, 0.24) 42%,
      rgba(7, 16, 30, 0.14) 76%,
      rgba(7, 16, 30, 0.08) 100%
    ),
    url("../../image/img_subpage_banner_case.png");
  background-size: cover;
  background-position: center 38%;
  filter: saturate(0.96) contrast(1.01) brightness(0.99);
}

body.page-case-medical-tech .case-categories,
body.page-case-detail .case-categories {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -41px;
  z-index: 50;
  width: var(--case-shell-width);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0 18px;
  border-radius: 0;
  transform: translateX(-50%);
  background: var(--case-tech-surface);
  border: 1px solid var(--case-tech-border-soft);
  box-shadow: var(--case-tech-shell-shadow);
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-case-medical-tech .case-categories::before,
body.page-case-detail .case-categories::before {
  content: none;
}

body.page-case-medical-tech .case-category-indicator,
body.page-case-detail .case-category-indicator {
  display: none;
}

body.page-case-medical-tech .case-category,
body.page-case-detail .case-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  gap: 8px;
  padding: 14px 14px 12px;
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.72);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

body.page-case-medical-tech .case-category[aria-disabled="true"],
body.page-case-detail .case-category[aria-disabled="true"] {
  cursor: default;
  opacity: 0.7;
}

body.page-case-medical-tech .case-category:hover,
body.page-case-detail .case-category:hover {
  color: rgba(15, 23, 42, 0.92);
}

body.page-case-medical-tech .case-category:active,
body.page-case-detail .case-category:active {
  background: transparent;
}

body.page-case-medical-tech .case-category:focus-visible,
body.page-case-detail .case-category:focus-visible {
  outline: 2px solid var(--case-tech-accent);
  outline-offset: -2px;
}

body.page-case-medical-tech .case-category.is-active,
body.page-case-detail .case-category.is-active {
  color: var(--case-tech-accent);
}

body.page-case-medical-tech .case-category-icon,
body.page-case-detail .case-category-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(15, 23, 42, 0.62);
  font-size: 26px;
  line-height: 1;
}

body.page-case-medical-tech .case-category-icon::before,
body.page-case-detail .case-category-icon::before {
  display: block;
}

body.page-case-medical-tech .icon-icon_case_line_medical::before,
body.page-case-detail .icon-icon_case_line_medical::before {
  content: "\e62c";
}

body.page-case-medical-tech .icon-icon_case_line_edu::before,
body.page-case-detail .icon-icon_case_line_edu::before {
  content: "\e633";
}

body.page-case-medical-tech .icon-icon_case_line_exhibition::before,
body.page-case-detail .icon-icon_case_line_exhibition::before {
  content: "\e62b";
}

body.page-case-medical-tech .icon-icon_case_line_safe::before,
body.page-case-detail .icon-icon_case_line_safe::before {
  content: "\e631";
}

body.page-case-medical-tech .icon-icon_case_line_all::before,
body.page-case-detail .icon-icon_case_line_all::before {
  content: "\e62d";
}

body.page-case-medical-tech .icon-icon_case_line_gov::before,
body.page-case-detail .icon-icon_case_line_gov::before {
  content: "\e62f";
}

body.page-case-medical-tech .case-category:hover .case-category-icon,
body.page-case-detail .case-category:hover .case-category-icon {
  color: rgba(15, 23, 42, 0.82);
}

body.page-case-medical-tech .case-category.is-active .case-category-icon,
body.page-case-detail .case-category.is-active .case-category-icon {
  color: var(--case-tech-accent);
}

body.page-case-medical-tech .case-category-text,
body.page-case-detail .case-category-text {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  color: currentColor;
  font-size: var(--card-meta-size);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

body.page-case-medical-tech .case-category-text::after,
body.page-case-detail .case-category-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--case-tech-accent);
  opacity: 0;
  transform: scaleX(0.78);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 200ms ease;
}

body.page-case-medical-tech .case-category.is-active .case-category-text,
body.page-case-detail .case-category.is-active .case-category-text {
  font-weight: 700;
}

body.page-case-medical-tech .case-category.is-active .case-category-text::after,
body.page-case-detail .case-category.is-active .case-category-text::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 980px) {
  body.page-case-medical-tech,
  body.page-case-detail {
    --case-shell-inline-gap: 52px;
  }

  body.page-case-medical-tech .hero-case-medical,
  body.page-case-detail .hero-case-medical {
    min-height: var(--subpage-banner-image-min-height);
    padding: var(--subpage-banner-padding-top) 0 var(--subpage-banner-padding-bottom);
  }

  body.page-case-medical-tech .case-categories,
  body.page-case-detail .case-categories {
    bottom: 14px;
  }
}

@media (max-width: 720px) {
  body.page-case-medical-tech,
  body.page-case-detail {
    --case-shell-inline-gap: 20px;
  }

  body.page-case-medical-tech .hero-case-medical,
  body.page-case-detail .hero-case-medical {
    min-height: var(--subpage-banner-image-min-height);
    padding: var(--subpage-banner-padding-top) 0 var(--subpage-banner-padding-bottom);
  }

  body.page-case-medical-tech .case-category,
  body.page-case-detail .case-category {
    min-height: 50px;
    gap: 5px;
    padding: 10px 6px 8px;
  }

  body.page-case-medical-tech .case-categories,
  body.page-case-detail .case-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 6px 10px 2px;
    bottom: -72px;
  }

  body.page-case-medical-tech .case-category-icon,
  body.page-case-detail .case-category-icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
  }

  body.page-case-medical-tech .case-category-text,
  body.page-case-detail .case-category-text {
    padding-bottom: 6px;
    font-size: var(--card-meta-size-sm);
  }
}
