@charset "UTF-8";
/* =========================================================
   2026-11 追加分（Instagram 欄・採用バナー）
   既存の style.css は変更せず、このファイルで追加・上書きする
   ========================================================= */

/*===============================
        l-topInsta（Instagram）
===============================*/
.l-topInsta {
  padding-top: 160px;
}

/* デザインでは Instagram 欄と JOIN US の間が詰まっているため、この並びの時だけ狭める */
.l-topInsta + .l-topRec {
  margin-top: 132px;
}

.md-topInsta_contWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54%;
  -moz-column-gap: 4vw;
       column-gap: 4vw;
  align-items: start;
}

.md-topInsta_txtWrap .bl-topSecTtl_sub {
  max-width: 31vw;
  margin-top: 60px;
}

.md-topInsta_link {
  display: inline-flex;
  align-items: center;
  margin-top: 88px;
  padding-right: 3.8em;
}
.md-topInsta_link svg {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
}

.md-topInsta_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  -moz-column-gap: 1.6vw;
       column-gap: 1.6vw;
  row-gap: 0.9vw;
}
.md-topInsta_grid.is-empty {
  display: none;
}

.md-topInsta_item {
  position: relative;
  display: block;
  aspect-ratio: 6/7;
  overflow: hidden;
  background-color: #2E2E2E;
}
.md-topInsta_item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.md-topInsta_item img.is-loaded {
  opacity: 1;
}
.md-topInsta_item:focus-visible {
  outline: 2px solid #61A332;
  outline-offset: 3px;
}

@media only screen and (min-width: 1025px) {
  .md-topInsta_item:hover img {
    transform: scale(1.04);
  }
}
@media only screen and (max-width: 1024px) {
  .l-topInsta {
    padding-top: 80px;
  }
  .l-topInsta + .l-topRec {
    margin-top: 80px;
  }
  .md-topInsta_contWrap {
    display: block;
  }
  .md-topInsta_txtWrap .bl-topSecTtl_sub {
    max-width: none;
    margin-top: 20px;
  }
  .md-topInsta_link {
    margin-top: 32px;
    padding-right: 3.2em;
  }
  .md-topInsta_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    -moz-column-gap: 5.9vw;
         column-gap: 5.9vw;
    row-gap: 3.4vw;
    margin-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .md-topInsta_item img {
    transition: none;
  }
}

/*===============================
        bl-recBanner（追従する採用バナー）
===============================*/
.bl-recBanner {
  position: fixed;
  z-index: 7; /* ヘッダー(9)・スマホメニュー(8)より下 */
  width: 27vw;
  min-width: 300px;
  max-width: 540px;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.7s cubic-bezier(0.4, 0, 0.2, 1), right 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
  /* backwards：出てくる前だけ効かせる。出たあとは引っ込める指定（is-away）が効くようにする */
  animation: recBannerIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.9s backwards;
}
/* トップ：最初は動画の左下の角に合わせる。
   --rb-hero-bottom は rec-banner.js が動画の下端を実際に測って入れる（スマホのアドレスバーの出し入れにも合わせるため）。
   測れない時は計算上の値（動画の下端 = 画面の下から 9vw）を使う */
.bl-recBanner._top {
  left: 3.55vw;
  bottom: var(--rb-hero-bottom, calc(9vw + 12px));
}
/* トップ：スクロールしたら画面の下へ寄せる（下の余白を広げすぎない） */
@media only screen and (min-width: 1025px) {
  .bl-recBanner._top.is-scrolled {
    bottom: 2.8vw;
  }
}
/* 採用ページ：右下 */
.bl-recBanner._recruit {
  right: 3.4vw;
  bottom: 4.2vw;
}

.bl-recBanner_link {
  display: block;
  border: max(2px, 0.21vw) solid #1C1C1C;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  background-color: #1C1C1C;
}
.bl-recBanner_link img {
  display: block;
  width: 100%;
  height: auto;
}
.bl-recBanner_link:focus-visible {
  outline: 2px solid #61A332;
  outline-offset: 3px;
}

/* 閉じるボタン：小さく、半透明で控えめに。押せる範囲は 44px 確保 */
.bl-recBanner_close {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background-color: rgba(28, 28, 28, 0.72);
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bl-recBanner_close::before, .bl-recBanner_close::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background-color: #fff;
}
.bl-recBanner_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.bl-recBanner_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.bl-recBanner_close span {
  position: absolute;
  inset: -9px;
}
.bl-recBanner_close:hover, .bl-recBanner_close:focus-visible {
  opacity: 1;
}
.bl-recBanner_close:focus-visible {
  outline: 2px solid #61A332;
  outline-offset: 2px;
}

/* お問い合わせ欄・フッターの上では引っ込める */
.bl-recBanner.is-away {
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.7s cubic-bezier(0.4, 0, 0.2, 1), right 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.5s;
}

@keyframes recBannerIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media only screen and (max-width: 1024px) {
  .bl-recBanner {
    width: 57vw;
    min-width: 0;
    max-width: 340px;
  }
  /* スマホの採用ページ：画面の右下 */
  .bl-recBanner._recruit {
    left: auto;
    right: 3.6vw;
    bottom: calc(3.6vw + env(safe-area-inset-bottom, 0px));
  }
  /* スマホのトップ：最初は動画の右下の角に重ねる（2026-11-20 指定）。動画の下端（画面の下から約 46vw）は JS が実測 */
  .bl-recBanner._top {
    width: 50vw;
    left: auto;
    right: calc(5.13vw + 4px);
    bottom: var(--rb-hero-bottom, calc(46vw + 4px));
  }
  /* スマホのトップ：動画の再生ボタンを右上へ移す（右下には採用バナーを重ねるため・2026-11-20）。
     元の style.css の指定（bottom: 3.84v）は単位の書き間違いで効いておらず、右下に出ていた */
  .md-topFv_playAnime {
    top: clamp(68px, 18vw, 96px); /* 動画の左上の会社名より下（会社名の右斜め下）。小さい画面でも会社名に重ならない */
    bottom: auto;
    right: 5.13vw;
  }
  /* スマホのトップ：スクロールしたら画面の右下へ寄せる */
  .bl-recBanner._top.is-scrolled {
    right: 3.6vw;
    bottom: calc(3.6vw + env(safe-area-inset-bottom, 0px));
  }
  .bl-recBanner_close {
    top: -10px;
    right: -6px;
    width: 24px;
    height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bl-recBanner {
    animation: none;
    transition: none;
  }
  .bl-recBanner.is-away {
    transition: none;
  }
}
