@charset "utf-8";
/* =============================================================
   採用サイト（recruit）スマホ向けレスポンシブ最適化
   - 既存CSS（reset/base/form/content/lightbox）の後に読み込む前提
   - viewport は header-recruit.php で width=device-width
   - PC表示に影響しないよう、すべて max-width:767px のメディアクエリ内
   - 方針：現デザイン（配色・画像・要素）は維持し、余白／文字／行間／
     タップ領域／回り込み／固定幅・絶対配置をスマホ向けに最適化
   ============================================================= */

/* スマホ用ハンバーガーは既定で非表示（PC表示では出さない） */
.sp_navtoggle { display: none; }
/* 採用トップのスマホ用ファーストビュー・ラベルは既定で非表示（PCは従来デザイン） */
.sp_recruit_label { display: none; }
/* 強み・特徴 冒頭：PCは画像、スマホは実テキスト（既定では実テキスト非表示） */
.sp_text01 { display: none; }

@media screen and (max-width: 767px) {

  /* =========================================================
     0. 全体（横スクロール防止・基本タイポgrafi）
     ========================================================= */
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 15px; line-height: 1.8; }
  body, #wrapper { overflow-x: hidden; }
  /* PC用に入った本文・見出し内の改行<br>はスマホでは無効化し自然に折り返す（表/住所等の構造的改行は対象外） */
  #main p br, #main h2 br, #main h3 br { display: none; }
  img { max-width: 100%; height: auto; }
  .container { width: auto !important; max-width: 100% !important; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  #main { padding-top: 0 !important; }
  /* 固定ヘッダー前提の擬似アンカー余白を解除（ヘッダーは非固定化するため） */
  .sec_anchor, .person01 .container, #pp, .sec_president { padding-top: 24px !important; margin-top: 0 !important; }

  /* =========================================================
     1. ヘッダー（固定解除→縦並び）＋ ハンバーガー
     ========================================================= */
  #header { position: static; }
  #header .h_main { position: relative; padding: 10px 12px 8px; text-align: left; }
  #header .h_logo { float: none; display: inline-block; }
  #header .h_logo img { max-width: 52%; }
  #header .h_right { float: none; padding-top: 6px; display: block; text-align: left; }
  #header .h_right li { float: none; display: inline-block; margin: 0 12px 0 0; vertical-align: middle; }
  #header .h_right li:first-child img { width: 30px !important; height: auto !important; }
  #header .hnav { margin-top: 0; padding-left: 12px; }
  #header .hnav:before { top: 50%; margin-top: -3px; }
  #header .hnav a { margin-top: 0; font-size: 12px; }
  /* エントリーボタンをロゴと同じ1行目の右上へ配置し、ヘッダーを2行に圧縮 */
  #header .h_right li:last-child { position: absolute; top: 8px; right: 12px; margin: 0; }
  #header .hbtn_entry { font-size: 13px; padding: 9px 18px; border-radius: 4px; background-image: none !important; text-align: center; }
  #header .hbtn_entry:before { display: none; }

  .sp_navtoggle { display: block; }
  .sp_navtoggle a { display: block; background: #16365f; color: #fff; text-align: center; padding: 15px; font-size: 16px; font-weight: bold; text-decoration: none; }
  .sp_navtoggle a:before { content: "\2630"; margin-right: 10px; }
  #header.js-nav #gnav { display: none; }
  #header.js-nav.nav-open #gnav { display: block; }

  /* グローバルナビ（縦積み・サブメニュー展開） */
  #gnav > ul { display: block; }
  #gnav > ul > li { float: none; width: 100%; border-top: 1px solid #34527a; }
  #gnav > ul > li > a { text-align: left; padding: 15px 16px; font-size: 15px; }
  #gnav .submenu { position: static; display: block; background: #16365f; }
  #gnav .submenu a { text-align: left; padding: 12px 16px 12px 34px; font-size: 14px; }

  /* =========================================================
     2. 共通：ページタイトル帯・見出し・セクション余白
     ========================================================= */
  .tt_page { min-height: 0 !important; padding-top: 28px !important; padding-bottom: 28px !important; background-size: cover !important; background-position: center !important; }
  .tt_page span { width: auto !important; max-width: 100%; }
  /* 個別社員ページのヒーロー（元 min-height:470px）は適度な高さで cover 表示 */
  .page_onyama .tt_page, .page_matsukawa .tt_page, .page_yamada .tt_page,
  .page_taguchi .tt_page, .page_utsugi .tt_page, .page_nakahara .tt_page,
  .page_kosuda .tt_page { min-height: 220px !important; padding: 0 !important; }

  .sec01 { margin-top: 28px; }
  .tt01 { margin-bottom: 22px; }
  .tt01 strong { font-size: 24px; }
  .tt01 strong:before { width: 90px; }
  /* 実テキスト化した見出しのモバイルサイズ */
  .tt_page span { font-size: 26px; }
  .tt_page .en { font-size: 13px; margin-bottom: 4px; }
  .tt_page .ja { font-size: 19px; }
  .page_business h2.text_center { font-size: 20px; }
  .gallery h2 { font-size: 22px; }

  /* =========================================================
     3. 募集要項（テーブル縦積み）
     ========================================================= */
  .page_guideline { padding-bottom: 48px; }
  .tbl01, .tbl01 tbody, .tbl01 tr { display: block; width: 100%; }
  .tbl01 th, .tbl01 td { display: block; width: auto !important; box-sizing: border-box; }
  .tbl01 th { text-align: left; font-size: 15px; padding: 10px 14px; border-bottom: none; }
  .tbl01 td { font-size: 15px; padding: 12px 14px 16px; line-height: 1.85; }

  /* =========================================================
     4. 強み・特徴（business）
     ========================================================= */
  .business01 { padding: 44px 16px; font-size: 15px; line-height: 1.9; }
  /* 冒頭の画像テキストはスマホでは実テキスト（上段落と同じゴシック）に差し替え */
  .business01 .container > img { display: none; }
  .business01 .sp_text01 { display: block; margin-top: 8px; }
  .business03 { padding: 44px 16px; }
  .business03 .box { padding: 24px 18px; margin-top: 30px; font-size: 15px; }
  .business03 .box .image { float: none; margin: 0 auto 16px; display: block; text-align: center; }
  .business03 .box .ico { position: static; display: inline-block; margin-bottom: 8px; }
  .business03 .box h3 { font-size: 19px; }
  .business04 { padding: 44px 16px; font-size: 15px; line-height: 1.9; }
  .business04 .list_btn li { display: block; margin: 0 0 12px; }
  .business04 .list_btn li img { max-width: 100%; }

  /* =========================================================
     5. 求める人物像（person）— 絶対配置カードを縦積みに
     ========================================================= */
  .person_lead { padding: 44px 16px; }
  .person_lead h2 { font-size: 22px; margin: 0 0 8px; }
  .person_lead ul { margin-top: 24px; position: static; height: auto; }
  .person_lead li,
  .person_lead li:nth-child(2), .person_lead li:nth-child(3),
  .person_lead li:nth-child(4), .person_lead li:nth-child(5) {
    display: block; position: relative; left: auto !important; top: auto !important;
    width: 100%; max-width: 340px; margin: 0 auto 16px; }
  /* 斜めの装飾背景はカード全体の色面として再利用（skew解除） */
  .person_lead li:before,
  .person_lead li:nth-child(2):before, .person_lead li:nth-child(3):before,
  .person_lead li:nth-child(4):before, .person_lead li:nth-child(5):before {
    left: 0; top: 0; width: 100%; height: 100%;
    -moz-transform: none; -webkit-transform: none; transform: none; }
  .person_lead li a { display: block; height: auto; padding: 22px 14px; }
  .person_lead li h3 { font-size: 19px; margin-bottom: 8px; }
  .person_lead li a p { font-size: 14px; line-height: 1.7; margin: 0; padding: 0 !important; text-align: center; }

  .person01 { padding: 36px 16px; font-size: 16px; margin-bottom: 10px; }
  .person01 h2 { font-size: 26px; letter-spacing: normal; }
  .person01 h3 { font-size: 20px; letter-spacing: normal; margin: 0 0 14px; }
  .person01 .image { float: none; margin: 0 auto 16px; display: block; text-align: center; }

  /* =========================================================
     6. 社員紹介（staff 一覧）／ギャラリー
     ========================================================= */
  .staff01 { padding: 44px 16px; }
  .staff01 .text { font-size: 15px; margin-bottom: 28px; }
  .staff01 li { display: block; width: auto; max-width: 280px; margin: 0 auto 24px; }
  .staff01 li:before { display: none; }
  .staff01 li a p { display: block; width: auto; height: auto; padding: 18px 14px; }
  .staff01 li a p span { font-size: 17px; }
  .staff01 li a img { width: 100% !important; height: 200px !important; object-fit: cover; }

  .gallery { padding: 44px 16px; }
  .gallery ul, .gallery .list_gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
  .gallery ul:before, .gallery ul:after, .gallery .list_gallery:before, .gallery .list_gallery:after { content: none !important; display: none !important; }
  .gallery li { float: none !important; display: block !important; width: auto !important; margin: 0 !important; border: none !important; list-style: none; }
  .gallery li:before { display: none !important; }
  .gallery li a { display: block; line-height: 0; }
  .gallery li img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,.18); }

  /* =========================================================
     7. 個別社員ページ（onyama 等）staff_sec
     ========================================================= */
  .staff_sec, .staff_sec.staff_sec02, .staff_sec.staff_sec03 {
    font-size: 15px; padding: 40px 0; min-height: 0; background-size: cover; }
  .staff_sec .container { width: auto !important; padding-left: 16px; padding-right: 16px; }
  .staff_sec .image, .staff_sec.staff_sec02 .image, .staff_sec.staff_sec03 .image {
    float: none; padding: 0; margin: 0 auto 16px; text-align: center; }
  .staff_sec .text, .staff_sec.staff_sec02 .text, .staff_sec.staff_sec03 .text {
    float: none; width: auto; }
  .staff_sec .text h2 { font-size: 22px; letter-spacing: normal; margin-bottom: 20px; line-height: 1.5; }
  .staff_sec .text p { margin-bottom: 20px; }
  .staff_sec .message { padding: 20px 16px; margin-top: 28px; font-size: 15px; }

  /* =========================================================
     8. 選考フロー（flow）
     ========================================================= */
  .page_flow { padding: 0 0 48px; }
  .page_flow .flow_lead { font-size: 20px; margin: 24px 0; letter-spacing: normal; line-height: 1.5; }
  .flow_list dt { font-size: 19px; padding: 14px 12px 16px 64px; }
  .flow_list dt .num { width: 44px; height: 44px; font-size: 26px; left: 10px; top: 50%; margin-top: -22px; }
  .flow_list dd { padding: 12px 8px 52px 16px; font-size: 15px; }
  .flow_list dd:before { border-right-width: 60px; border-left-width: 60px; margin-left: -60px; }

  /* =========================================================
     9. エントリー（entry）／フォーム
     ========================================================= */
  .page_entry .box_pp, .box_pp { margin: 0 0 48px; padding: 16px 18px; font-size: 15px; }
  .tbl_form, .tbl_form tbody, .tbl_form tr { display: block; width: 100%; }
  .tbl_form th, .tbl_form td { display: block; width: auto !important; box-sizing: border-box; padding: 8px 0; border-bottom: none; }
  .tbl_form th { padding-top: 18px; font-weight: bold; }
  .tbl_form tr { border-bottom: 1px solid #cccccc; padding-bottom: 14px; }
  input[type="text"], input[type="tel"], input[type="email"], textarea { width: 100% !important; box-sizing: border-box; }
  input.zip { width: 45% !important; }
  input.add { width: 100% !important; float: none; margin-top: 8px; }
  select { max-width: 100%; }
  .list_radio li { float: none; width: auto; margin-bottom: 8px; }
  .hissu, .ninni { float: none; display: inline-block; margin-left: 8px; }
  .btn_submit { width: 100% !important; box-sizing: border-box; }
  /* Contact Form 7 の送信ボタン（width:50%だとスマホで文字が見切れる） */
  #formbtn { width: 90% !important; max-width: 400px; box-sizing: border-box; padding: 0.9em 10px !important; font-size: 16px; line-height: 1.4; white-space: nowrap; }
  #formEnd { padding: 15px 16px 0 !important; }
  #formEnd .f13 { width: auto !important; margin: 15px 0 0 !important; }

  /* =========================================================
     10. 代表メッセージ（president）
     ========================================================= */
  .page_president { padding-bottom: 56px; }
  .sec_president .image { float: none; width: auto; margin: 0 auto 16px; text-align: center; }
  .sec_president .text { float: none; width: auto; font-size: 15px; letter-spacing: normal; line-height: 1.8; }
  .sec_president h2 { font-size: 22px; letter-spacing: normal; }

  /* =========================================================
     11. FAQ
     ========================================================= */
  .page_faq { padding-bottom: 48px; }
  .sec_faq { margin-top: 32px; }
  .sec_faq h2 { font-size: 19px; padding: 10px 12px; }
  .sec_faq dt { padding: 8px 8px 22px 58px; font-size: 16px; background-position: 8px 3px; background-size: 38px auto; min-height: 32px; }
  .sec_faq dd { padding: 8px 8px 24px 58px; font-size: 15px; background-position: 8px 3px; background-size: 38px auto; min-height: 32px; }

  /* =========================================================
     12. フッター（縦並び）
     ========================================================= */
  #footer { padding: 24px 16px; }
  #footer .inner { width: auto !important; }
  #footer .f_logo { float: none; text-align: center; margin: 0 0 16px; }
  #footer .f_right { float: none; width: auto !important; }
  #footer .fnav { float: none; margin-bottom: 16px; }
  #footer .fnav ul { display: block; }
  #footer .fnav li { float: none; margin: 0; padding: 12px 0; border-bottom: 1px solid #333; }
  #footer .fnav li:before { display: none; }
  #footer .pull_right { float: none !important; text-align: center; }

  /* =========================================================
     13. 追従エントリーボタン（常時表示の導線）
     ========================================================= */
  #spFixedCta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: #f19c49; box-shadow: 0 -2px 6px rgba(0,0,0,.2); }
  #spFixedCta a { display: block; text-align: center; color: #fff; font-weight: bold;
    font-size: 16px; padding: 15px; text-decoration: none; }
  /* 追従ボタンに隠れないよう下部に余白 */
  #footer { padding-bottom: 84px; }

  /* =========================================================
     14. 採用トップ（fullPage.js / recruittop）
     - fullPage.js は responsiveWidth により通常スクロール化（top.js）
     - 全画面前提の絶対配置・固定高さ・hoverで出る固定footerを通常フローへ
     ========================================================= */
  #fullpage .section, #fullpage .fp-section { height: auto !important; min-height: 0 !important; }
  /* fullPage.js の全画面高さ・縦中央寄せを解除し、コンテンツ高さに詰める（背景は cover のまま自然に） */
  #fullpage .fp-tableCell { height: auto !important; display: block !important; vertical-align: top !important; }
  .fp-scroller, .fp-scrollable { height: auto !important; }
  .mega { background-size: cover; background-position: center; }
  .mega .inner { position: static !important; -webkit-transform: none !important; transform: none !important;
    width: auto !important; max-width: 100% !important; padding: 48px 16px !important; top: auto; left: auto; }
  .mega h2 strong { margin-top: 10px; font-size: 22px; }
  .mega h2 .h_en { font-size: 15px; }
  /* drop1 ファーストビュー：採用サイトだと一目で伝わる構成に（RECRUIT→採用サイト見出し→理念コピー の順） */
  .drop1 .inner { display: flex !important; flex-direction: column; align-items: center; padding: 28px 16px 32px !important; }
  .mega.drop1 { background-position: center center; }
  .sp_recruit_label { display: block; order: -2; color: #fff; text-align: center; margin-bottom: 16px; }
  .sp_recruit_label .eyebrow { display: block; font-size: 15px; font-weight: bold; letter-spacing: .4em; padding-left: .4em; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
  .sp_recruit_label .org { display: block; font-size: 13px; margin-top: 10px; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
  .drop1 h1 { order: -1; margin: 0 0 20px !important; }
  .drop1 h1 img { max-width: 86%; }
  .drop1 .text_first { order: 0; margin: 0; }
  .drop1 .text_first img { max-width: 76%; }
  a.btn_enter { display: inline-block; width: auto !important; max-width: 240px; padding: 10px 16px; font-size: 16px; margin: 16px auto 0; }
  a.btn_enter:before { display: none !important; }
  .drop2 p { padding: 16px 0; font-size: 15px; }
  /* drop3：2カラム→縦積み */
  .t_wanted, .t_message { float: none !important; width: auto !important; padding: 0 !important; }
  .t_wanted .image { margin-left: 0 !important; }
  .t_message { padding-top: 28px !important; }
  /* drop4：2カラム→縦積み */
  .drop4 .image, .drop4 .text_drop4 { float: none !important; width: auto !important; margin: 0 auto !important; padding: 0 !important; }
  .drop4 .image img { height: auto !important; margin: 0 auto !important; }
  .drop4 .text_drop4 { padding-top: 24px !important; color: #fff; }
  .drop4 .text_drop4 p, .drop5 p { font-size: 15px; }
  /* drop5：採用情報リンク */
  .drop5 ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 24px !important; margin: 0; }
  .drop5 ul:before, .drop5 ul:after { content: none !important; display: none !important; }
  .drop5 li { display: block !important; width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }
  .drop5 li a { display: block; }
  .drop5 li a:before { display: none !important; }
  .drop5 li img { width: 100%; height: 108px; object-fit: cover; display: block; }
  .drop5 li a span { display: block !important; text-align: center; padding: 12px 18px !important; font-size: 14px; }
  .drop5 li a span:before { right: 8px; top: 50%; margin-top: -8px; }
  /* スクロール演出・右ナビは非表示 */
  .btn_scroll, .btn_up { display: none !important; }
  #fp-nav, .fp-slidesNav { display: none !important; }
  /* recruittop の hover で出る固定フッターをスマホでは常時表示・通常配置に */
  #footer { position: static !important; opacity: 1 !important; filter: alpha(opacity=100) !important; bottom: auto !important; }
}

/* 追従CTAは既定（PC）では非表示 */
#spFixedCta { display: none; }
