@charset "utf-8";

.recruit-desktop { display: block !important; }
.recruit-mobile  { display: none !important; }

#footer {
    margin: 0 auto 30px;
    padding: 0;
    width: 440px;
}

/* ===============================
   スマホ専用 採用情報：完全レスポンシブ化
   =============================== */
@media (max-width: 768px) {
  /* 出し分け */
  .recruit-desktop { display: none !important; }
  .recruit-mobile  { display: block !important; }

  /* 親コンテナの固定幅解除・横スクロール防止 */
  html, body {
    overflow-x: hidden !important;
  }
  #wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  .recruit-mobile {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  /* 全ての画像を親幅にフィット */
  .recruit-mobile img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* 特にヒーロー画像とタイトル画像 */
  .recruit-mobile img.responsive,
  .recruit-mobile img.title-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* 三角アイコンだけは原寸固定 */
  .recruit-mobile .tri {
    width: 10px !important;
    height: 11px !important;
    max-width: none !important;
    display: inline-block !important;
    vertical-align: middle;
  }

  /* セクション全体 */
  .recruit-sec {
    width: 100% !important;
    margin: 20px 0;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* リード文 */
  .recruit-lead {
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.7;
    margin: 12px 0 20px;
    box-sizing: border-box;
  }

  /* 地域タイトル（h3） */
  .area {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 15px;
    margin: 8px 0;
    gap: 6px;
  }

  /* 施設リスト */
  .facilities {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: none;
  }

  .facilities li {
    line-height: 1.8;
    word-break: break-word;
  }

  /* table や td が残っている場合も全て100%に */
  .recruit-mobile table,
  .recruit-mobile tr,
  .recruit-mobile td {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* ページトップボタン */
  .to-top {
    text-align: right;
    padding: 16px 12px;
  }
  .to-top img {
    width: auto !important; /* 固定幅は解除しない */
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
  }

  #footer {
    max-width: 440px;
    width: 100%;
  }
}
