/* =====================================================
   company_view.css — 企業詳細ページ専用スタイル
   ===================================================== */

/* ---- ヘッダーバー ---- */
.cv-header-bar {
  background: linear-gradient(135deg, #66c6e4 0%, #91dba8 50%, #4678e5 100%);
  padding: 0.75rem 0;
}
.cv-header-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* 背景用 img タグ（絶対配置でストレッチ、clipping は img 自身に閉じる） */
.cv-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* オーバーレイ：下半分だけ締める、上部は写真をそのまま見せる */
.cv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0)    0%,
    rgba(0, 0, 0, 0)   45%,
    rgba(0, 0, 0, 0.50) 75%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.cv-hero__inner {
  position: relative;   /* overlay の上に出す */
  z-index: 1;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* ---- トップバー（パンくず + お気に入り） ---- */
.cv-hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.cv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.40);
}

.cv-breadcrumb__link {
  color: #fff;
  text-decoration: none;
}
.cv-breadcrumb__link:hover {
  color: rgba(255,255,255,0.80);
}
.cv-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.70);
}

/* お気に入りボタン */
.cv-btn-fav {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.cv-btn-fav:hover,
.cv-btn-fav--active {
  background: rgba(255, 200, 50, 0.25);
  border-color: #ffc832;
  color: #ffd95e;
}

/* ---- ヒーロー本文 ---- */
.cv-hero__body {
  color: #fff;
  max-width: 720px;
}

/* 会社名（タイトルの上）：白地に黒文字ピル */
.cv-hero__company-name {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #222;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.6rem;
  text-shadow: none;
}

/* 職種バッジ：白地に黒文字 */
.cv-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border: none;
  color: #333;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}

/* 求人タイトル */
.cv-hero__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-shadow:
    0 1px 0   rgba(0,0,0,0.6),
    0 2px 12px rgba(0,0,0,0.8),
    0 4px 24px rgba(0,0,0,0.5);
}

/* キャッチコピー */
.cv-hero__subtitle {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.70);
}

/* エリア情報 */
.cv-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 0;
}
.cv-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---- モバイル：ヒーロー内CTA ---- */
.cv-hero__cta {
  margin-top: 1.25rem;
}

/* ---- 応募ボタン ---- */
.cv-btn-apply {
  display: inline-block;
  background-color: #f25a4e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(242, 90, 78, 0.45);
  transition: background-color 0.2s, transform 0.15s;
  text-align: center;
}
.cv-btn-apply:hover {
  background-color: #d84d43;
  color: #fff;
  transform: translateY(-2px);
}
.cv-btn-apply--hero {
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
}

/* ---- デスクトップ：サイドバーをスティッキーに ---- */
.cv-sidebar-sticky {
  position: sticky;
  top: 1.5rem;
}

/* ---- 定義リスト（募集内容など） ---- */
.cv-dl dt {
  font-weight: 600;
  color: #444;
}
.cv-dl dd {
  color: #333;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.5rem;
}
.cv-dl dd:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---- モバイル固定応募バー ---- */
.cv-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.10);
}

.cv-mobile-bar__btn {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

.cv-mobile-bar__back {
  display: inline-block;
  color: #666;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 0.25rem;
}
.cv-mobile-bar__back:hover {
  color: #333;
}

/* モバイルバーの分だけページ下部に余白を確保 */
@media (max-width: 767px) {
  body {
    padding-bottom: 72px;
  }
}

/* ---- レスポンシブ調整 ---- */
@media (max-width: 767px) {
  .cv-hero__title {
    font-size: 1.45rem;
  }

  .cv-hero__subtitle {
    font-size: 0.95rem;
  }

  .cv-hero__inner {
    padding-bottom: 1.75rem;
  }
}

@media (max-width: 480px) {
  .cv-hero__title {
    font-size: 1.25rem;
  }

  .cv-hero__company-name {
    font-size: 0.8rem;
  }
}
