/**
 * shared.css — CTA・フッター共通スタイル
 * 全ページに <link rel="stylesheet" href="components/shared.css"> で読み込む
 * recruit.html での調整を一か所にまとめ、全ページに反映させる
 */

/* ── モバイル専用改行（PCでは非表示） ── */
.sp-br { display: none; }
.sp-hide { display: none; }

/* ── フッターロゴ：リベ大＋リベシティ 白抜き（全ページ統一） ── */
.flogos { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.flogo-img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.flogo-libecity { height: 29px; }
.fco { font-size: 15px !important; font-weight: 400 !important; margin-bottom: 4px !important; color: rgba(255,255,255,.65) !important; }

/* ── ヘッダーロゴ：リベ大＋リベシティ 2行（全ページ統一） ── */
.logo { display: flex; flex-direction: row; align-items: center; gap: 24px; line-height: 1; flex-shrink: 0; }
.logo-marks { display: flex; align-items: center; gap: 12px; }
.logo-marks img { height: 26px; width: auto; display: block; }
.logo-libecity { height: 31px !important; transform: translateY(-3px); }
.logo-x { color: #ccc; font-size: 18px; font-weight: 300; }
.logo-badge {
  font-size: 14px; font-weight: 700; color: #384860; letter-spacing: .04em;
  border: 1.5px solid #384860; border-radius: 50px;
  padding: 6px 18px; white-space: nowrap;
}
@media (max-width: 860px) {
  .logo { gap: 10px; }
  .logo-marks { gap: 9px; }
  .logo-marks img { height: 20px; }
  .logo-libecity { height: 23px !important; transform: translateY(-2px); }
  .logo-x { font-size: 14px; }
  .logo-badge { font-size: 12px; padding: 5px 13px; }
}
@media (max-width: 600px) {
  /* スマホ：ロゴ（上段）と採用サイトピル（下段）を縦2段にして両方表示 */
  .logo { flex-direction: column; align-items: flex-start; gap: 5px; }
  .logo-marks { gap: 7px; }
  .logo-marks img { height: 16px; }
  .logo-libecity { height: 18px !important; transform: translateY(-2px); }
  .logo-x { font-size: 12px; }
  .logo-badge { font-size: 10px; padding: 3px 12px; }
}

/* ── 英字ラベル（eyebrow）：全ページ統一 ──
   ネイビー文字・黄色の下線（.sdiv）なし・フォントサイズはトップページに合わせ13px */
.eyebrow { color: #384860 !important; font-size: 13px !important; }
.sdiv { display: none !important; }

/* ── ミッションカード内ロゴ（全ページ統一） ── */
/* リベシティは文字がリベ大と同じ大きさに見えるよう約0.81倍（リベ大64px → 52px） */
.mc-logo[src*="libecity-logo"] { height: 50px !important; }
@media (max-width: 600px) {
  /* リベ大ロゴは少し小さく */
  .mc-logo { height: 28px !important; margin-bottom: 16px !important; }
  /* リベシティ：淡い色で小さく見えやすいのでリベ大28pxより気持ち大きめに */
  .mc-logo[src*="libecity-logo"] { height: 33px !important; }
}

/* ── 白ボタン（アウトライン）のホバー：黄色背景＋ネイビー文字に統一（全ページ） ── */
.bo:hover, .tbtn-sub:hover, .sns-badge:hover {
  background: #FFD100 !important;
  color: #384860 !important;
  border-color: #FFD100 !important;
}

/* ── ドロップダウンのホバー：はっきりした黄色に統一 ── */
.dd a:hover { background: #FFF4B8 !important; color: #384860 !important; }

/* ── ドロップダウン識別チェブロン ── */
.nl-dd { display: flex; align-items: center; gap: 4px; }
.nl-chevron { flex-shrink: 0; transition: transform .2s; }
.nl-dd:hover .nl-chevron { transform: rotate(180deg); }

/* ── ハンバーガーメニュー – サブリンク ── */
.mnl-sm { font-size: 13px; font-weight: 500; color: #595959; padding: 14px 0; }

/* ── ハンバーガーメニュー – 全ページ統一（recruit.html基準） ── */
/* 「理念と文化」見出し（span）はホバーアクションなし */
span.mnl { pointer-events: none; }
span.mnl:hover { color: #384860 !important; }

/* ナビリンク：黄色ホバーに統一 */
.mnl:hover { color: #FFD100 !important; }

/* 募集職種ボタン：黄色背景ホバーに統一 */
.mncta:hover { background: #FFD100 !important; color: #384860 !important; }

/* サブリンク（リベ大MV・リベシティMV・バリュー）：黄色ホバーに統一 */
.mdd a:hover { color: #FFD100 !important; }

/* ── CTA ── */
#cta { padding: 120px 0 80px; }

/* フッターCTAボタン：ヘッダーと同じオレンジに統一（全ページ） */
.cbtn { background: #FF6B00 !important; color: #fff !important; border-color: #FF6B00 !important; }
.cbtn:hover { background: #384860 !important; color: #fff !important; border-color: #384860 !important; }

/* CTA説明文：少し大きく＆太字（全ページ） */
.csub { font-size: 16px !important; font-weight: 700 !important; }

/* CTAキャラ（cta1-5）：統一サイズ＋均等間隔（全ページ統一） */
/* 画像は余白なしにトリミング済みなので、gapがそのまま均等な間隔になる */
.cchars { gap: 32px !important; }
.cchars .cc { margin: 0 !important; }
/* cta1（指差し男性）とcta2の間が詰まって見えるので少し広げる */
.cchars .cc:nth-child(2) { margin-left: clamp(10px, 1.8vw, 30px) !important; }
.cchars .cc img { height: 260px !important; }
/* ライオン(3番目)は頭ひとつ分大きく */
.cchars .cc:nth-child(3) img { height: 320px !important; }
@media (max-width: 860px) {
  .cchars { gap: 18px !important; }
  .cchars .cc img { height: 175px !important; }
  .cchars .cc:nth-child(3) img { height: 215px !important; }
}
@media (max-width: 480px) {
  .cchars { gap: 8px !important; }
  .cchars .cc img { height: 118px !important; }
  .cchars .cc:nth-child(3) img { height: 145px !important; }
}

/* ── フッター ── */
.fsep { /* PC では表示 */ }

/* ── タブレット（601px〜860px）── */
@media (min-width: 601px) and (max-width: 860px) {

  /* 余白をPC寄りに */
  .wrap { padding: 0 40px; }

  /* フッター：上段=会社情報(全幅) / 下段=ナビ左・理念右 */
  .fgrid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 28px 40px !important; }
  .fgrid > div:first-child { grid-column: 1 / -1; }
  .fbot { flex-direction: row !important; justify-content: space-between !important; align-items: center !important; text-align: left !important; }
  .fcp { white-space: nowrap; }

  /* CTA：キャラはPC比率を維持しつつ縮小 */
  .cchars .cc img     { height: 130px !important; }
  .cchars .cc:nth-child(2) img { height: 112px !important; }
  .cchars .cc:nth-child(3) img { height: 190px !important; }
  .cchars .cc:nth-child(4) img { height: 130px !important; }
  .cchars .cc:nth-child(5) img { height: 130px !important; }
}

/* ── 860px以下（スマホ・タブレット） ── */
@media (max-width: 860px) {
  .sp-br  { display: block; }
  .sp-hide{ display: none; }

  /* CTA */
  #cta { padding: 72px 0; }
  .cbtn { padding: 16px 36px; font-size: 16px; }
  .cchars { margin-top: 32px; }
  .cchars .cc img { height: 140px; }
  .cchars .cc:nth-child(3) img { height: 140px !important; }

  /* フッター */
  .fgrid { grid-template-columns: 1fr; gap: 28px; }
  .fbot  { flex-direction: column; gap: 10px; text-align: center; }
  .fbot .fcp { margin-top: 12px; }
  .fsep  { display: none; }
}

/* ── 480px以下（小型スマホ） ── */
@media (max-width: 480px) {
  /* CTA：キャラを少し小さく＋左右に余白を確保 */
  .cchars { gap: 6px !important; padding: 0 16px !important; }
  .cchars .cc img { height: 100px !important; }
  .cchars .cc:nth-child(3) img { height: 124px !important; }
  .cbtn { padding: 14px 28px; font-size: 15px; }

  /* フッター */
  footer { padding: 48px 0 32px; }
}
