/* ==========================================
   Bootstrap Reboot 補完: グリッドが border-box 前提で
   計算されるよう全要素に box-sizing を適用
   （bootstrap-4.4.1.css にこの規則が欠落しているため）
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================================
   Reboot 補完: リンクの既定スタイル（下線・既定色）を解除。
   bootstrap-4.4.1.css にこの規則が欠落しているため、
   テキストリンクは下線なし・親文字色を継承で統一する。
   （コンポーネント個別の color 指定は特異度が高く維持される）
   ========================================== */
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   TOPメイン動画用のスタイル
   ========================================== */
.main-video-container {
  margin-top: 60px; /* ナビゲーションバーの高さに合わせて調整 */
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 42.55%; /* シネマスコープ比率 3:7.05 (3/7.05 * 100) */
  height: 0;
  overflow: hidden;
}

/* モバイル表示：4:3にトリミング */
@media (max-width: 768px) {
  .video-wrapper {
    padding-bottom: 75%; /* 4:3のアスペクト比 (3/4 * 100) */
  }
}

.main-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 動画を枠いっぱいに表示 */
}

/* ==========================================
   旧カルーセル用のスタイル（使用していないが保存）
   ========================================== */
.main-slide {
  margin-top: 60px;
}
.main-slide img {
  width: 100%;
  height: auto;
}
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.carousel-indicators li {
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
  display: inline-block;
  margin: 1px;
  cursor: pointer;
}
.carousel-indicators .active {
  background-color: #fff;
}

/* ==========================================
   イベント告知バナーセクション
   ========================================== */
.event-banner-section {
  background-color: #ffffff;
  padding: 40px 0;
  text-align: center;
}

.event-banner-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.event-banner-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  text-decoration: none;
}

.event-banner-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.event-banner-link:hover .event-banner-image {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .event-banner-section {
    padding: 30px 0;
  }
  
  .event-banner-image {
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  .event-banner-section {
    padding: 20px 0;
  }
}

/* ==========================================
   お気軽にお声がけください用のスタイル
   ========================================== */
.inquiry-section {
  background-color: white;
  padding: 40px 0;
  background-image: repeating-linear-gradient(
    -45deg,
    white,
    white 3px,
    #F4F4F4 3px,
    #F4F4F4 6px
  );
}

.inquiry-section h1 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  color: black;
  font-family: 'Noto Serif Japanese', serif;
  display: inline-block;
  border-bottom: 3px solid black;
  font-weight: normal;
  font-size: 36px;
}

.inquiry-section h1:before,
.inquiry-section h1:after {
  position: absolute;
  top: 100%;
  left: 50%;
  content: "";
  height: 0;
  width: 0;
}

.inquiry-section h1:before {
  border: 24px solid;
  border-color: transparent;
  border-top-color: black;
  margin-left: -24px;
}

.inquiry-section h1:after {
  border: 20px solid;
  border-color: transparent;
  border-top-color: white;
  margin-left: -20px;
}

.inquiry-section .link-images img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 15px;
}

@media (max-width: 576px) {
  .inquiry-section h1 {
    font-size: 26px;
  }
}

/* ==========================================
   わたしたちにできること用のスタイル
   ========================================== */
.company-introduction {
  text-align: center;
  padding: 40px 0;
}

.company-introduction h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #343a40;
  font-family: 'Noto Serif Japanese', serif;
  display: inline-block;
  border-bottom: 3px solid #343a40;
  font-weight: normal;
  font-size: 36px;
}

.company-introduction h2:before,
.company-introduction h2:after {
  position: absolute;
  top: 100%;
  left: 50%;
  content: "";
  height: 0;
  width: 0;
}

.company-introduction h2:before {
  border: 24px solid;
  border-color: transparent;
  border-top-color: #343a40;
  margin-left: -24px;
}

.company-introduction h2:after {
  border: 20px solid;
  border-color: transparent;
  border-top-color: white;
  margin-left: -20px;
}

.company-introduction .service-item {
  margin-bottom: 30px;
}

.company-introduction .service-item img {
  margin-bottom: 10px;
}

.company-introduction .service-item h4 {
  margin-bottom: 10px;
  font-size: 1.3em;
  font-weight: bold;
}

.company-introduction .service-item p {
  font-size: 1.1em;
  line-height: 1.5;
  color: #666;
  font-family: 'Noto Sans Japanese', sans-serif;
}

.company-introduction .view-more {
  margin-top: 30px;
}

@media (max-width: 576px) {
  .company-introduction h2 {
    font-size: 26px;
  }
}

/* ==========================================
   サービスセクション
   ========================================== */
.service-section {
  padding: 3rem 0;
  text-align: center;
}

.service-section .service-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #333;
  font-family: 'Noto Serif Japanese', serif;
  display: inline-block;
  border-bottom: 3px solid #333;
  font-weight: normal;
  font-size: 36px;
}

.service-section .service-title:before,
.service-section .service-title:after {
  position: absolute;
  top: 100%;
  left: 50%;
  content: "";
  height: 0;
  width: 0;
}

.service-section .service-title:before {
  border: 24px solid;
  border-color: transparent;
  border-top-color: #333;
  margin-left: -24px;
}

.service-section .service-title:after {
  border: 20px solid;
  border-color: transparent;
  border-top-color: white;
  margin-left: -20px;
}

/* ==========================================
   サービス一覧用のスタイル
   ========================================== */
.custom-section-title {
  text-align: left;
  font-size: 20px;
  color: #707070;
  font-weight: bold;
  margin-bottom: 20px;
}

.custom-slider-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.custom-slider {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* スクロールバーを非表示 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.custom-slider::-webkit-scrollbar {
  display: none;
}
.custom-slider.is-dragging {
  cursor: grabbing;
}

/* 左右の半透明スクロール矢印 */
.slider-nav-btn {
  position: absolute;
  top: calc(50% - 26px);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.38);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, opacity 0.2s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.slider-nav-btn:hover {
  background: rgba(20, 20, 20, 0.6);
}
.slider-nav-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}
.slider-nav-prev {
  left: 18px;
}
.slider-nav-next {
  right: 18px;
}

.custom-slide-track {
  display: flex;
  width: max-content;
  padding: 22px 12px;
}

.custom-slide {
  width: 300px;
  flex-shrink: 0;
  padding: 10px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.custom-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* PC：クリックでその場ポップアップ（少し拡大） */
.custom-slide.is-popped {
  transform: scale(1.08) translateY(-8px);
  position: relative;
  z-index: 5;
}
.custom-slide.is-popped img {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.custom-slide-track.has-popped .custom-slide:not(.is-popped) {
  filter: brightness(0.82);
}

/* スマホ：クリック / タップで拡大ポップアップ（ライトボックス） */
.slide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.74);
  padding: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.slide-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.slide-lightbox-inner {
  position: relative;
  max-width: 720px;
  width: auto;
}
.slide-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.slide-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}
.slide-lightbox-close svg {
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 768px) {
  .custom-slide {
    width: 200px;
  }
  .slider-nav-btn {
    width: 44px;
    height: 44px;
    top: calc(50% - 22px);
  }
  .slider-nav-prev {
    left: 10px;
  }
  .slider-nav-next {
    right: 10px;
  }
  /* スマホ：左右中央・横幅90%のポップアップ */
  .slide-lightbox {
    padding: 0;
  }
  .slide-lightbox-inner {
    width: 90vw;
    max-width: 90vw;
  }
  .slide-lightbox img {
    width: 90vw;
    max-width: 90vw;
    max-height: 80vh;
  }
  .slide-lightbox-close {
    top: 6px;
    right: 6px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
  }
}

/* ==========================================
   矢印リンクボタン
   ========================================== */
.detail-link-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #707070;
  font-size: 18px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.detail-text {
  margin-right: 10px;
}

.yazirusi {
  display: flex;
  align-items: center;
}

.yazirusi::after {
  content: '';
  width: 50px;
  height: 10px;
  border-bottom: solid 1px;
  border-right: solid 1px;
  transform: skew(45deg);
  transition: all 0.3s ease;
}

.detail-link:hover {
  color: #007bff;
}

.detail-link:hover .yazirusi::after {
  width: 60px;
  border-color: #007bff;
}

/* ==========================================
   セクション区切りの罫線
   ========================================== */
.section-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #707070;
  margin: 20px 0;
}

/* ==========================================
   オリジナルサービス紹介用のスタイル
   ========================================== */
.original-service-introduction {
  text-align: center;
  padding: 40px 0;
}

.original-service-introduction h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #343a40;
  font-family: 'Noto Serif Japanese', serif;
  display: inline-block;
  border-bottom: 3px solid #343a40;
  font-weight: normal;
  font-size: 36px;
}

.original-service-introduction h2:before,
.original-service-introduction h2:after {
  position: absolute;
  top: 100%;
  left: 50%;
  content: "";
  height: 0;
  width: 0;
}

.original-service-introduction h2:before {
  border: 24px solid;
  border-color: transparent;
  border-top-color: #343a40;
  margin-left: -24px;
}

.original-service-introduction h2:after {
  border: 20px solid;
  border-color: transparent;
  border-top-color: #f8f9fa;
  margin-left: -20px;
}

.original-service-introduction .service-item {
  text-align: center;
  font-family: 'Noto Sans Japanese', sans-serif;
}

.original-service-introduction .service-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.original-service-introduction .service-item p {
  font-size: 1.1em;
  line-height: 1.5;
  color: #666;
  margin-top: 10px;
}

/* ==========================================
   お問い合わせセクション
   ========================================== */
.contact-section {
  background-color: #0033cc;
  border-radius: 0 150px 150px 0;
  padding: 50px 0;
  color: white;
}

.contact-title {
  color: white;
  font-family: 'Noto Serif Japanese', serif;
  font-size: 36px;
}

.contact-text {
  font-size: 1.1em;
  color: white;
  font-family: 'Noto Sans Japanese', sans-serif;
}

.phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  text-decoration: none;
}

.contact-time {
  color: white;
  font-family: 'Noto Sans Japanese', sans-serif;
  margin-top: 10px;
}

.phone-icon {
  width: 35px;
  height: 35px;
  vertical-align: middle;
  margin-right: 10px;
}

.contact-button {
  display: block;
  width: 100%;
  padding: 15px 0;
  background-color: white;
  border-color: #0033cc;
  color: #0033cc;
  text-align: center;
  font-size: 2em;
  font-family: 'Noto Sans Japanese', sans-serif;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.contact-button:hover {
  background-color: #f0f0f0;
}

/* ==========================================
   画像のホバーで少し拡大
   - 対象者リンク（2枚）/ サービス一覧の円形（2枚）
   - オリジナルサービス（リンク付き9枚）
   ========================================== */
.link-images img,
.service-section .rounded-circle,
.service-item a img {
  transition: transform 0.3s ease;
}
.link-images img:hover,
.service-section .rounded-circle:hover,
.service-item a img:hover {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .phone-number {
    font-size: 1.5em;
  }
}

.inner-divider-white {
  border: none;
  border-top: 2px solid white;
  margin: 10px 0;
}

/* ==========================================
   採用情報セクション
   ========================================== */
.recruit-section {
  background-color: #b3e5fc;
  border-radius: 250px 0 0 250px;
  padding: 50px 0;
  margin-right: auto;
}

.recruit-title {
  color: #707070;
  font-family: 'Noto Serif Japanese', serif;
  font-size: 36px;
}

.recruit-text {
  font-size: 1.1em;
  color: #707070;
  font-family: 'Noto Sans Japanese', sans-serif;
}

.recruit-image-container {
  width: 100%;
  height: 100%;
}

.inner-divider-gray {
  border: none;
  border-top: 2px solid #707070;
  margin: 10px 0;
}

/* ==========================================
   バナーセクション
   ========================================== */
.banner-section {
  padding: 3rem 0;
}

.banner-container {
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 2rem;
}

.banner-section .banner-title {
  position: relative;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  color: #707070;
  font-family: 'Noto Sans Japanese', sans-serif;
  font-size: 1.5rem;
  display: inline-block;
  border: 1px solid #707070;
  font-weight: normal;
  background-color: #fff;
}

.banner-section .row {
  display: flex;
  align-items: center;
}

.banner-section .banner-img {
  background-color: white;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 1rem;
}
