@charset "utf-8";
/* =============================
   Site Default CSS setting
============================= */
@media (max-width: 1000px) {
  .ksgl-pagetop {
    display: none;
  }
}

/* =============================
   Section
============================= */
section {
  width: 100%;
  padding: 50px 0;
}

.section-inner {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  section {
    padding: 30px 0;
  }
}

/* =============================
   Common Utility
============================= */
section .no-break {
  white-space: nowrap;
  font-weight: inherit;
  font-size: inherit;
  font-family: inherit;
}

/* =============================
   FONT 
============================= */
section,
section h1,
section h2,
section h3,
section h4,
section p,
section a,
section div,
section b {
  font-family: "Noto Sans JP", sans-serif;
}

section p,
section a {
  font-weight: 500;
}

/* 例）About “KOGANEI” */
.section-title-catch,
.section-title-catch span {
  font-family: "Barlow", sans-serif; /*'Barlow Semi Condensed',*/
  font-weight: 600;
}

/* 例）About “KOGANEI” ← [”]の部分だけ */
.section-title-catch span.quote-bahnschrift {
  font-family: "Bahnschrift", "Teko", "Barlow Semi Condensed", sans-serif;
  line-height: 0.7;
}

/* 数字で見るの数字部分 */
.number {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
}

/* hero キャッチコピー アンチック*/
.overlay-text p,
.hero-title span {
  font-family: "Shippori Antique", sans-serif;
  font-weight: 400;
}
/* hero キャッチコピー 漢字部分が細いため、Noto sans に */
.overlay-text p span,
.hero-title b {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}
/* hero F1,MotoGP,IndyCar */
.hero-f1 span {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
}

/* =============================
   Section title
============================= */

.section-title {
  position: relative;
  z-index: 20;
  margin-bottom: 2em;
  color: #0853a7;
}

.section-title-catch {
  font-size: 3.75em; /* 約60px */
  position: relative;
  display: inline-block;
  padding-bottom: 0; /* 下パディング削除 */
  margin-bottom: 0em; /* 軽い調整用 */
  line-height: 1; /* 行間を圧縮 */
  color: #0853a7;
  z-index: 2;
}

.section-title-catch span.section-title-catch_em {
  color: #111;
  font-size: 1.05em;
}

.section-title-catch::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12em;
  transform: translateY(100%); /* テキストのすぐ下に線 */
  height: 2px;
  background-color: #0853a7;
  width: calc(100% + 80px);
  z-index: -1;
}

.section-title-left {
  text-align: left;
}

.section-title-left .section-title-catch::after {
  left: 0;
}

.section-title-right {
  text-align: right;
  margin-left: auto;
}

.section-title-right {
  position: relative;
  text-align: right;
}
.section-title-right .section-title-catch::after {
  left: auto;
  right: 0;
}

.section-title-text {
  font-size: 1.25em; /* 約20px */
  font-weight: 500;
  margin-top: 0.2em;
  color: #0853a7;
  line-height: 1;
}
@media (max-width: 767px) {
  .section-title-catch {
    font-size: calc(100vw / 13);
  }
  .section-title-text {
    font-size: 1em;
  }
}
@media (max-width: 640px) {
  .section-title-catch::after {
    width: calc(100% + 300px);
  }
  .section-title-catch {
    font-size: calc(100vw / 12);
  }
  .section-title-text {
    font-size: 0.9em;
  }
}

/* =============================
   Section Text
============================= */
.section-lead {
  color: #0853a7;
  font-weight: 700;
  margin-top: 60px;
  line-height: 1.6;
  font-size: 1.6em;
}

.section-text {
  color: #111111;
  font-size: 1em;
}

@media (max-width: 640px) {
  .section-lead {
    margin-top: 60px;
    line-height: 1.6;
    font-size: 1.3em;
  }

  .section-text {
    color: #111111;
    font-size: 1em;
  }
}
@media (max-width: 480px) {
  .section-lead {
    margin-top: 40px;
    font-size: 1.15em;
  }
}

/* =============================
セクションタイトル Animation
============================= */
.section-title-left .section-title-catch {
  transform: translateX(40px);
}
.section-title-left .section-title-text {
  transform: translateX(-40px);
}
.section-title-right .section-title-catch {
  transform: translateX(-40px);
}
.section-title-right .section-title-text {
  transform: translateX(40px);
}
.section-title-catch,
.section-title-text {
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.section-title-catch._visible,
.section-title-text._visible {
  opacity: 1;
  transform: translateX(0);
}

/* =============================
   External Link Button
============================= */
section .link-btnbox {
  padding: 20px 0 20px;
  text-align: right;
}
section .link-btnbox a {
  display: inline-block;
  height: 44px;
  line-height: 44px;
  background-color: #0852a7;
  background-image: url(/KSglobal/img/btn_arrow_circle.svg);
  background-position: 14px center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  padding: 0 30px 0 50px;
  border-radius: 30px;
  font-size: 1em;
}
section .link-btnbox a:link,
section .link-btnbox a:hover,
section .link-btnbox a:visited {
  color: #ffffff;
  text-decoration: none;
}
section .link-btnbox a:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  section .link-btnbox a {
    display: inline-block;
    height: 36px;
    line-height: 36px;
    background-position: 7px center;
    padding: 0 25px 0 40px;
    font-size: 0.9em;
  }
}

/* =============================
   Background
============================= */
/*
背景の斜線水色は各sectionのグラデーション背景をつないでいる
*/
/* --- 初期スタイル（ベース） --- */
.about {
  background: linear-gradient(155deg, #ffffff 49.9%, #d8e8e8 50%);
}
.numbers {
  background-color: #d8e8e8;
}
.recruit-movie {
  background: linear-gradient(16deg, #ffffff 61.9%, #d8e8e8 62%);
}
.interviews {
  background: linear-gradient(170deg, #ffffff 17.9%, transparent 18%),
    linear-gradient(190deg, #d8e8e8 79.9%, #ffffff 80%);
}

@media (min-width: 1920px) {
  .about {
    background: linear-gradient(166deg, #ffffff 49.9%, #d8e8e8 50%);
  }
  .recruit-movie {
    background: linear-gradient(12deg, #ffffff 45.9%, #d8e8e8 46%);
  }
  .interviews {
    background: linear-gradient(175deg, #ffffff 25.9%, transparent 26%),
      linear-gradient(188deg, #d8e8e8 74.9%, #ffffff 75%);
  }
}

@media (max-width: 1200px) {
  .interviews {
    background: linear-gradient(170deg, #ffffff 12.9%, transparent 13%),
      linear-gradient(190deg, #d8e8e8 85.9%, #ffffff 86%);
  }
}

@media (max-width: 767px) {
  .about {
    background: linear-gradient(165deg, #ffffff 49.9%, #d8e8e8 50%);
  }
  .interviews {
    background: linear-gradient(170deg, #ffffff 10.9%, transparent 11%),
      linear-gradient(190deg, #d8e8e8 89.9%, #ffffff 90%);
  }
}

@media (max-width: 640px) {
  .about {
    background: linear-gradient(165deg, #ffffff 55.9%, #d8e8e8 56%);
  }
}

@media (max-width: 590px) {
  .interviews {
    background: linear-gradient(170deg, #ffffff 10.9%, transparent 11%),
      linear-gradient(190deg, #d8e8e8 79.9%, #ffffff 80%);
  }
}

@media (max-width: 480px) {
  .about {
    background: linear-gradient(155deg, #ffffff 65.9%, #d8e8e8 66%);
  }
  .interviews {
    background: linear-gradient(170deg, #ffffff 10.9%, transparent 11%),
      linear-gradient(190deg, #d8e8e8 93.9%, #ffffff 94%);
  }
}

/* =============================
   Animation Utility
============================= */

.breathing {
  animation: breathing-opacity 3s ease-in-out infinite;
}
@keyframes breathing-opacity {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

/* =============================
   Link Bnr
============================= */
.link_instagram {
  position: relative;
  display: block; /* 横幅を持たせるために block に */
  width: fit-content; /* 中身に合わせた幅 */
  margin-top: 20px;
  margin-left: auto;
  margin-right: 0;
}

.link_instagram a {
  display: inline-flex;
  align-items: center; /* テキストの上下中央揃え */
  gap: 12px; /* アイコンとテキストの間隔 */
  text-decoration: none;
  padding: 8px 30px 8px 20px;
  border-radius: 60px;
  border: 1px solid #e982ec;
  color: inherit;
  box-shadow: 0 0 5px #bbb;
  background: #fff;
}

.link_instagram a:link,
.link_instagram a:visited {
  color: #222;
}
.link_instagram a:hover {
  background-color: #d794da;
}

.link_instagram img {
  width: 25%;
  max-width: 44px;
  height: auto;
  display: block;
}

.link_instagram p {
  display: block;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.2;
  color: #222;
  margin: 0;
  padding: 0;
}
.link_instagram p span {
  font-weight: 700;
  font-size: 1.05em;
}

@media (max-width: 640px) {
  .link_instagram p {
    font-size: 0.95em;
  }
}

/* =============================
   Floating Menu
============================= */

.recruit-floatingmenu {
  position: absolute;
  right: 0%;
  left: auto;
  margin: 22px 15px 0 0;
}

.rec-flmenu-wrap {
  display: flex;
  gap: 4px;
}
.rec-flmenu-wrap-item {
  width: 230px;
}

.rec-flmenu-entry,
.rec-flmenu-mynavi {
  display: inline-block;
  width: 100%;
  height: 68px;
  background-color: #00a3df;
  text-align: center;
  border: 1px solid #ddd;
}
.rec-flmenu-entry:link,
.rec-flmenu-entry:hover,
.rec-flmenu-entry:visited {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5em;
  line-height: 68px;
  font-weight: 700;
}

.rec-flmenu-mynavi {
  margin-top: 4px;
  background-color: #ffffff;
}
.rec-flmenu-mynavi img {
  width: auto;
  height: 100%;
}

@media (max-width: 1280px) {
  .rec-flmenu-wrap-item {
    width: 40vw;
    max-width: 150px;
  }
  .rec-flmenu-entry,
  .rec-flmenu-mynavi {
    height: 43px;
  }
  .rec-flmenu-entry {
    height: 44px;
  }
  .rec-flmenu-entry:link,
  .rec-flmenu-entry:hover,
  .rec-flmenu-entry:visited {
    font-size: 1.2em;
    line-height: 42px;
  }
}

/* ========== PC用 ========== */
@media (min-width: 1000px) {
  .recruit-floatingmenu._fixed-show {
    position: fixed;
    top: 35px;
    right: 0;
    z-index: 999;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .recruit-floatingmenu._fixed-hide {
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 998;
  }

  .recruit-floatingmenu._menu-top {
    position: absolute;
    top: auto; /* 必要なら初期位置に調整 */
    right: 0;
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
  }
}

@media (min-width: 1280px) {
  .recruit-floatingmenu {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: top right; /* 右上から縮小 */
  }

  .recruit-floatingmenu._fixed-show {
    position: fixed;
    top: 35px;
    right: 0;
    z-index: 999;
    opacity: 1;
    transform: translateY(0) scale(0.6); /* ← ここで縮小 */
  }

  .recruit-floatingmenu._fixed-hide {
    opacity: 0;
    transform: translateY(-20px) scale(0.6); /* 非表示時も小さいまま */
    pointer-events: none;
    z-index: 998;
  }

  .recruit-floatingmenu._menu-top {
    position: absolute;
    top: auto; /* 必要なら指定 */
    right: 0;
    opacity: 1;
    transform: translateY(0) scale(1); /* ← 元の大きさに戻す */
    z-index: 1;
  }
}
/* ========== モバイル用 ========== */
@media (max-width: 999px) {
  .recruit-floatingmenu {
    position: fixed;
    bottom: -100px;
    right: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 100;
    padding-top: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
    margin: 0;
  }

  body.is-android .recruit-floatingmenu {
    padding-bottom: max(12px, 6.3dvh);
  }

  .recruit-floatingmenu._mobile-slidein {
    bottom: 0;
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFromBottom 0.6s ease-out forwards;
  }

  @keyframes slideUpFromBottom {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (min-width: 576px) and (max-width: 999px) {
  .recruit-floatingmenu {
    justify-content: flex-end; /* 親で右寄せ */
    display: flex;
    padding-right: 15px; /* 必要に応じて調整 */
    background: none; /* 背景をスマホと分けたいなら指定 */
  }

  .rec-flmenu-wrap {
    margin: 0;
  }
}

/* ========== スマホ下部スタイル（575px以下） ========== */
@media (max-width: 575px) {
  .recruit-floatingmenu {
    left: 0;
    bottom: 0;
    width: 100vw;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding-right: 0;
    padding-left: 0;
  }
  .rec-flmenu-wrap {
    display: inline-flex;
    margin: 0 auto;
  }
  .rec-flmenu-wrap-item {
    max-width: 140px;
  }
  .rec-flmenu-entry,
  .rec-flmenu-mynavi {
    height: 41px;
  }
  .rec-flmenu-mynavi {
    margin-top: 3px;
  }
  .rec-flmenu-entry:link,
  .rec-flmenu-entry:hover,
  .rec-flmenu-entry:visited {
    font-size: 1.1em;
    line-height: 41px;
  }
}

/* =============================
   Hero Overlay - Opening Animation
============================= */
.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0853a7;
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.8s ease;
  justify-content: flex-start;
  padding-top: 40vh;
}

.overlay-text {
  text-align: center;
  font-size: 3em;
  letter-spacing: 0.1em;
  line-height: 1.5;
  font-style: italic;
}

.overlay-line1,
.overlay-line2 {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 2.6s ease, transform 0.6s ease;
}
.overlay-line1 span,
.overlay-line2 span {
  font-size: 1.3em;
}
.overlay-line1 {
  margin-left: -1em;
}
.overlay-line2 {
  margin-left: 1em;
}

.overlay-line1.show {
  opacity: 1;
}

.overlay-line2.show {
  opacity: 1;
  transition-delay: 0.4s;
}

.overlay-line1.exit {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.overlay-line2.exit {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

@media (max-width: 1280px) {
  .overlay-text {
    font-size: calc(50vw / 15);
  }
}
@media (max-width: 1000px) {
  .overlay-text {
    font-size: calc(50vw / 14);
  }
}
@media (max-width: 767px) {
  .hero-overlay {
    padding-top: 37vh; /* お好みで調整（例：20〜25） */
  }
}
@media (max-width: 640px) {
  .overlay-text {
    font-size: calc(50vw / 10);
  }
}
@media (max-width: 480px) {
  .overlay-text {
    font-size: calc(50vw / 9);
    letter-spacing: 2px;
  }
  .overlay-line1 {
    margin-left: -0.2em;
  }
  .overlay-line2 {
    margin-left: 0.2em;
  }
}

/* =============================
   Hero structure
============================= */

.hero {
  width: 100%;
  padding: 0;
  overflow-x: hidden;
  background: url(./../img/rectop/key_visual.jpg) center top no-repeat,
    linear-gradient(
      175deg,
      #000849 0px,
      #000849 820px,
      #ffffff 820px,
      #ffffff 100%
    );
  background-size: auto auto;
}
.hero-inner {
  max-width: 1600px;
  margin: 0 auto;
}

h1.recruit-title {
  display: inline-block;
  position: absolute;
  right: 0;
  padding: 5px 15px 3px 0;
  margin: 0;
  line-height: 1;
  font-size: 0.7em;
  font-weight: 400;
  text-align: right;
  color: #ccc;
}

@media (min-width: 1600px) {
  .hero {
    background: url(./../img/rectop/key_visual.jpg) center top no-repeat,
      linear-gradient(
        175deg,
        #000849 0px,
        #000849 870px,
        #ffffff 870px,
        #ffffff 100%
      );
  }
}
@media (max-width: 1280px) {
  .hero {
    background: url(./../img/rectop/key_visual_md.jpg) center top no-repeat,
      linear-gradient(
        173deg,
        #000849 0px,
        #000849 58vw,
        #ffffff 58vw,
        #ffffff 100%
      );
    background-size: 100% auto;
  }
}
@media (max-width: 900px) {
  .hero {
    background: url(./../img/rectop/key_visual_md.jpg) center top no-repeat,
      linear-gradient(
        173deg,
        #000849 0px,
        #000849 92vw,
        #ffffff 92vw,
        #ffffff 100%
      );
    background-size: 100% auto;
  }
}
@media (max-width: 767px) {
  .hero {
    background: url(./../img/rectop/key_visual_md.jpg) center top no-repeat,
      linear-gradient(
        173deg,
        #000849 0px,
        #000849 92vw,
        #ffffff 92vw,
        #ffffff 100%
      );
    background-size: 100% auto;
  }
  h1.recruit-title {
    font-size: 0.6em;
  }
}
@media (max-width: 640px) {
  .hero {
    background: url(./../img/rectop/key_visual_sp.jpg) center top no-repeat,
      linear-gradient(
        168deg,
        #000849 0px,
        #000849 120vw,
        #ffffff 120vw,
        #ffffff 100%
      );
    background-size: 100% auto;
  }
}
@media (max-width: 480px) {
}

/* =============================
   Hero Title
============================= */

.hero-title {
  color: #ffffff;
  margin: 120px 0 0 150px;
  font-size: 2.6em;
  letter-spacing: 0.1em;
}
.hero-title span {
  display: block;
  font-style: italic;
  line-height: 1.35;
}
.hero-title span:nth-of-type(2) {
  margin: 0 0 0 1.5em;
}
.hero-title b {
  font-size: 1.3em;
}
@media (max-width: 1280px) {
  .hero-title {
    font-size: calc(50vw / 16);
    margin: 5vw 0 0 12vw;
  }
  .hero-title span:nth-of-type(2) {
    margin: 0 0 0 3em;
  }
}
@media (max-width: 900px) {
  .hero-title {
    display: inline-block;
    font-size: calc(50vw / 14);
    margin: 100px 0 0 7vw;
  }
  .hero-title span:nth-of-type(2) {
    margin: 0 0 0 1.5em;
  }
}
@media (max-width: 640px) {
  .hero-title {
    font-size: calc(50vw / 10);
    margin: 20vw 0 0 8vw;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: calc(50vw / 9.3);
    margin: 20vw 0 0 5vw;
  }
  .hero-title span:nth-of-type(2) {
    margin: 0 0 0 1.3em;
  }
}

/* =============================
   F1 Text
============================= */

.hero-f1 {
  margin: 25px 0 0 110px;
}
.hero-f1 span {
  display: block;
  font-size: 1.8em;
  line-height: 1;
  color: #90ebff;
  font-style: italic;
  letter-spacing: 1px;
}
.hero-f1 span:nth-of-type(1) {
  margin: 0 0 0 0.5em;
}
.hero-f1 span:nth-of-type(2) {
  margin: 0 0 0 0.25em;
}
@media (max-width: 1280px) {
  .hero-f1 {
    margin: 30px 0 0 8vw;
  }
  .hero-f1 span {
    font-size: calc(50vw / 20);
  }
}
@media (max-width: 900px) {
  .hero-f1 span {
    font-size: calc(50vw / 14);
  }
}
@media (max-width: 640px) {
  .hero-f1 span {
    font-size: calc(50vw / 8);
  }
}
@media (max-width: 480px) {
}

/* =============================
   Staff 3 Photos
============================= */
.hero-staff {
  position: relative;
  z-index: 1;
  width: 130%;
  margin: 13px 0 0 0;
  /*border: 1px dashed rgba(255, 255, 0, 0.2);
  border-width: 1px 0;*/
}
.hero-staff {
  position: relative;
  width: 100vw;
  left: 0;
  top: -100px;
  padding-top: 100px;
  height: 500px;
  overflow-x: hidden;
  overflow-y: visible;
  /*border: px dashed rgba(255, 0, 0, 0.2);
  border-width: 1px 0;*/
}
.hero-staff-item {
  width: 30%;
  max-width: 425px;
  position: relative;
  display: inline-block;
}
.hero-staff-item .hero-staff-photo {
  width: 100%;
  max-width: 425px;
  height: auto;
  max-height: 402px;
}
.hero-staff-item.hero-staff-photo img {
  width: 100%;
  max-width: 425px;
}
.hero-staff-item.hero-staff2 {
  top: -45px;
  margin-left: -6%;
}
.hero-staff-item.hero-staff3 {
  top: -90px;
  margin-left: -6%;
}
.hero-staff-photo {
  position: relative;
  vertical-align: top;
}

@media (min-width: 1501px) {
  .hero-staff-item.hero-staff2,
  .hero-staff-item.hero-staff3 {
    margin-left: -85px;
  }
}
@media (max-width: 1100px) {
  .hero-staff {
    height: 450px;
  }
  .hero-staff-item {
    width: 33%;
  }
}
@media (max-width: 900px) {
  .hero-staff {
    height: 58vw;
  }
  .hero-staff-item {
    width: 36.5%;
  }

  .hero-staff-item.hero-staff2,
  .hero-staff-item.hero-staff3 {
    margin-left: -6%;
  }
}
@media (max-width: 767px) {
  .hero-staff {
    height: 60vw;
  }
}
@media (max-width: 640px) {
  .hero-staff {
    height: 73vw;
  }
}
@media (max-width: 480px) {
}
@media (max-width: 375px) {
  .hero-staff-item {
    width: 35.5%;
  }
  .hero-staff-item.hero-staff2,
  .hero-staff-item.hero-staff3 {
    margin-left: -5%;
  }
}

/* =============================
   Hero4  Staff photo frame line
============================= */

/* 共通設定 */
.hero-line {
  position: absolute;
  background-color: #ddd;
  opacity: 0.7;
}
/* ===================== */
/* hero-staff1（左上） */
/* ===================== */
.hero-line-vertical.hs1 {
  top: -10px;
  left: 11.5%;
  width: 1px;
  height: 45%;
  transform-origin: bottom;
  transform: rotate(14deg) scaleY(0);
}

.hero-line-horizontal.hs1 {
  top: -6px;
  left: 22%;
  height: 1px;
  width: 0;
  transform-origin: left center;
}

/* ===================== */
/* hero-staff2（左上＋右下） */
/* ===================== */
/* 左上 横→縦 */
.hero-line-horizontal.hs2a {
  top: -6px;
  left: 22%;
  height: 1px;
  width: 0;
  transform-origin: right center;
}

.hero-line-vertical.hs2a {
  top: -6px;
  left: 22%;
  width: 1px;
  height: 0;
  transform-origin: top center;
  transform: rotate(14deg);
}

/* 右下 横→縦（グレー線） */
.hero-line-horizontal.hs2b {
  bottom: -6px;
  right: 22%;
  height: 1px;
  width: 0;
  transform-origin: left center;
}

.hero-line-vertical.hs2b {
  bottom: -6px;
  right: 22%;
  width: 1px;
  height: 0;
  transform: rotate(14deg);
  transform-origin: bottom center;
}

/* ===================== */
/* hero-staff3（右上） */
/* ===================== */
.hero-line-horizontal.hs3 {
  top: -6px;
  right: -10px;
  height: 1px;
  width: 140px;
  transform-origin: left center;
  transform: scaleX(0);
}

.hero-line-diagonal.hs3 {
  top: -6px;
  right: -10px;
  width: 1px;
  height: 0;
  transform-origin: top right;
  transform: rotate(14deg);
}
@media (max-width: 640px) {
  .hero-line-vertical.hs1 {
    top: -8px;
  }
  .hero-line-horizontal.hs3 {
    width: 60%;
  }
}

/* Animation */
/*初期無効化 JS側からタイミング制御*/
.hero-line {
  animation: none;
}

/* ==== hero-staff1 ==== */
.hero-line._line-animate.hero-line-vertical.hs1 {
  animation: hs1-vertical 0.2s ease-out forwards;
}
.hero-line._line-animate.hero-line-horizontal.hs1 {
  animation: hs1-horizontal 0.2s ease-out forwards;
  animation-delay: 0.2s;
}

/* ==== hero-staff2 左上 ==== */
.hero-line._line-animate.hero-line-horizontal.hs2a {
  animation: hs2a-horizontal 0.3s ease-out forwards;
}
.hero-line._line-animate.hero-line-vertical.hs2a {
  animation: hs2a-vertical 0.3s ease-out forwards;
  animation-delay: 0.3s;
}

/* ==== hero-staff2 右下 ==== */
.hero-line._line-animate.hero-line-horizontal.hs2b {
  animation: hs2b-horizontal 0.3s ease-out forwards;
  animation-delay: 0.2s;
}
.hero-line._line-animate.hero-line-vertical.hs2b {
  animation: hs2b-vertical 0.3s ease-out forwards;
  animation-delay: 0.5s;
}

/* ==== hero-staff3 ==== */
.hero-line._line-animate.hero-line-horizontal.hs3 {
  animation: hs3-horizontal 0.3s ease-out forwards;
  animation-delay: 0.2s;
}
.hero-line._line-animate.hero-line-diagonal.hs3 {
  animation: hs3-diagonal 0.3s ease-out forwards;
  animation-delay: 0.5s;
}
@keyframes hs1-vertical {
  to {
    transform: rotate(14deg) scaleY(1);
    height: 45%;
    opacity: 0.7;
  }
}
@keyframes hs1-horizontal {
  to {
    width: 30%;
    opacity: 0.7;
  }
}
@keyframes hs2a-horizontal {
  to {
    width: 100px;
    opacity: 0.7;
  }
}
@keyframes hs2a-vertical {
  to {
    height: 40px;
    opacity: 0.7;
  }
}
@keyframes hs2b-horizontal {
  to {
    width: 70px;
    opacity: 0.7;
  }
}
@keyframes hs2b-vertical {
  to {
    height: 40px;
    opacity: 0.7;
  }
}
@keyframes hs3-horizontal {
  to {
    transform: scaleX(1);
    opacity: 0.7;
  }
}
@keyframes hs3-diagonal {
  to {
    height: 140px;
    opacity: 0.7;
  }
}

/* =============================
   Crankshaft
============================= */
.hero-crankshaft-mask {
  position: absolute;
  z-index: 10;
  margin: 180px 0 0 0;
  padding: 0;
  right: 0;
  overflow: hidden;
  width: 60vw;
  height: auto;
}
.hero-crankshaft {
  position: relative;
  right: -80px;
  width: 75vw;
  max-width: 946px;
  height: auto;
}
@media (min-width: 1501px) {
  .hero-crankshaft-mask {
    width: 50vw;
    margin: 175px 0 0 0;
  }
}
@media (max-width: 1280px) {
  .hero-crankshaft-mask {
    width: 60vw;
    margin: 175px 0 0 0;
  }
}
@media (max-width: 900px) {
  .hero-crankshaft-mask {
    width: 70vw;
    margin: 48vw 0 0 0;
  }
}
@media (max-width: 767px) {
}
@media (max-width: 640px) {
  .hero-crankshaft-mask {
    width: 85vw;
    margin: 63vw 0 0 0;
  }
  .hero-crankshaft {
    right: -10vw;
    width: 100vw;
  }
}
@media (max-width: 480px) {
}

/* =============================
   Hero Animation
============================= */

/* アニメーション定義 
@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateX(200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}*/

/* hero-title アニメ用 */
.hero-title span {
  display: block;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 2.4s ease-out,
    transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-title span:nth-child(1) {
  transform: translateX(-50px); /* 左から */
}
.hero-title span._in {
  opacity: 1;
  transform: translateX(0);
}

/* hero-f1 */
.hero-f1 span {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.hero-f1 span._in {
  opacity: 1;
  transform: translateX(0);
}

/* hero-staff個別アニメ（初期状態） */
.hero-staff1,
.hero-staff2,
.hero-staff3 {
  opacity: 0;
  transform: translateY(70px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  will-change: transform, opacity;
}

/* 個別の初期位置調整 */
.hero-staff2 {
  transform: translateX(-70px);
}

.hero-staff3 {
  transform: translateY(-70px);
}

/* アニメ発火後（共通） */
.hero-staff1._in,
.hero-staff2._in,
.hero-staff3._in {
  opacity: 1;
  transform: none;
}

/* 白いshineエフェクト */
.hero-staff-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0; /* 初期は非表示 */
}

.hero-staff-item._shine::after {
  animation: shine-move 0.6s ease-out forwards,
    shine-fade 0.4s ease-out 0.3s forwards; /* ← 遅延フェードアウト */
}

@keyframes shine-move {
  0% {
    left: -100%;
    opacity: 0.9;
  }
  100% {
    left: 10%;
    opacity: 0.5;
  }
}

@keyframes shine-fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* hero-crankshaft 最後に登場 */
.hero-crankshaft {
  transform: translate(200px, -160px); /* 初期：右上から */
  opacity: 0;
  transition: transform 2s ease, opacity 0.5s ease;
}

.hero-crankshaft._in {
  transform: translate(0, 0);
  opacity: 1;
}

.about {
  margin-top: 0;
  padding-top: 0;
}
.about .section-lead b {
  position: relative;
  display: inline;
  background: linear-gradient(
    to bottom,
    transparent 74%,
    #ffeb3b 74%,
    /* 黄色線：線の上端 */ #ffeb3b 100%
  );
}
section.about .play-button {
  position: absolute;
  left: 46%;
  top: 47%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
section.about .play-button img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 20vw;
  max-height: 100px;
}
.about-movie-bg {
  position: relative;
  z-index: 0;
}

@media (max-width: 1000px) {
  .about {
    margin-top: 0;
    padding-top: 0;
  }
}
@media (max-width: 767px) {
}

/* =============================
   Number Grid
============================= */

.number-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1%;
  justify-content: center;
}

.number-box {
  max-width: 270px;
  flex: 0 0 24%;
  background-color: #ffffff;
  margin-bottom: 12px;
}

.number-box-inner {
  padding: 50px 2% 15px;
  text-align: center;
  background-color: #ffffff;
}

.label {
  background-color: #0853a7;
  color: white;
  font-weight: 500;
  padding: 0.6em 0;
  font-size: calc(100vw / 46);
  margin: 0;
  text-align: center;
  line-height: 1;
}

.number {
  position: relative;
  font-size: calc(100vw / 10);
  line-height: 0.7;
  margin: 0;
  padding: 0;
  letter-spacing: 0.03em;
  color: #0853a7;
}

.unit {
  font-size: 1.2em;
  font-weight: 700;
  margin: 10px 0 0;
  padding: 0 4% 0 0;
  color: #0853a7;
  text-align: right;
  line-height: 1.3;
}
.unit sup {
  font-size: 0.8rem;
}

.annotation {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: right;
  font-size: 0.8em;
  font-weight: 400;
}

@media (min-width: 1160px) {
  .number {
    font-size: calc(1160px / 10);
  }
  .label {
    font-size: calc(1160px / 46);
  }
}
@media (max-width: 767px) {
  .number-box-inner {
    padding: 5vw 2% 2vw;
  }
  .number {
    font-size: calc(100vw / 9);
  }
  .label {
    font-size: 1.2em;
  }
  .unit {
    font-size: 1.2em;
  }
}
@media (max-width: 640px) {
  .number {
    font-size: calc(100vw / 9);
  }

  .number-grid {
    justify-content: space-between;
  }
  .label {
    font-size: 1.05em;
  }
  .unit {
    font-size: 1em;
  }
  .number-box {
    flex: 0 0 20%;
  }
  .number-box._middle {
    flex: 0 0 24%;
  }
  .number-box._long {
    flex: 0 0 28%;
  }
}
@media (max-width: 480px) {
  .number-grid {
    justify-content: center;
  }
  .label {
    font-size: 1em;
  }
  .unit {
    font-size: 0.9em;
  }
  .number-box {
    flex: 0 0 29%;
  }
  .number-box._middle {
    flex: 0 0 28%;
  }
  .number-box._middle._splong {
    flex: 0 0 36%;
  }
  .number-box._long {
    flex: 0 0 40%;
  }
  .number {
    font-size: calc(100vw / 7);
  }
}

section.recruit-movie .play-button {
  position: absolute;
  left: 54%;
  top: 47%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
section.recruit-movie .play-button img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 20vw;
  max-height: 100px;
}
.recruit-movie-bg {
  position: relative;
}

.current_movname,
.switch_movname {
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 1;
}
.current_movname {
  text-align: left;
  font-size: 1em;
  margin-bottom: 5px;
  padding-left: 6%;
  font-weight: 700;
}
.switch_movname {
  text-align: right;
  font-size: 1em;
  margin-top: 8px;
}

@media (max-width: 767px) {
}
@media (max-width: 640px) {
  .current_movname {
    font-size: 0.86em;
  }
  .switch_movname {
    font-size: 0.8em;
  }
}
@media (max-width: 480px) {
}

/* =============================
   Interview Grid (4x2 layout)
============================= */

.interview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.interview-card {
  padding: 0px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.interview-title {
  position: relative;
  width: 85%;
  height: 270px;
  z-index: 1;
  padding: 16px 0 0 16px;
  color: ＃FFFFFF;
}
.interview-card2 .interview-title,
.interview-card3 .interview-title,
.interview-card6 .interview-title,
.interview-card7 .interview-title {
  background-color: #0852a7;
}
.interview-card1 .interview-title,
.interview-card4 .interview-title,
.interview-card5 .interview-title,
.interview-card8 .interview-title {
  background-color: #076581;
}
.interview-title .interview-dept {
  color: #ffffff;
  font-size: 1.2em;
  line-height: 1;
  font-weight: 500;
}
.interview-title .interview-year {
  color: #ffffff;
  font-size: 0.9em;
  margin-top: 5px;
  font-weight: 400;
}

.interview-image-wrapper {
  position: absolute;
  z-index: 5;
  margin-top: 3em;
  margin-left: calc(5.5em + 16px);
  width: 100%;
  max-width: 449px;
}

.interview-image-wrapper img {
  width: 100%;
  height: auto;
}

section.interviews .play-button {
  position: absolute;
  top: 35%;
  left: 20%;
  transform: translate(-50%, -50%);
}
section.interviews .play-button img {
  display: block;
  width: 100%;
  max-width: 100px;
  height: 16vw;
  max-height: 100px;
}

.interview-comments {
  position: relative;
  z-index: 8;
  margin-top: -20px;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.interview-comment {
  display: inline-block;
  background-color: white;
  border: 1px solid #aaa;
  padding: 8px 10px;
  font-weight: bold;
  font-size: 1.2em;
  width: fit-content;
  line-height: 1;
  margin: 0;
  color: #111;
}

.interview-comment.second {
  margin: 0 0 0 5px;
}

/*インタビュー Animation*/
.interview-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.interview-card.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1130px) {
  .interview-title {
    width: 85%;
    height: 25vw;
  }
  .interview-image-wrapper {
    width: 85%;
    height: 22vw;
  }
  .interview-comments {
    margin-top: -15px;
    font-size: 1em;
  }
}
@media (max-width: 767px) and (min-width: 591px) {
  .interview-title .interview-dept {
    display: inline-block;
    font-size: 1.1em;
  }
  .interview-title .interview-year {
    display: inline-block;
    font-size: 0.9em;
    margin-top: 0px;
    margin-left: 1em;
  }
  .interview-image-wrapper {
    margin-left: 2em;
    width: 90%;
    height: 14vw;
  }
  section.interviews .play-button {
    top: 55%;
    left: 20%;
    transform: translate(-50%, -50%);
  }
  section.interviews .play-button img {
    max-width: 80px;
  }
  .interview-comments {
    margin-left: 10px;
    margin-top: -5px;
    font-size: 0.9em;
  }
}
@media (max-width: 640px) and (min-width: 591px) {
  .interview-title {
    width: 95%;
    height: 30vw;
    padding: 10px 0 0 12px;
  }
  .interview-image-wrapper {
    margin-top: 2.5em;
  }
  .interview-comments {
    margin-top: -15px;
    font-size: calc(50vw / 25);
  }
  section.interviews .play-button {
    top: 65%;
  }
  section.interviews .play-button img {
    max-width: 70px;
  }
}
@media (max-width: 590px) {
  .interview-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  .interview-card1 {
    order: 1;
  }
  .interview-card2 {
    order: 2;
  }
  .interview-card3 {
    order: 4;
  }
  .interview-card4 {
    order: 3;
  }
  .interview-card5 {
    order: 5;
  }
  .interview-card6 {
    order: 6;
  }
  .interview-card7 {
    order: 8;
  }
  .interview-card8 {
    order: 7;
  }
  .interview-title {
    width: 90%;
    height: 30vw;
  }
  .interview-title .interview-dept {
    font-size: 1em;
  }
  .interview-title .interview-year {
    font-size: 0.8em;
  }
  .interview-image-wrapper {
    margin-left: none;
    margin-top: 1em;
    right: 0;
    width: 50%;
    height: 26vw;
  }
  .interview-comments {
    margin-top: -40px;
    margin-left: 5px;
  }
  .interview-comment {
    padding: 6px 6px;
    font-size: calc(100vw / 30);
  }
  section.interviews .play-button {
    top: 35%;
    left: 23%;
  }
  section.interviews .play-button img {
    max-width: 60px;
  }
}
@media (max-width: 480px) {
}

/* =============================
   Talent Section
============================= */
.talent-scroll {
  overflow: hidden;
  height: auto;
  max-height: 394px;
  width: auto;
  aspect-ratio: 1600 / 394;
  min-height: 200px;
  background-color: #333;
}
section.talent .talent-img {
  display: flex;
  width: max-content;
  animation: scroll-left-img 30s linear infinite;
  height: 100%;
  will-change: transform;
}

section.talent .talent-img img {
  height: 100%;
  aspect-ratio: 1600 / 394;
  flex-shrink: 0;
}
@keyframes scroll-left-img {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (min-width: 1600px) {
  .talent-scroll {
    min-width: 100%;
  }
}

/* =============================
   Factory Grid (2 columns)
============================= */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.factory-item-title {
  color: #111;
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 10px;
}

/* =============================
   Map
============================= */
.factory-item-map .embed_map {
  width: 100%;
  height: 200px;
  margin-bottom: 4px;
}

.factory-item-map a:link,
.factory-item-map a:hover,
.factory-item-map a:visited {
  font-size: 0.9em;
  font-weight: 400;
  color: #333;
  line-height: 1.3;
}

@media (max-width: 1000px) {
}
@media (max-width: 767px) {
  .factory-grid {
    display: block;
    max-width: 575px;
    margin: 40px auto 0px;
  }
  .factory-item2 {
    margin-top: 30px;
  }
}
@media (max-width: 640px) {
  .factory-item-title {
    font-size: 1.15em;
  }
  .factory-item-map a:link,
  .factory-item-map a:hover,
  .factory-item-map a:visited {
    font-size: 0.8em;
    line-height: 1.3;
  }
}
@media (max-width: 480px) {
}

section.entry {
  padding: 100px 0;
  background: linear-gradient(155deg, #d0ebf4 49.9%, #b7e0f4 50%);
}

.section-inner {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

.entry-btnbox {
  padding: 40px 0 30px;
}
.entry-btnbox a {
  position: relative;
  display: inline-block;
  width: 48%;
  height: 90px;
  background-image: url(/KSglobal/img/btn_arrow_circle.svg);
  --base-pos: 20px;
  background-position: var(--base-pos) center;
  background-repeat: no-repeat;
  background-size: 46px 46px;
  padding-left: 90px;
  line-height: 90px;
  border-radius: 50px;
  font-size: 2em;
  vertical-align: top;
}
.entry-btnbox a:link,
.entry-btnbox a:hover,
.entry-btnbox a:visited {
  color: #ffffff;
  text-decoration: none;
}
.entry-btnbox a:hover {
  opacity: 0.8;
}

.entry-btnbox a.btn_requirements {
  background-color: #4d4d4d;
  margin: 0 3% 0 0;
}
.entry-btnbox a.btn_entry {
  background-color: #0852a7;
  animation: arrowWiggle 2s ease-in-out infinite;
}

@media (max-width: 1000px) {
  .entry-btnbox a.btn_requirements {
    width: 42%;
  }
  .entry-btnbox a.btn_entry {
    width: 54%;
  }
}
@media (max-width: 767px) {
  section.entry {
    padding: 80px 0;
    background: linear-gradient(135deg, #d0ebf4 49.9%, #b7e0f4 50%);
  }
  .entry-btnbox a {
    height: 75px;
    line-height: 75px;
    background-size: 36px 36px;
    padding-left: 60px;

    font-size: 1.6em;
  }
}
@media (max-width: 640px) {
  .entry-btnbox a {
    display: block;

    height: 70px;
    line-height: 70px;
    background-size: 36px 36px;
    --base-pos: 12px;
    padding-left: 65px;

    font-size: 1.6em;
  }
  .entry-btnbox a.btn_requirements {
    width: 80%;
    margin: 0 auto 30px;
  }
  .entry-btnbox a.btn_entry {
    margin: 0 auto;
    width: 80%;
  }
}
@media (max-width: 480px) {
  section.entry {
    padding: 40px 0;
    background: linear-gradient(125deg, #d0ebf4 49.9%, #b7e0f4 50%);
  }
  .entry-btnbox a {
    font-size: 1.3em;
  }
  .entry-btnbox a.btn_requirements {
    width: 100%;
    margin-bottom: 20px;
  }
  .entry-btnbox a.btn_entry {
    width: 100%;
  }
}

/* 申し込みボタン Animation */
@keyframes arrowWiggle {
  0% {
    background-position: calc(var(--base-pos) - 5px) center;
  }
  50% {
    background-position: calc(var(--base-pos) + 5px) center;
  }
  100% {
    background-position: calc(var(--base-pos) - 5px) center;
  }
}
@keyframes arrowWiggle2 {
  0% {
    background-position: calc(var(--base-pos) + 5px) center;
  }
  50% {
    background-position: calc(var(--base-pos) - 5px) center;
  }
  100% {
    background-position: calc(var(--base-pos) + 5px) center;
  }
}

/* =============================
   Modal
============================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  padding: 0;
  width: 80%;
  max-width: 1200px;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: none;
  aspect-ratio: 16/9;
}

/* iframeのサイズをそのまま維持 */
.modal-content iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* クローズボタンを画面右上などに表示 */
.close {
  position: fixed; /* modal-contentの外なので fixed */
  top: 10px;
  right: 30px;
  font-size: 60px;
  font-weight: 500;
  cursor: pointer;
  color: #aaa;
  z-index: 1001; /* modalより上 */
}

@media (max-width: 1000px) {
}
@media (max-width: 767px) {
}
@media (max-width: 640px) {
  .modal-content {
    width: 100%;
    max-width: 900px;
    max-height: none;
    aspect-ratio: 16/9;
  }
  .close {
    font-size: 40px;
    font-weight: normal;
    color: #ccc;
    z-index: 1001;
  }
}
@media (max-width: 480px) {
}
