@charset "UTF-8";
/*
 * トップページ（front-page.php）用：FV動画の差し替え検証（FV_BRIEF・2026-10-24）
 * 2026-11-25 本番反映。
 */

/* ---- FV：16:9・動画の左右を切らない ---- */
/* 流れる文字・カラフルな円は出さない（マークアップは残したまま隠すだけ）。コピー文は動画の下の帯に出す */
#front_page .scrolling-text,
#front_page #floatingCircles {
  display: none;
}
#front_page .home__mv {
  margin-top: 0;
}
#front_page .home__mv-photo {
  margin: 0;
}
/* 〜1024px はヘッダーが動画に重ならないよう、ヘッダーの高さ（50px）だけ下げる */
@media screen and (max-width: 1024px) {
  #front_page .home__mv-photo {
    margin-top: 50px;
  }
}
#front_page .main {
  aspect-ratio: 16 / 9;
  padding-top: 0;
}
#front_page .main video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

/* ---- ヘッダー登場（fv-intro.js が html に .js-intro → .is-header-in を付ける） ---- */
/* transform / opacity だけで隠す。DOM とリンクは常にある */
.js-intro .header {
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}
.js-intro.is-header-in .header {
  transform: none;
  opacity: 1;
}
.js-intro .header__navItem {
  transform: translateY(-30px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.js-intro.is-header-in .header__navItem {
  transform: none;
  opacity: 1;
}
.js-intro .header__navItem:nth-child(1) { transition-delay: 0.25s; }
.js-intro .header__navItem:nth-child(2) { transition-delay: 0.32s; }
.js-intro .header__navItem:nth-child(3) { transition-delay: 0.39s; }
.js-intro .header__navItem:nth-child(4) { transition-delay: 0.46s; }
.js-intro .header__navItem:nth-child(5) { transition-delay: 0.53s; }
.js-intro .header__navItem:nth-child(6) { transition-delay: 0.60s; }
.js-intro .header__navItem:nth-child(7) { transition-delay: 0.67s; }

@media (prefers-reduced-motion: reduce) {
  .js-intro .header,
  .js-intro .header__navItem {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ヘッダーの色は本番のまま（PCは白ロゴ＋mix-blend-mode: difference）。
   2026-10-24b の動画は後半が暗い背景のため、黒ロゴへの切り替えは廃止した */

/* ---- PC：ヘッダーの後ろに暗めのグラデーション（2026-10-25） ---- */
/* 動画の最終フレーム上端の虹色ストライプにメニューが重なって読みにくいため。
   ヘッダー自体は mix-blend-mode: difference なので、ヘッダーに背景を付けると反転してしまう。
   動画の上端（ヘッダーの真後ろ）に重ね、ヘッダーと一緒にフェードインさせる。
   〜1024px はヘッダーが動画に重ならないので不要
   メニュー文字（上端から約 50〜72px）の下 96px までは 65% のまま保ち、文字の背景を均一に暗くする。
   その下で薄くしていき、240px で 0 にする（2026-10-25 濃さ 55%→65%・高さ 170→240px） */
@media screen and (min-width: 1025px) {
  #front_page .main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0, rgba(0, 0, 0, 0.65) 96px, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
  }
  .is-header-in #front_page .main::before {
    opacity: 1;
  }
}
@media screen and (min-width: 1025px) and (prefers-reduced-motion: reduce) {
  #front_page .main::before {
    transition: none;
  }
}

/* ---- FV下のコピー文（PC・SP共通／2026-11-25）：動画の最終フレーム（濃紺）から続く帯に、白文字で出す ---- */
#front_page .home__mv-text {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 36px 20px 40px 44px;
  position: relative;
  background: #0d0f24;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2.1;
  letter-spacing: 0.04em;
}
#front_page .home__mv-text::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 44px;
  bottom: 48px;
  width: 3px;
  background: var(--Green2, #00d084);
}
/* PC：中央に大きく。緑の線は上に短く置く */
@media screen and (min-width: 768px) {
  #front_page .home__mv-text {
    padding: 76px 40px 84px;
    font-size: clamp(2.2rem, 2.2vw, 3.2rem);
    line-height: 2.1;
    letter-spacing: 0.08em;
    text-align: center;
  }
  #front_page .home__mv-text::before {
    left: 50%;
    top: 44px;
    bottom: auto;
    width: 48px;
    height: 4px;
    margin-left: -24px;
    border-radius: 2px;
  }
}
@media screen and (max-width: 767px) {
  /* ---- SP：About 本文の文字を大きく（TOP_SP ②）15px → 16.5px ---- */
  #front_page .home__about p {
    font-size: 1.65rem;
    line-height: 2;
  }
}

/* ---- リンクボタンをブランドの緑の塗りボタンに（2026-11-25 TOP_SP ③④⑤／PC・SP共通） ---- */
/* 色は見出しと同じ緑（#00d084）。緑に白文字は読みにくいので、文字と矢印は黒に近い色にする。「事業内容を見る」の白文字（白背景で見えない）と、
   「私たちの働き方を見る」の縦並びも同時に直す */
#front_page a.btn__cmn {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 340px;
  min-height: 60px;
  padding: 0 56px; /* 文字は中央。矢印は右端に固定するので左右同じ余白を取る */
  background: #00d084;
  border-radius: 999px;
  position: relative;
  z-index: 3; /* 装飾の大きな文字（パララックス）より手前に出す */
  transition: background-color 0.2s;
}
#front_page a.btn__cmn:hover,
#front_page a.btn__cmn:active {
  background: #00b874;
}
#front_page a.btn__cmn .btn__text {
  padding: 0;
  color: #fff;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
#front_page a.btn__cmn .btn__arrow {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 48px;
  height: 48px;
  margin: -24px 0 0;
  transition: transform 0.2s;
}
#front_page a.btn__cmn:hover .btn__arrow {
  transform: translateX(6px);
}
#front_page a.btn__cmn .btn__arrow::before {
  top: 23px;
  left: 15px;
  width: 17px;
  height: 2px;
  background: #fff;
}
#front_page a.btn__cmn .btn__arrow::after {
  top: 18px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-color: #fff;
}
@media screen and (max-width: 767px) {
  #front_page a.btn__cmn {
    margin-left: auto;
    margin-right: auto;
  }
  /* 「事業内容を見る」だけ幅が狭くならないよう、ボタンの入る li の左右の余白をそろえる */
  #front_page .home__service-scrollListItem:last-child {
    padding-left: 14px;
    padding-right: 14px;
  }
  #front_page .home__recruit a.btn__cmn {
    margin-top: 110px;
    margin-bottom: 70px;
  }
}
@media screen and (min-width: 768px) {
  #front_page a.btn__cmn {
    width: -moz-fit-content;
    width: fit-content;
    min-width: 340px;
    max-width: none;
    min-height: 68px;
    padding: 0 64px;
  }
  #front_page a.btn__cmn .btn__arrow {
    right: 10px;
  }
  #front_page a.btn__cmn .btn__text {
    font-size: 1.8rem;
  }
}

/* ---- 「DEGITAL」→「DIGITAL」のつづりを直した画像に差し替え（2026-11-25 TOP_SP ⑥-3） ---- */
/* 元の画像（img_service*.png）は残したまま、直した画像（img_service_*_digital*.png）で上書きする */
#front_page .service__an-listItem p {
  background-image: -webkit-image-set(url(../../img/home/img_service_pc_digital.png) 1x, url(../../img/home/img_service_pc_digital@2x.png) 2x);
  background-image: image-set(url(../../img/home/img_service_pc_digital.png) 1x, url(../../img/home/img_service_pc_digital@2x.png) 2x);
}
@media screen and (max-width: 767px) {
  #front_page .service__an-listItem p {
    background-image: -webkit-image-set(url(../../img/home/img_service_sp_digital.png) 1x, url(../../img/home/img_service_sp_digital@2x.png) 2x);
    background-image: image-set(url(../../img/home/img_service_sp_digital.png) 1x, url(../../img/home/img_service_sp_digital@2x.png) 2x);
  }
}

/* ---- 事業内容「成果報酬型広告」カード内のLPリンク（⑥-5）：白文字＋下線＋矢印 ---- */
#front_page .home__service-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
#front_page .home__service-links a {
  display: inline-block;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}
#front_page .home__service-links a::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  text-decoration: none;
  transition: transform 0.2s;
}
#front_page .home__service-links a:hover {
  opacity: 0.8;
}
#front_page .home__service-links a:hover::after {
  transform: translateX(4px);
}
/* PCはカードが円形。リンクは白いボタンにして中央に縦に並べ、押せることが分かるようにする（2026-11-25） */
@media screen and (min-width: 768px) {
  #front_page .home__service-links {
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }
  #front_page .home__service-links a {
    font-size: 1.2rem;
  }
  /* 円は下ほど幅が狭いので、いちばん長いリンクを上、短いリンクを下に並べる（見た目だけ。HTMLの順番は変えない） */
  #front_page .home__service-links li:nth-child(2) { order: 1; }
  #front_page .home__service-links li:nth-child(3) { order: 2; }
  #front_page .home__service-links li:nth-child(1) { order: 3; }
}
/* 白いボタンにするのは 1024px 以上。768〜1023px は円が小さく収まらないので、スマホと同じ下線のリンクのまま */
@media screen and (min-width: 1024px) {
  #front_page .home__service-links a {
    padding: 3px 16px;
    background: #fff;
    border-radius: 999px;
    color: #222;
    font-size: 1.4rem;
    line-height: 1.7;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
  }
  #front_page .home__service-links a:hover {
    background: #222;
    color: #fff;
    opacity: 1;
  }
}

/* 円が小さくなる幅（〜1279px）では、ボタンを少し小さくして円の中に収める */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  #front_page .home__service-links {
    gap: 4px;
    margin-top: 6px;
  }
  #front_page .home__service-links a {
    padding: 2px 13px;
    font-size: 1.2rem;
  }
}

/* 768〜1023px（タブレット縦）は円がいちばん小さく、説明文だけで一杯になる。リンクは出さない
   （「事業内容を見る」ボタンから /service/ 経由でLPへ行ける） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  #front_page .home__service-links {
    display: none;
  }
}

/* ---- About：流れる写真を、同じ大きさの写真15枚（WebP）に差し替え（2026-11-25） ---- */
/* 元の背景画像（about_slide-photo.png）は出さず、同じ位置（区画の下端）に写真の列を置く */
#front_page .home__about {
  background-image: none;
  animation: none;
  padding-bottom: 320px; /* 写真の列（高さ180px）に合わせて余白を詰める（元は380px） */
}
#front_page .home__about-photos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
  overflow: hidden;
}
#front_page .home__about-photosTrack {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: fnAboutPhotos 80s linear infinite;
  will-change: transform;
}
#front_page .home__about-photosTrack li {
  flex: none;
  width: 270px;
  margin-right: 16px;
}
#front_page .home__about-photosTrack img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}
@keyframes fnAboutPhotos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media screen and (min-width: 768px) {
  #front_page .home__about {
    padding-bottom: 580px; /* 写真の列（高さ320px）に合わせる（元は710px） */
  }
  #front_page .home__about-photos {
    bottom: 120px;
  }
  #front_page .home__about-photosTrack li {
    width: 480px;
    margin-right: 28px;
  }
  #front_page .home__about-photosTrack img {
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #front_page .home__about-photosTrack {
    animation: none;
  }
}

/* ごく幅の狭いスマホ（〜359px）：コピー文の3行目が折り返さないよう、文字を少し小さくする */
@media screen and (max-width: 359px) {
  #front_page .home__mv-text { padding-left: 38px; padding-right: 14px; font-size: 1.4rem; letter-spacing: 0.02em; }
  #front_page .home__mv-text::before { left: 20px; }
}
