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

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

/* ── ドロップダウン識別チェブロン ── */
.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; }

/* ── フッター ── */
.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: 4px; }
  .cchars .cc img { height: 120px !important; }
  .cbtn { padding: 14px 28px; font-size: 15px; }

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