/*
 * Next ITM フロントページ専用スタイルシート
 * main.css（共通）を読み込んだ上で、フロントページ（front-page.php）でのみ読み込む
 * Top_Hero
 * Top FV
 * Top Concept
 * Top Business
 * Top Works
 * Top Recruit
 */

/* ==========================================================================
   Top_Hero (top_fv / top_concept)
   ========================================================================== */
.top_hero {
  color: #fff;
  position: relative;
  z-index: 0;
  overflow: clip;
}

.top_hero_content {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Top FV
   ========================================================================== */
.top_fv_zoom {
  position: relative;
  height: 160vh;
}

.top_fv {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
  text-align: center;
}

.top_fv_inner {
  position: relative;
  z-index: 2;
  padding: 0 10px;
}

.top_fv_catch {
  margin: 0;
  font-family: var(--font_en);
  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 1;
}

.top_fv_catch_row {
  display: block;
  letter-spacing: 4px;
}
.top_fv_catch_row-2 {
  position: relative;
  z-index: -1;
  font-size: 1.93em;
  transform-origin: 50% 50%;
}

.top_fv_catch_with {
  display: block;
  width: 4em;
  /*height: clamp(4rem, 9vw, 8rem);*/
  position: absolute;
  top: 0.3em;
  left: 50%;
  translate: -50% 0;
}

.top_fv_catch_with img {
  width: 100%;
  height: 100%;
}

.top_fv_lead {
  font-family: var(--font_sub);
  font-size: clamp(20px, 4.8vw, 33px);
  font-weight: 700;
  letter-spacing: 0.1em;
  position: relative;
  top: -12px;
}

/* ヒーローの入場アニメーション（読み込み完了後に開始、完了後はスクロール用JSに制御を戻す） */
@keyframes fvRevealRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fvRevealTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fvRevealLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fvRevealBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top_fv_catch_row-1,
.top_fv_catch_with,
.top_fv_catch_row-2,
.top_fv_lead {
  animation-duration: 1.8s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: backwards;
  animation-play-state: paused;
}

.top_fv_catch_row-1 {
  animation-name: fvRevealRight;
  animation-delay: 0.3s;
}
.top_fv_catch_with {
  animation-name: fvRevealTop;
  animation-delay: 0.6s;
}
.top_fv_catch_row-2 {
  animation-name: fvRevealLeft;
  animation-delay: 0.9s;
}
.top_fv_lead {
  animation-name: fvRevealBottom;
  animation-delay: 1.35s;
}

html:not(.is-loading) .top_fv_catch_row-1,
html:not(.is-loading) .top_fv_catch_with,
html:not(.is-loading) .top_fv_catch_row-2,
html:not(.is-loading) .top_fv_lead {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .top_fv_catch_row-1,
  .top_fv_catch_with,
  .top_fv_catch_row-2,
  .top_fv_lead {
    animation: none;
  }
}

@media (max-width: 767px) {
  .top_fv_zoom {
    height: 170vh;
  }
}

.top_fv_scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.top_fv_scroll_text {
  font-family: var(--font_en);
  font-size: var(--font_size-xs);
  letter-spacing: 0.1em;
}

.top_fv_scroll_line {
  position: relative;
  width: 1px;
  height: 70px;
  margin-top: 12px;
  background-color: rgba(255, 255, 255, 0.4);
}

.top_fv_scroll_line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% {
    top: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ==========================================================================
   Top Concept
   ========================================================================== */
.top_concept {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: 200px 580px;
}

.top_concept_catch {
  display: flex;
  align-items: center;
  margin: 0;
  font-family: var(--font_en);
  font-size: clamp(2rem, 5.3vw, 4.375rem);
  font-weight: 700;
  letter-spacing: 4px;
}

.top_concept_catch_with {
  display: inline-block;
  width: clamp(2em, 8vw, 120px);
  position: relative;
  z-index: 2;
}
.top_concept_catch_with img {
  max-width: inherit;
  width: 2.4em;
  position: relative;
  left: -0.3em;
}

.top_concept_sub {
  margin: 1px 0 0;
  font-family: var(--font_sub);
  font-size: var(--font_size-2xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ALWAYS / with / YOU / リード文を順番に表示する */
.top_concept_catch > *,
.top_concept_sub {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.top_concept_catch > *:nth-child(1) {
  transition-delay: 0.1s;
}
.top_concept_catch > *:nth-child(2) {
  transition-delay: 0.25s;
}
.top_concept_catch > *:nth-child(3) {
  transition-delay: 0.4s;
}
.top_concept_sub {
  transition-delay: 0.55s;
}

.top_concept_content.is-inview .top_concept_catch > *,
.top_concept_content.is-inview .top_concept_sub {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .top_concept_catch > *,
  .top_concept_sub {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.top_concept_text {
  margin-top: 68px;
  margin-bottom: 76px;
}
.top_concept_text p + p {
  margin-top: 30px;
}

@media (min-width: 768px) {
  .top_concept_content {
    min-width: 574px;
    width: 50%;
  }
}

@media (max-width: 767px) {
  .top_concept {
    padding-block: 100px 300px;
  }
  .top_concept_sub {
    font-size: max(1rem, 4.26vw);
  }
}

/* ==========================================================================
   Top Business
   ========================================================================== */
.top_business {
  background-color: #fff;
  color: var(--black);
  overflow: hidden;
  position: relative;
  /*padding-block: 120px;*/
  z-index: 1;
}

.top_business_shape {
  position: absolute;
  left: -23%;
  top: -14%;
  width: 100%;
  max-width: inherit;
  z-index: 1;
}

.top_business_inner {
  display: grid;
  grid-template-columns: 29% 1fr;
  gap: 50px;
  align-items: start;
  padding-block: 180px 134px;
  position: relative;
  z-index: 1;
}

.top_business_title {
  margin: 0 0 32px;
  font-family: var(--font_sub);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.top_business_text {
  margin-bottom: 50px;
}

.business_marquee {
  position: relative;
  z-index: 2;
}

.business_marquee_text {
  line-height: 1.2;
  opacity: 0.2;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.business_marquee_text .splide__track,
.business_marquee_text .splide__list {
  height: 100%;
}

.business_marquee_text .splide__slide {
  font-family: var(--font_en);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  padding-inline: 24px;
  white-space: nowrap;
}

.business_marquee_images {
  position: relative;
  z-index: 1;
  margin-top: -50px;
}

.business_marquee_images .splide__slide {
  width: 31.25%; /* 3枚 + 4枚目が20%見える */
  flex: none;
}

@media (max-width: 767px) {
  .top_business_inner {
    grid-template-columns: 1fr;
    padding-block: 80px;
  }
  .top_business_shape {
    left: -50%;
    top: -3%;
    width: 161%;
  }
  .business_marquee_images {
    margin-top: -20px;
  }
  .business_marquee_images .splide__slide {
    width: 74%; /* 1枚 + 2枚目が20%見える */
  }
}

.business_marquee_images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ==========================================================================
   Top Works
   ========================================================================== */
.top_works {
  background-color: #fff;
  color: #000;
  overflow: hidden;
  padding-block: 160px 330px;
  position: relative;
  z-index: 1;
}

.top_works_head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 90px;
}

.top_works_slider {
  position: relative;
  z-index: 1;
  padding-left: calc((100% - min(82%, 1200px)) / 2);
}

.top_works_slider .splide__pagination {
  left: 0;
  right: 0;
  bottom: -9.5em;
  padding-inline: 0;
  gap: 0;
  max-width: 1200px;
}

.top_works_slider .splide__pagination li {
  flex: 1;
}

.top_works_slider .splide__pagination__page {
  width: 100%;
  height: 3px;
  margin: 3px 0;
  border-radius: 2px;
  background-color: #dedede;
  opacity: 1;
}

.top_works_slider .splide__pagination__page.is-active {
  transform: none;
}

.top_works_slider .splide__pagination__indicator {
  position: absolute;
  top: 10px;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background-color: #1e1e1e;
  transition: left 0.4s ease, width 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.top_works_slider_cta {
  margin-top: 10.5em;
  margin-left: 8%;
}

@media (min-width: 768px) {
  .top_works_slider .top_works_slider_cta {
    display: none;
  }
}

@media (max-width: 767px) {
  .top_works {
    padding-block: 100px 140px;
  }
  .top_works_head .c-btn.pc {
    display: none;
  }
  .top_works_slider {
    /* スマホは中央表示にして、前後のスライドを両サイドにチラ見せする。
       余白は Splide 側の padding オプションで付与するため、ここでは打ち消す。 */
    padding-left: 0;
    padding-right: 0;
  }
  .top_works_slider .splide__pagination {
    bottom: -6.5em;
    width: 82%;
    margin-inline: auto;
  }
  .top_works_slider .splide__pagination__indicator {
    top: 8px;
  }
}

.top_works_card {
  display: block;
  color: inherit;
}

.top_works_card_thumb {
  aspect-ratio: 16 / 10.7;
  overflow: hidden;
  background-color: #eee;
}

.top_works_card_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top_works_card_meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--font_en);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.top_works_card_cat {
  position: relative;
  padding-left: 16px;
}

.top_works_card_cat::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 14px;
  background-color: currentColor;
  transform: translateY(-50%);
}

.top_works_card_title {
  font-size: var(--font_size-lg);
  font-weight: 500;
  line-height: 1.7;
}

/* ==========================================================================
   Top Recruit
   ========================================================================== */
.top_recruit {
  position: relative;
  z-index: 1;
  display: flex;
  padding-block: 110px 95px;
  color: #fff;
}

.top_recruit_bg {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.top_recruit_bg_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top_recruit_overlay {
  background-color: rgb(0, 0, 0);
  opacity: 0.7;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.top_recruit_bg .c-noise {
  mix-blend-mode: screen;
  z-index: 2;
}

.top_recruit_inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.top_recruit_bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.top_recruit_sub {
  font-family: var(--font_sub);
  font-size: clamp(1.125rem, 1.75vw, 1.75rem);;
  font-weight: 700;
  line-height: 1.7;
  margin: 32% 0 35px;
}

.top_recruit_catch {
  margin: 0;
  font-family: var(--font_en);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.top_recruit_btn_wrap {
  margin-right: 8%;
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .top_recruit_sub {
    margin: 110px 0 40px;
  }
  .top_recruit_bottom {
    gap: 80px;
  }
}

