/* home top page */
.homepage-top-section {
  height: 100vh;
  margin: auto;
  width: auto;
}

.fv-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 背景動画エリア */
.fv-video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.77777778vh;
  height: 56.25vw;
  min-height: 100%;
  min-width: 100%;
  transform: translate(-50%, -50%) scale(1.04);
  z-index: 0;
  pointer-events: none;
}

/* 黒オーバーレイ */
.fv-video-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  animation: fadeOut 6s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; }
}

.fv-video-background::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 108vh;
  background-repeat: repeat;
  background-image: url(/images/common/dot_cross_333.webp);
  opacity: 1;
}

.fv-video-background iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(1.3);
}

.fv-catch {
  color: #fff;
  font-weight: 700;
  text-shadow: #333 4px 4px 8px;
  position: relative;
}

.fv-h1 {
  font-size: 26.24px;
  margin: 0 0 4px;
}

/* NOTE: 元CSSのまま（"pxpx"） */
.fv-p {
  font-size: 13.12pxpx;
  letter-spacing: 0px;
}

.top-about-section .section-container>p {
  margin: 0 0 24px;
}

/* トップページの紹介セクション */
.job-img-wrap {
  margin: 0 auto 48px;
}

.job-img-wrap img {
  border: 0px solid var(--primary-color);
  border-radius: 4px;
  display: block;
  margin: 0 auto 8px;
  height: auto;
  max-width: 352px;
  width: 100%;
}

.job-flex-wrap .btn {
  max-width: 198px;
}

/* Interview 社員インタビュー（トップのカルーセル） */
.carousel-container {
  overflow: hidden;
  margin: 0 auto;
  width: 244px;
}

.carousel-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.carousel-list.is-sliding {
  transition: transform 0.5s ease-in-out;
}

.carousel-list li {
  width: 244px;
  height: 332px;
  margin: 24px 0 46px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.carousel-list li img {
  margin: 0 0 16px;
  max-width: 200px;
  width: 100%;
}

.carousel-list li figcaption {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.carousel-list li figcaption span:first-child {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--text-font-roboto);
  margin: 0 3px 0 0px;
}

.carousel-list li figcaption span:nth-child(2) {
  border: #fff 1px solid;
  border-radius: 4px;
  font-size: 14px;
  margin: 0 0 0 12px;
  padding: 4px 8px;
  position: relative;
  bottom: 4px;
}

.carousel-controls {
  margin: 0 auto;
  width: max-content;
  display: flex;
}

.carousel-controls button {
  margin: 0 16px 0;
}

.carousel-controls #prevBtn,
.carousel-controls #nextBtn {
  background: #fff;
  height: 32px;
  width: 32px;
}

.carousel-controls .left-arrow,
.carousel-controls .right-arrow {
  display: block;
  color: var(--primary-color);
  position: relative;
  width: 8px;
  height: 8px;
}

.carousel-controls .left-arrow {
  transform: translateX(14px) rotate(-135deg);
}

.carousel-controls .right-arrow {
  transform: translateX(11px) rotate(45deg);
}

.carousel-controls .left-arrow::before,
.carousel-controls .right-arrow::before,
.carousel-controls .left-arrow::after,
.carousel-controls .right-arrow::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
}

.carousel-controls .left-arrow::before,
.carousel-controls .right-arrow::before {
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.carousel-controls .left-arrow::after,
.carousel-controls .right-arrow::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
}

/* Work 仕事紹介（トップ） */
.top-work-section {
  background: #f9f9f9;
}

.work-link-list {
  background: #fff;
  border: 1px #d9d9d9 solid;
  padding: 24px 20px 20px;
  margin: 0 auto 18px;
}

.work-link-list:last-child { margin: 0 auto 0; }

.work-link-list h3 {
  font-weight: 700;
  margin: 0 0 20px;
}

.work-link-list h3::before {
  content: "";
  border: var(--primary-color) 1px solid;
  display: inline-block;
  height: 16px;
  margin: 0 8px -2px 0;
  transform: scaleX(1.5);
}

.work-link-list img { width: 100%; }

/* Benefits 働く環境（トップ） */
.benefits-link-list {
  border-radius: 4px;
  box-shadow: 0 0 20px #2067A788;
  margin: 0 auto 16px;
  padding: 40px 16px 40px;
  position: relative;
  text-align: center;
  height: 376px;
  max-width: 320px;
  width: 88%;
}

.benefits-link-list:last-child { margin: 0 auto 0; }

.benefits-link-list h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 46px;
}

.benefits-link-list img {
  margin: 0 auto 32px;
  max-width: 96px;
  width: 100%;
}

.benefits-link-list li {
  border: 1px var(--primary-color) solid;
  border-radius: 4px;
  color: var(--primary-color);
  padding: 5px 0;
  margin: 0 auto 8px;
  min-width: 204px;
  width: 80%;
}

.benefits-link-list .benefits-link-arrow {
  background: #eef4f8 url(/images/common/arrow_forward.png) no-repeat 0 0 / 100%;
  border-top-left-radius: 4px;
  border-bottom-right-radius: 4px;
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 52px;
  width: 40px;
  margin: 0;
  height: 40px;
  z-index: 1;
}

/* 仕事はワクワクするものだ（790〜1023） */
@media (min-width: 790px) and (max-width: 1023px){
  .job-img-wrap {
    display: flex;
    flex-wrap: wrap;
  }
  .job-flex-wrap{
    display: block;
  }
  .job-img-wrap{
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 48px;
  }
  .job-img-wrap img{
    margin: 0;
  }
  .job-img-wrap img:first-of-type{
    margin: 0 8px 0 0;
  }
  .job-img-wrap>img:last-of-type{
    margin: 8px 0 0 0;
  }
}

/* TAB */
@media screen and (min-width: 768px) {
  .carousel-container { width: 520px; }

  .carousel-list li {
    font-size: 20px;
    margin: 48px 32px 68px 0;
  }

  .carousel-list li img { max-width: 244px; }

  .carousel-list li figcaption { font-size: 20px; }

  .carousel-list li figcaption span:first-child { font-size: 40px; }

  .work-link-cards {
    display: grid;
    grid-template-columns: 352px 352px;
    justify-content: center;
    gap: 0 32px;
    width: 100%;
  }

  .work-link-list:last-child { margin: 0 auto 18px; }

  .benefits-link-cards {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
  }

  .benefits-link-list { width: 32%; }
}

/* PC */
@media screen and (min-width: 1024px) {
  .fv-h1 { font-size: 48px; }

  /* NOTE: 元CSSのまま */
  .fv-p { font-size: 24px; }

  .top-about-section { position: relative; }
  .page-top .kazari-top1 { display: none; }

  .top-about-section::before {
    content: "";
    background: url(/images/1_home/about_us/kazari_left.webp) no-repeat left;
    background-size: contain;
    display: block;
    position: absolute;
    top: -64px;
    height: 432px;
    width: 124px;
  }

  .top-about-section::after {
    content: "";
    background: url(/images/1_home/about_us/kazari_top.webp) no-repeat;
    background-size: contain;
    display: block;
    position: absolute;
    top: -65px;
    right: 0;
    height: 124px;
    width: 1008px;
  }

  .top-about-section .section-container { padding: 42px 22px 100px; }

  .top-about-section .h2-gradation,
  .top-about-section .section-container>p {
    max-width: 794px;
  }

  .top-about-section .h2-gradation { margin: 90px auto 54px; }
  .top-about-section .section-container>p { margin: 0 auto 56px; }

  .job-flex-wrap { display: flex; flex-direction: column-reverse; }

  .job-img-wrap {
    display: flex;
    margin: 0 auto;
    flex-wrap: nowrap;
    width: 100%;
  }

  .job-img-wrap>img,
  .job-img-wrap img {
    margin: 0 16px 0;
    width: 352px;
  }

  .job-img-reverse {
    display: flex;
    flex-direction: row-reverse;
    margin: 0 auto;
    width: 100%;
  }

  .job-img-reverse img { margin: 0 0 0 auto; }

  .job-flex-wrap .btn {
    margin: 0 auto 108px 224px;
    max-width: 258px;
  }

  .top-Interview-section .section-container { padding: 80px 80px; }

  .carousel-container { width: 910px; }

  .carousel-list li { margin: 70px 64px 84px 0; }
  .carousel-list li img { max-width: 244px; }

  .top-work-section .section-container { padding: 80px 22px; }

  .work-link-cards {
    grid-template-columns: 1fr 1fr;
    max-width: 1120px;
    margin: 0 auto;
  }

  .work-link-list {
    width: 100%;
    padding: 40px 40px 40px;
  }

  .work-link-list h3 { font-size: 24px; }

  .work-link-list h3::before {
    height: 22px;
    margin: 0 16px -2px 0;
    transform: scaleX(1.8);
  }

  .job-benefits-section .section-container{
    padding: 40px 80px 80px 80px;
  }

  .job-benefits-section::before {
    content: "";
    background: url(/images/1_home/about_us/kazari_top.webp) no-repeat;
    background-size: 100% 124px;
    display: block;
    height: 124px;
  }

  .benefits-link-cards { max-width: 1046px; }

  .job-benefits-section::after {
    content: "";
    background: url(/images/1_home/benefits/kazari_under.webp) no-repeat;
    background-size: 100% 124px;
    display: block;
    height: 124px;
  }
}

@media (min-width: 1024px) and (max-width: 1300px){
  .job-flex-wrap-btn{
    max-width: 794px;
    margin: 0 auto;
    width: 100%;
  }
  .job-flex-wrap .btn {
    margin: 0 auto 108px 0;
  }
}

/* Support I・Uターン支援 */
/* Support I・Uターン支援 */
.iu-turn-section {
  background: #eef4f8;
  border-bottom-right-radius: 32px;
}

.iu-turn-container {
  background: #eef4f8 url("/images/1_home/iu_turn/Fukui_ken.webp") no-repeat 50% 148px / 94%;
}

.iu-turn-container .h2-type2-wrap h2::after {
  margin: 16px auto 38px;
}

.iu-turn-container .iu-turn-contents-wrap>p {
  margin: 0 0 40px;
}

.iu-turn-img-wrap li {
  margin: 16px auto;
  max-width: 500px;
  width: 100%;
}

.iu-turn-img-wrap img {
  aspect-ratio: 5/3;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.iu-turn-img-wrap li:last-child img {
  object-position: center 0px;
}

.iu-turn-contents-wrap .btn {
  background-color: #fff;
  max-width: 164px;
}

@media (min-width: 1024px){
  
  .kazari-under2 {
    display: none;
  }

  .iu-turn-section {
    border-bottom-right-radius: 64px;
  }

  .section-container.iu-turn-container {
    height: 767px;
  }

  .iu-turn-container {
    background: #eef4f8 url("/images/1_home/iu_turn/Fukui_ken.webp") no-repeat 22% 40px / 76%;
  }

  .iu-turn-contents-wrap {
    display: grid;
    grid-template-columns: 544px 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: "area1 area3"
      "area2 area3"
      "area4 area3";
    height: 400px;
    gap: 10px;
    margin: 42px auto 0;
    max-width: 1114px;
  }

  .iu-turn-contents-wrap>*:nth-child(1) {
    grid-area: area1;
    margin: 0 auto 0 0;
    text-align: left;
  }

  .iu-turn-container .h2-type2-wrap h2::after {
    margin: 16px auto 38px 0;
  }

  .iu-turn-contents-wrap>*:nth-child(2) {
    grid-area: area2;
    text-align: left;
    margin: 0 0 48px;
  }

  .iu-turn-contents-wrap>*:nth-child(3) {
    grid-area: area3;
    margin: 0 0 0 auto;
  }

  .iu-turn-contents-wrap>*:nth-child(4) {
    grid-area: area4;
    margin: 0 auto 0 0;
    height: 57px;
  }

  .iu-turn-img-wrap li:first-child {
    max-width: 352px;
    margin: 60px 0 54px;
  }

  .iu-turn-img-wrap li:last-child {
    max-width: 325px;
    margin: 0 0 0 -104px;
  }

  .iu-turn-contents-wrap .btn {
    max-width: 216px;
    display: flex;
    align-items: center;
  }
}