/* 限定正社員 採用サイト 試作 v2（共通トップ → 2 コース）用 CSS。site.css・scene.css・apply.css のあとに読む。素の CSS だけ。 */

/* ===== 印（案・仮・要確認・判断待ち）。scene.css を読まないページでも使えるようにここにも置く ===== */
.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.7; padding: 0 10px; border-radius: 999px; border: 1px dashed currentColor; vertical-align: middle; }
.tag--an { color: #0f5f66; background: #e1f5f6; border-color: #1b8a91; }
.tag--kari { color: #6b4e00; background: #fff3a8; border-color: #c99700; }
.tag--wip { color: #6b4e00; background: #fff3a8; border-color: #c99700; }
.tag--chk { color: #8a2a2a; background: #fde8e8; border-color: #d27a7a; }
.tag--ok { color: #1f5a2a; background: #e6f5e8; border: 1px solid #7bbf86; }
.tag--wait { color: #4a2a7a; background: #efe6fb; border-color: #8c6bc4; }
.chip--it { background: #e1e9fb; color: #234a9a; }
.wait-note { margin: 14px 0 0; font-size: 12.5px; }

/* ===== パンくず（現在のページ） ===== */
.crumb__now { font-style: normal; font-weight: 700; color: var(--c-ink); }
.crumb--hero { margin-bottom: 20px; font-size: 13px; color: var(--c-ink2); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }

/* ===== 関連するページ・前のページに戻る ===== */
.v2-after { padding: 56px 0 72px; background: #fff; border-top: 1px solid var(--c-line); }
.related__t { font-size: 20px; margin: 0 0 18px; }
.related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related__list li a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; color: var(--c-ink); }
.related__list li a:hover { text-decoration: none; border-color: var(--c-main); background: var(--c-tint); }
.related__list b { color: var(--c-deep); font-size: 16px; }
.related__list span { font-size: 13.5px; color: var(--c-ink2); line-height: 1.7; }
.back-link { margin: 28px 0 0; }
.back-link a { font-weight: 700; }

/* ===== 小見出し・カード ===== */
.v2-h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 18px; }
.v2-card { background: var(--c-tint); border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 22px 26px; }
.v2-card p { margin: 0 0 10px; }
.v2-plain li { margin: 0 0 8px; line-height: 1.8; }
.v2-plain { list-style: disc; padding-left: 1.4em; }
.v2-plain li::marker { color: var(--c-main); }
.v2-list { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }

/* ===== トップ：2 つの分野の入口 ===== */
.v2-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.v2-field { display: flex; flex-direction: column; gap: 10px; padding: 30px 30px 26px; border: 1px solid var(--sc-ink, #16282b); background: #fff; color: var(--sc-ink, #16282b); position: relative; transition: background .3s, transform .3s var(--ease); }
.v2-field:hover { text-decoration: none; background: var(--c-tint); transform: translateY(-3px); }
.v2-field__en { font-family: var(--f-en); font-weight: 600; letter-spacing: .2em; font-size: 12px; color: var(--c-deep); text-transform: uppercase; }
.v2-field__t { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.3; }
.v2-field__x { color: var(--c-ink2); line-height: 1.8; flex: 1; }
.v2-field__st { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.v2-st--ok, .v2-st.v2-st--ok { background: #e6f5e8; color: #1f5a2a; }
.v2-st--wip, .v2-st.v2-st--wip { background: #fff3a8; color: #6b4e00; }
.v2-st { display: inline-block; font-size: 13px; font-weight: 700; padding: 0 10px; border-radius: 999px; }
.v2-field__go { font-weight: 700; color: var(--c-deep); }
.v2-field__go::after { content: " →"; }
.sc-sal--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== トップ：募集中の案件への入口 ===== */
.v2-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; }
.v2-kinds a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: #fff; border-top: 3px solid var(--c-main); color: var(--sc-ink, #16282b); height: 100%; }
.v2-kinds a:hover { text-decoration: none; background: var(--c-tint); }
.v2-kinds b { font-size: 18px; }
.v2-kinds span { font-size: 14px; color: var(--c-ink2); }

/* ===== 半導体分野：研修の経路 ===== */
.v2-routes { padding: 22px 0 0; border-top: 1px solid var(--sc-ink, #16282b); }
.v2-routes ul { display: grid; gap: 10px; margin: 8px 0 0; }
.v2-routes li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; }
.v2-routes li b { font-family: var(--f-en); color: var(--c-deep); letter-spacing: .08em; font-size: 13px; }

/* ===== IT 分野：確認できている事／見直し中の事 ===== */
.v2-split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.v2-col { border-radius: var(--r-card); padding: 24px 26px; border: 1px solid var(--c-line); background: #fff; }
.v2-col h3 { font-size: 17px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v2-col--ok { background: #f3faf4; border-color: #b9dfbf; }
.v2-col--wip { background: #fffbe0; border-color: #e3cf70; border-style: dashed; }

/* ===== コース比較の表 ===== */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; overflow: hidden; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); line-height: 1.8; font-size: 15px; }
.cmp thead th { background: var(--c-tint2); color: var(--c-deeper); font-size: 16px; }
.cmp tbody th { width: 150px; background: var(--c-tint); color: var(--c-deeper); font-weight: 700; white-space: nowrap; }
.cmp td { border-left: 1px solid var(--c-line); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

/* ===== 募集中の案件：IT の札 ===== */
.ggrid .gcard[data-kind="it"] .gcard__top::after { background: rgba(255, 255, 255, 0.22); }

/* ===== 入口（社内用） ===== */
.v2-ent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-ent-list b { word-break: break-all; }

/* ===== 全体ナビ：項目が増えた分、960px より上で詰める ===== */
@media (max-width: 1240px) and (min-width: 961px) {
  .logo { font-size: 22px; }
  .gnav a.nav-link { padding: 8px 7px; font-size: 13px; }
  .gnav .btn--sm { padding: 6px 14px; }
}

/* ===== 960px 以下：応募の入口を常に見せる（下の固定ボタンと下の余白）。site.css は 760px 以下でだけ出すため、全ページで 761〜960px の分をここで足す。下限は付けず隙間を作らない ===== */
@media (max-width: 960px) {
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 110px; }
  .mbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid var(--c-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .mbar .btn { min-height: 48px; font-size: 16px; padding: 8px 12px; }
  .related__list, .v2-ent-list { grid-template-columns: 1fr; }
  .v2-fields, .v2-split2, .v2-kinds { grid-template-columns: 1fr; }
  .sc-sal--3 { grid-template-columns: 1fr; }
}

/* ===== スマホ：比較の表を縦に積む ===== */
@media (max-width: 760px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tbody th { width: 100%; white-space: normal; }
  .cmp td { border-left: 0; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--c-deep); letter-spacing: .08em; }
  .v2-routes li { grid-template-columns: 1fr; gap: 2px; }
}

/* 動きを止める設定の時は、このファイルの動きも止める */
@media (prefers-reduced-motion: reduce) {
  .v2-field, .v2-field:hover { transition: none !important; transform: none !important; }
}
