/* ======================================================
   MitsuPita Job – FRONT PAGE CSS
   FINAL PERFECT R400（フッター完全保証版）
====================================================== */

/* ===============================
   HERO
================================ */

.mpj-hero{
  position: relative;
  color: #fff;
  text-align: center;
}

.mpj-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  z-index: 1;
}

.mpj-hero-inner{
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  top: -20px;
}

.mpj-hero-logo img{
  width: 360px;
  max-width: 90%;
  margin: 0 auto 22px;
  display: block;
}

.mpj-copy{
  font-size: 40px;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 4px 12px rgba(0,0,0,.45);
}

.mpj-copy span{
  display: block;
  font-size: .55em;
  font-weight: 500;
  margin-top: 8px;
}

.mpj-subcopy{
  font-size: 18px;
  margin: 18px 0 30px;
  opacity: .95;
}

/* ===============================
   セクション共通
================================ */

.mpj-section-title{
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: #1b2b2f;
}

.mpj-section-sub{
  text-align: center;
  color: #5b6b70;
  margin-bottom: 30px;
}

/* ===============================
   人気職種
================================ */

.mpj-category-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.mpj-category-card{
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #E3F1F3;
  font-weight: 800;
  color: #1F9FAD;
  text-decoration: none;
  transition: .25s ease;
}

.mpj-category-card:hover{
  background: #1F9FAD;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

/* ===============================
   フッター（安全版）
================================ */

/* フッター本体は必ず表示 */
footer.site-footer{
  display: block !important;
  background: #F7FBFC;
  border-top: 2px solid #E3F1F3;
}

/* コピーライト */
footer .copySection{
  font-size: 12px;
  color: #6a7b80;
  text-align: center;
}

/* ===============================
   不要ウィジェットのみ無効化
   ※フッター本体は消さない
================================ */

/* 固定ページで「アーカイブ・カテゴリ」だけ非表示 */
.page .widget_archive,
.page .widget_categories{
  display: none !important;
}

/* ===============================
   スマホ最適化
================================ */

@media (max-width: 768px){

  .mpj-hero-inner{ top: -10px; }

  .mpj-hero-logo img{ width: 300px; }

  .mpj-copy{ font-size: 28px; }

  .mpj-subcopy{ font-size: 15px; }

  .mpj-category-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  /* フッターと固定CTAの干渉防止 */
  footer.site-footer{
    padding-bottom: 90px;
  }
}