html,
body {
  overflow-x: hidden;
}
.sp {
  display: none;
}
@media (max-width: 767px) {
  .pc {
    display: none;
  }
  .sp {
    display: flex;
  }
}

/*fv*/
.top-fv {
  position: relative;
  width: 100%;
  height: 60.4vw;
  overflow: hidden;
}
.fv__top-inner {
  position: relative;
  z-index: 1;
  top: 0;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.fv__main {
  width: 50%;
  padding: 14vw 4.17vw 5vw;
}
.fv__main--top-img {
  width: 37.5vw;
  height: 25vw;
  display: block;
  margin: 0 auto;
}
.fv__vector {
  width: 0.9vw;
  height: 2.91vw;
  margin-bottom: -0.8vw;
  margin-right: 0.42vw;
}
.fv__vector:nth-child(2) {
  margin-left: 0.42vw;
  margin-right: 0;
}
.fv__main--top-sub-title {
  font-family: "Noto Sans JP";
  font-weight: 700;
  font-size: 1.94vw;
  line-height: 100%;
  letter-spacing: 0.04em;
  color: #f2f4fa;
  margin-top: 3.47vw;
}
.fv__main--top-title {
  font-family: "Noto Sans JP";
  font-weight: 700;
  font-size: 2.8vw;
  line-height: 150%;
  letter-spacing: 0.04em;
  color: #f2f4fa;
}
.fv__small {
  font-size: 2.36vw;
}
.fv__main-top-title-en {
  font-family: "Outfit";
  font-weight: 600;
  font-size: 1.11vw;
  line-height: 100%;
  letter-spacing: 0.04em;
  margin-top: 1.39vw;
  color: #c8c8c8;
}


/* 文言 */
.fv-slider__captions{
  position: relative;
  height: 2em;
  margin: 0 0 0.8vw 2.08vw;
}
/* 文言：フェード切り替え */
.fv-slider__caption{
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fadeSlider 15s infinite;
  color: #ffffff; 
  font-size: 0.9vw;
  font-weight: 700;
}
/* 画像と同じタイミングにする */
.fv-slider__caption--2{ animation-delay: 5s; }
.fv-slider__caption--3{ animation-delay: 10s; }
.slider__caption-sp {
  display: none;
}
@media (min-width: 1600px){
  .fv-slider__captions{
    height: 3.5rem; /* 2rem以上の好きな値に固定 */
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .fv-slider__captions{
    height: 1.5rem; /* 2rem以上の好きな値に固定 */
  }
}


/*.fv__top--img {
  width: 50%;
  position: relative;
}*/
.fv__top--img {
  width: 50%;
  position: relative;

  /* 背景画像 */
  background-image: url("../images/background_WH.png");
  background-size: cover;
  background-position: center 6.94vw;
  background-repeat: no-repeat;

  /* 高さを確保（必要に応じて） */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60.4vw;
}
.fv__top--img img {
  width: 90%;
  height: auto;
  object-fit: cover;
  margin-top: 100px;
}
.fv__top--img-sp {
  display: none;
}
/* 共通：スライダーの枠 */
.slider-robot,
.slider-tech,
.slider-tech-sp {
  position: relative;
  overflow: hidden;
}
.slider-tech {
  height: 60.4vw;
}
/* 共通：中の画像3枚 */
.slider-img {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; の略 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlider 15s infinite;
}

/* 2枚目・3枚目は開始タイミングをずらす */
.slider-img--2 {
  animation-delay: 5s;
}
.slider-img--3 {
  animation-delay: 10s;
}

/* フェード用アニメーション */
@keyframes fadeSlider {
  0%,
  30% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

/* Safari 対策で -webkit- も一応用意しておくと安心 */
@-webkit-keyframes fadeSlider {
  0%,
  30% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .top-fv {
    height: 178.7vw;
  }
  .fv__top-inner {
    flex-direction: column-reverse;
  }
  .fv__main {
    width: 100%;
    padding: 9vw 7.47vw 7vw;
  }
  .fv__main--top-img {
    width: 75.5vw;
    height: 50.4vw;
  }
  .fv__vector {
    width: 1.84vw;
    height: 5.81vw;
    margin-bottom: -1.5vw;
    margin-right: 0.84vw;
  }
  .fv__vector:nth-child(2) {
    margin-left: 0.84vw;
    margin-right: 0;
  }
  .fv__main--top-sub-title {
    font-size: 4vw;
    margin-top: 7.75vw;
  }
  .fv__main--top-title {
    font-size: 5.9vw;
  }
  .fv__small {
    font-size: 4.8vw;
  }
  .fv__main-top-title-en {
    font-size: 3.2vw;
    margin-top: 2.79vw;
  }
  .fv__top--img {
    display: none;
  }
  /*.fv__top--img-sp {
    display: block;
    width: 100%;
    height: 73.1vw;
  }
  .fv__top--img-sp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }*/
  .fv__top--img-sp {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 73.1vw; /* 既存の高さをそのまま使うならこれ */
    background-image: url("../images/background_WH.png");
    background-size: cover;
    background-position: center; /* PCと同じ考え。必要ならSP用に数値変えてOK */
    background-repeat: no-repeat;
  }

  .fv__top--img-sp .fv__symbol {
    width: 70%; 
    height: auto;
    transform: translateY(40px); /* これで少し下げる（調整用） */
    padding-top: 0;
  }

  /* 文言 */
  .fv-slider__captions{
    position: relative;
    height: 2.5em;
    margin: 0 0 0.8vw 4.78vw;
  }
  /* 文言：フェード切り替え */
  .fv-slider__caption{
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fadeSlider 15s infinite;
    color: #ffffff; 
    font-size: 2vw;
    font-weight: 700;
  }
  /* 画像と同じタイミングにする */
  .fv-slider__caption--2{ animation-delay: 5s; }
  .fv-slider__caption--3{ animation-delay: 10s; }

  .slider__caption-sp {
    display: block;
  }
}
@media (max-width: 520px) {
  .fv-slider__captions{
    height: 1.8rem;
  }
  .fv__main {
    padding: 8vw 7.47vw 7vw;
  }
}

/*about*/
.about {
  position: relative;
  overflow: hidden;
}
.about__wrapper {
  display: flex;
  padding: 10vw 0 11.1vw;
  gap: 5.56vw;
  align-items: center;
  margin-top: 3vw;
}
.about__img {
  width: 33vw;
  /*height: 37.5vw;*/
  object-fit: contain;
  object-position: center;
  margin-left: 10vw;
}
.about__main {
  width: 36.3vw;
}
.about__main--title {
  font-family: "Noto Sans JP";
  font-weight: 700;
  font-size: 2.36vw;
  line-height: 100%;
  letter-spacing: 0.04em;
  padding: 1.38vw 0 2.78vw;
  color: #0b1e36;
}
.about__main--text {
  font-family: "Noto Sans JP";
  font-weight: 400;
  font-size: 1.25vw;
  line-height: 220.00000000000003%;
  letter-spacing: 0;
  color: #0b1e36;
}
@media (max-width: 767px) {
  .about__wrapper {
    display: flex;
    flex-direction: column-reverse;
    padding: 21.3vw 0 23.5vw;
    gap: 32vw;
    align-items: center;
  }
  .about__img {
    width: 100%;
    height: 74.9vw;
    margin-left: 0;
  }
  .about__main {
    width: 100vw;
    padding: 0 5.33vw;
  }
  .about__main--title {
    font-size: 6.4vw;
    padding: 0 0 6.4vw;
  }
  .about__main--text {
    font-size: 4.27vw;
    line-height: 180%;
  }
}



/* ===== Infinite Text Slider ===== */
:root {
  --size-pc: 8.33vw;
  --size-sp: 26.7vw;
  --gap: 2rem; /* 文字間隔 */
  --speed-pc: 60s; /* スクロール速度 */
  --speed-sp: 70s; /* スクロール速度 */
  --color: #edf0f6;
}
.marquee {
  overflow: hidden;
  position: absolute;
  top: 4ch;
  width: 100%;
}
.track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: scroll var(--speed-pc) linear infinite;
  will-change: transform;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.word {
  font-weight: 400;
  font-style: normal;
  font-size: var(--size-pc);
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color);
}

@media (max-width: 767px) {
  .word {
    font-size: var(--size-sp);
  }
  .marquee {
    top: 85.3vw;
  }
  .track {
    animation: scroll var(--speed-sp) linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }
}

/*menu*/
.menu__list {
  display: flex;
}
.menu .flex {
  display: flex;
  flex-direction: column;
  gap: 2.78vw;
  overflow: hidden;
}
.menu__list-item {
  padding: 5.56vw 5.21vw;
  border-top: 1px solid #d8dadc;
  border-bottom: 1px solid #d8dadc;
  border-right: 1px solid #d8dadc;
  position: relative;
}
.menu__list-item:last-child {
  border-right: none;
}
.menu-img {
  /*width: 22.9vw;*/
  height: 15vw;
  object-fit: contain;
  object-position: center;
  transition: scale 0.3s ease;
}
.menu .menu__list-item a:hover .menu-img {
  scale: 1.05;
}
.menu-title-box {
  margin-bottom: 3.89vw;
}
.menu-title-en {
  font-family: "Outfit";
  font-weight: 600;
  font-size: 3.75vw;
  height: 7.5vw;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  color: #0b1e36;
  margin-bottom: 0.5vw;
  text-transform: uppercase;
}
.menu-title-ja {
  font-family: "Noto Sans JP";
  font-weight: 500;
  font-size: 0.97vw;
  line-height: 100%;
  letter-spacing: 0.04em;
  text-align: center;
  color: #0b1e36;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.menu-title-ja::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0454ae;
}
.menu .contact__btn {
  width: 23.2vw;
  border: 1px solid #d8dadc;
}
.menu .contact__btn-text {
  margin-left: 3vw;
  margin-right: 1.98vw;
}
.menu .menu__list-item a:hover .contact__btn {
  background-color: #ffffff;
}
.menu .menu__list-item a:hover .contact__btn-text {
  color: #0454ae;
}
.menu .menu__list-item a:hover .contact__btn .contact__btn-icon-wrap::before {
  background-image: linear-gradient(to bottom, #011a36);
}
.menu__list-item:nth-child(2)::before,
.menu__list-item:nth-child(2)::after,
.menu__list-item:nth-child(3)::before,
.menu__list-item:nth-child(1)::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #0454ae;
  z-index: 2;
}
.menu__list-item:nth-child(2)::before,
.menu__list-item:nth-child(3)::before {
  top: -0.21vw;
  left: -0.17vw;
}
.menu__list-item:nth-child(2)::after,
.menu__list-item:nth-child(1)::after {
  bottom: -0.21vw;
  right: -0.19vw;
}
@media (max-width: 767px) {
  .menu__list {
    flex-direction: column;
  }
  .menu .flex {
    flex-direction: column-reverse;
    gap: 8.53vw;
  }
  .menu__list-item {
    padding: 16vw 7.33vw;
    border-bottom: none;
    border-right: none;
  }
  .menu__list-item:last-child {
    border-bottom: 1px solid #d8dadc;
  }
  .menu-img {
    /*width: 85.3vw;
    height: 69.3vw;
    margin-bottom: 10.7vw;*/
    width: 50vw;
    height: 50vw;
    margin: 2vw auto 10.7vw auto;
  }
  .menu-title-box {
    margin-bottom: 0;
  }
  .menu-title-en {
    font-size: 11.7vw;
    margin-bottom: 1.07vw;
    height: auto;
  }
  .menu-title-ja {
    font-size: 3.73vw;
  }
  .menu .contact__btn {
    width: 85.3vw;
  }
  .menu .contact__btn-text {
    margin-left: 13vw;
    margin-right: 5vw;
  }
  .menu__list-item:nth-child(1)::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #0454ae;
    z-index: 2;
  }
  .menu__list-item:nth-child(1)::before {
    top: -0.6vw;
    right: 1.78vw;
  }
  .menu__list-item:nth-child(2)::before,
  .menu__list-item:nth-child(3)::before {
    display: none;
  }
  .menu__list-item::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #0454ae;
    z-index: 2;
  }
  .menu__list-item:nth-child(1):after,
  .menu__list-item:nth-child(2):after,
  .menu__list-item:nth-child(3):after {
    bottom: -0.4vw;
    right: 1.78vw;
  }
  .menu__list {
    position: relative;
  }
  .menu__list::before {
    content: "";
    position: absolute;
    top: 0;
    right: 2.13vw;
    width: 1px;
    height: 100%;
    background-color: #d8dadc;
  }
}

/*news*/
.news {
  padding: 9.72vw 0;
}
.news__wrapper {
  width: 83.3vw;
  display: flex;
  justify-content: center;
  gap: 6.94vw;
  margin: 0 auto;
}
.news-title-box {
  margin-bottom: 6.94vw;
}
.news-title-en {
  font-family: "Outfit";
  font-weight: 600;
  font-size: 6.11vw;
  line-height: 100%;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #0b1e36;
  margin-bottom: 0.83vw;
  text-transform: uppercase;
}
.news-title-ja {
  font-family: "Noto Sans JP";
  font-weight: 500;
  font-size: 1.04vw;
  line-height: 100%;
  letter-spacing: 0.04em;
  color: #0b1e36;
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-title-ja::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0454ae;
}
.news .contact__btn {
  border: 1px solid #d8dadc;
}
@media (max-width: 767px) {
  .news {
    padding: 23.5vw 0 26.7vw;
  }
  .news__wrapper {
    width: 89.3vw;
    display: flex;
    flex-direction: column;
    gap: 6.4vw;
    margin: 0 auto;
  }
  .news-title-box {
    margin-bottom: 0;
  }
  .news-title-en {
    font-size: 17.1vw;
    margin-bottom: 3.2vw;
  }
  .news-title-ja {
    font-size: 3.73vw;
  }
  .news__list {
    margin-bottom: 12.8vw;
  }
}

.floating-entry-btn {
  position: fixed;
  right: 0; /* 画面右からの距離 */
  bottom: 50px; /* 画面下からの距離（お好みで調整） */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100px;
  height: 92px;
  border-radius: 4px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating-entry-btn img {
  width: 100px;
  height: 92px;
}

.floating-entry-btn:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}
