@charset "UTF-8";

/* ==========================================================================
   1. INFINITE LOOP TYPOGRAPHY FV STYLE (STRICT ABSOLUTE CENTER)
   ========================================================================== */
.p-typographyFv {
  position: relative;
  width: 100%;
  height: 400px; 
  background-color: #f8fafc;
  overflow: hidden;
}

/* 背景テキストの共通土台 */
.p-typographyFv__bgText {
  position: absolute;
  width: 100%;
  font-size: 95px;
  font-weight: 900;
  color: rgba(0, 92, 175, 0.035);
  user-select: none;
  pointer-events: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
  z-index: 1;
}

/* 上段（INTERVIEW）の縦位置 */
.p-typographyFv__bgText.left-text {
  top: 20%; 
}

/* 下段（W.H: PEOPLE...）の縦位置 */
.p-typographyFv__bgText.right-text {
  bottom: 0%; 
}

/* 文字列を横一列に並べるトラック */
.p-typographyFv__marqueeTrack {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.p-typographyFv__marqueeTrack span {
  display: block;
  padding-right: 0.5em;
}

.left-text .p-typographyFv__marqueeTrack { animation: marqueeLeft 35s linear infinite; }
.right-text .p-typographyFv__marqueeTrack { animation: marqueeRight 45s linear infinite; }

/* 中央の文字コンテンツエリア（PC版：絶対配置で確実に固定） */
.p-typographyFv__content {
  position: absolute;
  top: 65%; 
  left: 50%;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  
  /* 下のカードと秒数・イージングを完全に同期 */
  animation: advancedTextIn 0.55s ease-out forwards;
  animation-delay: 0.1s; 
  opacity: 0;
}

/* 基準位置に対して、上から下へ「15px」だけ動かす計算式 */
@keyframes advancedTextIn {
  0% {
    /* 終了時よりも15px「上」にある状態からスタート */
    transform: translate(-50%, calc(-50% - 15px)); 
    opacity: 0;
  }
  100% {
    /* 指定した高さ（top: 65%）の位置に綺麗に着地 */
    transform: translate(-50%, -50%); 
    opacity: 1;
  }
}

.p-typographyFv__subTitle {
  display: block;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: #2b435c;
  font-weight: 700;
  margin-bottom: 12px;
}

.p-typographyFv__mainTitle {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #142638;
  margin: 0 0 16px 0; 
}

.p-typographyFv__lead {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.15em;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

/* ==========================================================================
   2. RESPONSIVE (スマホサイズ)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .p-typographyFv {
    height: 280px; 
  }
  .p-typographyFv__bgText {
    font-size: 60px; 
  }
  .p-typographyFv__bgText.left-text { top: 25%; }
  .p-typographyFv__bgText.right-text { bottom: 0%; }
  
  .p-typographyFv__mainTitle { font-size: 32px; }
  .p-typographyFv__lead { font-size: 13px; }

  /* スマホ版の中央文字コンテンツエリア */
  .p-typographyFv__content {
    position: absolute;
    top: 65%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 20px;
    margin-top: 0;
  }
}

/* ==========================================================
   3. 4列のグリッドシステム基本設定 ＆ カードデザイン
   ========================================================== */
.interview-grid-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 100px 20px !important;
  max-width: 1200px;
  margin: 0 auto 100px;
}

.interview-grid-item {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interview-grid-item:hover {
  transform: translateY(-5px);
}

/* 写真の縦長3:4比率ロック設定 */
.item-photo-wrap img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 12px;
}

.item-info-wrap {
  padding: 15px 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.item-year {
  font-size: 12px;
  color: #888;
  font-weight: bold;
  margin-bottom: 8px;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.item-tags span {
  font-size: 11px;
  color: #1e4461;
  background-color: #f0f4f8;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.item-name {
  font-size: 20px;
  font-weight: 800;
  color: #333;
  margin-bottom: 15px;
}

.item-more-btn {
  font-size: 12px;
  font-weight: 800;
  color: #1e4461;
  border-bottom: 2px solid #1e4461;
  padding-bottom: 2px;
}

/* 画面最上部に戻るトップボタンの共通設定 */
.c-topBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
}

.c-topBtn__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #1e4461;
  color: #fff !important;
  font-weight: bold;
  font-size: 12px;
  border-radius: 50%;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ==========================================================
   4. 下部コンテンツのレスポンス（レイアウト崩れ・スイッチ防止）
   ========================================================== */
@media screen and (max-width: 1000px) {
  .c-underFv {
    height: auto;
    padding: 110px 0 50px !important;
    margin-top: 70px !important;
  }
  .c-underFv__inner {
    flex-direction: column-reverse;
    gap: 25px;
    padding: 0 20px;
  }
  .c-underFv__photo {
    width: 100%;
    flex: none;
    height: 280px;
  }
  .c-underFv__photo img {
    height: 220px;
  }
  .c-underFv__ttlCont {
    width: 100%;
    flex: none;
    text-align: center;
  }
  .interview-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px 15px !important;
    padding: 0 15px;
  }
  .item-photo-wrap img { 
    height: auto !important; 
    aspect-ratio: 3 / 4 !important;
  }
}

@media screen and (max-width: 500px) {
  .interview-grid-container {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ==========================================================
   5. 特製多機能フィルターUI（ボタンの装飾設定）
   ========================================================== */
.filter-group-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px auto 50px auto;
  max-width: 1000px;
  justify-content: center;
}

.filter-btn {
  background-color: #ffffff;
  color: #444444;
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.filter-btn .count {
  color: #888888;
  font-size: 0.85rem;
  transition: color 0.25s ease;
}

.filter-btn:hover {
  border-color: #333333;
  background-color: #fcfcfc;
  transform: translateY(-1px);
}

.filter-btn.active {
  background-color: #333333 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.filter-btn.active .count {
  color: rgba(255,255,255,0.7) !important;
}

@media screen and (max-width: 768px) {
  .filter-group-container {
    padding: 0 15px;
    gap: 8px;
    margin-bottom: 35px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
}

/* ----------------------------------------------------------
   6. 部署タグ（最初のタグ）：可読性を追求した茶文字ブラウン
   ---------------------------------------------------------- */
.interview-item-tags .tag-dept,
.item-tags .tag-dept {
  background-color: #fff3e0 !important;
  color: #c06c00 !important;
  border: 1px solid #ffe0b2 !important;
  font-weight: 800 !important;
}

/* ==========================================================
   7. カード専用：style.cssの妨害を受けない純粋なfadeup開通設定
   ========================================================== */
body .interview-grid-container .interview-grid-item.js-card-fade {
  opacity: 0 !important;
  transform: translateY(45px) !important;
  transition: opacity 0.55s ease-out !important, 
              transform 0.55s ease-out !important;
  will-change: opacity, transform !important;
}

body .interview-grid-container .interview-grid-item.js-card-fade.is-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}