/* ローディング */
#progress {
  display: none; /* 初期は消す */
}

.progress {
  position: fixed;
  z-index: 999;
  inset: 0; /* width/height/left/topをまとめて */
  background-color: #9aa6b2;
}

.progress_inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  overflow: hidden;
}

.progress_box {
  transition: 0.4s;
}

body.is-show .progress_box {
  transform: translateY(100px);
  opacity: 0;
}

/* フェイルセーフ：完了後は覆いごと消す */
body.is-fin .progress {
  display: none;
}

.progress_logo {
  width: 400px;
  max-width: 90vw; /* 追加：モバイル安全策 */
  margin: 0 auto;
}

.progress_bar {
  display: block;
  width: 0%;
  height: 4px;
  margin: 20px 0 15px;
  background: linear-gradient(
    -90deg,
    rgba(235, 200, 50, 1),
    rgba(235, 200, 50, 0)
  );
  transition: width 0.6s ease-out; /* ← リアル感のある“じわ伸び” */
}

.progress_txt {
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.5em;
}

.progress_txt.en {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  margin-top: 80px;
}

/* パララックス効果 */
.parallax {
  will-change: transform;
  transition: transform 0.1s linear; /* 滑らかさ調整 */
}

/* === アニメ初期ステート（任意：JSで付与する場合の保険） === */
.a-hide-up,
.a-hide-fade {
  opacity: 0;
  will-change: transform, opacity;
}
.a-hide-up {
  transform: translateY(32px);
}

/* JS前でも効く“初期の非表示”（html.has-anim フラグ） */
.has-anim .hero-logo,
/* .has-anim .hero-slogan, */
/* .has-anim .hero .roboto, */
.has-anim .section-title-ja,
/* .has-anim .about .blk-right > *, */
/* .has-anim .news .blk-left > *, */
.has-anim .news .news-item,
.has-anim .service.body .contents > p,
.has-anim .service.body .blk-first .blk-item,
.has-anim .service.body .blk-third .blk-item,
.has-anim .service.body.works .works-item,
/* .has-anim .about.company .blk-left > *, */
.has-anim .service.heading.recruit .section-title-ja,
/* .has-anim .service.heading.recruit .section-title-en, */
.has-anim .service.body.recruit .recruit-list-item,
.has-anim .service.body.recruit .blk-right > * {
  opacity: 0;
  transform: translateY(32px);
  will-change: transform, opacity;
}

.has-anim .hero-image,
.has-anim .section-title-en,
.has-anim .hero .btn, /* 必要なら .hero .btn に限定 */
.has-anim .scroll,
.has-anim .service.body .blk-second .icon,
.has-anim .site-footer .footer-top > *,
.has-anim .site-footer .footer-bottom > * {
  opacity: 0;
  will-change: opacity;
}

/* ユーザーが“動きを減らす”設定のときは即時表示（統合版） */
@media (prefers-reduced-motion: reduce) {
  .a-hide-up,
  .a-hide-fade,
  .has-anim .hero-logo,
  .has-anim .hero-slogan,
  .has-anim .hero .roboto,
  .has-anim .hero-image,
  .has-anim .section-title-ja,
  .has-anim .section-title-en,
  .has-anim .btn,
  .has-anim .scroll,
  .has-anim .about .blk-right > *,
  .has-anim .news .blk-left > *,
  .has-anim .news .news-item,
  .has-anim .service.body .contents > p,
  .has-anim .service.body .blk-first .blk-item,
  .has-anim .service.body .blk-second .icon,
  .has-anim .service.body .blk-third .blk-item,
  .has-anim .service.body.works .works-item,
  .has-anim .about.company .blk-left > *,
  .has-anim .service.heading.recruit .section-title-ja,
  .has-anim .service.heading.recruit .section-title-en,
  .has-anim .service.body.recruit .recruit-list-item,
  .has-anim .service.body.recruit .blk-right > *,
  .has-anim .site-footer .footer-top > *,
  .has-anim .site-footer .footer-bottom > * {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
}

/* テキストアニメーション */
.fx-chars .char {
  /* display: inline-block; */
  will-change: transform, opacity;
}

/* 画像アニメーション */
/* .reveal-image {
  position: relative;
  overflow: hidden;
}

.reveal-image img {
  width: 100%;
  height: auto;
  display: block;
} */

.image-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* inset:0 の展開形 */
  /* background: #9aa6b2; */
  /* background: #ffcb2d; */
  background: #fff;

  /* 初期状態で全面カバー */
  transform: translateX(0%);
  will-change: transform;
  backface-visibility: hidden;
}

noscript .image-overlay {
  display: none !important;
}

@media only screen and (max-width: 767px) {
  /* ローディング */
  .progress_logo,
  .progress_txt {
    width: calc(100% - 80px);
    margin: auto;
  }

  .progress_bar {
    height: 3px;
  }

  .progress_txt {
    font-size: 13px;
    letter-spacing: 0.4em;
  }
}

.gradation-1 {
  /* display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background-size: 200% 200%; */
  background: linear-gradient(180deg, #0cb1c1, #3948b9);
  animation: Grad 5s ease infinite;
}

/* @keyframes Grad {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
} */

.gradation-2 {
  /* display: flex;
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: center;
  position: absolute; */
  /* background-image: linear-gradient(90deg, #fff 0%, #888 50%, #fff 100%); */
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.2) 60%,
      rgba(255, 255, 255, 0.8) 100%
    ),
    url("/asset/images/common/img-steel.png");
  background-position: 0% 0%;
  animation: Grad 5s linear infinite;
  /* animation-delay: 0.5s; */
  background-size: 3000px 50%;
}

@keyframes Grad {
  0% {
    background-position: 0 0%;
  }
  100% {
    background-position: 3000px 0%;
  }
}
