/* renew.css — リニューアルで変える分だけの上書き
 *
 * style.css（原本）は 1行も編集しない。見た目は原本のまま出し、
 * ここで「寸法・可読性・スマホ対応」だけを上書きする。
 * どれも理由が実測にあるものに限る。装飾の好みでは触らない。
 *
 * 原本の実測値:
 *   body 12px ／ #header・#news・#main_contents・#footer すべて width:1000px 固定
 *   viewport は PC が width=1000、SP 版は user-scalable=no
 *   .btn_001 hover でゴールド地に白文字（1.89:1）
 *
 * 変える理由:
 *   1. 本文12px → 16px      利用者は40〜60代の医師。全社基準も本文16px以上
 *   2. 1000px固定 → 可変     スマホ・タブレットで横スクロールが出る
 *   3. ゴールド地の白文字     1.89:1（AA基準 4.5:1 に対して大幅未達）
 *   4. ピンチズーム禁止の解除 WCAG 1.4.4 違反（SP版 user-scalable=no）
 */

/* ============================================================
 * 1. 文字サイズ ── 原本の相対関係を保ったまま底上げする
 * ============================================================ */

body { font-size: 16px; line-height: 2; }

/* 原本が 10px を直接指定している箇所（注記・コピーライト）は 13px に */
#footer #footer_area #info_area p,
#copyright_wrap #copyright ul.link li,
#breadcrumb-line ul li { font-size: 13px; }

/* 原本 13px の求人1行 → 15px */
#new_job #jokin div.job_wrap div,
#new_job #hijokin div.job_wrap div,
#new_job #spot div.job_wrap div { font-size: 15px; }

/* 原本 14px のボタン → 16px */
.btn_001 { font-size: 16px; }

/* 原本 12px のメニュー英字 → 13px、15px の和文 → 16px */
#header #menu_area_wrap #menu_area ul li small,
#bheader #menu_area_wrap #menu_area ul li small { font-size: 13px; }
#header #menu_area_wrap #menu_area ul li span,
#bheader #menu_area_wrap #menu_area ul li span { font-size: 16px; }

/* ============================================================
 * 2. コントラスト ── ゴールド地には黒に近い文字を載せる
 *    #EFB307 に白 = 1.89:1／#231815 = 11.1:1
 * ============================================================ */

.btn_001:hover,
#search .btn_001:hover,
#hijokin_form .btn_001:hover,
#survey .btn_001:hover,
#comment_btn.btn_001:hover { color: #231815; }

/* 原本のグレー文字 #838686 は白地 3.74:1。#6E6660 で 5.63:1 */
#main_contents #enquete_wrap #enquete .answer_text,
#main_contents #enquete_wrap #enquete .answer_text p,
#main_contents #enquete_wrap #enquete .answer_wrap_01,
#main_contents #enquete_wrap #enquete h4,
#main_contents #enquete_wrap #enquete .answer_count span { color: #6E6660; }

/* 票数のゴールド文字 #efb307 も白地では読めない。文字用のゴールドに落とす */
#main_contents #enquete_wrap #enquete .answer_count,
#main_contents #enquete_wrap #enquete #enquete h3,
#breadcrumb-line ul li a,
#footer #footer_area #info_area p a { color: #8C6200; }


/* ============================================================
 * 【自動生成】原本の固定幅を「上限」に読み替える
 *   style.css に width:NNNpx（700px以上）を持つセレクタが 53 個ある。
 *   すべて width:100% / max-width:NNNpx に置き換える。
 *   box-sizing は足さない。原本は content-box 前提で内側の幅を積んでおり
 *   （例: アンケートの 280+500+89=869px が 870px の枠に入る）、
 *   border-box にすると padding のぶん足りなくなって折り返す。
 *   1000px 以上の画面では原本と同じ見えかたになり、狭い画面では縮む。
 *   style.css 自体は編集しない（差分を追えるようにするため）。
 * ============================================================ */

#b_main_visual,
#bheader #logo_wrap,
#bheader #member_area_wrap #member_area,
#bheader #menu_area_wrap #menu_area,
#breadcrumb-line,
#catchcopy,
#copyright_wrap #copyright,
#header #logo_wrap,
#header #member_area_wrap #member_area,
#header #menu_area_wrap #menu_area,
#osusume,
#voice_main_visual,
.voice_pages_wrap {
  width: 100%; max-width: 1000px;
}

#login_form_wrap,
#main_contents #job_wrap,
#main_contents #list_wrap,
.company_wrap,
.pages_wrap,
.privacy_text_wrap,
.privacy_title_wrap,
.renraku,
.rule_list {
  width: 100%; max-width: 940px;
}

#footer #footer_area,
#main_contents #enquete_wrap #enquete,
#new_job #hijokin,
#new_job #jokin,
#new_job #spot,
#search_warp #hijokin_form,
#search_warp #search,
#search_warp #spot_calendar .ui-datepicker-inline,
#search_warp #spot_calendar_wrap,
#survey {
  width: 100%; max-width: 910px;
}

#news_wrap #news,
.privacy_list {
  width: 100%; max-width: 900px;
}

.company_wrap table {
  width: 100%; max-width: 880px;
}

.taidan_wrap {
  width: 100%; max-width: 832px;
}

#main_contents #enquete_detail,
#main_contents #job_wrap div.job_list_info,
#main_contents #list_wrap div.job_list_info,
#registFrm #privacy_area,
#registFrm #registFrm_line,
#registFrm .btn_area,
#registFrm_done #registFrm_line,
#registFrm_done .btn_area,
#regist_msg,
.leave {
  width: 100%; max-width: 810px;
}

.taidan {
  width: 100%; max-width: 785px;
}

#privacy_wrap,
#registFrm #registFrm_line table,
#registFrm .other_wrap,
#registFrm p#privacy_title {
  width: 100%; max-width: 750px;
}

div.job_list_info div.job_list_info_line div.pic_are {
  width: 100%; max-width: 747px;
}

#registFrm .other_wrap textarea {
  width: 100%; max-width: 740px;
}

/* 横スクロールを出さない。position:sticky を殺さないため hidden ではなく clip */
html, body { overflow-x: clip; max-width: 100%; }
table { max-width: 100%; }

/* ============================================================
 * 3. 可変幅 ── 1000px を「上限」に読み替える
 *    PC（1000px以上）の見えかたは原本と変わらない
 * ============================================================ */


@media (max-width: 1060px) {
  /* 固定ヘッダーをやめて流し込みにする（原本は position:fixed + height:200px） */
  #header, #bheader { position: static; height: auto; }
  #main_contents { padding-top: 0 !important; margin-top: 0 !important; }
}

@media (max-width: 900px) {
  /* --- ヘッダー --- */
  #header #member_area_wrap #member_area,
  #bheader #member_area_wrap #member_area { height: auto; padding: 8px 16px; text-align: left; }
  #header #member_area_wrap #member_area ul,
  #bheader #member_area_wrap #member_area ul { float: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  #header #member_area_wrap #member_area ul li,
  #bheader #member_area_wrap #member_area ul li { float: none; line-height: 2; margin: 0; }

  #header #menu_area_wrap, #bheader #menu_area_wrap { height: auto; }
  #header #menu_area_wrap #menu_area, #bheader #menu_area_wrap #menu_area { height: auto; padding: 0 16px; }
  #header #menu_area_wrap #menu_area ul, #bheader #menu_area_wrap #menu_area ul {
    float: none; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #header #menu_area_wrap #menu_area ul li, #bheader #menu_area_wrap #menu_area ul li {
    float: none; height: auto; border-bottom: 1px solid #d9d9d9;
  }
  #header #menu_area_wrap #menu_area ul li a, #bheader #menu_area_wrap #menu_area ul li a {
    height: auto; margin: 0; padding: 12px 8px; border-right: 1px solid #d9d9d9;
  }

  /* ロゴのせり出しはやめ、メニューの上に置く */
  #header #logo_wrap, #bheader #logo_wrap { padding: 0 16px; }
  #header #logo, #bheader #logo { width: 78px; height: auto; margin: -78px 0 0 0; }
  #header #logo img, #bheader #logo img { width: 78px; height: auto; }

  /* --- NEWS 帯 --- */
  #news_wrap { height: auto; padding: 16px 0; }
  #news_wrap #news { width: auto; height: auto; margin: 0; padding: 0 16px 0 96px; background-size: 70px auto; line-height: 1.8; }

  /* --- 中身 --- */
  #main_contents, #main_contents > div { width: auto !important; max-width: 100%; }
  #search_warp #search, #new_job #jokin, #new_job #hijokin, #new_job #spot,
  #main_contents #enquete_wrap #enquete { width: auto !important; padding: 20px 16px !important; }

  /* 求人1行はスマホでは2段に畳む */
  #new_job div.job_wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 0; align-items: center; }
  #new_job div.job_wrap div { float: none !important; width: auto !important; height: auto !important; line-height: 1.7 !important; border: 0 !important; padding: 0 !important; }
  #new_job div.job_wrap { border-bottom: 1px dashed #d5d5d5; }
  #new_job div.job_wrap div.new_job_title { grid-column: 1 / -1; }
  #new_job div.job_wrap div.new_job_link { float: none !important; }

  /* アンケート */
  #main_contents #enquete_wrap #enquete .answer_wrap { height: auto; padding: 12px 16px; }
  #main_contents #enquete_wrap #enquete .answer_text,
  #main_contents #enquete_wrap #enquete .answer_graph,
  #main_contents #enquete_wrap #enquete .answer_count { float: none; width: auto; height: auto; border-right: 0; }
  #main_contents #enquete_wrap #enquete .answer_text p { display: block; width: auto; height: auto; }
  #main_contents #enquete_wrap #enquete .answer_count { text-align: left; }

  /* ボタンは画面幅いっぱいに */
  .btn_001 { width: 100%; max-width: 286px; }

  /* --- フッター --- */
  #footer #footer_area #regist_area,
  #footer #footer_area #inq_area,
  #footer #footer_area #info_area { float: none; width: auto; padding: 0 16px; text-align: center; }
  #copyright_wrap { height: auto; padding: 16px 0; }
  #copyright_wrap #copyright { height: auto; }
  #copyright_wrap #copyright ul.link { float: none; width: auto; display: flex; flex-wrap: wrap; justify-content: center; }
  #copyright_wrap #copyright ul.link li { float: none; margin: 4px 0; }
  #copyright_wrap #copyright p#copy_right_text { float: none; width: auto; text-align: center; line-height: 2; margin-top: 8px; }

  /* --- カルーセル --- */
  #slide_wrap, #slide { height: auto !important; }
  #slide img { width: 100% !important; height: auto !important; }
}

/* ============================================================
 * 4. 指で押せる大きさ・フォーカスの見えかた
 *    原本は 40px 未満の当たり判定が多い。触れる要素の下限を 44px にする。
 * ============================================================ */

a, button, input[type="submit"], input[type="button"] { min-height: 0; }
.btn_001, input[type="submit"], .m_submit { min-height: 48px; }
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], select, textarea {
  min-height: 48px; font-size: 16px;   /* 16px 未満だと iOS が拡大する */
}
:focus-visible { outline: 3px solid #8C6200; outline-offset: 2px; }

/* ============================================================
 * 5. モックであることを示す帯（公開時に外す）
 * ============================================================ */

.mockbar {
  background: #231815; color: #fff; font-size: 13px; padding: 8px 16px;
  text-align: center; font-family: sans-serif; position: relative; z-index: 99999;
}
.mockbar a { color: #EFB307; }

/* ============================================================
 * 6. HTML に直書きされた固定幅
 *    原本は style="width:910px" のようにインラインで幅を持つ箇所がある。
 *    インラインは CSS より強いので !important で上書きするしかない。
 *    実装時は Blade 側でインライン幅を書かないので、この節は不要になる。
 * ============================================================ */

/* 1000px 以上では原本のインライン幅をそのまま尊重する。
   例: 求人一覧の #search_freeword_box は 320px の親から意図的にはみ出して
   全幅の1行を作っている。ここを一律 100% にすると 320px に潰れる。 */
@media (max-width: 1000px) {
  [style*="width:910px"], [style*="width: 910px"],
  [style*="width:940px"], [style*="width: 940px"],
  [style*="width:1000px"], [style*="width: 1000px"],
  [style*="width:650px"], [style*="width:630px"], [style*="width:600px"] { width: 100% !important; max-width: 100% !important; }
}

/* 常勤求人検索のフリーワード欄。原本は 630px + 256px の横並び */
/* 原本の inline-block 並びをそのまま使う。フレックスにはしない */

/* ============================================================
 * 7. スマホでのヘッダーの順序
 *    原本の DOM は 会員バー → メニュー → パンくず → ロゴ の順で、
 *    ロゴは margin-top:-120px で上に食い込ませている。
 *    狭い画面ではその食い込みが成立しないので、ロゴを先頭へ回す。
 * ============================================================ */

@media (max-width: 900px) {
  #header, #bheader { display: flex; flex-direction: column; }
  #header #logo_wrap, #bheader #logo_wrap { order: -1; padding: 8px 16px 0; }
  #header #logo, #bheader #logo { margin: 0 !important; width: 72px; height: auto; }
  #header #logo img, #bheader #logo img { width: 72px; height: auto; }
  #header #breadcrumb-line_wrap, #bheader #breadcrumb-line_wrap { order: 9; }
}

/* ============================================================
 * 8. カルーセル
 *    原本は height:450px 固定で 1000px の画像を3枚並べる。
 *    狭い画面では1枚に落として高さを画像に合わせる。
 * ============================================================ */

/* carouFredSel は JS が要素の実寸を測って組むため、CSS で高さを奪うと壊れる。
   画像を幅いっぱいに縮めるだけにして、高さは JS に任せる。 */
@media (max-width: 1000px) {
  #slide_wrap { overflow: hidden; }
  #slide_wrap .prev, #slide_wrap .next { display: none !important; }
}

/* ============================================================
 * 9. 検索ボタンの重なり
 *    原本の #search_freeword_box は float 組み。狭い画面で回り込みが残り、
 *    下の「詳細検索」に重なる。フロートを解除して縦に積む。
 * ============================================================ */

#search .clearfix::after { content: ""; display: block; clear: both; }
#search .button_area { clear: both; text-align: center; padding-top: 24px; }
/* フリーワード欄は原本の float 組みのまま。狭い画面でだけ縦に積む */
@media (max-width: 1000px) {
  #search_warp #search div#search_freeword { float: none; width: 100%; }
  #search_warp #search div#search_freeword div#search_freeword_box { width: 100%; height: auto; }
  #search_warp #search div#search_freeword div#search_freeword_box input { width: 100% !important; }
  #search_freeword_box { display: block; }
  #search_freeword_box input[type="submit"], #search_freeword_box .btn_003 { margin-top: 12px; min-height: 48px; }
}

/* ============================================================
 * 10. 文字を大きくしたことで溢れる箇所
 *     原本は height を px で固定している行が多い。16px にすると溢れるので、
 *     「固定の高さ」を「最低の高さ」に読み替える。
 * ============================================================ */

/* アンケートの行 */
#main_contents #enquete_wrap #enquete .answer_wrap,
#main_contents #enquete_wrap #enquete .answer_wrap_01,
#main_contents #enquete_wrap #enquete .answer_text,
#main_contents #enquete_wrap #enquete .answer_text p,
#main_contents #enquete_wrap #enquete .answer_graph,
#main_contents #enquete_wrap #enquete .answer_count {
  height: auto; min-height: 40px;
}
#main_contents #enquete_wrap #enquete .answer_wrap_01,
#main_contents #enquete_wrap #enquete .answer_count { line-height: 40px; }

/* 求人の1行 */
#new_job div.job_wrap div { height: auto; min-height: 60px; }

/* ヘッダー・NEWS・パンくず・コピーライトの帯 */
#header #member_area_wrap #member_area, #bheader #member_area_wrap #member_area,
#header #menu_area_wrap, #bheader #menu_area_wrap,
#header #menu_area_wrap #menu_area, #bheader #menu_area_wrap #menu_area,
#news_wrap, #news_wrap #news,
#breadcrumb-line_wrap, #breadcrumb-line, #breadcrumb-line ul, #breadcrumb-line ul li,
#copyright_wrap, #copyright_wrap #copyright { height: auto; }
#header #member_area_wrap #member_area, #bheader #member_area_wrap #member_area { min-height: 46px; }
#header #menu_area_wrap, #bheader #menu_area_wrap { min-height: 80px; }
#copyright_wrap, #copyright_wrap #copyright { min-height: 64px; }
#breadcrumb-line_wrap, #breadcrumb-line { min-height: 40px; }

/* フッターは float 組み。中身が伸びると親が潰れてコピーライト帯に食い込む */
#footer #footer_area::after { content: ""; display: block; clear: both; }
#footer #footer_area { overflow: hidden; }
#footer #footer_area #info_area p { line-height: 1.8; }

/* 電話番号の画像は原本のまま。文字を大きくしても崩れないよう下に余白を足す */
#footer #footer_area #info_area { padding-bottom: 16px; }

/* ============================================================
 * 11. 狭い画面だけ border-box にする
 *     原本の content-box + padding は 1000px 以上でしか成立しない。
 * ============================================================ */

@media (max-width: 1060px) {
  *, *::before, *::after { box-sizing: border-box; }
}

/* ============================================================
 * 12. マイページ
 *     現行には「ご登録内容を変更する」(/member/) の1画面しかなく、
 *     8画面をまとめる器が無い。ここだけは新しく作る必要がある。
 *     ただし色・書体・罫の引き方は原本のまま使う。
 *       ゴールド #efb307 ／ 罫 #d9d9d9・#efefef ／ 見出しは明朝 ／ ボタンは .btn_001
 * ============================================================ */

#mypage_wrap { width: 100%; max-width: 1000px; margin: 0 auto 60px; padding: 0 16px; }
#mypage_wrap::after { content: ""; display: block; clear: both; }

/* 左のメニュー。原本の #menu_area と同じ「和文＋英字」の2段組みを縦にしたもの */
#my_rail { float: left; width: 240px; border-top: 2px solid #efb307; }
#my_rail a {
  display: block; padding: 14px 16px; border-bottom: 1px solid #d9d9d9;
  color: #231815; text-decoration: none; line-height: 1.5;
}
#my_rail a:hover { background: #f8f8f9; }
#my_rail a.now { background: #fdf6e3; border-left: 4px solid #efb307; padding-left: 12px; font-weight: bold; }
#my_rail .ja { display: block; font-size: 16px; }
#my_rail .en { display: block; font-size: 12px; color: #6E6660; letter-spacing: .04em; }
#my_rail .cnt {
  float: right; min-width: 22px; height: 22px; margin-top: 4px; padding: 0 6px;
  background: #D6005E; color: #fff; border-radius: 11px;
  font-size: 12px; line-height: 22px; text-align: center; font-weight: normal;
}

#my_body { float: right; width: calc(100% - 280px); }
#my_body h2 {
  font-size: 22px; font-weight: normal; margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 1px solid #d9d9d9;
}
#my_body h3 { font-size: 18px; font-weight: normal; margin: 32px 0 12px; color: #8C6200; }
#my_body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
#my_body table th, #my_body table td {
  padding: 14px 16px; border-bottom: 1px solid #efefef; text-align: left; vertical-align: top;
}
#my_body table th { width: 30%; background: #f8f8f9; font-weight: normal; }
#my_body table td.num { font-family: "Inter", sans-serif; font-variant-numeric: tabular-nums; }

/* 目を引かせたい帯（未確定の実績など）。原本の callout に合わせてゴールドの左罫 */
.my_alert { padding: 16px 20px; background: #fcf2d7; border-left: 4px solid #efb307; margin-bottom: 24px; }
.my_alert strong { display: block; margin-bottom: 4px; }
.my_alert .btn_001 { margin-top: 12px; width: auto; padding: 0 24px; }

/* 一覧の1行。原本の .job_wrap（高さ60px・破線）と同じ引き方 */
.my_row { padding: 16px 0; border-bottom: 1px dashed #d5d5d5; }
.my_row::after { content: ""; display: block; clear: both; }
.my_row .date { float: left; width: 110px; font-family: "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.my_row .main { margin-left: 126px; }
.my_row .sub { color: #6E6660; font-size: 14px; }
.my_row .tag {
  display: inline-block; padding: 2px 10px; background: #efb307; color: #231815;
  font-size: 13px; font-weight: bold; margin-right: 8px;
}
.my_row .tag.gray { background: #efefef; color: #6E6660; font-weight: normal; }

/* 空のとき */
.my_empty { padding: 48px 16px; text-align: center; color: #6E6660; border: 1px dashed #d5d5d5; }

@media (max-width: 900px) {
  #my_rail, #my_body { float: none; width: 100%; }
  #my_rail { margin-bottom: 32px; }
  #my_body table th, #my_body table td { display: block; width: 100%; border-bottom: 0; }
  #my_body table td { border-bottom: 1px solid #efefef; padding-top: 4px; }
  .my_row .date { float: none; width: auto; }
  .my_row .main { margin-left: 0; }
}

/* ============================================================
 * Hallmark · macrostructure: 原本を踏襲（新規のマクロ構造は起こさない）
 *   theme: studied-DNA (source: url https://plusmasui.com/)
 *   刷新案（提案書 F2.1〜F2.4 / F5.1 / F5.2 / F7.1）
 *
 * 前回ここに .rn_steps / .rn_field / .rn_pick / .rn_chips / .rn_hits / .rn_apply という
 * 自作クラスを150行書いたが、原本 style.css に同じ役目の部品が 103セレクタ分あるのに
 * 使わなかったため、刷新案だけ別サイトの見た目になった。全部捨てて作り直した。
 *
 * 刷新で変えるのは「操作の順序と量」だけ:
 *   28項目の1画面 → 3ページに分割 ／ 3区分の別ページ → 1画面で横断検索 ／
 *   記入→確認→問い合わせの3段 → 1タップ応募
 * 部品（#registFrm_line のテーブル・flw_*.png の手順・icn_hissu.png の必須・.btn_001）は原本のまま。
 * ここに書くのは、原本に本当に無いもの2つだけ。
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 * ============================================================ */

/* (1) 3ページに分けたことを伝える1行。
       原本の登録フォームは #regist_msg の中に <p>（13px・中央揃え）で説明文を置き、
       その下に flw_*.png の手順画像を出す。小見出しの語彙は持っていないので、
       この1行も #regist_msg の <p> にそのまま載せる。新しいクラスは作らない。
       前回ここに .rn_page（18px太字＋下罫線＋緑の保存表示）を作ったのが誤り。
       緑 #047857 は原本のパレット（ゴールド・マゼンタ・黒・グレー）に無い色だった。 */

/* (2) 横断検索の絞り込みチップ。原本の検索はプルダウンとフリーワードだけで、
       タップで選ぶ語彙を持っていない。原本の .btn_001 の見た目（白地・ゴールド枠）を踏襲する。 */
.rn_chip {
  display: inline-block; margin: 0 8px 8px 0; padding: 0 16px;
  min-height: 44px; line-height: 42px;
  border: 2px solid #efb307; background: #fff; color: #8C6200;
  font-size: 15px; cursor: pointer;
}
.rn_chip:hover { background: #efb307; color: #231815; }
.rn_chip:has(input:checked) { background: #efb307; color: #231815; font-weight: bold; }
.rn_chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.rn_chip:has(input:focus-visible) { outline: 3px solid #8C6200; outline-offset: 2px; }

/* 刷新案であることを示す帯。客先が現行と見比べられるようにする */
/* 客先が現行と見比べるための帯。実装では出さない。
   見出しは先頭の <strong> だけをブロックにする。
   .rn_note strong 全部にすると、本文中の強調まで改行して行が浮く。 */
.rn_note { margin: 0 auto 32px; max-width: 810px; padding: 16px 20px;
           background: #fcf2d7; border-left: 4px solid #efb307; font-size: 15px; line-height: 1.9; }
.rn_note > strong:first-child { display: block; margin-bottom: 4px; }

/* 検索結果の1行で使う区分タグ。原本は icn_j_*.png の画像だが、
   横断検索では3区分が混ざるため文字にする。色はゴールド（原本の値）。 */
.jtag {
  display: inline-block; padding: 2px 10px; background: #efb307; color: #231815;
  font-size: 13px; font-weight: bold; white-space: nowrap; line-height: 1.7;
}
.jtag_kind { background: #2f262c; color: #fff; margin-right: 8px; }

/* 横断検索: フリーワード欄（原本の #search_freeword は float:left・320px で、
   中の box が意図的にはみ出す）の直後に見出しが回り込むのを止める。 */
#search_warp #search > h3 { clear: both; padding-top: 20px; }

/* 横断検索（刷新案）だけ、原本の float 組みを解除する。
   原本の #search_freeword は float:left・320px で、その中の box が意図的にはみ出して
   全幅の1行を作る作り。3区分を横断する刷新案では下に見出しが続くため成立しない。
   現行の求人一覧（jokin/index.html 等）には影響しない。 */
/* 原本のセレクタは #search_warp #search div#search_freeword（ID3個）で詳細度が高い。
   ここは1画面だけの上書きなので !important で確実に勝たせる。 */
#search.rn_cross div#search_freeword { float: none !important; width: 100% !important; }
#search.rn_cross div#search_freeword div#search_freeword_box { width: 100% !important; display: flex; height: auto; }
#search.rn_cross div#search_freeword div#search_freeword_box input[type="text"] { width: auto !important; flex: 1 1 auto; min-width: 0; }
#search.rn_cross div#search_freeword div#search_freeword_box input[type="submit"] { width: 256px !important; flex: 0 0 256px; }
#search.rn_cross > h3 { clear: both; margin-top: 28px; }
@media (max-width: 700px) {
  #search.rn_cross div#search_freeword div#search_freeword_box { display: block; }
  #search.rn_cross div#search_freeword div#search_freeword_box input[type="submit"] { width: 100% !important; margin-top: 12px; }
}

/* ============================================================
 * 横断検索の一覧
 *   原本の求人一覧カード（.job_list_info）をそのまま使う。
 *   足すのは「区分／こだわり」のタグ行と、件数の見出しだけ。
 *   前回はトップの「新着1行」(.job_wrap) を流用したが、あれは
 *   日付100／タグ100／内容566px を1行に収める前提の部品で、
 *   3区分を横断して内容が長くなるこの画面では
 *   年収が途中で折り返し、破線が段違いになった。
 * ============================================================ */

.rn_tags { margin: 0 0 10px; }
.jtag {
  display: inline-block; margin-right: 8px; padding: 3px 12px;
  background: #efb307; color: #231815;
  font-size: 13px; font-weight: bold; white-space: nowrap; line-height: 1.7;
}
.jtag_kind { background: #2f262c; color: #fff; }

/* 件数の見出し。原本の h2（26px・明朝・中央揃え）に合わせる */
h2.rn_hits {
  text-align: center; font-size: 26px; font-weight: normal; margin: 0 0 24px;
  font-family: "Roboto Slab", Garamond, "Times New Roman", "游明朝", "Yu Mincho",
               "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
}
h2.rn_hits strong { color: #8C6200; font-weight: normal; }

/* ============================================================
 * 14. フリーワード検索の折り返し
 *   原本: #search_freeword_box 910px の中に input 630px ＋ submit 256px を横並び。
 *   合計 886px で 24px の余裕しかない。
 *   1060px 以下では §11 の box-sizing:border-box が効いて 630+256=886 に収まるが、
 *   1061px 以上は content-box に戻り、input の padding とボーダーが外に付くため
 *   650px + 256px = 906px となり、行間の空白ぶんで溢れてボタンが次の行に落ちていた。
 *   原本は本文12px・padding なしで成立していた寸法。16px にした副作用。
 *   横並びを崩さないため、この2つだけ border-box にする。
 * ============================================================ */

#search_freeword_box { font-size: 0; }            /* inline-block 間の空白を消す */
#search_freeword_box input { box-sizing: border-box; font-size: 16px; vertical-align: top; }

/* ============================================================
 * 15. エラー画面（404・500 など。課題 12-2）
 *   resources/views/errors/partials/front.blade.php。準備中の画面と同じく中央に寄せて、
 *   見出しは原本の h2 と同じ明朝。ボタンは .btn_001 のまま。
 * ============================================================ */

.error-page { max-width: 810px; margin: 0 auto; padding: 240px 16px 80px; text-align: center; }
.error-page h1 {
  font-size: 26px; font-weight: normal; margin: 0 0 24px;
  font-family: "Roboto Slab", Garamond, "Times New Roman", "游明朝", "Yu Mincho",
               "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
}
.error-page p { margin: 0 0 8px; line-height: 1.9; }
.error-page .btn_area { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-width: 1060px) {
  .error-page { padding-top: 48px; }
}

/* ============================================================
 * 16. 新旧の見比べで見つけた、16px にしたことによる崩れ（課題 37-2）
 *     旧（PHP 5.6 で動かした現行）と同じデータで撮って見比べた。
 * ============================================================ */

/* スポットの「過去掲載求人」。原本は 1 行 30px 固定・4 欄を float で 130/140/180/残りの幅に並べる作り。
   16px だと欄に収まらず、溢れた文字が次の行に回り込んで重なっていた。
   欄の並びは原本のまま格子にし、行の高さは中身に合わせる（住所・報酬は折り返す）。5 行ぶんで縦にスクロール */
div#pastList div#pastListData { max-height: 265px; overflow-y: auto; overflow-x: hidden; }
div#pastList div#pastListData div.pastListdetail {
  height: auto; display: grid; grid-template-columns: 150px 170px 190px minmax(0, 1fr);
}
div#pastList div#pastListData div.pastListdetail::after { content: none; }
div#pastList div#pastListData div.pastListdetail p,
div#pastList div#pastListData div.pastListdetail p.pastjob_id,
div#pastList div#pastListData div.pastListdetail p.kinmu_date,
div#pastList div#pastListData div.pastListdetail p.address,
div#pastList div#pastListData div.pastListdetail p.salary {
  float: none; width: auto; height: auto; line-height: 1.6; padding: 8px 10px; font-size: 15px; overflow: visible;
}
@media (max-width: 900px) {
  div#pastList { padding: 16px; }
  div#pastList div#pastListTitleWrapper { height: auto; }
  div#pastList div#pastListTitleWrapper div#pastlistTitleRight { float: none; clear: both; }
  div#pastList div#pastListTitleWrapper img { max-width: 100%; height: auto; }
  div#pastList div#pastListData { max-height: 360px; }
  div#pastList div#pastListData div.pastListdetail { grid-template-columns: auto minmax(0, 1fr); }
  div#pastList div#pastListData div.pastListdetail p.address,
  div#pastList div#pastListData div.pastListdetail p.salary { grid-column: 1 / -1; padding-top: 0; }
}

/* 常勤のフリーワード欄。原本は content-box で「630px＋左右 10px の余白」＋ボタン 256px＝910px の白い枠をぴったり埋める。
   §14 で border-box にしたぶん 24px 足りず、枠の右に白い切れ端が出ていた。入力欄を伸ばして埋める（1000px 以上だけ） */
@media (min-width: 1001px) {
  #search_warp #search div#search_freeword div#search_freeword_box { display: flex; height: auto; background: none; }
  #search_warp #search div#search_freeword div#search_freeword_box input[type="text"] { flex: 1 1 auto; }
  #search_warp #search div#search_freeword div#search_freeword_box input[type="submit"] { flex: 0 0 auto; }
}

/* フッターのリンク。原本は 10px の文字で 440px の枠に 5 つ並べる。13px にすると最後の「お問い合わせ」が
   2 行目に落ち、帯の外（白地に白文字）に出て見えなくなっていた。枠を広げ、帯は中身を包む */
#copyright_wrap #copyright::after { content: ""; display: block; clear: both; }
@media (min-width: 901px) {
  #copyright_wrap #copyright ul.link { width: 540px; }
  #copyright_wrap #copyright p#copy_right_text { width: 420px; }
}

/* 非常勤の検索の「勤務体系」。原本は高さ 40px 固定の白い枠に 3 つのラジオを 1 行で並べる。
   16px だと「日当直」が 2 行目に落ちて枠の外（灰色の地）に出ていた。枠を中身に合わせて伸ばす */
#search_warp #hijokin_form div#search_kinmu div#search_kinmu_box,
#search_warp #hijokin_form div#search_day div#search_day_box { height: auto; min-height: 40px; }

/* フッターの黄色い帯。原本は高さ 196px 固定。文字を大きくしたり狭い画面で縦に積んだりすると
   中身が下のコピーライトの帯に重なっていた。中身に合わせて伸ばす */
#footer { height: auto; min-height: 196px; }

/* ---- 狭い画面（スマートフォン）で見つけた崩れ ---- */
@media (max-width: 900px) {
  /* 原本の 940〜1000px の見出し画像（求人一覧の「Job search」・メインの写真・トップのキャッチコピー）が
     画面の外にはみ出して切れていた（見出しの文字が画像の中央より右にあるため、何も見えない白い帯になる） */
  #main_contents img, #catchcopy img { max-width: 100%; height: auto; }

  /* 検索欄。原本は「エリア 250px＋フリーワード」などを float で横に並べる。狭い画面では見出しが
     押しつぶされて 2 行に割れ、入力欄が重なっていた。縦に積む */
  #search_warp div#search_area, #search_warp div#search_freeword,
  #search_warp div#search_kinmu, #search_warp div#search_day { float: none !important; width: auto !important; padding-right: 0 !important; }
  #search_warp div#search_area div#search_area_box,
  #search_warp div#search_kinmu div#search_kinmu_box,
  #search_warp div#search_day div#search_day_box { width: auto !important; height: auto; }
  #search_warp div#search_area { margin-bottom: 16px; }
  #search_warp #hijokin_form { width: auto; padding: 20px 16px; }

  /* スポットのカレンダー。原本は 290px の月を 3 つ横に並べる（910px）。1 月ずつ縦に積む */
  #search_warp #spot_calendar_wrap { width: auto; padding: 0 16px; }
  #search_warp #spot_calendar .ui-datepicker-inline { width: 100% !important; }
  #search_warp #spot_calendar .ui-datepicker-inline .ui-datepicker-group { float: none; width: 100%; padding: 0; margin-bottom: 16px; }

  /* トップのアンケート帯。原本は「選択肢 280px｜グラフ 500px｜票数 89px」を高さ 40px 固定で横に並べる。
     狭い画面では行が重なっていた。選択肢を 1 行目、グラフと票数を 2 行目にする */
  #survey { width: auto; padding: 20px 16px; }
  #survey .answer_wrap { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 16px; }
  #survey .answer_wrap::before, #survey .answer_wrap::after { content: none; display: none; }
  #survey .answer_wrap .answer_text { grid-column: 1 / -1; float: none; width: auto; height: auto; border-right: 0; }
  #survey .answer_wrap .answer_text p { display: block; width: auto; height: auto; margin: 0; }
  #survey .answer_wrap .answer_graph { float: none; width: auto; height: auto; min-width: 0; }
  #survey .answer_wrap .answer_graph p { max-width: 100%; }
  #survey .answer_wrap .answer_count { float: none; width: auto; height: auto; }
}

/* 求人の表。長い URL（病院ホームページ）は区切れないため td が広がり、見出し（th）が 1 文字ずつに潰れていた */
div.job_list_info div.job_list_info_line table.job_list_table td { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  /* メインの写真を画面幅に縮めたぶん、原本の固定の高さ（232px・481px）が残って下に黄色い余白ができていた */
  #b_main_visual_wrap, #b_main_visual, #voice_main_visual_wrap, #voice_main_visual { height: auto; }
  #b_main_visual img, #voice_main_visual img { display: block; }
}

@media (max-width: 600px) {
  /* 求人の表。見出し 160px の横並びでは中身の欄が細くなり、時刻や語が 1〜2 文字ずつで折り返していた。見出しを上に積む */
  div.job_list_info div.job_list_info_line table.job_list_table,
  div.job_list_info div.job_list_info_line table.job_list_table tbody,
  div.job_list_info div.job_list_info_line table.job_list_table tr,
  div.job_list_info div.job_list_info_line table.job_list_table th,
  div.job_list_info div.job_list_info_line table.job_list_table td { display: block; width: auto; }
  div.job_list_info div.job_list_info_line table.job_list_table th { border-right: 0; padding: 10px 17px 0; color: #6E6660; font-size: 14px; }
  div.job_list_info div.job_list_info_line table.job_list_table td { padding: 4px 17px 10px; }
}

/* トップのスライドショー（スマートフォン）。原本は固定ヘッダーぶんの padding-top:126px と高さ 450px を持ち、
   狭い画面では写真の上に大きな余白が出ていた。1 枚ずつ画面幅に縮めるのは top.blade.php の JS（carouFredSel）で切り替える */
@media (max-width: 900px) {
  #main_visual_wrap { height: auto; padding-top: 0; }
  #main_visual_wrap .slide_nav { display: none; }
  #slide li { height: auto; }
  #pager { margin-top: 0; padding: 8px 0; }
}

/* 送信中の表示（js/busy-submit.js。課題 54 の追加）。押したボタンを「送信中…」にし、くるくる回る印を出す */
.is-busy { cursor: wait; opacity: .75; }
input.is-busy, button.is-busy { pointer-events: none; }
a.is-busy { pointer-events: none; }
.busy-spinner { display: inline-block; width: 1em; height: 1em; margin-right: .4em; vertical-align: middle; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin .7s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-spinner { animation-duration: 2s; } }

/* ---- スマートフォン（390px）で旧と見比べて見つけた崩れ（2026-11-25） ---- */
@media (max-width: 900px) {
  /* トップの NEWS 帯とキャッチコピーが画面の左端に貼り付いていた。左右に 16px の余白を取る */
  #news_wrap #news { margin: 0 16px; padding-left: 86px; background-position: left center; }
  #catchcopy { padding-left: 16px; padding-right: 16px; }

  /* 会員ログイン。原本は 440px の枠を左右に float で並べる。狭い画面では右の「会員登録のメリット」が左に切れ、
     入力欄が右にはみ出していた。縦に積み、見出し画像（440px）は枠の幅に縮める */
  #login_form_wrap { padding: 24px 16px; box-sizing: border-box; }
  #login_form_wrap #login_form, #login_form_wrap #regist_info {
    float: none; width: auto; height: auto; padding-top: 0; background: none;
  }
  #login_form_wrap #regist_info { margin-top: 24px; }
  #login_form_wrap #login_form::before, #login_form_wrap #regist_info::before {
    content: ""; display: block; width: 100%; max-width: 440px; aspect-ratio: 440 / 60;
    background: url('../images/ttl_login_001.png') no-repeat left top / 100% auto;
  }
  #login_form_wrap #regist_info::before { background-image: url('../images/ttl_login_002.png'); }
  #login_form_wrap #login_form #loginFrm, #login_form_wrap #regist_info #registArea { height: auto; padding: 20px 16px; }
  #login_form_wrap .btn_area { width: auto; max-width: 286px; }
}

@media (max-width: 600px) {
  /* 会員登録・学会会場向け・会員ページ・お問い合わせの表。見出し 130px の横並びでは入力欄が 40〜85px に縮み、
     生年月日・郵便番号の例や医師免許取得年が切れていた。見出しを上に積み、入力欄は幅いっぱいにする */
  #registFrm #registFrm_line table,
  #registFrm #registFrm_line table tbody,
  #registFrm #registFrm_line table tr,
  #registFrm #registFrm_line table tr th,
  #registFrm #registFrm_line table tr td { display: block; width: auto; box-sizing: border-box; }
  #registFrm #registFrm_line table tr th { border-right: 0; padding: 12px 16px 0; }
  #registFrm #registFrm_line table tr th span { width: auto; margin-right: 8px; }
  #registFrm #registFrm_line table tr td { padding: 8px 16px 12px; }
  #registFrm #registFrm_line table tr td input[type="text"],
  #registFrm #registFrm_line table tr td input[type="password"] { width: 100% !important; box-sizing: border-box; }
  #registFrm #registFrm_line table tr td input#license_year { width: 8em !important; }
  #registFrm .other_wrap { padding: 0 16px; box-sizing: border-box; }
}

/* 学会会場向けの「登録住所の種類」。旧と同じ address_type_label にしたが、原本に指定が無く選択肢どうしが詰まって読みにくいので、性別と同じ間隔を取る */
#registFrm #registFrm_line table tr td label.address_type_label { display: inline-block; margin-right: 20px; font-size: 14px; }
