:root {
  --graybackground: rgba(244, 244, 244, 1);
  --white: rgba(255, 255, 255, 1);
  --vivid-orange: rgba(255, 96, 0, 1);
  --orange: rgba(255, 165, 89, 1);
  --blackheading: rgba(25, 28, 32, 1);
  --graybody: rgba(72, 76, 81, 1);
  --graycaption: rgba(177, 177, 177, 1);
  --grayline: rgba(239, 239, 239, 1);
  --translucent-white: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------
  inteview
-------------------------------------------- */
.image-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 360px;
  margin-top: 100px;
}

.image-wrapper::before{
  background-color: rgba(108, 111, 122, 0.2);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: ' ';
}

.top-title-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 0 40px;
  width: auto;
}

@media screen and (max-width: 767px) {
  .top-title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 100%;
    height: auto;
    margin: 180px auto 0;
  }
}

.top-title-ja {
  font-size: 36px;
  font-weight: 700;
}

/* =========================================
   3. フィルターエリア (新デザイン)
   ========================================= */
.filter-box-container {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 20px 20px;
  text-align: left;
  border-bottom: 1px solid var(--grayline);
}

.filter-heading {
  color: var(--vivid-orange);
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  margin-bottom: 40px;
}

.filter-row-new {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

/* ラベルカラム（左側） */
.filter-label-col {
  width: 110px;
  /* 固定幅 */
  flex-shrink: 0;
  position: relative;
  padding-top: 2px;
  /* チェックボックスとの高さ合わせ */
}

.filter-label-text {
  font-weight: bold;
  font-size: 18px;
  color: #444;
}

/* 縦棒の装飾 */
.filter-label-col::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background-color: #aaa;
  height: 16px;
  /* 文字高に合わせる */
}

/* 選択肢カラム（右側） */
.filter-options-col {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  /* 上下左右の間隔 */
}

/* カスタムチェックボックスのスタイル */
.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #555;
  user-select: none;
}

/* デフォルトのinputは隠す */
.custom-checkbox-label input {
  display: none;
}

/* チェックボックスアイコン部分 */
.checkbox-icon {
  width: 16px;
  height: 16px;
  border: 1px solid var(--graycaption);
  margin-right: 8px;
  position: relative;
  background-color: var(--translucent-white);
  transition: all 0.2s;
}

/* チェック時のアイコンスタイル（オレンジ背景） */
.custom-checkbox-label input:checked+.checkbox-icon {
  background-color: var(--vivid-orange);
  /* システナオレンジ */
  border-color: var(--vivid-orange);
}

/* チェックマーク（白） */
.custom-checkbox-label input:checked+.checkbox-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 適用ボタンエリア */
.filter-action-area {
  margin-top: 30px;
  text-align: right;
  margin-bottom: 30px;
}

.apply-btn {
  background-color: var(--vivid-orange);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.apply-btn:hover {
  background-color: #e65c00;
}

.container .background-image-bottom {
    position: absolute !important; 
    top: calc(100% - 870px);
    left: 0;
    z-index: -1;                 /* 0だとカード等の上に重なるため、-1を推奨 */
    width: 30%;                 /* 横幅を合わせる */
    pointer-events: none;        /* 画像がクリックを邪魔しないようにする */
}

/* =========================================
   4. インタビューカードグリッド（重要）
   ========================================= */
.interview-grid {
  display: grid;
  max-width: 1200px;
  margin: 40px auto;
  /* PCでは強制的に3列 */
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
  margin-bottom: 3%;
  /* 外部CSSで高さ固定されている可能性を打ち消す */
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

.card-group-hidden {
  display: none;
  /* 初期状態で非表示 */
}

/* カードスタイル */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
  border: none !important;
  opacity: 1;
  transition: opacity 0.4s ease;
  min-width: 0;
}

.card.hidden {
  display: none !important;
  opacity: 0;
}

.card-img-wrap {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background-color: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.card:hover .card-img-wrap {
  transform: translateY(-8px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card:hover .card-tags {
  color: var(--vivid-orange);
}

.card:hover .card-tags a {
  color: var(--vivid-orange) !important;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.placeholder-text {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  z-index: 2;
  pointer-events: none;
}

.card-tags {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-body);
  line-height: 1.5;
  transition: color 0.3s ease;
}

/*「View All」を押すまで隠しておくためのクラス */
.hidden-card {
  display: none !important;
}

/* =========================================
   5. フッターエリア
   ========================================= */
/* グリッドの外に出したボタンラッパー */
.view-more-container {
  text-align: center;
  margin-bottom: 60px;
}

.show-more,
.hide-content {
  display: inline-block;
  cursor: pointer;
  padding: 15px 30px;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.show-more .text-label,
.hide-content .text-label {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

.show-more .text-label::after,
.hide-content .text-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #ff9933;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.arrow-icon {
  color: var(--orange);
  font-size: 24px;
  display: block;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

/* --- ホバー時の変化（ここからアニメーション） --- */
.show-more:hover,
.hide-content:hover {
  opacity: 1;
}

/* 文字色をオレンジに変え、下線を伸ばす */
.show-more:hover .text-label,
.hide-content:hover .text-label {
  color: #ff9933;
}

.show-more:hover .text-label::after,
.hide-content:hover .text-label::after {
  width: 100%;
}

/* View Allのホバー時は矢印を下に動かす */
.show-more:hover .arrow-icon {
  transform: translateY(5px);
}

/* closeのホバー時は矢印を上に動かす */
.hide-content:hover .arrow-icon {
  transform: translateY(-5px);
}

.hide-content {
  display: none;
}

/* =========================================
   7. モバイル対応
   ========================================= */

/* タブレット・中画面サイズ (1000px以下) */
@media (max-width: 1000px) {
  .interview-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2列に変更 */
    padding-left: 10%;
    padding-right: 10%;
    gap: 30px;
  }

  .banner-buttons {
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .card {
    width: 100%;
    max-width: 350px;
  }

  .card-img-wrap {
    height: auto;
  }
}

/* スマホサイズ (600px以下) */
@media (max-width: 600px) {

  /* フィルターエリアを縦並びに */
  .filter-row-new {
    flex-direction: column;
  }

  .filter-label-col {
    width: 100%;
    margin-bottom: 10px;
  }

  .filter-label-col::after {
    display: none;
  }

  .apply-btn {
    width: 100%;
  }

  /* インタビューカードを1列に */
  .interview-grid {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
    justify-items: center;
  }

  /* 採用ボタンのレイアウト調整 */
  #recruit-banner {
    padding: 50px 10px;
  }

  .banner-buttons {
    flex-direction: column;
    max-width: 400px;
  }

  .banner-btn {
    padding: 20px 30px;
  }
}

/* スマホサイズ (600px以下) */
@media (max-width: 600px) {
  /* ... (フィルターやグリッドの既存設定) ... */

  #recruit-banner {
    padding: 40px 20px;
  }

  .banner-btn {
    width: 100%;
    height: 180px;
    padding: 20px;
    margin-bottom: 15px;
    justify-content: center;
  }

  .banner-btn .large-text {
    font-size: 24px;
    margin-bottom: 0;
    display: block;
    /* 矢印を消すので block に戻してOK */
    text-align: center;
    /* 中央寄せにする場合 */
  }

  .banner-btn .small-text {
    font-size: 12px;
    margin-bottom: 0;
    text-align: center;
    /* 中央寄せにする場合 */
  }

  /* ★修正ポイント：スマホ時のみ矢印を完全に消す */
  .banner-btn::before {
    display: none !important;
  }

  /* スマホ時：下線も不要なら消す */
  .banner-btn::after {
    display: none !important;
  }
}
