@charset "UTF-8";

/* Base */
:root { --color-primary: #dc3545; --color-dark: #212529; --color-bg-dark: #121212; --color-bg-card: #1e1e1e; --font-base: "Noto Sans JP", sans-serif; --font-serif: "Noto Serif JP", serif; --font-en: "Inter", sans-serif; }
html {
  width: 100%;
  /* PCでの二重スクロールバー防止のため、ここではoverflowを指定しない */
}
body { 
  font-family: var(--font-base); 
  background-color: var(--color-bg-dark); 
  color: #fff; 
  margin: 0; 
  overflow-x: hidden; /* 横スクロールを強力に禁止 */
  width: 100%;        /* 念のため幅も指定 */
}
h1,h2,h3,h4,h5,h6,.font-serif { font-family: var(--font-serif) !important; font-feature-settings: "palt"; }
.ls-1 { letter-spacing: 0.1em; } .ls-2 { letter-spacing: 0.2em; } .text-shadow { text-shadow: 1px 1px 3px rgba(0,0,0,0.8); } .badge-mini { font-size: 0.5em; vertical-align: middle; }
.object-fit-cover { object-fit: cover; } .bg-glass { background: rgba(109, 109, 110, 0.4) !important; backdrop-filter: blur(5px); }

/* Hero */
.video-background-wrapper { position: relative; width: 100%; height: 100svh; overflow: hidden; background-color: #000; }
/* .video-background-iframe { position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:100vw; height:56.25vw; min-height:100vh; min-width:177.78vh; pointer-events:none; z-index:0; } */


/* 修正後: widthを100%に変更 */
.video-background-iframe { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%,-50%); 
  width: 100%;
  height: 56.25vw; 
  min-height: 100svh; 
  min-width: 177.78svh; 
  pointer-events: none; 
  z-index: 0; 
}


@media (max-width: 768px) {
html { overflow-x: hidden; } .video-background-iframe { width: 177.78svh; height: 100svh; min-width: 100%; min-height: 56.25vw; } }
.video-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.9) 100%); z-index:1; }
.hero-content { position: absolute; bottom: 8%; width: 100%; z-index: 2; }
.logo-wrapper-relative { max-width: 450px; position: relative; } 

/* Poster Fade Out */
.poster-background {
  position: absolute; inset: 0; z-index: 50; pointer-events: none;
  background: #000; animation: fadeOutPoster 3.5s ease-in-out forwards;
}
.poster-background::before { content: ""; position: absolute; inset: 0; z-index: 1; background: url('../img/poster.jpg') center/cover; filter: blur(20px) brightness(0.5); transform: scale(1.1); }
.poster-background::after { content: ""; position: absolute; inset: 10% 5%; z-index: 2; background: url('../img/poster.jpg') center/contain no-repeat; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
@keyframes fadeOutPoster { 0%, 70% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

/* Story & Episode */
.movie-zone { background-color: #000; }
.story-card { border: 1px solid #333; border-radius: 8px; overflow: hidden; background: var(--color-bg-card); transition: 0.3s; display: flex; flex-direction: column; height: 100%; }
.story-card:hover { transform: translateY(-5px); }
.card-img-container { position: relative; width: 100%; padding-top: 177.77%; background: #000; overflow: hidden; } 
.card-img-container img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-icon-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: 0; transition: opacity 0.3s; }
.story-card:hover .play-icon-overlay { opacity: 1; }
.story-desc { font-size: 0.8rem; color: #ccc !important; line-height: 1.6; white-space: normal; } 
.video-duration { font-size: 0.75rem; background: #444; color: #fff; padding: 2px 8px; border-radius: 4px; display: inline-block; }

/* Cast */
.bg-dark-alt { background-color: #1a1a1a; border-color: #333 !important; }
.cast-img-wrapper { width: 140px; height: 140px; border: 2px solid #444; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.cast-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cast-card:hover .cast-img-wrapper img { transform: scale(1.1); }

/* Recruit (White Zone) */
section.bg-white, section.bg-light { color: var(--color-dark) !important; }
section.bg-white h2,h3,h4, section.bg-light h2,h3,h4 { color: var(--color-dark) !important; }
section.bg-white .text-muted, section.bg-light .text-muted { color: #6c757d !important; }

/* Timeline Fix */
.timeline-scroll-container { display: flex; flex-wrap: nowrap; overflow-x: auto; position: relative; margin-top: 4rem; padding-bottom: 3rem; padding-left: 1rem; cursor: grab; overflow-y: visible !important; }
.timeline-card { min-width: 300px; position: relative; margin-right: 2rem; padding-top: 3rem; z-index: 2; overflow: visible !important; }
.timeline-line { position: absolute; top: 1.5rem; left: 0; width: 5000px; border-top: 2px solid #e9ecef; z-index: 0; }
.time-marker {
  width: 16px; height: 16px; background: var(--color-primary); border-radius: 50%; border: 3px solid #fff;
  position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%); z-index: 5;
  box-shadow: 0 0 0 1px var(--color-primary); display: block !important;
}
.routine-img-wrapper { height: 160px; width: 100%; overflow: hidden; border-bottom: 1px solid #eee; }
.routine-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.routine-dark-bg { background-color: #2c2c2c; }
.swipe-hint { display: inline-flex; align-items: center; padding: 0.5rem 1.5rem; background: #fff; border-radius: 50rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); color: var(--color-primary); font-weight: bold; font-size: 0.8rem; }

/* Interview */
.interview-caption { position: absolute; bottom: 0; left: 0; background: #fff; padding: 1rem; border-radius: 0 0.5rem 0 0; box-shadow: 0 0 15px rgba(0,0,0,0.1); margin: 0; z-index: 2; min-width: 140px; }
.interview-text-wrapper { overflow: hidden; max-height: 5.6em; transition: max-height 0.8s ease; position: relative; }
.interview-text-wrapper.expanded { max-height: 2000px; }
.interview-text-wrapper::after { content: ""; position: absolute; bottom: 0; width: 100%; height: 4em; background: linear-gradient(transparent, #f8f9fa); pointer-events: none; }
.interview-text-wrapper.expanded::after { opacity: 0; }

/* Workplace (4:3 & Text Visible) */
.workplace-swiper .swiper-slide { border-radius: 1rem; overflow: hidden; position: relative; }
.workplace-swiper img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.slide-caption {
  position: absolute; bottom: 0; width: 100%; padding: 1.5rem; color: #fff !important;
  background: linear-gradient(transparent, rgba(0,0,0,0.8)); opacity: 1 !important; transform: translateY(0) !important; font-weight: bold; text-align: center;
}

/* Career */
.career-steps-wrapper { display: flex; flex-direction: column; align-items: center; gap: 15px; max-width: 500px; margin: 0 auto; }
.career-item { width: 100%; display: flex; align-items: center; background: #fff; border: 1px solid #dee2e6; border-radius: 15px; padding: 15px 20px; transition: all 0.5s; opacity: 0.3; transform: scale(0.9); filter: grayscale(1); }
.career-rank { width: 54px; height: 54px; background: #f8f9fa; border: 2px solid #dee2e6; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 18px; color: #999; font-size: 1.5rem; }
.career-item.is-passed { opacity: 1; filter: grayscale(0); background-color: #fff0f3; border-color: #ffc1cc; }
.career-item.is-passed .career-rank { background: #ffc1cc; color: #fff; border: none; }
.career-item.is-active { opacity: 1; filter: grayscale(0); transform: scale(1.05); border-color: var(--color-primary); box-shadow: 0 10px 25px rgba(220,53,69,0.15); filter: grayscale(0); z-index: 10; }
.career-item.is-active .career-rank { background: var(--color-primary); color: #fff; border: none; }
.salary-num { font-family: var(--font-en); font-size: 2rem; font-weight: bold; color: var(--color-dark); }
.career-item.is-active .salary-num { color: var(--color-primary); }

/* Welfare & Philosophy */
.welfare-card { height: 100%; background: #fff; padding: 1.5rem; border-radius: 10px; border-left: 4px solid var(--color-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.philosophy-img-wrapper { width: 280px; height: 280px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.philosophy-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* Entry Full Screen Video */
.entry-section { position: relative; padding: 100px 0; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
/* ロゴサイズ制限 */
.entry-logo { max-width: 400px; width: 100%; height: auto; }
/* 動画背景 */
.cta-video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.cta-video-shorts-cover {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); /* 常に中央起点 */
  pointer-events: none;
  
  /* 初期値（JS読み込みまでのちらつき防止用） */
  width: 100%; 
  height: 100%; 
  opacity: 0; /* 計算完了まで隠す */
  transition: opacity 0.5s;
}

/* JSで計算後のクラス */
.cta-video-shorts-cover.is-loaded {
  opacity: 1;
}

.cta-video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); z-index: 1; }
.entry-form-wrapper { background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); padding: 3rem; border-radius: 1rem; width: 100%; max-width: 900px; }
#entry-form-section .form-control, #entry-form-section .form-select { background: #fff !important; color: #000 !important; }

/* Misc */
.side-fade-btn { 
  position: fixed; 
  right: 0; /* -200px から 0 に変更 */
  bottom: 80px; 
  z-index: 999; 
  transition: 0.6s; 
  transform: translateX(120%); /* 画面外へ移動させる（右へスライド） */
}

.side-fade-btn.is-show { 
  right: 0; 
  transform: translateX(0); /* 元の位置に戻す */
}
.announcement-bg { background: linear-gradient(135deg, #001f3f 0%, #004080 50%, #001f3f 100%); position: relative; padding: 80px 0; overflow: hidden; }
.announcement-fade-in { opacity: 0; transform: translateX(-50px); transition: all 1.2s ease-out; }
.announcement-fade-in.is-active { opacity: 1; transform: translateX(0); }
.sparkle { position: absolute; background: white; border-radius: 50%; pointer-events: none; opacity: 0; }
@keyframes sparkleAnim { 0% { transform: scale(0); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.fade-up-init { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
.fade-up-show { opacity: 1; transform: translateY(0); }

/* Modal Styles */
/* PCのみ幅広設定を適用する */
@media (min-width: 768px) {
  .custom-modal-width { max-width: 90%; width: 1200px; } 
}

.modal-backdrop { --bs-backdrop-opacity: 0.9; }

/* --- 修正箇所: Story & Episode --- */
/* カーソルをポインターに変更し、クリックできることを明示 */
.story-card { 
  border: 1px solid #333; 
  border-radius: 8px; 
  overflow: hidden; 
  background: var(--color-bg-card); 
  transition: 0.3s; 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  cursor: pointer; /* 追加 */
}

/* ホバー時にカード全体を少し浮かせ、アイコンのアニメーションを有効にする */
.story-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* 影を強化 */
}

/* 再生アイコンの初期状態 */
.play-icon-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(0,0,0,0.4); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 3rem; 
  opacity: 0; 
  transition: opacity 0.3s; 
}
/* アイコン自体のトランジション設定 */
.play-icon-overlay i {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ホバー時にオーバーレイを表示し、アイコンをボヨヨンと拡大 */
.story-card:hover .play-icon-overlay { opacity: 1; }
.story-card:hover .play-icon-overlay i { transform: scale(1.5); color: #fff; text-shadow: 0 0 15px rgba(220, 53, 69, 0.8); }


/* --- 修正箇所: Career Step-Up (キラキラ演出) --- */

/* アクティブなキャリアアイテムの設定 */
.career-item.is-active { 
  opacity: 1; 
  filter: grayscale(0); 
  transform: scale(1.05); 
  border-color: var(--color-primary); 
  box-shadow: 0 10px 25px rgba(220,53,69,0.25); /* 影を少し強く */
  z-index: 10; 
  position: relative; /* キラキラの基準点 */
  overflow: hidden;   /* 光がはみ出さないように */
}

/* キラッと光が走るエフェクト（シマシマの光） */
.career-item.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* 初期位置は左外 */
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine-sweep 2.5s infinite; /* 2.5秒間隔で光る */
  pointer-events: none;
}

@keyframes shine-sweep {
  0% { left: -100%; opacity: 0; }
  20% { opacity: 1; }
  50% { left: 200%; opacity: 0; } /* 右へ抜け切る */
  100% { left: 200%; opacity: 0; }
}

/* JSで生成するパーティクル（星）のスタイル */
.career-sparkle {
  position: absolute;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M12 0l3.09 6.26L22 7.27l-5 4.87 1.18 6.88L12 15.77l-6.18 3.25L7 12.14 2 7.27l6.91-1.01L12 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 20;
  opacity: 0;
}

/* 星が弾けるアニメーション */
@keyframes pop-sparkle {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
}

/* --- Scroll Down Indicator --- */
/* --- Simple Line Scroll Indicator --- */
.scroll-down-indicator-simple {
  position: absolute;
  bottom: 0;           /* 画面の最下部に配置 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  opacity: 0.6;        /* 少し透明にして目立たなくする */
  transition: opacity 0.3s;
}

/* ホバー時に少し濃くする（PC用） */
.scroll-down-indicator-simple:hover {
  opacity: 1;
}

/* "SCROLL" テキスト */
.scroll-down-indicator-simple span {
  color: #fff;
  font-size: 0.7rem;   /* 小さめに */
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  font-weight: 400;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* 縦ラインのコンテナ */
.scroll-down-indicator-simple .line {
  width: 1px;          /* 極細の線 */
  height: 80px;        /* 線の長さ */
  background: rgba(255, 255, 255, 0.2); /* 軌跡をうっすら表示 */
  position: relative;
  overflow: hidden;
}

/* アニメーションする光の線 */
.scroll-down-indicator-simple .line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;    /* 流れる線の色 */
  animation: scrollLineAnim 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLineAnim {
  0% {
    transform: translateY(-100%); /* 上に見切れている状態 */
  }
  100% {
    transform: translateY(100%);  /* 下に見切れていく */
  }
}

/* スマホ調整 */
@media (max-width: 768px) {
  /* スマホではナビゲーションバーと被らないよう線を少し短く、位置調整 */
  .scroll-down-indicator-simple .line {
    height: 60px;
  }
  .scroll-down-indicator-simple {
    bottom: 0; /* スマホでも最下部起点でOK */
  }
  .hero-content {
    bottom: 15%; /* コンテンツを少し上に逃がす */
  }
}