:root
{
    --black:#000;
    --white:#fff;
    --main-color:#0044A2;
    --sub-color-green:#1EBDCD;
    --sub-color-lb:#40B1E8;
    --accent-color:#FF7F00;
    --bg-color:#F2F7FA;
    --light-gray:#DADFE3;
}



/*  first-view -------------------------------------------*/ 

/* .first-view__inner ul
{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(2,1fr);
}
.first-view__inner ul li:nth-child(1)
{
    grid-column: 1/3;
    grid-row: 1/2;
} */

.first-view{
  min-height: 520px;
  height: 85svh;
  overflow: hidden;
}

.first-view__inner{
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  position: relative;
}

/* ===== 画像配置 ===== */
.t1{ grid-column:1 / 3; grid-row:1 / 2; }
.t2{ grid-column:3 / 4; grid-row:1 / 2; }
.t3{ grid-column:1 / 2; grid-row:2 / 3; }
.t4{ grid-column:2 / 3; grid-row:2 / 3; }
.t5{ grid-column:3 / 4; grid-row:2 / 3; }

/* ===== タイル ===== */
.tile{
  position: relative;
  overflow: hidden;
  background: #d9e1ea;
}

/* 画像 */
.img{
  /* width: 100%;
  height: 100%; */
    width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin: -1px;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  opacity: 0;
  animation: tileImageIn 1.2s cubic-bezier(.22,.61,.36,1) forwards;
  will-change: transform, opacity;
}

/* 青いカバー */
.tile::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--main-color);
  transform: translateX(-101%);
  z-index: 2;
  animation: tileCoverSlide 1s cubic-bezier(.77,0,.18,1) forwards;
  will-change: transform;
}

/* 少し暗めの重なりで締める */
.tile::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.02) 40%,
    rgba(0,0,0,0.14) 100%
  );
  z-index: 1;
  opacity: 0;
  animation: tileShadeIn .8s ease forwards;
  animation-delay: .5s;
}

/* 遅延 */
.t1 .img{ animation-delay: .25s; }
.t2 .img{ animation-delay: .40s; }
.t3 .img{ animation-delay: .55s; }
.t4 .img{ animation-delay: .70s; }
.t5 .img{ animation-delay: .85s; }

.t1::before{ animation-delay: 0s; }
.t2::before{ animation-delay: .15s; }
.t3::before{ animation-delay: .30s; }
.t4::before{ animation-delay: .45s; }
.t5::before{ animation-delay: .60s; }

@keyframes tileCoverSlide{
  0%{
    transform: translateX(-101%);
  }
  45%{
    transform: translateX(0);
  }
  100%{
    transform: translateX(101%);
  }
}

@keyframes tileImageIn{
  0%{
    opacity: 0;
    transform: scale(1.12);
  }
  100%{
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tileShadeIn{
  to{
    opacity: 1;
  }
}

/* ===== キャッチコピー ===== */

.kvCopy{
  position: absolute;
  left: 4%;
  top: 55%;
  color: var(--white);
  padding: 20px;
  border-radius: 10px;
  z-index: 10;
  font-size: 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap:15px;

  opacity: 0;
  transform: translateY(-50%) translateX(-18px);
  animation: copyIn .9s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: .95s;
}
.kvCopy__line{
  display:inline-block;    /* 背景を文字幅に合わせる */
  width:fit-content;       /* 念のため */
  background:rgba(0,64,152,.9);   /* 青 */
  padding:15px 25px;
  border-radius:10px;
  font-weight: 600;
  box-sizing: border-box;
  letter-spacing: 1px;
  border-radius: 5px;
}
/* .kvCopy > span:nth-child(1)
{
    border-radius: 10px 10px 0 0;
}
.kvCopy > span:nth-child(2)
{
    border-radius: 0px 10px 0 0;
}
.kvCopy > span:nth-child(2)
{
    border-radius: 0px 10px 10px 10px;
} */
@keyframes copyIn{
  from{
    opacity: 0;
    transform: translateY(-50%) translateX(-18px);
  }
  to{
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
.kvCopy__line + .kvCopy__line{
  margin-top: -0.2px; 
}


/*  about -------------------------------------------*/ 


.about-text
{
    display: flex;
    gap: 60px;
    justify-content: center;
    padding: 80px 0;

    background-image: url("../image/top/lead-bg_pc.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto;
}
.about-text img
{
    width: 200px;
    max-width: 100%;
}
.about-text h2
{
    font-size: 30px;
    font-weight: 600;
    color: var(--main-color);
}
.about-text p
{
    margin-top: 15px;
    line-height: 35px;
    font-weight: 600;
}


/* ===== ループアニメ ===== */

/* 見た目（背景/余白はお好みで） */
/* .loop{
  padding: 24px 0;
} */

/* 表示枠 */
.loop__viewport{
  overflow: hidden;
  width: 100%;
  padding: 20px 0 30px 0;
}

/* 2つのリストを横並びにして、全体を左に流す */
.loop__track{
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite; /* 速度はここ */
  will-change: transform;
}

/* 1周分のリスト */
.loop__list{
  display: flex;
  gap: 28px;
  padding: 0 28px;   /* 左右に少し余白 */
  margin: 0;
  list-style: none;
}
.loop__list_02
{
  padding-left: 0;
}

/* カード */
.card{
  position: relative;
  width: 340px;         /* カード幅 */
  height: 220px;        /* カード高さ */
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
  flex: 0 0 auto;
}
.card:nth-child(even){
  transform: translateY(20px);
  /* top: 20px; */
}

.card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右下のラベル（添付っぽい） */
.badge{
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--white);
  color: var(--main-color);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--main-color);
}

/* 無限ループ（1周分＝最初のリスト幅だけ動かす） */
@keyframes marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* ホバーしたら止めたい場合（任意） */
/* .loop__viewport:hover .loop__track{
  animation-play-state: paused;
} */

/* モーション軽減 */
@media (prefers-reduced-motion: reduce){
  .loop__track{ animation: none; transform: none; }
}



/*  見出し -------------------------------------------*/ 

.heading
{
  text-align: center;
  margin-bottom: 45px;
}
.heading h2
{
  color: var(--main-color);
  font-size: 18px;
  font-weight: 600;
}
.heading span
{
  font-size: 50px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  letter-spacing: 2px;
}


/*  事業内容 -------------------------------------------*/ 


section.service
{
  background: linear-gradient(
  180deg,
  #fff 0%,
  #f7fcff 4%,
  #f7fcff 100%
);
padding-top: 90px;
position: relative;
padding-bottom: 75px;
/* top: -40px; */
}
.service-details_box
{
  display: flex;
  flex-direction: column;
  gap: 90px;
}
.service-details_box li
{
    display: flex;
    width: 100%;
    height: 500px;
    gap: 40px;
}
.text-content
{
    flex: 0.9;
}
.details-image 
{
    flex: 1.1;
    height: 100%;
}
.text-block
{
   width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.service-details_box .details-image img
{
  border-radius: 15px 0 0 15px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-content
{
  display: flex;
    /* align-items: center; */
        align-items: flex-start;
    /* justify-content: center; */
    justify-content: flex-end;
    padding: 40px;
    box-sizing: border-box;
}
.text-block > div
{
  display: flex;
  gap: 15px;
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px dotted var(--light-gray);
}
.text-block_num
{
  color: var(--main-color);
  font-size: 130px;
  line-height: 120px;
  letter-spacing: 5px;
  font-weight: 900;
  position: absolute;
  top: -0.7em;
  left: -0.3em;
  opacity: 0.1;
  z-index: -1;
  font-family: "Roboto", sans-serif; ;
}

.text-content > div img
{
  width: 65px;
  max-width: 100%;
}
.text-content > div h3
{
  font-size: 30px;
  font-weight: 600;
}
.text-content > div span.title-sub
{
  color: var(--main-color);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.text-content p
{
  line-height: 36px;
  font-size: 18px;
}
.text-content p span.pc-justify
{
  text-align-last: justify;
    display: inline-block;
    width: 100%;
    position: relative;
    font-weight: 500;
}
.text-content a
{
  width: 300px;
  max-width: 100%;
  /* background: linear-gradient(90deg, #003F9E,#0073CD); */
  background: linear-gradient(270deg, #003F9E 0%, #0073CD 25%, #0073CD 50%, #003F9E 100%);
  border-radius: 10px;
  color: #fff;
  padding: 15px 30px;
  margin-top: 50px;
  transition: all 0.2s ease;
  background-size: 200% auto;
  background-position: 0% 50%;
  overflow: hidden;
  font-size: 18px;
  position: relative;
  box-sizing: border-box;
}
.text-content a:hover
{
    background-position: 100% 50%;
    transform: scale(0.97);
}
.text-content a:before
{
  content: "";
  background: url("../image/arrow-white.png")no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  width: 10px;
  height: 15px;
}

/* 偶数の列 */
.service-details_box li:nth-child(even)
{
  flex-direction: row-reverse;
}
.service-details_box li:nth-child(even) .details-image img
{
  border-radius: 0px 15px 15px 0px;
}
.service-details_box li:nth-child(even) .text-content
{
    justify-content: flex-start;
}




/*  実績紹介 -------------------------------------------*/ 


section.case-study
{
  padding: 60px 0 70px 0;
}

section.case-study .more-btn_box
{
  margin-top: 30px;
  justify-content: center;
}
section.case-study a.more-btn
{
  display: inline-block;
  width: 300px;
  max-width: 100%;
  /* background: linear-gradient(90deg, #003F9E,#0073CD); */
  background: linear-gradient(270deg, #003F9E 0%, #0073CD 25%, #0073CD 50%, #003F9E 100%);
  border-radius: 10px;
  color: #fff;
  padding: 15px 30px;
  transition: all 0.2s ease;
  background-size: 200% auto;
  background-position: 0% 50%;
  overflow: hidden;
  font-size: 18px;
  position: relative;
  box-sizing: border-box;
  text-align: center;
}
section.case-study a.more-btn:hover
{
    background-position: 100% 50%;
    transform: scale(0.97);
}
section.case-study a:before
{
  content: "";
  background: url("../image/arrow-white.png")no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  width: 10px;
  height: 15px;
}
.more-btn_box
{
    display: flex;
    justify-content: center;
}


/*  リースについて -------------------------------------------*/ 

section.about-lease
{
  background: linear-gradient(180deg, #004098 0%, #0073CD 100%);
  background-size: cover;
  padding: 60px 0;
  position: relative;
}
.about-lease::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/top/about-lease_bg.png") no-repeat center;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode:multiply;
}
.about-lease_inner
{
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 40px;
  width: 1150px;
  max-width: 90%;
  margin: 0 auto;
}
.about-lease > * {
  position: relative;
  z-index: 2;
}

section.about-lease .heading,
section.about-lease .heading h2
{
  color: var(--white);
}
section.about-lease .heading
{
  text-align: left;
}


.about-lease_inner ul
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-lease_inner ul li a
{
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 30px 10px 20px 10px;
  gap: 30px;
  color: var(--black);
}
.about-lease_inner ul li a img
{
  height: 40px;
  transition: 0.3s ease;
}
.about-lease_inner ul li a h3
{
    font-weight: bold;
    position: relative;
    font-size: 16px;
}
.about-lease_inner ul li a h3::after
{
  content: "";
  background: url("../image/top/arrow_blue.png")no-repeat;
  width: 20px;
  height: 20px;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: -1.5em;
  transform: translateY(-45%);
  transition:  0.3s ease;
}
/* h3の疑似要素を動かす */
.about-lease_inner ul li a:hover h3::after {
  right: -1.8em;
}

section.about-lease hr 
{
  border: none;
  border-right: 1px dotted var(--white);
}


/*  お知らせ -------------------------------------------*/ 

section.news
{
  padding: 70px 0;
}
.news-inner
{
  width: 1150px;
  max-width: 90%;
  margin: 0 auto;
}
.news-title_box
{
  display: grid;
  gap: 30px 0px;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  margin-bottom: 30px;
  align-items: start;
   justify-content: space-between;
    grid-template-areas:
    "heading more-btn"
    "news-list news-list"
    ;
}
.news-title_box .heading
{
  text-align: left;
  margin-bottom: 0px;
    grid-area: heading;
}

section.news .more-btn_box
{
  grid-area: more-btn;
  justify-content: flex-end;
}
section.news .more-btn_box a
{
  display: inline-block;
  width: 210px;
  max-width: 100%;
  /* background: linear-gradient(90deg, #003F9E,#0073CD); */
  background: linear-gradient(270deg, #003F9E 0%, #0073CD 25%, #0073CD 50%, #003F9E 100%);
  border-radius: 10px;
  color: #fff;
  padding: 15px 30px;
  transition: all 0.2s ease;
  background-size: 200% auto;
  background-position: 0% 50%;
  overflow: hidden;
  font-size: 18px;
  position: relative;
  box-sizing: border-box;
  text-align: left;
}
.top-news_list
{
  grid-area: news-list;
  width: 100%;
}
section.news .more-btn_box a:hover
{
    background-position: 100% 50%;
    transform: scale(0.97);
}
.news-title_box a
{
  position: relative;
}
section.news .more-btn_box a:before
{
  content: "";
  background: url("../image/arrow-white.png")no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  width: 10px;
  height: 15px;
}


/*  採用情報 -------------------------------------------*/ 
.recruit-inner{
  width:1150px;
  max-width:90%;
  margin:0 auto;

  display:grid;
  grid-template-columns:1fr 1fr;

  border-radius:10px;
  box-shadow:0 0 6px rgba(0,0,0,0.25);

  text-decoration:none;
  color:inherit;
  overflow:hidden;
}

/* 画像ラッパー */
.recruit-img-wrap{
  overflow:hidden;
}

/* 画像 */
.recruit-image{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

/* hoverでズーム */
.recruit-inner:hover .recruit-image{
  transform:scale(1.05);
}

/* 右側 */
.recruit-content{
  padding:50px;
}

.recruit-inner .heading{
  display:flex;
  align-items:flex-end;
  gap:15px;
  margin-bottom:25px;
}

.recruit-inner .heading h2{
  position:relative;
  bottom:10px;
}

.recruit-inner p{
  line-height:30px;
}

.more-btn_box{
  display:flex;
  justify-content:flex-end;
  margin-top:25px;
}

.more-link{
  display:inline-block;
  color:var(--main-color);
  font-weight:bold;
  padding-right:30px;
  position:relative;
}

/* 矢印 */
.more-link::after{
  content:"";
  background:url(../image/top/arrow_gradation.png) no-repeat;
  width:20px;
  height:20px;
  background-size:contain;

  position:absolute;
  top:50%;
  right:0;
  transform:translateY(-50%);
  transition:.3s ease;
}

/* hoverで矢印移動 */
.recruit-inner:hover .more-link::after{
  right:-6px;
}





@media screen and (max-width: 1200px) {
  .about-text
  {
    gap: 30px;
    flex-direction: column;
    align-items: center;
    text-align: center;
   background-image: url(../image/top/lead-bg_sp.png);
   padding: 50px 0;
  }

    .text-content p span.pc-justify 
  {
        display: inline;
        text-align-last: auto;
  }
  .text-block
  {
    width: 350px;
  }
  .case-study__grid
  {
     grid-template-columns: repeat(3, 1fr)!important;
     gap: 5px!important;
  }


}
@media screen and (max-width: 768px) {

  /*  ファーストビュー -------------------------------------------*/ 
  .kvCopy
  {
    font-size: 25px;
    left: 0;
    padding: 0;
    top: 65%;
  }
  .kvCopy__line
  {
    padding: 8px 15px;
    border-radius: 0 5px 5px 0;
  }



.first-view__inner{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1.5fr 1fr;
}

/* 上段 */
.t2{ grid-column:1 / 2; grid-row:1 / 2; }
.t3{ grid-column:2 / 3; grid-row:1 / 2; }

/* 中段（横いっぱい） */
.t1{ grid-column:1 / 3; grid-row:2 / 3; }

/* 下段 */
.t4{ grid-column:1 / 2; grid-row:3 / 4; }
.t5{ grid-column:2 / 3; grid-row:3 / 4; }
/* 
.kvCopy > span:nth-child(1)
{
  border-radius: 0 10px 0 0;
}
.kvCopy > span:nth-child(3)
{
  border-radius: 0 0 10px 0;
} */


.badge
{
  padding: 3px 12px;;
}
.loop__list
{
  gap: 15px;
}

/*  見出し -------------------------------------------*/ 

.heading
{
  margin-bottom: 30px;
}
  .heading span
  {
    font-size: 40px;
  }
  .heading h2
  {
    font-size: 16px;
  }

/*  about -------------------------------------------*/ 
  .about-text
  {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin:  0 auto;
    align-items: center;
    padding: 30px 0;
    background-image: url("../image/top/lead-bg_sp.png");
  }
  .about-text img
  {
    width: 100px;
  }
  .about-text h2,
  .about-text p
  {
    text-align: center;
  }
  .about-text h2
  {
    font-size: 24px;
  }
  .about-text p
  {
    line-height: 26px;
    font-size: 14px;
  }

  .card
  {
    width: 220px;
    height: 150px;
    border-radius: 10px;
  }

  /*  事業内容 -------------------------------------------*/ 

  section.service
  {
   padding-top: 50px; 
   padding-bottom: 10px;
  }
.service-details_box
{
  gap: 10px;
  grid-template-areas:
    "heading"
    "news-list"
    "more-btn";
}
  .service-details_box li
  {
      flex-direction: column-reverse;
      height: auto;
  }
  .details-image
  {
    padding-left: 20px;
    height: 260px;
    flex: auto;
  }
  .service-details_box li:nth-child(even) .details-image
  {
    padding-right: 20px;
    padding-left: 0;
  }
  .text-content
  {
    position: relative;
    top: -40px;
    padding: 0;
  }
  .text-block_num
  {
    opacity: 0.4;
    border: 1px;
    -webkit-text-stroke: 1px #fff;
    text-stroke: 1px #fff;
    top: -25%;
    left: 0; 
    font-size: 90px;
    letter-spacing: 2px;
  }
  .text-block
  {
    width: 90%;
    margin: 0 auto;
    padding-top: 35px;
    align-items: center;
  }

  .text-content > div h3
  {
    font-size: 24px;
    line-height: 26px;
  }
  .text-block > div
  {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .text-content > div img
  {
    width: 50px;
  }
  .text-content div span.title-sub
  {
    font-size: 14px;
  }
  .text-content p
  {
    font-size: 16px;
    line-height: 32px;
  }
  .text-content a
  {
    margin-top: 25px;
    font-size: 16px;
    width: 300px;
    text-align: center;
  }

    .text-content p span.pc-justify 
  {
        display: inline;
        text-align-last: auto;
  }

  .service-details_box li:nth-child(even)
  {
      flex-direction: column-reverse;
  }

  /*  実績紹介 -------------------------------------------*/ 

  section.case-study
  {
    padding: 50px 0 60px 0;
  }
  section.case-study .more-btn_box
  {
    margin-top: 50px;
  }

  /* .case-study__grid {
    margin: 0 -8px;
  } */

  .case-study__grid .case-card {
    margin: 0 8px;
  }

  .case-study_top
  {
    width: 100%!important;
  }

  /*  リースについて -------------------------------------------*/ 

  .about-lease_inner
  {
    grid-template-columns:1fr;
    gap: 0;
  }
  section.about-lease hr
  {
    display: none;
  }
  .about-lease_inner ul
  {
    grid-template-columns: 1fr;
  }
  .about-lease_inner ul li a
  {
     flex-direction: row;
     padding: 20px;
  }
  .about-lease_inner ul li a img
  {
    width: 40px;
    object-fit: contain;
  }


  /*  お知らせ -------------------------------------------*/ 

  section.news
  {
    padding: 50px 0;
  }
  .news-title_box
  {
    grid-template-columns: 1fr;
        grid-template-areas:
        "heading "
        "news-list "
        "more-btn"
        ;
        justify-items: center;
        gap:20px;
  }
  .news-title_box .heading
  {
    text-align: center;
  }
  section.news .more-btn_box a
  {
    text-align: center;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
  }

/*  リースについて -------------------------------------------*/ 

    .about-lease_inner ul li a h3::after
  {
   right: -2em; 
  }


  /*  採用情報 -------------------------------------------*/ 
  .recruit-inner
  {
        grid-template-columns: 1fr;
  }
  .recruit-inner .heading
  {
    margin-bottom: 10px;
  }
  /* .recruit-inner .heading
  {
   flex-direction: column; 
  } */
  .recruit-image
  {
    border-radius: 10px 10px 0 0;
  }
  .recruit-inner > div:last-child
  {
    padding: 20px;
  }
}

