@layer site-overrides {
  @media (min-width: 1025px) {
    .page_company .flow-company > .character-block--company-workers {
      left: auto;
      right: auto;
      margin-left: auto;
      margin-right: clamp(24px, 5vw, 80px);
    }
  }
}
 
@layer site-overrides {
  @media (max-width: 1024px) {
    body:not(.home) {
      --site-body-size: 15px;
      --section-spacing: 64px;
      -webkit-text-size-adjust: 100%;
    }
    body:not(.home)
      main
      :is(
        p.site-text,
        .site-text p,
        .cf-lead,
        .bd-intro p,
        .es-introduction__text p,
        .es-capacity__text p,
        .rf-intro__inner p,
        .rf-foundation p,
        .ctv-intro__text p,
        .sd-qa__body p
      ) {
      font-size: 15px;
      line-height: 1.95;
    }
    body:not(.home) main h2:not(.flow-character__title):not(#contact-title) {
      font-size: 24px;
      line-height: 1.6;
      letter-spacing: 0.04em;
      overflow-wrap: anywhere;
    }
    body:not(.home) main :is(.cp-section__title, h2[lang="en"], h2:has(> small)) {
      font-size: 30px;
      line-height: 1.2;
    }
    body:not(.home) main h2 > small {
      display: block;
      margin-top: 12px;
      font-size: 14px;
      line-height: 1.6;
    }
    body:not(.home)
      main
      :is(.business-card h2, .rc-data h3, .rf-foundation h2, .rf-faq h3, .cf-form h3) {
      font-size: 18px;
      line-height: 1.65;
    }
    body:not(.home) main :is(.ctv-question h3, .sd-qa__q, .sd-holiday__title) {
      font-size: 20px;
      line-height: 1.65;
    }
    body:not(.home) main .cp-cta__content h2 {
      font-size: 28px;
    }
    body:not(.home) main .flow-character__title {
      font-size: 21px;
    }
    body:not(.home) :is(.cf-subtitle, .sp-natural-wrap, .cp-section__title, .rc-fv__copy) {
      word-break: keep-all;
      overflow-wrap: anywhere;
    }
    body:not(.home) br.pc-only {
      display: none;
    }
    body:not(.home) .recruit-copy-line {
      display: inline;
      text-wrap: wrap;
    }
     
    body:not(.home) main .common-page-hero.cf-hero--photo {
      height: auto;
      min-height: 300px;
      padding: 104px 0 32px;
    }
    body:not(.home) main .common-page-hero .cf-hero__bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    body:not(.home) main .common-page-hero .cf-hero__bg img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    body:not(.home) main .common-page-hero .cf-eyebrow {
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 12px;
    }
    body:not(.home) main .common-page-hero .cf-title {
      font-size: clamp(32px, 8vw, 44px);
      line-height: 1.1;
      overflow-wrap: anywhere;
    }
    body:not(.home) main .common-page-hero--plain {
      padding-top: 104px;
    }
     
    body:not(.home) .business-card__image {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 1.8;
      object-fit: cover;
    }
    body.page_recruit .rc-jumpnav .business-card__image {
      aspect-ratio: 1.186;
    }
    body:not(.home) .bd-intro__photo {
      width: 100%;
      height: auto;
      aspect-ratio: 2.35;
      object-fit: cover;
    }
    body:not(.home) .sf-crosstalk__photo {
      height: auto;
      aspect-ratio: 2.55;
    }
    body:not(.home) .sf-crosstalk__photo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    body:not(.home) .rf-message__photo img {
      height: 100%;
      object-fit: cover;
    }
    body:not(.home) .rc-data__icon {
      object-fit: contain;
    }
     
    body:not(.home) .flow-company {
      position: relative;
    }
    body:not(.home) .flow-company__photos-marquee {
      max-height: 470px;
    }
    body:not(.home) .flow-company .flow-collage {
      width: 100vw;
      flex: 0 0 100vw;
      grid-template-columns: 0.95fr 0.8fr 0.75fr 1.25fr;
      gap: 3%;
    }
    body:not(.home) .flow-company .flow-collage img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 8px;
    }
    body:not(.home) .flow-company .flow-collage img:nth-child(1) {
      aspect-ratio: 1.10655;
      margin-top: 2vw;
    }
    body:not(.home) .flow-company .flow-collage img:nth-child(2) {
      aspect-ratio: 1.29026;
      margin-top: 8vw;
    }
    body:not(.home) .flow-company .flow-collage img:nth-child(3) {
      aspect-ratio: 0.68368;
      margin-top: 4vw;
    }
    body:not(.home) .flow-company .flow-collage img:nth-child(4) {
      aspect-ratio: 1.63806;
      margin-top: 0;
    }
    body:not(.home) .flow-company__word-marquee {
      position: absolute;
      inset: 28vw 0 auto;
      z-index: 3;
      height: auto;
      margin: 0;
      padding-block: 8px;
    }
     
    body:not(.home)
      :is(
        .bd-intro__character,
        .ctv-intro__mascot,
        .ns-life__mascot,
        .rc-paper__mascot,
        .rc-migration-mascot
      ) {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      width: auto;
      max-width: 100%;
    }
    body:not(.home) .bd-intro__character {
      position: relative;
      inset: auto;
      margin: -16px 0 0;
    }
    body:not(.home)
      :is(
        .bd-intro__character,
        .ctv-intro__mascot,
        .ns-life__mascot,
        .rc-paper__mascot,
        .rc-migration-mascot
      )
      > img {
      width: 110px;
      height: auto;
      max-height: none;
      object-fit: contain;
      margin: 0;
      transform: none;
    }
    body:not(.home)
      :is(
        .bd-intro__character,
        .ctv-intro__mascot,
        .ns-life__mascot,
        .rc-paper__mascot,
        .rc-migration-mascot
      )
      > :is(span, .flow-bubble) {
      position: relative;
      inset: auto;
      order: -1;
      flex: 0 0 104px;
      display: grid;
      place-content: center;
      width: 104px;
      min-width: 0;
      height: 104px;
      min-height: 0;
      margin: 0;
      padding: 8px;
      border: 2px solid #3a3e7f;
      border-radius: 50%;
      background: #fff;
      color: #3a3e7f;
      font-size: 12px;
      line-height: 1.55;
      text-align: center;
      transform: none;
    }
    body:not(.home)
      :is(
        .bd-intro__character,
        .ctv-intro__mascot,
        .ns-life__mascot,
        .rc-paper__mascot,
        .rc-migration-mascot
      )
      > :is(span, .flow-bubble)::after {
      content: "";
      position: absolute;
      inset: 50% -12px auto auto;
      width: 12px;
      height: 0;
      border: 0;
      border-top: 2px solid #3a3e7f;
      transform: none;
    }
    body:not(.home) .ctv-intro__mascot {
      position: relative;
      inset: auto;
      margin: 24px 0 0;
    }
    body:not(.home) .ctv-intro__grid {
      padding-bottom: 0;
    }
    body:not(.home) .ctv-intro {
      padding-bottom: 48px;
    }
    body:not(.home) .es-introduction__character img {
      width: 110px;
      height: auto;
      object-fit: contain;
    }
    body:not(.home) .es-capacity__characters img {
      width: 110px;
      height: auto;
      object-fit: contain;
    }
    body:not(.home) :is(.es-introduction__character, .es-capacity__characters) span {
      display: grid;
      place-content: center;
      width: 104px;
      height: 104px;
      padding: 8px;
      font-size: 12px;
      line-height: 1.55;
      border-width: 2px;
    }
     
    body:not(.home) .cp-cta--shared .cp-cta__scene--video {
      clip-path: none;
      overflow: hidden;
      isolation: isolate;
    }
    body:not(.home) .cp-cta__video-background {
      position: absolute;
      inset: 0;
    }
    body:not(.home) .cp-cta--shared .cp-cta__facts-set .cp-cta__fact {
      flex-basis: 190px;
      width: 190px;
    }
    body:not(.home) .cp-cta--shared .cp-cta__facts-set .flow-bubble {
      display: grid;
      place-content: center;
      width: 166px;
      height: 84px;
      padding: 12px;
      font-size: 13px;
      line-height: 1.55;
    }
    body:not(.home) .cp-cta--shared .cp-cta__facts-set .cp-cta__fact > img {
      width: 140px;
      height: auto;
    }
    body:not(.home) .cp-cta__facts-track {
      animation-duration: 18s;
    }
    body:not(.home) .flow-character__figure.flow-character__figure--all {
      margin-block: 28px;
    }
    body:not(.home) .flow-footer__character {
      width: 110px;
      gap: 16px;
    }
    body:not(.home) .flow-footer__character > img {
      width: 110px;
      height: auto;
      object-fit: contain;
    }
    body:not(.home) .flow-footer__character .flow-bubble {
      display: grid;
      place-content: center;
      width: 104px;
      height: 104px;
      padding: 8px;
      font-size: 12px;
      line-height: 1.55;
    }
     
    html.js body:not(.home) .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
  @media (max-width: 1024px) {
    body:not(.home)
      :is(
        .bd-intro__character,
        .ctv-intro__mascot,
        .ns-life__mascot,
        .rc-paper__mascot,
        .rc-migration-mascot
      ) {
      flex-direction: row;
      height: auto;
      min-height: 0;
      padding: 0;
    }
    body:not(.home)
      :is(
        .bd-intro__character,
        .ctv-intro__mascot,
        .ns-life__mascot,
        .rc-paper__mascot,
        .rc-migration-mascot
      )
      > img {
      position: static;
      inset: auto;
      flex: 0 0 110px;
    }
    body:not(.home) .es-introduction__character {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      width: 110px;
      height: auto;
      right: 0;
      bottom: 0;
    }
    body:not(.home) .es-introduction__character > :is(span, img) {
      position: static;
      inset: auto;
      margin: 0;
      transform: none;
    }
    body:not(.home) .es-capacity__characters {
      display: flex;
      gap: 20px;
      justify-content: center;
      height: auto;
    }
    body:not(.home) .es-capacity__characters > div {
      position: relative;
      inset: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      width: 110px;
      height: auto;
    }
    body:not(.home) .es-capacity__characters :is(span, img) {
      position: static;
      inset: auto;
      margin: 0;
      transform: none;
    }
  }
}

 
@layer site-overrides {
  @media (max-width: 1024px) {
     
    body:not(.home)
      main
      h2:is(.section-heading, [lang="en"]):not(.flow-character__title):not(#contact-title),
    body:not(.home) main h2:has(> small):not(.flow-character__title):not(#contact-title) {
      font-size: clamp(36px, 9.5vw, 48px);
      line-height: 1.08;
      letter-spacing: 0.065em;
      margin-top: 0;
      margin-bottom: 28px;
      word-break: normal;
      overflow-wrap: normal;
    }
    body:not(.home) main h2:is(.section-heading, [lang="en"]) > small,
    body:not(.home) main h2 > small {
      display: block;
      margin-top: 6px;
      font-size: 14px;
      line-height: 1.4;
      letter-spacing: 0.06em;
    }
    body:not(.home) .cp-section__eyebrow {
      margin: 0 0 8px;
      font-size: 15px;
      line-height: 1.3;
    }
    body.page_company .cp-jumpnav {
      position: static;
      margin: 0 0 32px;
      box-shadow: none;
    }
    body.page_company .cp-jumpnav__list {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 4px;
      width: 100%;
      padding: 0;
      margin: 0;
      overflow: visible;
    }
    body.page_company .cp-jumpnav__list li {
      width: auto;
      min-width: 0;
    }
    body.page_company .cp-jumpnav__list a {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      min-height: 46px;
      padding: 10px 8px;
      font-size: 14px;
    }
    body.page_company .cp-company-content > .cp-section > .cf-container {
      padding-inline: 0;
    }
    body.page_company main .cp-intro {
      padding-block: 40px;
    }
    body.page_company .cp-intro__inner {
      gap: 24px;
    }
    body.page_company .cp-intro__description {
      line-height: 1.8;
    }
    body.page_company .cp-company-content .cp-section {
      padding-block: 32px;
      scroll-margin-top: 84px;
    }
    body.page_company .cp-company-content .cp-section:first-child {
      padding-top: 8px;
    }
    body.page_company .cp-greeting__body p {
      font-size: 15px;
      line-height: 1.85;
      margin: 0 0 16px;
    }
    body.page_company .cp-greeting__body .cp-greeting__script {
      font-size: 20px;
      line-height: 1.5;
      margin-bottom: 20px;
    }
    body.page_company .cp-greeting__body .cp-greeting__sign {
      margin-bottom: 0;
    }
    body.page_company .cp-greeting__photo {
      padding: 0;
      width: min(100%, 260px);
      margin-inline: auto;
    }
    body.page_company .cp-profile-photo {
      margin-bottom: 24px;
    }
     
    body:not(.home) .cp-table {
      display: table;
      width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
    }
    body:not(.home) .cp-table tbody {
      display: table-row-group;
    }
    body:not(.home) .cp-table tr {
      display: table-row;
      padding: 0;
      border: 0;
    }
    body:not(.home) .cp-table :is(th, td) {
      display: table-cell;
      padding: 14px 10px;
      border: 0;
      border-bottom: 1px solid #dadada;
      vertical-align: top;
      text-align: left;
      font-size: 14px;
      line-height: 1.75;
      overflow-wrap: anywhere;
    }
    body:not(.home) .cp-table th {
      width: 26%;
      background: #f6f5f1;
      font-weight: 700;
    }
    body:not(.home) .cp-table td {
      width: 74%;
    }
    body:not(.home) .cp-table tr:first-child :is(th, td) {
      border-top: 1px solid #dadada;
    }
    body.page_company main .cp-history li {
      gap: 8px;
      padding-block: 16px;
    }
    body.page_company main .cp-history li::before {
      top: 26px;
    }
    body.page_company main .cp-history li:not(:last-child)::after {
      top: 34px;
      bottom: -26px;
    }
    body.page_company .cp-partners-group {
      margin-bottom: 32px;
    }
    body.page_company .cp-partners-group:last-child {
      margin-bottom: 0;
    }
    body.page_company .cp-partners-group h3 {
      margin-bottom: 16px;
      font-size: 18px;
      line-height: 1.6;
    }
    body.page_company .cp-partner-card {
      padding: 16px 0;
    }
    body.page_company .cp-partner-card h4 {
      margin: 0 0 8px;
    }
    body.page_company .cp-partner-card p {
      margin: 0 0 8px;
      line-height: 1.75;
    }
     
    body:not(.home) .cp-section {
      padding-block: 48px;
    }
    body:not(.home) :is(.flow-contact, .flow-character) {
      padding-block: 48px;
    }
    body:not(.home) .flow-company {
      padding-block: 24px 48px;
      background: #f6f5f1;
    }
    body:not(.home) .flow-company:has(> .character-block--company-workers) {
      padding-bottom: 164px;
    }
    body:not(.home) .flow-company__photos-marquee {
      height: clamp(180px, 45vw, 360px);
    }
    body:not(.home) .flow-company__word-marquee {
      top: 25vw;
    }
    body:not(.home) .flow-company__word {
      font-family: "Josefin Sans", sans-serif;
      font-size: clamp(36px, 7vw, 64px);
      font-weight: 700;
      letter-spacing: 0.08em;
      line-height: 1.2;
      color: #ee822c;
      white-space: nowrap;
    }
    body:not(.home) .flow-company > .character-block--company-workers {
      position: absolute;
      inset: auto 20px 16px auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 110px;
      max-width: 110px;
      height: auto;
      padding: 0;
      margin: 0;
      gap: 16px;
      z-index: 4;
    }
    body:not(.home) .character-block--company-workers > img {
      display: block;
      position: static;
      width: 110px;
      height: auto;
      max-height: none;
      object-fit: contain;
      margin: 0;
      transform: none;
    }
    body:not(.home) .character-block--company-workers .flow-bubble {
      position: relative;
      inset: auto;
      transform: none;
      display: grid;
      place-content: center;
      flex: 0 0 104px;
      width: 104px;
      height: 104px;
      min-height: 0;
      margin: 0;
      padding: 8px;
      border: 2px solid #3a3e7f;
      border-radius: 50%;
      background: #fff;
      color: #3a3e7f;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.55;
      text-align: center;
    }
    body:not(.home) .character-block--company-workers .flow-bubble::after {
      content: "";
      position: absolute;
      inset: 100% auto auto 50%;
      width: 0;
      height: 14px;
      border: 0;
      border-left: 2px solid #3a3e7f;
      transform: none;
    }
    body:not(.home) .flow-character__inner {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
    }
    body:not(.home) .flow-character__figure.flow-character__figure--all {
      position: relative;
      display: block;
      width: min(100%, 340px);
      height: auto;
      min-height: 0;
      aspect-ratio: auto;
      margin: 24px auto;
    }
    body:not(.home) .flow-character__figure--all .flow-character__group {
      position: static;
      display: block;
      width: 100%;
      height: auto;
      max-width: 100%;
      object-fit: contain;
      opacity: 1;
      visibility: visible;
      transform: none;
    }
    body:not(.home) .flow-character__button {
      margin-top: 0;
    }
  }
  @media (max-width: 1024px) {
    body.page_company main .cp-history li > span {
      font-size: 15px;
      line-height: 1.75;
      padding-block: 0;
    }
    body.page_company main .cp-history time strong {
      font-size: 20px;
    }
    body:not(.home) :is(.rc-jobtable, .rc-dorm__table) {
      display: table;
      width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
    }
    body:not(.home) :is(.rc-jobtable, .rc-dorm__table) tr {
      display: table-row;
    }
    body:not(.home) :is(.rc-jobtable, .rc-dorm__table) :is(th, td) {
      display: table-cell;
      padding: 14px 10px;
      vertical-align: top;
      font-size: 14px;
      line-height: 1.75;
      overflow-wrap: anywhere;
    }
    body:not(.home) :is(.rc-jobtable, .rc-dorm__table) th {
      width: 26%;
    }
    body:not(.home) :is(.rc-jobtable, .rc-dorm__table) td {
      width: 74%;
    }
  }
}

 
@layer site-overrides {
  @media (max-width: 1024px) {
    body.page_company main .cp-intro__mark {
      margin-block: 8px 16px;
    }
    body.page_company .cp-jumpnav {
      background: rgb(245, 243, 239);
      padding: 16px 20px;
    }
    body.page_company .cp-jumpnav__list a {
      justify-content: flex-start;
      text-align: left;
      border: 0;
      border-radius: 0;
      background: transparent;
      padding-inline: 0;
    }
    body.page_company .cp-jumpnav__list a::after {
      display: none;
    }
    body.page_company .cp-greeting {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    body.page_company .cp-greeting__body {
      display: contents;
    }
    body.page_company .cp-greeting__body > p {
      margin-bottom: 0;
    }
    body.page_company .cp-greeting__photo {
      order: 1;
    }
    body.page_company .cp-greeting__body .cp-greeting__sign {
      order: 2;
      width: min(100%, 260px);
      margin: -8px auto 0;
      text-align: right;
    }
     
    body.page_company .flow-company {
      background: #fff;
    }
  }
}

 
@layer site-overrides {
  @media (max-width: 1024px) {
    body.page_escrap main .es-flow__link > span {
      width: 30px;
      height: 30px;
      min-width: 30px;
      flex: 0 0 30px;
      font-size: 18px;
      line-height: 1;
    }
    body.page_escrap main .es-introduction__visual {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 110px;
      gap: 16px;
      align-items: center;
      height: auto;
      min-height: 0;
      margin-top: 0;
    }
    body.page_escrap main .es-introduction__visual > .es-introduction__sub {
      display: none;
    }
    body.page_escrap main .es-introduction__main {
      position: static;
      width: 100%;
      height: auto;
      margin: 0;
      aspect-ratio: 390 / 518;
      object-fit: cover;
    }
    body.page_escrap main .es-introduction__character {
      position: static;
      width: 110px;
      height: auto;
      margin: 0;
    }
    body:not(.home) .sf-card__meta > span {
      display: block;
      white-space: nowrap;
    }
    body.page_crosstalk .ctv-members__grid > a {
      padding: 24px 16px 60px;
    }
    body.page_crosstalk .ctv-members__grid > a > span {
      max-width: 100%;
      font-size: clamp(12px, 3.6vw, 16px);
      letter-spacing: 0;
      line-height: 1.5;
      padding: 8px;
      white-space: nowrap;
    }
    body.page_crosstalk .ctv-members__grid > a > div {
      gap: 8px;
      margin-top: 24px;
    }
    body.page_crosstalk .ctv-members__grid > a[href="#talk01"] figure {
      flex: 0 1 120px;
    }
    body.page_crosstalk .ctv-members__grid > a[href="#talk01"] figure img {
      width: 100%;
      max-width: 120px;
      height: auto;
    }
    body.page_crosstalk .ctv-members__grid > a[href="#talk02"] figure {
      flex: 1 1 0;
    }
    body.page_crosstalk .ctv-members__grid > a[href="#talk02"] figure img {
      width: 100%;
      max-width: 80px;
      height: auto;
    }
    body.page_crosstalk .ctv-members__grid > a > div > b {
      font-size: 20px;
    }
    body.page_crosstalk .ctv-members__grid figcaption {
      font-size: 12px;
      letter-spacing: 0;
      line-height: 1.5;
    }
  }
  @media (min-width: 1025px) {
    .sf-card__meta > span + span::before {
      content: "　";
    }
  }
  @media (max-width: 1024px) {
    body:not(.home) .sf-card__meta > span {
      margin: 0;
      padding: 0;
      line-height: 1.5;
    }
    body.page_staff .sf-card__name {
      font-size: 16px;
      white-space: nowrap;
    }
  }
}
