/*
 * Top page fixed desktop canvas / 2026-08-23
 *
 * The approved desktop composition is a 1920px stage. From 769px upward,
 * non-header sections keep that stage and are cropped equally at both sides.
 * The mobile composition starts abruptly at 768px. The header is
 * intentionally excluded because its nav / ear tabs / drawer have their own
 * breakpoints.
 */

@media (min-width: 769px) {
  html,
  body {
    /* `hidden` turns the document into a vertical scroll container in Chrome,
       which prevents the shared sticky header from following the viewport. */
    overflow-x: clip;
  }

  body > .fv4ref,
  body > .switch-q4-sec,
  body > #hidden-sections,
  body > .omit-sec,
  body > .history-sec,
  body > #voice,
  body > #news,
  body > .cta2,
  body > .ft {
    position: relative;
    left: 50%;
    width: 1920px;
    max-width: none;
    margin-right: 0;
    margin-left: -960px;
  }

  /* FV-under banner: neutralize the ear-tab safe area and keep 1920 sizing. */
  .switch-q4-sec--r2-814 .container {
    width: 1250px;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .switch-q4-sec--r2-814 .switch-q4-banner {
    display: block;
    width: 1120px;
    margin-right: auto;
    margin-left: auto;
  }

  .switch-q4-sec--r2-814 .switch-q4-mobile {
    display: none;
  }

  /* Diagnostic worksheet: restore its complete desktop composition. */
  .switch-diagnosis-c__stage {
    left: 50%;
    width: 1920px;
    margin-left: -960px;
    background-position: center;
  }

  .switch-diagnosis-c__guide {
    width: 1220px;
    max-width: none;
    padding-top: 72px;
  }

  .switch-diagnosis-c__heading {
    width: 960px;
  }

  .switch-diagnosis-c__title {
    font-size: 44px;
  }

  .switch-diagnosis-c__lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .switch-diagnosis-c__console-body {
    grid-template-columns: 728px minmax(0, 1fr);
  }

  .switch-diagnosis-c__checks {
    padding: 16px 22px 16px 24px;
  }

  .switch-diagnosis-c__check {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 9px 18px 9px 14px;
  }

  .switch-diagnosis-c__check-text {
    font-size: 16px;
  }

  .switch-diagnosis-c__result {
    padding: 30px 42px 30px 48px;
  }

  .switch-diagnosis-c__result-icon {
    width: 54px;
    height: 54px;
  }

  .switch-diagnosis-c__count strong {
    font-size: 78px;
  }

  .switch-diagnosis-c__count span {
    font-size: 24px;
  }

  .switch-diagnosis-c__result-title {
    font-size: 24px;
  }

  .switch-diagnosis-c__result-copy {
    font-size: 14px;
  }

  .switch-diagnosis-c__cta {
    font-size: 16px;
  }

  /* FEATURES: keep the 1920px alternating-photo chapters at every PC width. */
  section.features-organic {
    --ofe-diagonal-inset: 13.7931%;
    padding: 112px 0 0;
  }

  section.features-organic .ofe-head {
    width: 1220px;
    margin: 0 auto 50px;
  }

  section.features-organic .ofe-chapter-inner {
    display: block;
    width: 100%;
    min-height: 537.6px;
    margin: 0;
    flex-direction: row;
  }

  section.features-organic .ofe-copy,
  section.features-organic .ofe-chapter:nth-child(even) .ofe-copy {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    width: 58%;
    margin: 0;
    padding: 44px 180px 44px 350px;
    flex-direction: column;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--ofe-diagonal-inset)) 100%, 0 100%);
  }

  section.features-organic .ofe-chapter:nth-child(even) .ofe-copy {
    inset: 0 0 0 auto;
    padding-right: 350px;
    padding-left: 220px;
    clip-path: polygon(var(--ofe-diagonal-inset) 0, 100% 0, 100% 100%, 0 100%);
  }

  section.features-organic .ofe-photo,
  section.features-organic .ofe-chapter:nth-child(odd) .ofe-photo,
  section.features-organic .ofe-chapter:nth-child(even) .ofe-photo {
    position: absolute;
    inset: 0 0 0 auto;
    order: initial;
    width: 58%;
    height: 537.6px;
    aspect-ratio: auto;
    transform: none;
    clip-path: polygon(var(--ofe-diagonal-inset) 0, 100% 0, 100% 100%, 0 100%);
  }

  section.features-organic .ofe-chapter:nth-child(even) .ofe-photo {
    inset: 0 auto 0 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--ofe-diagonal-inset)) 100%, 0 100%);
  }

  section.features-organic .ofe-heading {
    margin: 0 0 23px;
    padding: 0 0 16px;
    font-size: 34px;
    line-height: 1.42;
  }

  section.features-organic .ofe-lead {
    max-width: 520px;
    margin: 0 0 13px;
    font-size: 17px;
    line-height: 1.78;
  }

  section.features-organic .ofe-body {
    max-width: 530px;
    padding-right: 0;
    font-size: 15.5px;
    line-height: 1.86;
  }

  section.features-organic .ofe-watermark-icon {
    top: 28px;
    right: 96px;
    width: 232px;
    opacity: .064;
  }

  section.features-organic .ofe-photo-image.is-1 {
    background-position: 44% 62%;
  }

  /* RESULTS already owns a fixed desktop stage; retain the final lower band. */
  section[data-sec="07 RESULT 導入成果"].results-reference .rr-bottom {
    grid-template-columns: 148px minmax(0, 1fr) 500px;
    gap: 28px;
    min-height: 214px;
    margin-top: 44px;
    padding: 28px 34px 28px 24px;
    text-align: left;
    border-radius: 40px;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-cloud {
    width: 136px;
    height: 136px;
    margin: 0;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-cloud svg {
    width: 88px;
    height: 88px;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-facts {
    grid-column: auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 0;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-bottom-copy h3 {
    font-size: 26px;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-bottom-copy p {
    font-size: 16px;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-fact-icon {
    width: 84px;
    height: 84px;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-fact svg {
    width: 48px;
    height: 48px;
  }

  section[data-sec="07 RESULT 導入成果"].results-reference .rr-fact span {
    font-size: 14.5px;
  }

  /* Restore the 1250/1220 desktop grids after viewport media queries fire. */
  section[data-sec="08 INDUSTRY 業種別"] > .container,
  section[data-sec="09 HISTORY 開発秘話"] > .container,
  section[data-sec="10 CASE お客様の声"] > .container,
  section[data-sec="11 NEWS お知らせ"] > .container,
  body > .ft > .container {
    width: 100%;
    max-width: 1250px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
  }

  section[data-sec="08 INDUSTRY 業種別"] .cards.icards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  section[data-sec="09 HISTORY 開発秘話"] .history-2col {
    grid-template-columns: 330px minmax(0, 760px);
    justify-content: space-between;
    gap: 64px;
  }

  section[data-sec="09 HISTORY 開発秘話"] .history-head {
    position: sticky;
    top: 120px;
  }

  section[data-sec="09 HISTORY 開発秘話"] .history-scroll {
    max-height: 620px;
  }

  section[data-sec="10 CASE お客様の声"] .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  section[data-sec="11 NEWS お知らせ"] .news-grid {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 64px;
  }

  /* Four-action CTA: preserve the approved three cards + full-width phone row. */
  section.cta2.cta2--concept-a.cta2--four-actions {
    min-height: 0;
    padding: 76px 0 72px;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-in {
    width: 1220px;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  section.cta2.cta2--concept-a.cta2--four-actions h2 {
    margin-top: 30px;
    font-size: 48px;
    line-height: 1.25;
    letter-spacing: .045em;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-text {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: .08em;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-btns.cta2-four-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-four-grid .cta2-four-card:not(.cta2-four-card--tel) {
    grid-template-columns: 88px minmax(0, 1fr) 24px;
    gap: 16px;
    min-height: 124px;
    padding: 16px 22px 16px 24px;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-four-icon {
    width: 64px;
    height: 64px;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-four-icon::before {
    width: 34px;
    height: 34px;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-four-icon::after {
    right: -20px;
    height: 64px;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-four-label {
    font-size: 20px;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-four-grid .cta2-four-card.cta2-four-card--tel {
    grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr);
    gap: 32px;
    min-height: 108px;
    margin-top: 0;
    padding: 26px 0 0;
  }

  section.cta2.cta2--concept-a.cta2--four-actions .cta2-four-card--tel .cta2-four-phone {
    font-size: 42px;
    letter-spacing: .035em;
  }

  body > .ft .ft-inner {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

/* Banner joins the rest of the dedicated mobile composition at 768px. */
@media (max-width: 768px) {
  section.switch-q4-sec.switch-q4-sec--r2-814 {
    padding: 38px 0 46px;
  }

  .switch-q4-sec--r2-814 .container {
    width: calc(100% - 32px);
  }

  .switch-q4-sec--r2-814 .switch-q4-banner {
    display: none;
  }

  .switch-q4-sec--r2-814 .switch-q4-mobile {
    display: block;
    border-radius: 10px;
    box-shadow: 0 16px 38px -18px rgba(4, 39, 76, .32);
  }
}
