/* 限定正社員 採用サイト 構築 v9（育成ページ）用 CSS。site.css・apply.css・v2.css・v3.css・v4.css・v5.css・v8.css のあとに読む。
   新しいデザインは作らず、既存の色・書体・角丸・影の変数だけで、育成ページの図と表を組む。
   図は HTML と CSS だけ（画像の文字にしない）。動きは足さない。 */

/* ===== 見出し・導入 ===== */
.page-hero h1.v9-h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.5; max-width: 920px; }
.page-hero p.v9-lead { max-width: 860px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; }
.v9-intro .v5-split { align-items: start; }
.v9-intro p { font-size: 16px; line-height: 1.95; }
.v9-note { font-size: 13.5px; color: var(--c-ink2); line-height: 1.8; margin: 14px 0 0; }
.v9-acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* 札（共通の考え方・5 つの学びの札） */
.v9-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.v9-tags a, .v9-tags span.v9-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; border: 2px solid var(--c-main); color: var(--c-deeper); font-weight: 700; font-size: 14px; line-height: 1.5; }
.v9-tags a:hover { text-decoration: none; background: var(--c-tint); }
.v9-tags i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-main); color: #0f3f44; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-num); font-size: 13px; }
.v9-trio { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.v9-trio li { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 16px 20px; font-weight: 700; color: #1d3c40; line-height: 1.6; display: flex; gap: 12px; align-items: center; }
.v9-trio i { font-style: normal; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-main); color: #0f3f44; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-num); }

/* ===== 図 A：半導体の 5 つの工程 ===== */
.v9-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.v9-map > li { position: relative; }
.v9-map > li:not(:last-child)::after { content: "▶"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--c-deep); font-size: 14px; line-height: 1; }
.v9-map__in { display: flex; flex-direction: column; gap: 6px; height: 100%; background: #fff; border: 2px solid var(--c-line); border-radius: 16px; padding: 16px 14px; color: var(--c-ink); }
.v9-map__in:hover { text-decoration: none; border-color: var(--c-main); }
.v9-map__in--on { background: var(--c-tint); border-color: var(--c-main); }
.v9-map__no { font-family: var(--f-num); font-weight: 700; color: var(--c-deep); font-size: 15px; }
.v9-map__t { font-weight: 700; font-size: 16px; color: #1d3c40; line-height: 1.5; }
.v9-map__x { font-size: 13.5px; color: var(--c-ink2); line-height: 1.7; }
.v9-map__place { font-size: 13px; color: var(--c-ink2); }
.v9-map__mark { margin-top: auto; font-size: 22px; line-height: 1; color: #9a4a00; }
.v9-legend { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--c-deeper); }
.v9-legend b { color: #9a4a00; font-size: 18px; margin-right: 4px; }

/* ===== 工程カード（5 枚・同じ欄の順） ===== */
.v9-pcards { display: grid; gap: 22px; }
.v9-pcard { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
.v9-pcard--on { border-color: var(--c-main); border-width: 2px; }
.v9-pcard__head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--c-tint); }
.v9-pcard__no { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-main); color: #0f3f44; display: flex; align-items: center; justify-content: center; font-family: var(--f-num); font-weight: 700; font-size: 18px; }
.v9-pcard h3 { font-size: 19px; }
.v9-pcard__mark { margin-left: auto; font-size: 14px; font-weight: 700; color: #9a4a00; white-space: nowrap; }
.v9-pcard dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); margin: 0; }
.v9-pcard dt, .v9-pcard dd { padding: 12px 22px; border-top: 1px solid var(--c-line); }
.v9-pcard dt { font-weight: 700; font-size: 14px; color: var(--c-deeper); }
.v9-pcard dd { margin: 0; line-height: 1.8; }
.v9-pcard dd .btn { margin: 2px 0; }

/* ===== 求人カード（台帳から作る・確定の求人だけ） ===== */
.v9-job { display: grid; gap: 8px; background: linear-gradient(135deg, #fff, var(--c-tint)); border: 2px solid var(--c-main); border-radius: var(--r-card); padding: 22px 26px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.v9-job__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; }
.v9-job__mark { color: #9a4a00; }
.v9-job__t { margin: 0; font-weight: 700; font-size: 17px; color: #1d3c40; }
.v9-job p { margin: 0; line-height: 1.8; }
.v9-job p b { color: var(--c-deeper); }
.v9-job .btn { justify-self: start; margin-top: 6px; }
.v9-after-job { margin: 18px 0 0; }

/* ===== 図 B：学びの流れ ===== */
.v9-figB { display: flex; flex-direction: column; gap: 16px; }
.v9-spec { order: 1; border: 2px solid var(--c-deep); border-radius: 16px; padding: 14px 18px; background: #fff; font-size: 14.5px; line-height: 1.8; }
.v9-spec b { display: block; color: var(--c-deeper); font-size: 14px; margin-bottom: 2px; }
.v9-steps { order: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.v9-step { grid-row: span 5; display: grid; grid-template-rows: subgrid; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; scroll-margin-top: 90px; }
.v9-step h3 { display: flex; gap: 8px; align-items: flex-start; padding: 14px 14px 12px; background: var(--c-tint); font-size: 15px; line-height: 1.5; }
.v9-step h3 i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-main); color: #0f3f44; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-num); font-size: 13px; }
.v9-step .v9-cell { padding: 10px 14px; border-top: 1px solid var(--c-line); font-size: 13.5px; line-height: 1.75; }
.v9-step .v9-cell b { display: block; font-size: 12px; color: var(--c-deeper); margin-bottom: 2px; }
.v9-v--east, .v9-v--south { display: none; }
.v9-sw { display: none; }
.v9-sw button { min-height: 44px; text-align: left; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--c-main); background: #fff; color: var(--c-deeper); font-weight: 700; font-size: 14px; line-height: 1.5; }
.v9-sw button[aria-pressed="true"] { background: var(--c-deeper); border-color: var(--c-deeper); color: #fff; }

/* ===== 表（現場のリアル・学び・雇用形態と給与） ===== */
.v9-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; font-size: 15px; line-height: 1.8; }
.v9-table th, .v9-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--c-line); }
.v9-table thead th { background: var(--c-tint); color: var(--c-deeper); border-top: 0; font-size: 14px; }
.v9-table tbody th { width: 26%; color: var(--c-deeper); font-weight: 700; background: #fbfefe; }
.v9-table--two td { width: 50%; }

/* ===== 学んだ先の仕事 ===== */
.v9-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 28px; margin: 0; }
.v9-path__h { margin: 0; font-weight: 700; font-size: 14px; color: var(--c-deeper); }
.v9-path__h--1 { grid-column: 1; }
.v9-path__h--2 { grid-column: 2; }
.v9-path__h--3 { grid-column: 3 / span 2; }
.v9-path__box { position: relative; background: #fff; border: 2px solid var(--c-main); border-radius: 16px; padding: 16px 14px; font-weight: 700; color: #1d3c40; text-align: center; line-height: 1.6; }
.v9-path__box:not(:last-child)::after { content: "▶"; position: absolute; right: -23px; top: 50%; transform: translateY(-50%); color: var(--c-deep); font-size: 14px; line-height: 1; font-weight: 400; }
.v9-path__br { grid-column: 3; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.v9-path__br li { background: var(--c-tint); border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--c-deeper); line-height: 1.6; }
.v9-path__br li::before { content: "└→ "; color: var(--c-deep); }

/* ===== 相談の枠・2 分割・階段（IT の育成・求人一覧） ===== */
.v9-consult { background: var(--c-tint); border-radius: 16px; padding: 20px 24px; }
.v9-consult > b { display: block; color: #1d3c40; margin-bottom: 4px; font-size: 17px; }
.v9-consult > p { margin: 0 0 12px; }
.v9-consult ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.v9-consult li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 16px; }
.v9-consult li span { flex: 1 1 260px; line-height: 1.7; }
.v9-consult li span b { display: block; color: #1d3c40; }
.v9-consult li span small { font-size: 13.5px; color: var(--c-ink2); }
.v9-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.v9-two li { background: #fff; border: 2px solid var(--c-line); border-radius: var(--r-card); padding: 22px 24px; font-size: 20px; font-weight: 700; color: #1d3c40; line-height: 1.5; }
.v9-two li small { display: block; font-family: var(--f-en); letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--c-deep); margin-bottom: 4px; }
.v9-stairs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin: 0; padding: 0; list-style: none; }
.v9-stairs3 li { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.v9-stairs3 li:nth-child(1) { min-height: 150px; }
.v9-stairs3 li:nth-child(2) { min-height: 200px; }
.v9-stairs3 li:nth-child(3) { min-height: 250px; background: linear-gradient(180deg, #fff, var(--c-tint)); border-color: var(--c-main); }
.v9-stairs3 .no { font-family: var(--f-en); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; color: var(--c-deep); }
.v9-stairs3 b { font-size: 19px; color: #1d3c40; line-height: 1.45; margin-top: auto; }
.v9-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v9-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; margin: 0; padding: 0; list-style: none; }
.v9-chain li { position: relative; background: #fff; border: 2px solid var(--c-main); border-radius: 14px; padding: 12px 22px; font-weight: 700; color: #1d3c40; }
.v9-chain li:not(:last-child)::after { content: "▶"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--c-deep); font-size: 14px; line-height: 1; font-weight: 400; }
.v9-it-art { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 18px; position: relative; }
.v9-it-art svg { width: 100%; height: auto; }
.v9-it-art figcaption { position: absolute; right: 10px; bottom: 10px; font-size: 12px; color: var(--c-ink2); background: rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 0 10px; line-height: 1.8; }

/* ===== 宮城の求人：5 工程の帯・応募の流れ・特集へのカード ===== */
.v9-band5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.v9-band5 li { text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.5; padding: 8px 6px; border-radius: 10px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink2); }
.v9-band5 li.on { background: var(--c-deeper); border-color: var(--c-deeper); color: #fff; }
.v9-lead-band { background: var(--c-tint); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-weight: 700; color: #1d3c40; line-height: 1.8; }
.v9-lead-band .v9-inline { display: inline-block; margin-left: 10px; font-size: 14px; }
.v9-flow6 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.v9-card-link { display: block; margin-top: 22px; background: #fff; border: 2px solid var(--c-main); border-radius: var(--r-card); padding: 18px 24px; font-weight: 700; color: var(--c-deeper); line-height: 1.6; }
.v9-card-link:hover { text-decoration: none; background: var(--c-tint); }
.v9-card-link::after { content: " ›"; }
.v9-terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.v9-terms li { background: #fff; border: 1px solid var(--c-main); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; color: var(--c-deeper); line-height: 1.6; }
.v9-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.v9-hero-acts .apply-slot { display: inline-block; }

/* ===== 給与カードを 2 枚にした時の並び（月給の 2 枚） ===== */
.sal-grid.sal-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stairs.v9-stairs2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.stairs.v9-stairs2 .sal-card:nth-child(n) { min-height: 0; }

/* ===== 960px 以下 ===== */
@media (max-width: 960px) {
  .v9-trio, .v9-two, .v9-stairs3 { grid-template-columns: 1fr; }
  .v9-stairs3 li:nth-child(n) { min-height: 0; }
  .sal-grid.sal-grid--2, .stairs.v9-stairs2 { grid-template-columns: 1fr; }
  .v9-flow6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== スマホ（site.css の 760px 以下） ===== */
@media (max-width: 760px) {
  .v9-map { grid-template-columns: 1fr; gap: 26px 0; }
  .v9-map > li:not(:last-child)::after { content: "▼"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .v9-map__in { padding: 14px 16px; }
  .v9-pcard dl { grid-template-columns: 1fr; }
  .v9-pcard dt { border-top: 1px solid var(--c-line); padding-bottom: 0; }
  .v9-pcard dd { border-top: 0; padding-top: 4px; }
  .v9-pcard__head { flex-wrap: wrap; }
  .v9-pcard__mark { margin-left: 0; flex-basis: 100%; }
  .v9-steps { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; }
  .v9-step { grid-row: auto; display: block; }
  .v9-spec { order: 3; }
  .v9-table, .v9-table tbody, .v9-table tr, .v9-table th, .v9-table td { display: block; width: auto; }
  .v9-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .v9-table tbody tr { border-top: 1px solid var(--c-line); padding: 6px 0; }
  .v9-table tbody tr:first-child { border-top: 0; }
  .v9-table th, .v9-table td { border-top: 0; padding: 6px 16px; }
  .v9-table tbody th { width: auto; background: transparent; }
  .v9-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--c-deeper); }
  .v9-table--two td { width: auto; }
  .v9-path { grid-template-columns: 1fr; gap: 6px 0; }
  .v9-path__h--1, .v9-path__h--2, .v9-path__h--3 { grid-column: 1; margin-top: 10px; }
  .v9-path__box:not(:last-child)::after { content: "▼"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .v9-path__box { margin-bottom: 18px; }
  .v9-path__br { grid-column: 1; }
  .v9-grid2 { grid-template-columns: 1fr; }
  .v9-chain { flex-direction: column; align-items: stretch; gap: 30px; }
  .v9-chain li:not(:last-child)::after { content: "▼"; right: auto; left: 50%; top: auto; bottom: -26px; transform: translateX(-50%); }
  .v9-chain li { text-align: center; }
  .v9-band5 { grid-template-columns: 1fr; }
  .v9-flow6 { grid-template-columns: 1fr; }
  .v9-job { padding: 18px 18px; }
  .v9-job .btn, .v9-hero-acts .btn { width: 100%; }
  .v9-hero-acts .apply-slot { display: block; width: 100%; }
  .v9-acts .btn { width: 100%; }
  .js .v9-sw { display: flex; flex-direction: column; gap: 8px; order: 0; }
}

/* ===== スマホで、切り替えボタンを使う時だけ「どこで」の欄と専門教育の帯を絞る（動きを減らす設定では全部出す） ===== */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .v9-figB[data-sel="east"] .v9-v--all, .js .v9-figB[data-sel="south"] .v9-v--all { display: none; }
  .js .v9-figB[data-sel="east"] .v9-v--east, .js .v9-figB[data-sel="south"] .v9-v--south { display: inline; }
  .js .v9-figB:not([data-sel="special"]) .v9-spec { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .v9-sw { display: none !important; }
}

/* Keep short condition phrases together on narrow screens. */
.v9-terms .term-phrase { display:inline-block; white-space:nowrap; max-width:100%; }
@media(max-width:600px){.v9-terms li { max-width:100%; border-radius:16px; }}
