/* 元のtop-mvスタイル */
/* ローディング画面 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: var(--font-family-obun);
}

.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.3s ease;
}


.top-mv {
    width: calc(100% - 100px);
    margin-left: 100px;
    height: calc(100vh - 124.5px);
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-obun);
    overflow: hidden;
}

.top-mv .page-mv__title {
    font-size: 3.8rem;
    font-family: var(--font-family-obun);
    font-weight: 300;
    z-index: 2;
    position: relative;
    text-align: center;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    line-height: 1.4;
}
.top-mv .page-mv__title span{
    font-size: 2.2rem;
    font-family: var(--font-family);
    letter-spacing: 0.15em;
}

.top-mv .page-mv__title.show {
    opacity: 1;
    transform: translateY(0);
}

/* 動画スライド */
.mv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* 高速化 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-slide.active {
    opacity: 1;
}

@media (max-width: 768px) {
.mv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* 高速化 */
    display: block;
    padding-top: 140px;
    align-items: center;
    justify-content: center;
}
}

.mv-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.mv-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* デスクトップとモバイルの表示切り替え */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

.dot-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/img/dot.png') repeat center center;
    z-index: 9;
} 

/* プログレスインジケーター */
.mv-progress {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.progress-line {
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: white;
    width: 100%;
    transform-origin: right;
    transition: transform 0.1s linear;
}

.progress-line.active .progress-fill {
    animation: shrinkToZero 7s linear forwards;
}

@keyframes shrinkToZero {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}


/* レスポンシブ */
@media (max-width: 768px) {
    .top-mv {
        width: 100%;
        margin-left: 0;
        height: 100vh;
    }
    
    .top-mv .page-mv__title {
        font-size: 2.0rem;
        padding: 0 20px;
    }

    .top-mv #slide-recruit .page-mv__title {
      color: var(--text-color);
      text-shadow: 0 0 0 rgba(0,0,0,0.3);
    }

    .mv-progress {
        left: 20px;
    }
.top-mv .page-mv__title span{
    font-size: 1.5rem;
}
}


/* 既存の .feature-block のスタイルを以下に置き換え */
.feature-block {
  opacity: 0;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  min-height: 70vh;
  padding: 15vh 50px;
  transition: opacity 0.6s ease-in-out;
}
  @media screen and (max-width: 768px) {
   .feature-block {
  opacity: 0;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  min-height: 100vh;
  padding: 50px 20px 2vh 20px;
  align-items: center;
  transition: opacity 0.6s ease-in-out;
} 
  }

.feature-block.active {
  opacity: 1;
}

/* .feature-block-wrapper のスタイルを以下に置き換え */
.feature-block-wrapper {
  position: relative;
  height: 300vh; /* 4つのブロック分のスクロール領域 */
}

.feature-block__inner {
  margin: 0 0 0 0;
  display: grid;
  gap: 100px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.feature-block__left {
  position: relative;

}

.feature-block__number {
  font-weight: bold;
  color: #aa1e3a;
  font-size: 16px;
  margin-bottom: 4px;
}

.feature-block__line {
  border: none;
  margin-bottom: 24px;
}

.feature-block__title {
  font-size: 4.8rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
}

.feature-block__subtitle {
  font-size: 1.3rem;
  font-family: var(--font-family-obun);
  letter-spacing: 0.13em;
}
.feature-block__text {
  margin-top: 60px;
  letter-spacing: 0.13em;
  line-height: 2;
  text-align: justify;
}

.feature-block__right {
  overflow-y: hidden;
  padding: 0 50px;
}
  @media screen and (max-width: 768px) {
  .feature-block__inner {
  margin: 0 30px;
  display: block;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
 .feature-block__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
  margin-top: 30px;
}  
.feature-block__right {
  font-size: 16px;
  line-height: 2;
  margin-left: auto;
  padding: 0 ;
}
.feature-block__subtitle {
  font-size: 1.1rem;

}
.feature-block__text {
  margin-top: 30px;
  letter-spacing: 0.13em;
  line-height: 2;
  text-align: justify;
  font-size: 1.3rem;
}
  }


.top-business-section {
  background-color: var(--bg-color);
  width: 100%;
}

.business-section__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  padding: 60px 0;
}

.business-section__article {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}


.business-section__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  }

  @media screen and (max-width: 768px) {
 .top-business-section {
  margin-bottom: 0;
}   

.business-section__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 50px;
  }
    
  }


.about__article-text {
  margin-bottom: 60px;
}

.business-section__title {
  font-family: var(--font-family-obun);
  letter-spacing: 0.05em;
  font-size: 7.5rem;
  font-weight: 200;
  line-height: 1;
}

.business-section__title--sub {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 60px;
}

.business-section__headline {
  font-size: 2.7rem;
  font-weight: 500;
  margin-bottom: 60px;
}
@media screen and (max-width: 768px) {
  .top-business-section {
  background-color: var(--bg-color);
  width: 100%;
  padding: 0 25px;
}
.business-section__container {
  display: block;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  padding: 60px 0;
}
.business-section__article {
  padding: 0;
  display: block;
  justify-content: center;
  align-items: center;
}
  .business-section__title {
    font-size: 5rem;
  }
  .business-section__title--sub {
    font-size: 1.1rem;
    margin-bottom: 20px;
  } 
 .business-section__headline {
  font-size: 2.0rem;
  font-weight: 500;
  margin-bottom: 20px;
} 
}



/* Value切り替えセクション */
.value-section-wrapper {
  position: relative;
  height: 300vh; /* 2つのセクション分のスクロール領域 */
}

.value-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

/* Value 01は最初から表示（z-indexが低い） */
.value-01 {
  z-index: 1;
}

/* Value 02は下から上にかぶさってくる */
.value-02 {
  z-index: 2;
  transform: translateY(100%);
}


.news-block {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 20px 30px;
  background-color: var(--bg-color);
  background: url(/assets/img/main_bg.gif);
  font-size: 1.3rem;
}

.news-block__inner {
  display: flex;
  gap: 20px;
} 

.news-block__title {
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white-color);
}

.news-block__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.4;
}

.news-block__list .news-block__date {
  margin-right: 20px;
}

@media screen and (max-width: 768px) {
.news-block {
  padding: 15px 20px;
  font-size: 1.2rem;
  background: none;
  background-color: var(--bg-color);
}
.news-block__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.4;
}
}