/* ローディングオーバーレイの基本設定 */
#site_loader_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 9999;
  display: none;
  opacity: 1;
  transition: opacity 0.9s ease;
}

/* ロゴのアニメーション用 */
#site_loader_logo {
  opacity: 0;
  transition: opacity 0.6s ease;
  position: relative;
  width: 100%;
  height: 100%;
}

#site_loader_logo.active {
  opacity: 1;
}

#site_loader_logo_inner {
  position: absolute;
  text-align: center;
  width: 100%;
  top: 50%;
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

#site_loader_logo_inner .logo_image {
  position: relative;
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  opacity: 0;
}

#site_loader_logo_inner .logo_image::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 80%;
  height: 15px;
  background: rgba(27, 60, 127, 0.3);
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(4px);
}

#site_loader_logo.active .logo_image {
  -webkit-animation: opacityAnimation 1.4s ease forwards 0.5s;
  animation: opacityAnimation 1.4s ease forwards 0.5s;
}

#site_loader_logo_inner .logo_image img {
  width: clamp(200px, 16.138px + 57.457vw, 801px);
}

#site_loader_logo img.use_logo_animation {
  width: 60%;
  position: relative;
  -webkit-animation: slideUpDown 1.5s ease-in infinite 0s;
  animation: slideUpDown 1.5s ease-in infinite 0s;
}

#site_loader_logo_inner .message {
  text-align: center;
  margin: 30px auto 0;
  display: table;
  font-size: clamp(16px, 13.553px + 0.765vw, 24px);
  color: #f4f4f4;
  opacity: 0;
  -webkit-animation: opacityAnimation 1.4s ease forwards 1.5s;
  animation: opacityAnimation 1.4s ease forwards 1.5s;
}

#site_loader_logo_inner .text {
  display: inline;
}

#site_loader_logo_inner .dot_animation_wrap {
  display: inline;
  margin: 0 0 0 4px;
  position: absolute;
}

#site_loader_logo_inner i {
  width: 2px;
  height: 2px;
  margin: 0 4px 0 0;
  border-radius: 100%;
  display: inline-block;
  background: #f4f4f4;
  -webkit-animation: loading-dots-middle-dots 0.5s linear infinite;
  -ms-animation: loading-dots-middle-dots 0.5s linear infinite;
  animation: loading-dots-middle-dots 0.5s linear infinite;
}

#site_loader_logo_inner i:first-child {
  opacity: 0;
  -webkit-animation: loading-dots-first-dot 0.5s infinite;
  -ms-animation: loading-dots-first-dot 0.5s linear infinite;
  animation: loading-dots-first-dot 0.5s linear infinite;
  -webkit-transform: translate(-4px);
  -ms-transform: translate(-4px);
  transform: translate(-4px);
}

#site_loader_logo_inner i:last-child {
  -webkit-animation: loading-dots-last-dot 0.5s linear infinite;
  -ms-animation: loading-dots-last-dot 0.5s linear infinite;
  animation: loading-dots-last-dot 0.5s linear infinite;
}

@keyframes opacityAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideUpDown {
  0% {
    bottom: 10px;
  }

  50% {
    bottom: 0;
  }

  100% {
    bottom: 10px;
  }
}

@keyframes loading-dots-first-dot {
  100% {
    -webkit-transform: translate(6px);
    -ms-transform: translate(6px);
    transform: translate(6px);
    opacity: 1;
  }
}

@keyframes loading-dots-middle-dots {
  100% {
    -webkit-transform: translate(6px);
    -ms-transform: translate(6px);
    transform: translate(6px);
  }
}

@keyframes loading-dots-last-dot {
  100% {
    -webkit-transform: translate(6px);
    -ms-transform: translate(6px);
    transform: translate(6px);
    opacity: 0;
  }
}

/* MV要素とヘッダーの初期状態（非表示） */
.mv .copy,
.mv .maintext,
header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}

/* 動画の初期状態 */
#mainvisual video,
#mainvisual .mv::before {
  opacity: 0;
  transition: opacity 1.5s ease;
}

/* 表示用クラス */
.maintext.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.video-loaded #mainvisual video,
.video-loaded #mainvisual .mv::before {
  opacity: 1;
}

/*mainvisual*/
/*------------------------------------------------------------------------------*/
#mainvisual {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 110px;
}

.mv {
  max-width: 94.07%;
  height: 734px;
  position: relative;
  overflow: hidden;
  margin: auto;
}

.mv::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(48, 54, 51, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 30px;
}

.mv video {
  border-radius: 30px;
  width: 100%;
  height: 100%;
  aspect-ratio: 1285 / 734;
  object-fit: cover;
}

#mainvisual .copy {
  position: absolute;
  top: 65%;
  right: 1.3%;
  line-height: 1;
}

#mainvisual .name {
  display: block;
  font-size: 10px;
  letter-spacing: 50%;
  transform: rotate(90deg);
  transform-origin: 100% 0;
}

#mainvisual .maintext {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  color: var(--color-white);
  padding: 0 20px;
  width: 1000px;
}

#mainvisual .maintext .main {
  font-size: 40px;
  padding-top: 341px;
  opacity: 0;
  left: -20px;
  line-height: 1.6;
}

#mainvisual .maintext .sub {
  font-size: 24px;
  margin-top: 31px;
  opacity: 0;
  left: -20px;
}

#mainvisual.move .maintext .main {
  opacity: 1;
  left: 0;
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 1.6s;
}

#mainvisual.move .maintext .sub {
  opacity: 1;
  left: 0;
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 2.4s;
  font-weight: 700;
}

/*top_intro*/
/*------------------------------------------------------------------------------*/
#top_intro {
  position: relative;
  z-index: 3;
}

#top_intro .inner01 {
  display: flex;
  position: relative;
}

#top_intro .inner01::before {
  content: '';
  width: 764px;
  height: 373px;
  background: url(../image/bg_name.png) no-repeat;
  position: absolute;
  top: 0;
  left: 355px;
}

#top_intro .text_box {
  width: 62%;
}

.intro .title {
  font-size: var(--font-size-3xl);
  line-height: 1.875;
  margin-bottom: 30px;
  font-weight: 700;
}

#top_intro .img_box {
  flex: 1;
  text-align: right;
}

#top_intro .img_box img {
  margin-top: -15px;
}

/*top_service*/
/*------------------------------------------------------------------------------*/
#top_service {
  padding: 250px 0 150px;
  position: relative;
  z-index: 2;
}

#top_service::before {
  content: '';
  width: 120%;
  height: 291px;
  background: var(--color-white) url(../image/line01.png) repeat-x center top;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) rotate(-8.49deg);
  z-index: -1;
}

#top_service::after {
  content: '';
  width: 120%;
  height: 400px;
  background: url(../image/line02.png) repeat-x center bottom;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-7.49deg);
  z-index: -1;
}

#top_service .top_service_in {
  position: relative;
  width: 100%;
  max-width: 1366px;
  margin-left: auto;
  margin-right: auto;
}

.link_btn {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 35px;
}

.link_btn a {
  width: 158px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: #EEE;
  border-radius: 10px;
  font-weight: 700;
}

#top_service .vehicle .sensing {
  opacity: 0;
  transform: none;
  transition: none;
}

#top_service .vehicle .sensing.move {
  animation: slide-skew 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

@keyframes slide-skew {
  0% {
    transform: translate(180px, 80px);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
  }

  20%,
  100% {
    opacity: 1;
  }
}

.vehicle01 {
  position: absolute;
  top: -250px;
  left: 721px;
  width: 377px;
}

.vehicle02 {
  position: absolute;
  top: -110px;
  left: 1137px;
  width: 203px;
}

.vehicle03 {
  position: absolute;
  top: 0;
  left: 809px;
  width: 390px;
}

/*top_company*/
/*------------------------------------------------------------------------------*/
#top_company {
  background: url(../image/company_bg.png) no-repeat center center;
  background-size: cover;
  color: var(--color-white);
  padding-top: 230px;
  margin-top: clamp(-120px, -107.578px + -3.106vw, -150px);
  position: relative;
  z-index: 1;
}

#top_company .inner01 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

#top_company .in {
  max-width: 500px;
}

#top_company .title01 .font01,
#top_company .title01 .sub {
  color: var(--color-white);
}

#top_company .btn03 {
  margin: 45px 0 50px;
}

#top_company .txt {
  text-align: right;
  font-size: 10px;
  margin-top: 30px;
  line-height: 4;
}

/*top_news*/
/*------------------------------------------------------------------------------*/
#top_news {
  display: flex;
  flex-wrap: wrap;
}

#top_news .title_box {
  width: 210px;
  margin-right: 80px;
  padding-bottom: 5px;
}

#top_news .btn02 {
  padding-top: 10px;
}

#top_news .news_box {
  background-image: linear-gradient(to right, #1B3C7F 8px, transparent 8px);
  background-size: 14px 1px;
  background-repeat: repeat-x;
  background-position: left top;
  flex: 1;
}

#top_news .news_box p {
  font-size: clamp(13px, 12.333px + 0.167vw, 14px);
  letter-spacing: 0;
  line-height: 1.2;
  padding: 32px 95px 32px clamp(10px, 0.588px + 2.941vw, 30px);
  display: flex;
  background-image: linear-gradient(to right, #1B3C7F 8px, transparent 8px);
  background-size: 14px 1px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

#top_news .news_box .date {
  color: var(--color-primary);
  margin-right: clamp(20px, -46.667px + 16.667vw, 120px);
  font-size: clamp(12px, 10.667px + 0.333vw, 14px);
}

#top_news .news_box a {
  position: relative;
}

#top_news .news_box a:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  transform: translate(0, -50%);
  right: -70px;
  background: url(../image/icon_pdf.png) no-repeat;
  background-size: contain;
}

/*top_gallery*/
/*------------------------------------------------------------------------------*/
#top_gallery .main_txt {
  font-size: clamp(26px, 16.667px + 2.333vw, 40px);
  line-height: 1.3;
  text-align: center;
  padding: clamp(12px, 8.000px + 1vw, 18px) 10px 25px;
  font-weight: 700;
}

@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.scroll_left {
  animation: infinity-scroll-left 80s infinite linear 0.5s both;
}

@keyframes infinity-scroll-right {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0%);
  }
}

.scroll_right {
  animation: infinity-scroll-right 80s infinite linear 0.5s both;
}

#top_gallery .scroll_wrap {
  display: flex;
  overflow: hidden;
}

#top_gallery .scroll_list {
  display: flex;
  list-style: none;
  padding: 0
}

#top_gallery .txt_area li {
  width: clamp(954px, 614.000px + 85vw, 1464px);
  font-size: clamp(60px, 40.000px + 5vw, 90px);
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.05;
}

#top_gallery .scroll_right li {
  transform: scale(-1, -1);
}

#top_gallery .img_area li {
  width: clamp(182px, 118.000px + 16vw, 278px);
  margin: 0 clamp(9px, 5.667px + 0.833vw, 14px);
  position: relative;
}

#top_gallery .img_area li>img {
  width: 100%;
}

#top_gallery .img_area li .caption {
  color: var(--color-white);
  font-size: clamp(8px, 7.388px + 0.191vw, 10px);
  line-height: 1;
  position: absolute;
  right: 10px;
  bottom: clamp(7px, 6.388px + 0.191vw, 9px);
  font-weight: 700;
}

/* screens smaller than 1366---------------------------------------------------------- */
@media only screen and (max-width:1365px) {

  /*top_service*/
  /*------------------------------------------------------------------------------*/
  .vehicle01 {
    left: 52.78vw;
    width: 27.60vw;
  }

  .vehicle02 {
    left: 83.24vw;
    width: 14.86vw;
  }

  .vehicle03 {
    left: 59.22vw;
    width: 28.55vw;
  }

  #top_intro .inner01::before {
    left: 24vw;
  }

  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/

/* screens smaller than 1000---------------------------------------------------------- */
@media only screen and (max-width:999px) {

  /*mainvisual*/
  /*------------------------------------------------------------------------------*/
  #mainvisual {
    margin-bottom: clamp(20px, -40.000px + 15vw, 110px);
  }

  .mv {
    width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
    max-width: auto;
    max-width: initial;
    height: clamp(520px, 377.333px + 35.667vw, 734px);
  }

  #mainvisual .copy {
    right: 5px;
  }

  #mainvisual .name {
    display: block;
    font-size: 10px;
    letter-spacing: 50%;
    transform: rotate(90deg);
    transform-origin: 100% 0;
  }

  #mainvisual .maintext {
    width: 100%;
  }

  #mainvisual .maintext .main {
    font-size: clamp(20px, 6.667px + 3.333vw, 40px);
    padding-top: clamp(260px, 206.000px + 13.5vw, 341px);
  }

  #mainvisual .maintext .sub {
    font-size: clamp(14px, 7.333px + 1.667vw, 24px);
    margin-top: clamp(11px, -2.333px + 3.333vw, 31px);
  }

  /*top_intro*/
  /*------------------------------------------------------------------------------*/
  #top_intro .inner01 {
    flex-direction: column;
  }

  #top_intro .inner01::before {
    width: 100%;
    height: clamp(200px, 84.667px + 28.833vw, 373px);
    background: url(../image/bg_name.png) no-repeat;
    background-size: contain;
    position: inherit;
    left: auto;
    display: block;
    margin-bottom: clamp(0px, -20.000px + 5vw, 30px);
  }

  #top_intro .text_box {
    width: 100%;
  }

  .intro .title {
    font-size: clamp(20px, 12.000px + 2vw, 32px);
    line-height: clamp(30px, 10.000px + 5vw, 60px);
  }

  #top_intro .img_box {
    position: absolute;
    top: clamp(0px, -26.667px + 6.667vw, 40px);
    right: 0;
  }

  #top_intro .img_box img {
    margin-top: auto;
    width: clamp(196px, 120.235px + 23.676vw, 357px);
    ;
  }

  /*top_service*/
  /*------------------------------------------------------------------------------*/
  .vehicle01 {
    left: clamp(52px, -113.333px + 41.333vw, 300px);
    top: clamp(-180px, -120.000px + -15vw, -270px);
    ;
    width: clamp(196px, 142.667px + 13.333vw, 276px);
  }

  .vehicle02 {
    left: clamp(269px, 15.000px + 63.5vw, 650px);
    ;
    top: clamp(-110px, -76.667px + -8.333vw, -160px);
    width: clamp(105px, 75.667px + 7.333vw, 149px);
  }

  .vehicle03 {
    left: auto;
    right: 34px;
    top: auto;
    bottom: clamp(-200px, -173.333px + -6.667vw, -240px);
    width: clamp(223px, 181.667px + 10.333vw, 285px);
  }

  /*top_news*/
  /*------------------------------------------------------------------------------*/
  #top_news .title_box {
    width: 100%;
    margin-right: 0;
  }

  #top_news .news_box {
    width: 100%;
    margin-bottom: 32px;
  }

  #top_news .btn02.tb_sp {
    width: 100%;
  }


  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/

/* screens smaller than 769---------------------------------------------------------- */
@media only screen and (max-width:768px) {

  /*top_service*/
  /*------------------------------------------------------------------------------*/
  .link_btn a {
    flex-grow: 1;
  }

  /*top_news*/
  /*------------------------------------------------------------------------------*/
  #top_news .news_box p {
    padding-right: 40px;
  }

  #top_news .news_box a:after {
    width: 14px;
    height: 14px;
    right: -30px;
  }

  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/
/* =========================================
  無限スクロール
========================================= */

.js_infinity_wrap {
  width: 100%;
  overflow: hidden;
}

.js_infinity_list {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 0;
  will-change: transform;
}

.js_infinity_list li {
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.js_infinity_list img {
  display: block;
  width: auto;
}