/*
 * SCI Service Pages - Nishiki Pro integration shell
 * Keeps the global site header/footer, removes the theme-generated page title,
 * and lets each service page escape the normal article content width.
 */

body.sci-service-page .sci-service-theme-title,
body.sci-service-page .entry-header:not(.site-header),
body.sci-service-page .page-header:not(.site-header) {
  display: none !important;
}

/* Remove article-width / root-padding restrictions only on SCI service pages. */
body.sci-service-page .entry-content,
body.sci-service-page .wp-block-post-content {
  width: auto !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
}

body.sci-service-page .content-area,
body.sci-service-page #primary,
body.sci-service-page .site-main,
body.sci-service-page article.page,
body.sci-service-page article.type-page {
  max-width: none !important;
  overflow: visible !important;
}

/* Full-bleed escape from Nishiki Pro's centered content container.
 * Internal service shells still control readable text width themselves.
 */
body.sci-service-page .entry-content > :is(
  .sci-kamushirube,
  .sci-rashinra,
  .sci-kanameba,
  .sci-mirasent,
  .sci-gsensia,
  .sci-research-support,
  .sci-corporate-training
),
body.sci-service-page .wp-block-post-content > :is(
  .sci-kamushirube,
  .sci-rashinra,
  .sci-kanameba,
  .sci-mirasent,
  .sci-gsensia,
  .sci-research-support,
  .sci-corporate-training
) {
  width: auto !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Prevent a small horizontal scrollbar if the browser counts the scrollbar in 100vw. */
body.sci-service-page {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body.sci-service-page {
    overflow-x: hidden;
  }
}
