@charset "utf-8";

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 10;
}

/* FV全体 */
.fv {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.bg-video-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}



.fv-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.fv-firsrtext h1 {
  top: 10vw;
  color: #fff;
  font-size: 2vw;
  font-weight: bold;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fv-text {
  display: inline-block;
  vertical-align: middle;
  width: 50vw;
}

/* 緑が伸びて画像が表示されるコンテナ */
.img-extend-wrap {
  position: relative;
  overflow: hidden;
  display: block;
}

/* 実際に伸びる緑色のエフェクト部分 */
.img-extend-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3CC30B;
  z-index: 2;
  transform: scaleX(0);
  /* 初期状態は幅0 */
  transform-origin: left;
  /* 左から右へ伸ばす場合 */
  pointer-events: none;
}

/* 画像自体は最初隠しておく、またはフェードインさせる */
.img-extend-wrap img {
  opacity: 0;
  transition: opacity 0.1s ease 0.4s;
  /* 緑が伸びた後に画像を表示する遅延 */
}

/* 画面内に入ったときに付与するクラス（例: .is-active や既存のフェードイン連動） */
.img-extend-wrap.is-active::after {
  animation: extendBox 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.img-extend-wrap.is-active img {
  opacity: 1;
}

/* 緑が伸びて、縮んで消える（あるいは覆い隠す）アニメーションの例 */
@keyframes extendBox {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }

  50.1% {
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* レスポンシブ */
@media (max-width: 805px) {
  .fv-inner {
    padding: 0 20px;
  }

  .fv-firsrtext h1 {
    margin-top: 2em;
    font-size: 2em;
  }

  .fv-text {
    width: 95%;
    height: auto;

  }
}

/* コンテンツ */
.company-menu {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0 150px;
}

.menu-item {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 120px;
}

.menu-text {
  position: absolute;
  top: 45px;
  z-index: 10;
}

.menu-text h2 {
  margin: 0;
  color: #9FC790;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.menu-text span {
  display: block;
  margin-top: 2px;
  color: #9FC790;
  font-size: 9px;
  font-family: "Sawarabi Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
}

.menu-box {
  position: absolute;
  top: 0;
  width: 585px;
  height: 500px;
  z-index: 1;
}

.menu-box::before {
  content: "";
  position: absolute;
  top: 100px;
  height: 250px;
  width: 937px;
  background-color: #9FC790;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.menu-box__image {
  position: absolute;
  top: 0;
  width: 300px;
  height: auto;
  overflow: hidden;
  z-index: 5;
}

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

.menu-box__content {
  position: absolute;
  top: 100px;
  width: 285px;
  height: 165px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.menu-box__content p {
  margin-top: 5em;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  text-align: left;
}

.menu-item--01 .menu-box,
.menu-item--03 .menu-box {
  right: 0;
}

.menu-item--01 .menu-box::before,
.menu-item--03 .menu-box::before {
  left: 0;
}

.menu-item--01 .menu-text {
  left: 21%;
}

.menu-item--03 .menu-text {
  left: 23%;
}

.menu-item--01 .menu-box__image,
.menu-item--03 .menu-box__image {
  left: auto;
  right: 0;
}

.menu-item--01 .menu-box__content,
.menu-item--03 .menu-box__content {
  left: 0;
  right: auto;
}

.menu-item--02 .menu-box,
.menu-item--04 .menu-box {
  left: 0;
}

.menu-item--02 .menu-box::before,
.menu-item--04 .menu-box::before {
  right: 0;
}

.menu-item--02 .menu-text {
  right: 21%;
}

.menu-item--04 .menu-text {
  right: 12%;
}

.menu-item--02 .menu-box__image,
.menu-item--04 .menu-box__image {
  left: 0;
  right: auto;
}

.menu-item--02 .menu-box__content,
.menu-item--04 .menu-box__content {
  left: auto;
  right: 0;
}

.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 250px;
  margin-top: 30px;
  padding: 8px 5px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.more-btn:hover {
  background-color: #fff;
  color: #9FC790;
}

@media screen and (max-width: 805px) {
  .company-menu {
    width: 90%;
    padding: 60px 15px 100px;
    box-sizing: border-box;
  }

  .menu-item {
    position: relative;
    width: 90%;
    height: 430px;
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
  }

  .menu-text {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 10;
  }

  .menu-text h2 {
    font-size: 22px;
    line-height: 1.5;
  }

  .menu-text span {
    font-size: 9px;
  }

  .menu-box {
    position: absolute;
    top: 65px !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    height: 340px;
    z-index: 1;
  }

  .menu-box::before {
    content: "";
    position: absolute;
    top: 85px;
    left: 0 !important;
    right: auto !important;
    width: 100%;
    height: 255px;
    background-color: #9FC790;
    z-index: 0;
  }

  .menu-box__image {
    position: absolute;
    top: 0 !important;
    width: 78%;
    height: 175px;
    overflow: hidden;
    z-index: 5;
  }

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

  .menu-item--01 .menu-box__image,
  .menu-item--03 .menu-box__image {
    left: auto !important;
    right: 0 !important;
  }

  .menu-item--02 .menu-box__image,
  .menu-item--04 .menu-box__image {
    left: 0 !important;
    right: auto !important;
  }

  .menu-box__content {
    position: absolute;
    top: 85px;
    left: 0 !important;
    right: auto !important;
    width: 100%;
    height: 255px;
    padding: 85px 30px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .menu-box__content p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 2;
    text-align: center;
  }

  .more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 40px;
    margin-top: 20px;
    padding: 0;
    border: 1px solid #fff;
    color: #fff;
    font-size: 12px;
    box-sizing: border-box;
  }

  .menu-item--02 .menu-box__content,
  .menu-item--04 .menu-box__content {
    left: 0 !important;
    right: auto !important;
  }
}

/* 社員 */
.employee-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0 150px;
}

.employee-header {
  text-align: center;
  margin-bottom: 50px;
}

.employee-header h2 {
  color: #9FC790;
  font-size: 32px;
  font-weight: 500;
  margin: 0;
}

.employee-header span {
  display: block;
  margin-top: 8px;
  color: #9FC790;
  font-size: 14px;
}

.employee-list {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 40px;
  scrollbar-color: #9FC790 #f0f0f0;
}

.employee-list::-webkit-scrollbar {
  display: block;
  height: 8px;
}

.employee-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.employee-list::-webkit-scrollbar-thumb {
  background: #9FC790;
  border-radius: 4px;
}

.employee-list::-webkit-scrollbar-thumb:hover {
  background: #7db970;
}

.employee-slider {
  width: 100%;
}

.employee-track {
  display: flex;
  gap: 30px;
  width: max-content;
}


@keyframes floatY {

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

  50% {
    transform: translateY(-10px);
  }
}

.employee-item {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  height: 400px;
  animation: floatY 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.employee-item:nth-child(even) {
  animation-delay: 1.5s;
}

.employee-item:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.03);
  z-index: 20;
}


.employee-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.employee-box>a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  /* text-decoration: none; */
}

.employee-box::before {
  content: "";
  position: absolute;
  top: 100px;
  left: 0;
  height: 250px;
  width: 100%;
  background-color: #9FC790;
  z-index: 0;
}

.employee-box__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  z-index: 5;
}

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

.employee-box__content {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 250px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.employee-box__content p {
  margin-top: 4em;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  text-align: center;
}


@media screen and (max-width: 805px) {
  .employee-section {
    width: 90%;
    padding: 60px 15px 100px;
    box-sizing: border-box;
  }

  .employee-item {
    flex: 0 0 240px;
    width: 240px;
    height: 380px;
  }

  .employee-box__content p {
    font-size: 13px;
  }
}

/* 採用 */
.recruit-all {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/main/背景.jpg);
  background-repeat: no-repeat;
  height: 500px;
  background-size: cover;
}

.recruit-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0 150px;

}

.recruit-container {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 80px;
}

.recruit-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.recruit-header h2 {
  margin: 0;
  color: #05A6F6;
  font-size: 32px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.08em;
}

.recruit-header span {
  display: block;
  color: #05A6F6;
  font-size: 12px;
  font-family: "Sawarabi Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

.recruit-content-box {
  position: absolute;
  top: 150px;
  left: 0;
  width: 500px;
  z-index: 5;
}

.recruit-content-box p {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  text-align: left;
  margin-bottom: 0;
}

.recruit-buttons {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.recruit-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 45px;
  border: 1px solid #fff;
  color: #fff;
  background-color: transparent;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Sawarabi Gothic", sans-serif;
}

.recruit-more-btn:hover {
  background-color: #05A6F6;
  color: #fff;
}

.recruit-entry-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 80px;
  background-color: #05A6F6;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 8;
}

.recruit-entry-btn:hover {
  background-color: #0077bb;
  box-shadow: 0 4px 12px rgba(0, 153, 221, 0.3);
}


@media screen and (max-width: 805px) {
  .recruit-section {
    width: 100%;
    padding: 60px 15px 100px;
    box-sizing: border-box;
  }

  .recruit-container {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 60px;
    padding-bottom: 150px;
  }

  .recruit-header {
    position: static;
    margin-bottom: 30px;
  }

  .recruit-header h2 {
    font-size: 22px;
  }

  .recruit-content-box {
    position: static;
    width: 100%;
    margin-bottom: 30px;
  }

  .recruit-content-box p {
    font-size: 13px;
    text-align: center;
  }

  .recruit-buttons {
    position: absolute;
    bottom: 0;
    left: 15px;
    flex-direction: column;
    gap: 15px;
    width: calc(100% - 30px);
  }

  .recruit-more-btn {
    width: 100%;
    height: 40px;
    font-size: 13px;
  }

  .recruit-entry-btn {
    position: static;
    transform: none;
    width: 100%;
    height: 60px;
    font-size: 18px;
  }
}


/* ふわっと出す css*/
/* .fadein,
.fadeinDla {
  animation-name: fadeUpAnime;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  opacity: 0;

} */
.fadein {
  opacity: 0;
  transform: translate(0, 20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadeinL {
  opacity: 0;
  transform: translate(-20px, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadeinR {
  opacity: 0;
  transform: translate(20px, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein.scrollin,
.fadeinL.scrollinL,
.fadeinR.scrollinR {
  opacity: 1;
  transform: translate(0, 0);
}

/* ★ここを追加：遅延用の設定 */
.fadein.delay-1,
.fadeinL.delay-1,
.fadeinR.delay-1 {
  transition-delay: 0.6s;
  /* 0.2秒遅れてスタート */
}

.fadein.delay-2,
.fadeinL.delay-2,
.fadeinR.delay-2 {
  transition-delay: 0.9s;
}

.fadein.delay-3,
.fadeinL.delay-3,
.fadeinR.delay-3 {
  transition-delay: 1.5s;
}




@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}