@charset "utf-8";
/* =========================================================
   タイキャリ 共通テーマ（全ページ適用 / import.css から読込）
   ヘッダ(.th-header)／フッタ(.th-footer)／SPドロワー／配色／フォント。
   ※既存CSSの .site-header / .footer と衝突しないよう th- 接頭辞で自己完結。
     ヘッダ・フッタは width:100% + 内側 max-width:1184px の流動レイアウトで、
     TOPのzoom土台(1920)内でも下層の通常幅でも破綻しない。
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Noto+Sans+JP:wght@400;500;700;800;900&family=Shippori+Mincho:wght@600;700;800&display=swap');

:root{
  --navy:#132F71;
  --red:#A11813;
  --red2:#9F1512;
  --ink:#313132;
  --body:#333333;
  --muted:#737474;
  --date:#858585;
  --eyebrow:#DAD7CF;
  --wm-navy:#34497A;
  --gray:#EEEFF0;
  --footer:#454440;
  --before:#EEF1F8;
  --cin:"Cinzel",serif;
  --round:"M PLUS Rounded 1c","Zen Maru Gothic",sans-serif;
  --noto:"Noto Sans JP",sans-serif;
  --min:"Shippori Mincho","Noto Serif JP","Yu Mincho","游明朝",serif;
  --yu:"Yu Gothic",YuGothic,"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;
}

/* 旧 .site-header ラッパ（pc/blog/myuserテンプレが header.tpl を囲む）の
   残存スタイルを無害化。中身の .th-header が実体。 */
header.site-header{position:static!important;height:auto!important;min-height:0!important;
  background:none!important;box-shadow:none!important;border:none!important;padding:0!important;margin:0!important;}

/* =========================================================
   共通ヘッダー（.th-header）
   ========================================================= */
.th-header{position:sticky;top:0;left:0;width:100%;z-index:30;background:#fff;
  font-family:var(--yu);line-height:1.5;}
/* 下層は import.css を読むため、既存CSSの汎用クラス（例: parts.search.detail.css の
   `.company{margin-bottom:35px}` が .auth-group.company に当たる）が余白を注入して
   ヘッダーが上へずれる。TOPは page.taicari-top.css の `*{margin:0}` で消えるが下層は残るので打ち消す。 */
.th-header *{box-sizing:border-box;margin:0;}
.th-header a{text-decoration:none;color:inherit;}
.th-header .th-inner{width:100%;max-width:1184px;margin:0 auto;padding:0 20px;position:relative;}
.th-header .header-top{height:80px;background:#fff;}
.th-header .header-top .th-inner{height:80px;display:flex;align-items:center;justify-content:space-between;}
.th-header .logo{display:inline-block;}
.th-header .logo img{width:217px;height:auto;display:block;max-width:none;}
.th-header .header-auth{display:flex;gap:8px;}
.th-header .auth-group{display:flex;align-items:center;height:63px;border:1px solid #e2e2e4;border-radius:4px;padding:0 10px;gap:8px;}
.th-header .auth-label{font-family:var(--noto);font-weight:700;font-size:15px;letter-spacing:.05em;padding:0 4px;}
.th-header .auth-group.seeker .auth-label{color:var(--navy);}
.th-header .auth-group.company .auth-label{color:var(--red);}
.th-header .btn-auth{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:48px;padding:0 14px;
  border-radius:4px;font-family:var(--noto);font-weight:700;font-size:15px;letter-spacing:.05em;white-space:nowrap;line-height:1.1;}
.th-header .btn-auth svg{width:15px;height:15px;fill:currentColor;flex:none;}
.th-header .btn-auth.twoline{line-height:1.15;font-size:13.5px;}
.th-header .btn-auth.navy{background:var(--navy);color:#fff;}
.th-header .btn-auth.red{background:var(--red);color:#fff;}
.th-header .btn-auth.outline{background:#fff;color:#333;border:1px solid #d8d8dc;}
.th-header .header-nav{height:60px;background:var(--navy);}
.th-header .header-nav .th-inner{height:60px;display:flex;align-items:center;justify-content:center;gap:42px;flex-wrap:wrap;}
.th-header .header-nav a{font-family:var(--noto);font-weight:700;font-size:15px;letter-spacing:.1em;color:#fff;}
.th-header .header-nav a:hover{opacity:.8;}

/* ログイン要求モーダル（お気に入り等） */
.th-modal{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:2000;align-items:center;justify-content:center;}
.th-modal .modal-content{background:#fff;border-radius:8px;padding:34px 30px;max-width:400px;width:88%;text-align:center;position:relative;box-shadow:0 10px 40px rgba(0,0,0,.25);}
.th-modal .modal-close{position:absolute;top:12px;right:16px;font-size:26px;line-height:1;color:#999;cursor:pointer;}
.th-modal .modal-title{font-family:var(--min);font-weight:700;font-size:20px;color:var(--navy);margin-bottom:14px;}
.th-modal .modal-message{font-size:14px;color:#444;line-height:1.7;margin-bottom:22px;}
.th-modal .modal-actions{display:flex;gap:12px;justify-content:center;}
.th-modal .modal-actions a{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 22px;border-radius:5px;font-weight:700;font-size:15px;}
.th-modal .btn-modal-login{background:var(--navy);color:#fff;}
.th-modal .btn-modal-register{background:var(--red);color:#fff;}

/* =========================================================
   共通フッター（.th-footer）
   ========================================================= */
.th-footer{background:var(--footer);font-family:var(--yu);}
.th-footer a{text-decoration:none;color:inherit;}
/* 260730 検収No.33 フッターの縦幅を狭くしロゴも小さく（min-height 150→104px / ロゴ 281→200px） */
/* 260820 下層ページはコピーライト込み90px以内まで圧縮（min-height 104→56px / ロゴ 200→150px /
   nav 16→14px / copy padding 9→5px・14→12px）。TOPだけは page.taicari-top.css で従来サイズへ戻している。 */
.th-footer .ft-inner{width:100%;max-width:1184px;margin:0 auto;padding:0 20px;display:flex;align-items:center;gap:40px;min-height:56px;}
/* 260915 依頼#4293 下層ページはブラウザ倍率次第でフッターが左寄りに見える不具合対応。
   トップページ（index.html）は #wrapper を持たず本ルールの対象外＝従来どおり1184px。
   下層ページ（#wrapper 配下）だけ本文と同じ max-width:1000px に揃えて中央寄せの見え方を安定させる。
   260915 依頼#4291 同じく下層だけロゴ・メニューの塊を枠内で中央揃え（justify-content:center）。
   トップは #wrapper が無いので従来どおり（左詰め・1184px）。SP は横幅いっぱいに並ぶため見え方は変わらない。 */
#wrapper .th-footer .ft-inner{max-width:1000px;justify-content:center;}
.th-footer .footer-logo img{width:150px;height:auto;display:block;max-width:100%;}
.th-footer .footer-nav{display:flex;gap:24px;flex-wrap:wrap;}
.th-footer .footer-nav a{font-family:var(--yu);font-weight:500;font-size:14px;letter-spacing:.05em;color:#fff;}
.th-footer .footer-nav a:hover{opacity:.7;}
.th-footer .ft-copy{background:#fff;text-align:center;padding:5px 0;
  font-family:var(--yu);font-weight:500;font-size:12px;letter-spacing:.05em;color:#45433f;}

/* ページトップ戻る */
#pagetop{position:fixed;right:20px;bottom:20px;z-index:40;}
#pagetop a{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--navy);color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.25);}
#pagetop a i{display:none;}
#pagetop a::before{content:"";display:block;width:11px;height:11px;border-top:2px solid #fff;border-right:2px solid #fff;transform:rotate(-45deg);margin-top:4px;}

/* モバイル専用要素はPC（>768px）では非表示 */
.m-ham,.m-nav,.m-backdrop{display:none;}
/* 260827 検収No.49 SP専用の求職者ログインボタン（PCは header-auth があるので不要） */
.sp-auth{display:none;}

/* =========================================================
   SP（≤768px）ヘッダー・フッター・ドロワー
   ========================================================= */
@media (max-width:768px){
  .th-header{position:sticky;top:0;left:auto;width:100%;background:#fff;
    box-shadow:0 1px 6px rgba(0,0,0,.1);z-index:900;}
  .th-header .header-top{height:56px;}
  .th-header .header-top .th-inner{height:56px;display:flex;align-items:center;padding:0 15px;}
  .th-header .logo img{width:150px;}
  .th-header .header-auth{display:none;}
  .th-header .header-nav{display:none;}

  /* 260827 検収No.49 「ぱっと見でどこからログインできるか分からない」とのご指摘への対応。
     ハンバーガー(fixed / right:15px / 幅34px)の左に重ならないよう margin-right を確保する。
     下層ページは page.search.css 等の `.modern-*-theme a{color:inherit}` が後に読まれるため、
     要素セレクタを足して詳細度で勝たせる（.m-nav と同じ罠）。 */
  .sp-auth{display:flex;align-items:center;margin-left:auto;margin-right:44px;}
  .sp-auth a.sp-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;
    height:32px;padding:0 12px;border-radius:4px;background:var(--navy);color:#fff;
    font-family:var(--noto);font-weight:700;font-size:12.5px;letter-spacing:.04em;
    text-decoration:none;white-space:nowrap;}
  .sp-auth a.sp-btn svg{width:13px;height:13px;fill:currentColor;flex:none;}

  /* ハンバーガー（画面右上に固定） */
  .m-ham{display:flex;flex-direction:column;justify-content:center;gap:5px;
    position:fixed;top:12px;right:15px;width:34px;height:34px;padding:5px;
    background:none;border:none;cursor:pointer;z-index:1200;}
  .m-ham span{display:block;height:2.5px;width:100%;background:var(--navy);border-radius:2px;transition:.3s;}
  body.nav-open .m-ham span:nth-child(1){transform:translateY(7px) rotate(45deg);background:#fff;}
  body.nav-open .m-ham span:nth-child(2){opacity:0;}
  body.nav-open .m-ham span:nth-child(3){transform:translateY(-7px) rotate(-45deg);background:#fff;}

  /* ドロワー（右からスライドイン） */
  .m-nav{display:block;position:fixed;top:0;right:0;width:82%;max-width:320px;height:100vh;height:100dvh;
    background:var(--navy);transform:translateX(100%);transition:transform .32s ease;z-index:1100;
    overflow-y:auto;padding:64px 0 40px;}
  body.nav-open .m-nav{transform:translateX(0);}
  .m-nav a{display:block;color:#fff;font-size:15px;font-weight:500;padding:15px 24px;
    border-bottom:1px solid rgba(255,255,255,.12);letter-spacing:.04em;text-decoration:none;}
  /* 下層は import.css の後に page.search.css / page.blog.css を読み、そこの
     `.modern-*-theme a{color:inherit}` が同詳細度(0,1,1)で後勝ちして .m-nav a を潰す
     （紺地に本文色#333で文字が読めなくなる）。要素セレクタを足して詳細度で勝たせる。
     直下の a のみを対象にし、.m-auth 内の .m-btn には影響させない。 */
  nav.m-nav > a{color:#fff;}
  .m-ttl{color:#9fb0d8;font-size:12px;font-weight:700;padding:16px 24px 6px;letter-spacing:.08em;}
  .m-auth{display:flex;gap:8px;padding:0 24px 10px;}
  .m-auth .m-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:40px;border-radius:4px;
    font-family:var(--noto);font-weight:700;font-size:12.5px;color:#fff;padding:0;border:1px solid rgba(255,255,255,.55);}
  .m-btn svg{width:13px;height:13px;fill:currentColor;flex:none;}
  .m-btn.navy{background:#24408a;border-color:#24408a;}
  .m-btn.red{background:var(--red);border-color:var(--red);}
  .m-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);
    opacity:0;visibility:hidden;transition:.3s;z-index:1050;}
  body.nav-open .m-backdrop{opacity:1;visibility:visible;}
  body.nav-open{overflow:hidden;}

  /* フッター（260730 検収No.33 上下padding 36→24px / ロゴ 220→168px / gap 22→16px） */
  /* 260820 下層のSPも圧縮（縦積み→ロゴとナビを横並び / padding 24→10px / ロゴ 168→110px / nav 14→11px）。コピーライト込みで約91px */
  .th-footer .ft-inner{flex-direction:row;flex-wrap:wrap;gap:6px 14px;min-height:0;padding:10px 16px;align-items:center;}
  .th-footer .footer-logo img{width:110px;}
  .th-footer .footer-nav{flex:1;min-width:0;flex-wrap:wrap;gap:4px 14px;}
  .th-footer .footer-nav a{font-size:11px;}

  #pagetop a{width:42px;height:42px;}
}

/* =========================================================
   260821 コンテンツ量が少ないページでも、フッターを常にウィンドウ下部に表示する
   （クライアント要望）。下層は body > #wrapper 構造で、その最後が .th-footer。
   TOPページは #wrapper を持たない別構造なので、この指定の影響を受けない。
   ========================================================= */
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#wrapper > .th-footer {
    margin-top: auto;
}
/* 260903 上の flex 化により、margin-left/right:auto を持つ #wrapper 直下の .lay_lqd が
   flex item として fit-content 幅（＝中身の幅）まで縮み、本文とサイドバーが
   本来の max-width:1000px より狭く表示される（コンテンツの少ない完了画面などで顕著）。
   幅を明示して従来どおり「max-width:1000px + 中央寄せ」に戻す。
   ※ .page_head / .path の中の .lay_lqd は入れ子なので元から影響を受けない。 */
#wrapper > .lay_lqd {
    width: 100%;
}
