/* sec__wide-heading を親containerから全幅に拡張 */
.page-content .sec__wide-heading {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
}

/* ページネーション */
.navigation.pagination {
  display: flex;
  justify-content: center;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #2592c7;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #fff;
}

.navigation.pagination .page-numbers:hover {
  background: #2592c7;
  color: #fff;
  border-color: #2592c7;
}

.navigation.pagination .page-numbers.current {
  background: #2592c7;
  color: #fff;
  border-color: #2592c7;
}

.navigation.pagination .page-numbers.dots {
  border: none;
  background: none;
  min-width: auto;
  padding: 0 4px;
  color: #999;
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  font-size: 13px;
}

/* Reset box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 横スクロール防止 */
html,
body {
  overflow-x: hidden;
}



/* ハンバーガーメニュー（React用） */
.navbar-toggler-react {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  /* WordPress版: Bootstrap標準のnavbar-togglerを表示 */
  .navbar-toggler {
    display: block !important;
  }

  /* React用トグルボタンは非表示（WordPress版では不使用） */
  .navbar-toggler-react {
    display: none !important;
  }

  .navbar-toggler-bar {
    display: block;
    position: relative;
    width: 26px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: all 0.3s ease;
  }

  .navbar-toggler-bar + .navbar-toggler-bar {
    margin-top: 6px;
  }

  .navbar.bg-white:not(.navbar-transparent) .navbar-toggler-bar {
    background: #333;
  }

  /* トグル時のXアニメーション */
  .nav-open .navbar-toggler .navbar-toggler-bar.top-bar {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-open .navbar-toggler .navbar-toggler-bar.middle-bar {
    opacity: 0;
  }

  .nav-open .navbar-toggler .navbar-toggler-bar.bottom-bar {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Ensure next/image works properly with Bootstrap */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for Next.js Image component in Bootstrap containers */
.next-image-wrapper {
  position: relative;
  display: block;
}

/* Override fadeUp animation to show content immediately */
/* The original site uses jQuery inview plugin for scroll animations */
/* We override this to ensure content is always visible */
.fadeUp {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}

/* Hero text should be visible immediately for better LCP */
.txt__swiper--main,
.txt__swiper--sub,
.hero-section .fadeUp,
.swiper-slide .fadeUp {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  animation: none !important;
  transition: none !important;
}

/* Custom 5-column grid for interview page */
@media (min-width: 576px) {
  .col-sm-5-items {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* Greeting section adjustments */
.mod__greeting__picture--kenji {
  bottom: -32px !important;
}

/* Occupation card styles - clickable list items */
.occupation-card {
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}

.occupation-card:hover {
  border-color: #2c7be5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.occupation-card:hover .card-body {
  background-color: #f8fbff;
}

.occupation-link,
.occupation-link:hover,
.occupation-link:focus,
.occupation-link:active {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-bottom: none !important;
}

.occupation-card:hover .occupation-link {
  color: #2c7be5;
}

.occupation-arrow {
  font-size: 1.8rem;
  font-weight: 300;
  color: #aaa;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.occupation-card:hover .occupation-arrow {
  color: #2c7be5;
  transform: translateX(6px);
}

.occupation-card .card-body {
  padding: 1rem 1.25rem;
}

/* News card styles - clickable article cards */
.news-card {
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news-card .news-card-image {
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card .card-title {
  transition: color 0.3s ease;
}

.news-card:hover .card-title {
  color: #2c7be5 !important;
}

.news-card-link {
  text-decoration: none !important;
  display: block;
  height: 100%;
  cursor: pointer !important;
}

.news-card-link:hover {
  text-decoration: none !important;
  cursor: pointer !important;
}

/* お知らせ一覧ページ専用のグリッド */
.news-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

@media (max-width: 991.98px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767.98px) {
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* =================================
   TOPページ モダンボックススタイル
   ================================= */

/* メッセージカード（会長・社長） */
.message-card {
  border: 1px solid #e8e8e8;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  background: #fff;
}

.message-card:hover {
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.message-card .message-image {
  transition: transform 0.5s ease;
}

.message-card:hover .message-image {
  transform: scale(1.03);
}

/* 特徴カード（01-08） */
.feature-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.feature-card .feature-number {
  transition: all 0.3s ease;
}

.feature-card:hover .feature-number {
  transform: scale(1.1);
  color: #1a5cc7 !important;
}

/* バナーカード（画像リンク） */
.banner-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.banner-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
}

.banner-card .banner-image {
  transition: transform 0.6s ease;
}

.banner-card:hover .banner-image {
  transform: scale(1.08);
}

.banner-card .banner-overlay {
  transition: all 0.4s ease;
}

.banner-card:hover .banner-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 70%);
}

.banner-card .banner-title {
  transition: transform 0.3s ease;
}

.banner-card:hover .banner-title {
  transform: translateY(-4px);
}

/* インフォメーションカード */
.info-card {
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-item {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.info-item:hover {
  background: #fff;
  padding-left: 0.5rem;
}

.info-item:hover a {
  color: #2c7be5 !important;
}

/* ボタンホバーエフェクト */
.btn-hover-lift {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =================================
   モバイルレスポンシブ対応
   ================================= */

/* TOPページ セクションパディング */
.section-padding {
  padding: 5rem 0;
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
}

/* メッセージカードラッパー（会長・社長） */
.message-card-wrapper {
  display: flex;
  height: 100%;
}

.message-card-image {
  position: relative;
  width: 40%;
  min-height: 350px;
  flex-shrink: 0;
}

.message-card-content {
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 767.98px) {
  .message-card-wrapper {
    flex-direction: column;
  }

  .message-card-image {
    width: 100%;
    min-height: 280px;
    height: 280px;
    border-radius: 8px 8px 0 0 !important;
  }

  .message-card-content {
    padding: 1.5rem;
  }

  .message-card .message-text {
    font-size: 1.1rem !important;
  }
}

/* 特徴カードグリッド */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

@media (max-width: 767.98px) {
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1rem 1.25rem !important;
  }

  .feature-card .feature-number {
    font-size: 1.25rem !important;
    min-width: 40px !important;
  }

  .feature-card .feature-text {
    font-size: 0.95rem !important;
  }
}

/* セクション説明テキスト */
.section-description {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
}

@media (max-width: 767.98px) {
  .section-description {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* インフォメーションリスト */
.info-item-wrapper {
  display: flex;
  align-items: flex-start;
}

.info-item-date {
  min-width: 130px;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .info-item-wrapper {
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-item-date {
    min-width: auto;
  }

  .info-card {
    padding: 1rem !important;
  }
}

/* バナーカードタイトル モバイル */
@media (max-width: 575.98px) {
  .banner-card .banner-title {
    font-size: 1rem !important;
  }

  .banner-card .banner-overlay {
    padding: 0.75rem !important;
  }
}

/* セクション見出し モバイル */
@media (max-width: 575.98px) {
  .section-subtitle {
    font-size: 0.95rem !important;
  }
}

/* Footer Blue Section モバイル */
@media (max-width: 767.98px) {
  .bg-gradient-blue .container {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .bg-gradient-blue .h1 {
    font-size: 1.5rem !important;
  }

  .bg-gradient-blue .h6 {
    font-size: 0.9rem !important;
  }
}

/* 仕事を知る・環境を知るバナー モバイル */
@media (max-width: 575.98px) {
  .work-env-banners .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* 採用動画セクション モバイル */
@media (max-width: 767.98px) {
  .youtube-video-container {
    margin-bottom: 1rem;
  }
}

/* スタッフスライダー モバイル */
@media (max-width: 575.98px) {
  .staff-slider-container {
    padding: 0 0.5rem;
  }
}

/* モバイルでのカード間隙間確保 */
@media (max-width: 767.98px) {
  /* メッセージカード間の隙間 */
  .row.g-4 > .col-12.col-lg-6 + .col-12.col-lg-6 {
    margin-top: 1.5rem;
  }

  /* バナーカード間の隙間（仕事を知る・環境を知る） */
  .row.g-4 > .col-md-6.col-lg-3 {
    margin-bottom: 1rem;
  }

  .row.g-4 > .col-md-6.col-lg-3:last-child {
    margin-bottom: 0;
  }

  /* 理念・数字バナー */
  .row.g-4 > .col-md-6 + .col-md-6 {
    margin-top: 1rem;
  }

  /* 採用動画 */
  .row.g-4 > .col-lg-6 + .col-lg-6 {
    margin-top: 1.5rem;
  }
}

/* モバイルでの特徴カード隙間 */
@media (max-width: 767.98px) {
  .feature-cards-grid {
    gap: 1rem;
  }
}

/* MOCALマインドカードホバーエフェクト */
.mind-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mind-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* =================================
   FV（ファーストビュー）100dvh対応
   ※100dvh = モバイルアドレスバーを考慮した動的ビューポート高さ
   ※フォールバックとして100vhを先に指定
   ================================= */
.header__parent {
  display: block;
  height: 100vh !important;
  height: 100dvh !important;
  position: relative;
}

.header__parent .swiper-slide {
  height: 100vh !important;
  height: 100dvh !important;
}

@media (max-width: 991.98px) {
  .header__parent {
    height: 100vh !important;
    height: 100dvh !important;
  }

  .header__parent .swiper-slide {
    height: 100vh !important;
    height: 100dvh !important;
  }
}

@media (max-width: 767.98px) {
  .header__parent {
    height: 100vh !important;
    height: 100dvh !important;
  }

  .header__parent .swiper-slide {
    height: 100vh !important;
    height: 100dvh !important;
  }

  .hero-section {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 500px !important;
  }
}

.hero-section {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 600px !important;
  overflow: hidden !important;
}

.hero-section .swiper {
  overflow: hidden !important;
}

.hero-section .swiper {
  width: 100% !important;
}

.hero-section .swiper,
.hero-section .swiper-wrapper,
.hero-section .swiper-slide {
  height: 100% !important;
}

.hero-section .swiper-slide {
  width: 100% !important;
  flex-shrink: 0 !important;
}

.hero-section .swiper-slide {
  background-size: cover !important;
  background-position: center !important;
}

.hero-section .wrap__swiper-slide {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.hero-section .box__txt-swiper {
  position: relative !important;
  z-index: 5 !important;
}

.hero-section .txt__swiper--main,
.hero-section .txt__swiper--sub {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* =================================
   YouTubeスライダー サムネイル
   ================================= */
#yt-thumbs .swiper-slide {
  opacity: 0.4;
  filter: grayscale(80%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

#yt-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  filter: grayscale(0%);
  border: 2px solid #2c7be5;
  border-radius: 6px;
}

.yt-thumbs-prev,
.yt-thumbs-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}

.yt-thumbs-prev:hover,
.yt-thumbs-next:hover {
  background: #2c7be5;
  color: #fff;
}

.yt-thumbs-prev {
  left: -18px;
}

.yt-thumbs-next {
  right: -18px;
}

@media (max-width: 767.98px) {
  .yt-thumbs-prev { left: -8px; }
  .yt-thumbs-next { right: -8px; }
}

/* =================================
   スタッフスライダー（無限スクロール・円形）
   ================================= */
.staff-slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: staffScroll 60s linear infinite;
}

.staff-slider-item {
  flex-shrink: 0;
}

@keyframes staffScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767.98px) {
  .staff-slider-track {
    gap: 12px;
  }

  .staff-slider-item img {
    width: 180px !important;
    height: 180px !important;
  }
}
