@charset "UTF-8";
/* =========================== */
/* ヒーローセクション  */
/* =========================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 120px; /* ヘッダーの高さ分を確保 */
  height: 980px; /* XDデザインの高さに固定 */
}

/* 1920px以下の画面幅での調整 */
@media (max-width: 1920px) {
  .hero {
    height: 51vw; /* 1920pxの980pxに相当する比率を維持 (980/1920 = 0.51) */
    min-height: 500px;
  }
}

/* クロスフェードのためのスタイル調整 */
.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: visible; /* visibilityをvisibleに固定 */
  transition: opacity 1.5s ease-in-out;
  top: 0;
  left: 0;
  z-index: 0; /* 非アクティブスライドは下に */
}

/* アクティブなスライド */
.hero-slide.active {
  opacity: 1;
  z-index: 1; /* アクティブなスライドを上に */
}

/* スライドエリアを適切な高さに保つ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden; /* はみ出し防止 */
}

/* 画像コンテナ */
.hero-image-container {
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: hidden;
}

/* PC/SP用画像 - Bootstrapのユーティリティクラスを使うので最小限に */
.hero-pc,
.hero-sp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* ヒーローローダースタイル */
.hero-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-loader .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #008e44; /* サイトのメインカラーに合わせる */
}

/* スマホ表示用のカスタムクラス */
.d-custom-block-mobile {
  display: none !important;
}

/* タブレットサイズでPC画像を強制表示 (890px以下) */
@media (max-width: 890px) {
  .d-custom-block-mobile {
    display: block !important;
  }
  /* hero セクションの構造調整 */
  .hero {
    height: auto !important;
    margin-top: 90px;
    min-height: auto !important;
    position: relative; /* 相対位置に設定 */
  }

  /* スライダーコンテナの設定 */
  .hero-slider {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    overflow: hidden !important; /* はみ出し防止 */
  }

  /* スライドの基本設定 */
  .hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    opacity: 0 !important;
    transition: opacity 1.5s ease-in-out !important;
    z-index: 0 !important;
  }

  /* アクティブスライドの特別扱い */
  .hero-slide.active {
    position: relative !important; /* 高さ計算のため */
    display: block !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }

  /* 非アクティブスライドは完全に非表示にせず、透明に */
  .hero-slide:not(.active) {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: auto !important;
    width: 100% !important;
    z-index: 0 !important;
    visibility: visible !important; /* 表示状態を維持 */
  }

  /* 画像コンテナの設定 */
  .hero-image-container {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    background-color: transparent !important; /* 背景透明化 */
  }

  /* PC画像を強制表示 */
  .hero-pc {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: opacity !important; /* GPUアクセラレーション促進 */
    backface-visibility: hidden !important; /* フリッカー防止 */
  }

  /* SP画像は非表示 */
  .hero-sp {
    display: none !important;
  }
}

/* スマホサイズでSP画像を強制表示 (576px以下) */
@media (max-width: 576px) {
  .hero {
    margin-top: 90px;
  }

  /* PC画像を非表示 */
  .hero-pc {
    display: none !important;
  }

  /* SP画像を強制表示 */
  .hero-sp {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: opacity !important; /* GPUアクセラレーション促進 */
    backface-visibility: hidden !important; /* フリッカー防止 */
  }
}

/* =========================== */
/* コンテンツセクション */
/* =========================== */
.content-section {
  position: relative;
  background-image: url("/rcs-newgrad/assets/images/content_area_bg.png");
  background-size: 2031px auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: 40px 0;
  min-height: 1150px;
  overflow: hidden;
  max-width: 1920px;
  margin: 0 auto;
}

/* 画面サイズに応じた高さ調整 */
@media (max-width: 1920px) {
  .content-section {
    min-height: 1120px;
  }
}
@media (max-width: 1730px) {
  .content-section {
    min-height: 1100px;
  }
}
@media (max-width: 1440px) {
  .content-section {
    min-height: 1150px;
  }
}
@media (max-width: 1280px) {
  .content-section {
    min-height: 1000px;
  }
}
@media (max-width: 991px) {
  .content-section {
    min-height: 800px;
  }
}
@media (max-width: 890px) {
  .content-section {
    position: relative;
    background-image: url("/rcs-newgrad/assets/images/content_area_bg_sp.png");
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    min-height: 850px !important;
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
  }
}
@media (max-width: 840px) {
  .content-section {
    background-image: url("/rcs-newgrad/assets/images/content_area_bg_sp.png");
    min-height: 800px !important;
  }
}
@media (max-width: 440px) {
  .content-section {
    background-image: url("/rcs-newgrad/assets/images/content_area_bg_sp.png");
    min-height: 1200px !important;
    max-width: 390px;
  }
}
/* 左側縦ブロックの背景 */
.content-left {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 160%;
  background-image: url("/rcs-newgrad/assets/images/left_block_bg.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
}
/* ボタンの調整 */
.content-left .btn-image {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 340px;
  transition: transform 0.3s ease;
}
.content-left .btn-image:hover {
  transform: translateX(-50%) scale(1.05);
}
/* 右側画像グリッド */
.content-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
}
/* 画像リンクのデザイン */
.content-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
  background-color: #fff;
  position: relative;
}
.content-grid img {
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.content-grid a:hover img {
  transform: scale(1.05);
}
.content-grid .more {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 12px;
  color: #6c757d;
}
/* スマホ・タブレット用 */
@media (max-width: 1200px) {
  .content-grid {
    grid-gap: 10px;
  }
}
@media (max-width: 991px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
    grid-gap: 8px;
  }
}
@media (max-width: 890px) {
  .content-left {
    background-image: url("/rcs-newgrad/assets/images/sp_left_block_bg.png");
    background-size: 100% auto;
    max-width: 390px;
    height: 573px;
    padding-bottom: 0;
    margin: 0 auto 20px;
    width: 100%;
  }
  .content-grid {
    grid-template-columns: 1fr 1fr;
    grid-gap: 5px;
  }
  /* ボタンの調整 */
  .content-left .btn-image {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 340px;
    transition: transform 0.3s ease;
  }
}
@media (max-width: 440px) {
  /* ボタンの調整 */
  .content-left .btn-image {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 340px;
    transition: transform 0.3s ease;
  }
}

/* =========================== */
/* インタビューセクション */
/* =========================== */
.interview-section {
  padding: 30px 0;
}

/* セクションタイトル */
.section-title h3 {
  font-size: 24px;
  color: #008e44;
  position: relative;
}
.section-title h3.text-title {
  font-family: "Square Peg";
}
/* インタビューリストラッパー */
.interview-list-wrapper {
  position: relative;
  overflow: hidden;
}

/* インタビューリスト */
.interview-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  /* 中央寄せのためのパディング */
  padding-left: calc(50% - 180px);
  padding-right: calc(50% - 180px);
}

/* Chrome, Safari, Edge でスクロールバーを非表示 */
.interview-list::-webkit-scrollbar {
  display: none;
}

/* インタビューアイテム */
.interview-item {
  display: block;
  position: relative;
  width: 360px;
  flex: 0 0 360px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  overflow: hidden;
  margin: 0 8px;
}

.interview-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: opacity 0.7s ease; /* フェード効果のためのトランジション */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ホバーエフェクト - フェード設定 */
.interview-item a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 1;
}

/* 各インタビュー項目のホバー画像を設定 */
.interview-item a[href="/rcs-newgrad/interview/new01/"]::before {
  background-image: url("/rcs-newgrad/interview/new01/images/new01_link_ov.png");
}

.interview-item a[href="/rcs-newgrad/interview/new02/"]::before {
  background-image: url("/rcs-newgrad/interview/new02/images/new02_link_ov.png");
}

.interview-item a[href="/rcs-newgrad/interview/new03/"]::before {
  background-image: url("/rcs-newgrad/interview/new03/images/new03_link_ov.png");
}

.interview-item a[href="/rcs-newgrad/interview/new04/"]::before {
  background-image: url("/rcs-newgrad/interview/new04/images/new04_link_ov.png");
}

.interview-item a[href="/rcs-newgrad/interview/new05/"]::before {
  background-image: url("/rcs-newgrad/interview/new05/images/new05_link_ov.png");
}

.interview-item a[href="/rcs-newgrad/interview/new06/"]::before {
  background-image: url("/rcs-newgrad/interview/new06/images/new06_link_ov.png");
}

/* ホバー時：元の画像を透明に、疑似要素を表示 */
.interview-item a:hover .interview-img {
  opacity: 0;
}

.interview-item a:hover::before {
  opacity: 1;
}

/* スケールエフェクトを無効化 */
.interview-item a:hover .interview-img {
  transform: none;
}

/* スマホ表示時のスクロール矢印ナビゲーション */
.scroll-arrow-navigation {
  position: relative;
  height: 30px;
  width: 100%;
}

.scroll-arrow-left,
.scroll-arrow-right {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
}

.scroll-arrow-left {
  left: 0;
}

.scroll-arrow-right {
  right: 15px;
}

button.arrow-left,
button.arrow-right {
  width: 100%;
  height: 100%;
  background: none;
  border: none !important;
  font-size: 24px !important;
  font-weight: bolder;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #000 !important;
}

.arrow-left.disabled,
.arrow-right.disabled {
  opacity: 0.5;
  cursor: default;
}

/* インタビュータイトル画像 */
.interview-title-img {
  width: 360px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* インタビュー一覧を見るボタン */
#interview-section .btn-image {
  display: inline-block;
  transition: transform 0.3s ease;
}

#interview-section .btn-image:hover {
  transform: scale(1.05);
}

.interview-button {
  width: 380px;
  height: 80px;
  object-fit: contain;
}

/* レスポンシブ対応 - インタビューセクション */
@media (max-width: 1400px) {
  .interview-item {
    flex: 0 0 330px;
    width: 330px;
  }

  .interview-img {
    height: 440px;
  }

  .interview-list {
    padding-left: calc(50% - 165px);
    padding-right: calc(50% - 165px);
  }
}

@media (max-width: 991px) {
  .interview-item {
    flex: 0 0 300px;
    width: 300px;
  }

  .interview-img {
    height: 400px;
  }

  .interview-list {
    padding-left: calc(50% - 150px);
    padding-right: calc(50% - 150px);
  }
}

@media (max-width: 767.98px) {
  .interview-item {
    flex: 0 0 280px;
    width: 280px;
  }

  .interview-img {
    height: 380px;
  }

  .section-title h3 {
    font-size: 22px;
  }

  .interview-list {
    padding-left: calc(50% - 140px);
    padding-right: calc(50% - 140px);
  }
}

@media (max-width: 575.98px) {
  .interview-section {
    padding: 20px 0;
  }

  .interview-item {
    flex: 0 0 268px;
    width: 268px;
  }

  .interview-img {
    height: 374px;
  }

  .section-title h3 {
    font-size: 20px;
  }

  .interview-button {
    width: 320px;
    height: 65px;
  }

  .interview-list {
    padding-left: calc(50% - 134px);
    padding-right: calc(50% - 134px);
  }

  /* スマホサイズでのセクション間の余白調整 */
  .mt-5 {
    margin-top: 1rem !important;
  }
}

/* インタビュースライダー調整 - 新規追加スタイル */
.interview-slider {
  position: relative;
  overflow: hidden;
}

/* スマホ表示時のスクロール矢印ナビゲーション */
.scroll-arrow-navigation {
  position: relative;
  height: 30px;
  width: 100%;
}

.scroll-arrow-left,
.scroll-arrow-right {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
}

.scroll-arrow-left {
  left: 0;
}

.scroll-arrow-right {
  right: 0;
}

.arrow-left,
.arrow-right {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  border: none !important;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.arrow-left:hover,
.arrow-right:hover {
  background-color: #eaeaea;
}

.arrow-left.disabled,
.arrow-right.disabled {
  opacity: 0.5;
  cursor: default;
}

/* PCビューでのSwiper設定 */
@media (min-width: 768px) {
  .swiper-wrapper {
    transition-timing-function: ease-out;
  }

  .swiper-slide {
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  /* スワイパーループ時の余分なマージンを調整 */
  .swiper-slide-duplicate {
    visibility: visible !important;
  }
}

/* ホバー効果の改善 */
.interview-item a {
  display: block;
  position: relative;
  overflow: hidden;
}

/* YouTubeバッジの位置調整 */
.youtube-badge {
  position: absolute;
  top: 20px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-image: url("/rcs-newgrad/assets/images/badge_youtube.png");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
}

/* スマホサイズでYouTubeバッジを小さくする */
@media (max-width: 576px) {
  .youtube-badge {
    width: 40px;
    height: 40px;
  }
}
