/* TOP の表現（2026-10-14 再修正・本人「飾りを増やさず、自然な写真と閲覧体験に集中」）。index.html だけが top-visual.css のあとに読む。
   ・冒頭の動画は拡大も切り取りもしない：枠を元の縦横比（PC 16:9／スマホ 9:16）にして全体を収め、文字は動画の下の段に置く。動画ファイルと色はそのまま。
   ・写真はスクロールに合わせて少しずつ開く（対応ブラウザだけ。動きを減らす設定・通信を減らす設定では最初から全部見える）。
   ・求人は地域と分野で絞り込める一覧にし、既存の各ページへつなぐ。受付の状態は求人の一覧ページと同じ言葉で出す。
   隠す指定は JavaScript が動いている時（.js）だけ。JavaScript が無くても本文と求人はすべて読める。外部の読み込みは無い。 */

/* ---------- 円形の矢印（リンクの印）---------- */
main a.tx-go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
main a.tx-go::after, .tx-now__go::after { content: ""; flex: none; width: 30px; height: 30px; margin: 0; border-radius: 50%; background: var(--c-deeper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; transition: background-color 0.25s var(--ease), transform 0.25s var(--ease); }
main a.tx-go:hover, main a.tx-go:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
main a.tx-go:hover::after, main a.tx-go:focus-visible::after, .tx-now__link:hover .tx-now__go::after, .tx-now__link:focus-visible .tx-now__go::after { background-color: var(--c-orange); transform: translateX(4px); }
.tv-links a.tx-go { gap: 10px; padding-right: 8px; }

/* ---------- 冒頭：動画は元の画角のまま全体を見せ（拡大・切り取りなし）、短い見出し・説明・ボタンを動画の下の方に重ねる ----------
   2026-10-14 本人「動画の上に文字があった方がまだ良かった」。動画の枠は画面と動画の比率だけで決め、文字のために伸ばさない。
   動画の枠と文字の段を同じ格子のマスに重ね、文字の段の後ろにだけ控えめな下からの暗がりを敷く（動画全体は暗くしない）。 */
.hero.v3-hero.v5-hero.v6-hero.v7-hero.tx-hero {
  --tx-vw: min(100%, max(560px, calc((100svh - var(--h-header) - 40px) * 16 / 9)));
  display: grid; grid-template-columns: 100%; min-height: 0; padding: var(--h-header) 0 0; background: var(--c-deeper); overflow: hidden;
}
.tx-hero .hero__photo { grid-area: 1 / 1; justify-self: center; position: relative; inset: auto; width: var(--tx-vw); aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: #0b3b40; }
.tx-hero .hero__photo picture img, .tx-hero .hero__photo img, .tx-hero .v6-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 50%; transform: none; animation: none; }
.tx-hero .hero__veil, .tx-hero .hero__blob { display: none; }
.hero.v3-hero.v5-hero.v6-hero.v7-hero.tx-hero .v6-pause { top: calc(var(--h-header) + 12px); bottom: auto; right: calc((100% - var(--tx-vw)) / 2 + 12px); }
.tx-hero .hero__in { grid-area: 1 / 1; justify-self: center; align-self: end; position: relative; z-index: 2; display: block; width: var(--tx-vw); max-width: none; margin: 0; padding: clamp(40px, 6vw, 88px) clamp(16px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
  background: linear-gradient(0deg, rgba(6, 30, 34, 0.62) 0%, rgba(6, 30, 34, 0.34) 55%, rgba(6, 30, 34, 0) 100%); }
.tx-hero .hero__in > div { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: end; }
.tx-hero .hero__eyebrow, .tx-hero .hero__title, .tx-hero .yh-vlead { grid-column: 1; }
.tx-hero .hero__eyebrow { font-size: clamp(12px, 1vw, 14px); }
.tx-hero .hero__cta { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.tx-hero .hero__title { margin-top: 4px; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.25; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.tx-hero .yh-vlead { margin-top: 6px; font-size: clamp(13.5px, 1.2vw, 16px); line-height: 1.7; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.tx-hero .hero__cta .btn { min-height: 44px; padding: 8px 20px; font-size: 15px; }

/* ---------- 動画のすぐ下：地域・仕事の一覧への短い入口 ---------- */
.tx-now { background: #fff; border-bottom: 1px solid var(--yh-line); }
.tx-now__in { width: min(var(--w-main), 100%); margin: 0 auto; padding: 12px 20px; }
a.tx-now__link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--yh-ink); text-decoration: none; }
.tx-now__txt { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; }
.tx-now__txt b { font-size: 18px; font-weight: 800; }
.tx-now__txt span { font-size: 14px; color: var(--c-ink2); }
.tx-now__go { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-weight: 700; color: var(--c-deeper); white-space: nowrap; }
.tx-now__link:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 4px; border-radius: 8px; }

/* ---------- 章の区切り（番号＋英字）と、スクロールで出る見出し ---------- */
.tv-en .tx-no { font-family: var(--f-num); font-size: 15px; letter-spacing: 0.06em; color: var(--c-deeper); }
.tv-en .tx-no::after { content: "／"; margin: 0 2px 0 6px; color: var(--c-orange); }
.js .tv-head[data-reveal] .yh-chunk { opacity: 0; transform: translateY(0.45em); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .tv-head[data-reveal] .yh-chunk + .yh-chunk { transition-delay: 0.14s; }
.js .tv-head[data-reveal].is-in .yh-chunk { opacity: 1; transform: none; }

/* ---------- 写真がスクロールに合わせて開く（scroll-driven animation に対応したブラウザだけ）---------- */
@keyframes txGrow { from { clip-path: inset(7% 9% 7% 9% round 28px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js:not(.tx-calm) .tx-grow { animation: txGrow linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}

/* ---------- 3つの分野（同じ大きさ・同じ扱い）---------- */
.tx-fields { gap: clamp(22px, 3vw, 36px); align-items: start; }
.tx-fields .tv-en { margin: 0; font-size: 12.5px; line-height: 1.4; letter-spacing: 0.16em; color: var(--c-deep); }
.tx-fields h3 { margin-top: 2px; }
/* 写真は元の 3:2 のまま見せる（枠も 3:2 にして、手元などを切り取らない） */
.tx-fields .tv-media { aspect-ratio: 3 / 2; }
/* 写真は拡大しない（hover で端や手元が切れないように。top-visual.css の拡大を打ち消す） */
.tx-fields > li:hover .tv-media img, .tx-fields > li:focus-within .tv-media img { transform: none; }
.tx-fields .tx-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 6px 0 0; }

/* ---------- 研修の3段階（学ぶ → 現場で試す → 相談できる）：PCは3枚を1段に。写真は3:2のまま、下に短い見出しと説明 ----------
   2026-10-14 本人「当たり前の短文に広大な交互3段」→ 交互の大きな3段をやめ、詰めて並べる。スマホは小さい写真と説明の横並び3行 */
.tx-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.tx-path__step { display: grid; align-content: start; gap: 10px; }
.tx-path__photo { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: var(--yh-r); overflow: hidden; background: #e9eef0; }
.tx-path__photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 40%); }
.tx-path__txt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: baseline; }
.tx-path__no { font-family: var(--f-num); font-size: 22px; font-weight: 700; line-height: 1; color: var(--c-deep); }
.tx-path__txt b { font-size: clamp(18px, 1.7vw, 21px); font-weight: 800; line-height: 1.35; color: var(--yh-ink); }
.tx-path__txt span:last-child { grid-column: 2; font-size: 14.5px; line-height: 1.6; color: var(--c-ink2); }
#learn .tv-small { margin-top: 18px; }

/* ---------- Mission：写真の大きな枠をやめ、言葉とボタンだけの帯（最初から見える・高さは中身なり）----------
   2026-10-14 本人「巨大な無地の余白」。原因：写真の枠（右から開く clip-path）が開く前は無地で、PCは2列の片側、960px以下は縦積みの 16:10 の空き枠になっていた。
   写真（youth-hero.webp）は帯から外した（ファイルは残す）。Mission と Vision の文は変えない */
.tv-mission.tx-mission { display: block; padding: clamp(36px, 5vw, 56px) 0; }
.tx-mission__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px clamp(28px, 5vw, 64px); align-items: center; }
.tx-mission .tv-en { margin: 0 0 6px; }
.tx-mission .tv-mission__h { font-size: clamp(32px, 4.2vw, 56px); }
.tx-mission .tv-mission__v { margin: 0 0 14px; }

/* ---------- 求人：地域と分野で絞り込める一覧 ---------- */
.tx-find__filters { display: grid; gap: 10px; margin: 0 0 18px; }
.tx-find__filters[hidden] { display: none; }
.tx-find__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.tx-find__k { min-width: 3em; margin-right: 4px; font-size: 14px; font-weight: 800; color: var(--yh-ink); }
.tx-chip { min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--c-deeper); border-radius: 999px; background: #fff; color: var(--c-deeper); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.tx-chip:hover { background: var(--c-tint); }
.tx-chip[aria-pressed="true"] { background: var(--c-deeper); color: #fff; }
.tx-chip:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }
.tx-find__count { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--c-ink2); }
.tx-find__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tx-find__list > li[hidden] { display: none; }
a.tx-job { display: grid; align-content: start; gap: 4px; height: 100%; padding: 16px 18px 18px; border: 1px solid var(--yh-line); border-radius: 12px; background: #fff; color: var(--yh-ink); text-decoration: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
a.tx-job:hover, a.tx-job:focus-visible { border-color: var(--c-deeper); box-shadow: 0 8px 20px rgba(16, 41, 44, 0.12); transform: translateY(-2px); }
a.tx-job:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }
.tx-job__st { justify-self: start; padding: 1px 10px; border-radius: 999px; background: var(--c-tint); color: var(--c-deeper); font-size: 12.5px; font-weight: 700; line-height: 1.8; }
.tx-job__st--open { background: var(--c-orange); color: #fff; }
.tx-job__area { margin-top: 4px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.tx-job__what { font-size: 14.5px; line-height: 1.6; color: var(--c-ink2); }
.tx-job__field { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--c-deep); }
.tx-find__empty { margin: 0; padding: 14px 18px; border-radius: 12px; background: #fff; font-size: 15px; }
.tx-find__empty[hidden] { display: none; }
#jobs .tv-small { margin-top: 18px; }

/* 電話番号の途中で折り返さない（スマホ） */
.tx-tel, .site-footer .footer-tel b { white-space: nowrap; }
.apply-band .btn--tel { flex-wrap: wrap; row-gap: 0; }

/* ---------- 動きを減らす設定・通信を減らす設定（html.tx-calm）では止める ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .tv-head[data-reveal] .yh-chunk { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tx-menu > summary::after, .tx-menu__panel a { transition: none !important; }
  main a.tx-go::after, .tx-now__go::after, .tx-chip, a.tx-job { transition: none !important; }
  a.tx-job:hover, a.tx-job:focus-visible { transform: none; }
}
html.tx-calm [data-reveal], html.tx-calm [data-reveal] * { transition: none !important; }

/* ---------- 画面の幅 ---------- */
@media (max-width: 960px) {
  .tx-hero .hero__in > div { grid-template-columns: 1fr; }
  .tx-hero .hero__cta { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
@media (max-width: 760px) {
  .hero.v3-hero.v5-hero.v6-hero.v7-hero.tx-hero { padding-top: var(--h-header); }
  .tx-now__in { padding: 10px 16px; }
  .tx-now__txt b { font-size: 17px; }
  .tx-mission__in { grid-template-columns: 1fr; }
  .tx-find__list { grid-template-columns: 1fr; }
}
/* スマホ（動画がスマホ用の 9:16 に切り替わる幅。v6.js と止め絵の切り替えと同じ 600px）*/
@media (max-width: 600px) {
  .hero.v3-hero.v5-hero.v6-hero.v7-hero.tx-hero { --tx-vw: min(100%, max(280px, calc((100svh - var(--h-header) - 24px) * 9 / 16))); }
  .tx-hero .hero__photo { aspect-ratio: 9 / 16; }
  .tx-hero .hero__cta .btn { min-height: 42px; padding: 6px 16px; font-size: 14.5px; }
  /* 画面の下に固定した「応募・相談／電話」の帯（約68px）が、最初の画面で動画下端のボタンを隠さないよう、文字の段を帯の分だけ持ち上げる（動画の大きさ・色は変えない） */
  .tx-hero .hero__in { padding-bottom: calc(clamp(16px, 2.4vw, 32px) + 56px); }
  .tx-path { grid-template-columns: 1fr; gap: 12px; }
  .tx-path__step { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
  .tx-path__photo { border-radius: 10px; }
}

/* ---------- 章の余白と大見出し（TOPだけ）：詰めすぎず、広すぎず ---------- */
.tv-sec { padding-top: clamp(44px, 5.5vw, 72px); padding-bottom: clamp(44px, 5.5vw, 72px); }
.tv-head { margin-bottom: 22px; }
.tv-head h2 { font-size: clamp(26px, 3.4vw, 44px); }

/* ---------- ヘッダー：入口を「HBCで働く／仕事と育成／求人を探す」と「応募・相談」に整理 ----------
   中身は開くメニュー（details/summary）。クリック・タップ・Enter/Space で開き、JS で Esc・外側のクリック・フォーカスが外れた時に閉じる。
   指を乗せただけでは開かない（hover に頼らない）。960px以下は既存のスマホのメニュー（site.js）の中で同じまとまりを開閉する */
.tx-gnav { gap: 4px; }
.tx-menu { position: relative; }
.tx-menu > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 700; color: var(--yh-ink); white-space: nowrap; cursor: pointer; list-style: none; }
.tx-menu > summary::-webkit-details-marker { display: none; }
.tx-menu > summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.tx-menu[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.tx-menu > summary:hover, .tx-menu[open] > summary { background: var(--c-tint); color: var(--c-deeper); }
.tx-menu > summary:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }
.tx-menu__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; display: grid; gap: 2px; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--yh-line); border-radius: 12px; box-shadow: 0 12px 28px rgba(16, 41, 44, 0.14); }
.tx-menu__panel a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--yh-ink); white-space: nowrap; text-decoration: none; transition: background-color 0.15s var(--ease); }
.tx-menu__panel a:hover, .tx-menu__panel a:focus-visible { background: var(--c-tint); color: var(--c-deeper); }
.tx-menu__panel a:focus-visible { outline: 3px solid var(--c-orange); outline-offset: -3px; }
.tx-gnav > .btn--apply { margin-left: 8px; }

/* ---------- フッター：意味別の4つのまとまり（会社を知る／働き方・待遇／仕事・育成／応募）。PC 4列・スマホ 2列 ---------- */
.site-footer.tx-footer { padding-top: 44px; }
.tx-footer__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; padding-bottom: 26px; border-bottom: 1px solid var(--c-line); }
.tx-footer__top .footer-tel { margin: 0; }
.tx-footer__top .v5-sns { margin: 0; }
.tx-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; padding-top: 26px; }
.tx-footer__h { margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--c-main); font-size: 14px; font-weight: 800; line-height: 1.4; letter-spacing: 0.04em; color: var(--c-deeper); }
.tx-footer__grp ul { display: grid; gap: 0; margin: 0; padding: 0 0 0 13px; list-style: none; }
.tx-footer__grp a { display: inline-block; padding: 6px 0; font-size: 14px; line-height: 1.5; color: var(--c-ink2); }
.tx-footer__grp a:hover, .tx-footer__grp a:focus-visible { color: var(--c-deeper); }

@media (max-width: 960px) {
  .tx-menu { border-bottom: 1px solid var(--c-line); }
  .tx-menu > summary { display: flex; justify-content: space-between; width: 100%; min-height: 52px; padding: 14px 4px; border-radius: 0; font-size: 16px; }
  .tx-menu > summary:hover, .tx-menu[open] > summary { background: transparent; }
  .tx-menu__panel { position: static; min-width: 0; padding: 0 0 10px 10px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .tx-menu__panel a { padding: 12px 8px; font-size: 15px; white-space: normal; }
  .tx-gnav > .btn--apply { margin-left: 0; }
}
@media (max-width: 760px) {
  .tx-footer__top { grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; }
  .tx-footer__top .v5-sns { grid-column: 1 / -1; }
  .tx-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}

/* ---------- 学びの循環（#learn・2026-10-14 本人「文字だけでなく図やイラストで。詳細はサブページで」）----------
   物の絵（本とノート／歯車と工具／物差しとチェック／階段と給与明細）と短いラベル「学ぶ・実践する・評価する・次へ進む」を、
   2×2 の輪（1 左上 → 2 右上 → 3 右下 → 4 左下 → 1）に置き、辺の中央のオレンジの矢印で回る向きを示す。真ん中に「くり返す」。
   PC は左に言葉（見出し・注記・導線）、右に輪。960px以下は 見出し → 輪 → 注記 → 導線 の順に縦。輪はスマホでも 2×2 のまま。
   絵は aria-hidden（同じ意味の短いラベルを文字で出す）。常に動くものは無い。JS・動きの設定に関係なく、最初から全部見える */
.tx-career { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "h c" "n c" "l c"; grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 4vw, 48px); row-gap: 14px; align-items: start; margin-top: 22px; padding: clamp(20px, 3vw, 36px); border-radius: var(--yh-r); background: var(--c-deeper); color: #fff; }
.tx-career__h { grid-area: h; display: grid; gap: 6px; margin: 0; line-height: 1.35; }
.tx-career__h > span:first-child { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: #fff; }
.tx-career__h > span:last-child { font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; color: var(--c-main); }
.tx-cycle { grid-area: c; position: relative; --g: 40px; }
.tx-cycle__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a b" "d c"; gap: var(--g); margin: 0; padding: 0; list-style: none; }
.tx-cycle__list li { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 16px 10px 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; background: rgba(255, 255, 255, 0.08); text-align: center; }
.tx-cycle__list li:nth-child(1) { grid-area: a; }
.tx-cycle__list li:nth-child(2) { grid-area: b; }
.tx-cycle__list li:nth-child(3) { grid-area: c; }
.tx-cycle__list li:nth-child(4) { grid-area: d; border-color: var(--c-main); background: rgba(120, 205, 207, 0.18); }
.tx-cycle__list svg { width: clamp(52px, 5.6vw, 72px); height: auto; margin-bottom: 4px; }
.tx-cycle__list b { font-size: clamp(17px, 1.7vw, 20px); font-weight: 800; line-height: 1.3; color: #fff; }
.tx-cycle__list li > span { font-size: 13.5px; line-height: 1.5; color: #d6f1f1; }
/* 回る向きの矢印（辺の中央・すき間の真ん中）：1→2 右、2→3 下、3→4 左、4→1 上 */
.tx-cycle__list li::after { content: ""; position: absolute; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--c-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tx-cycle__list li:nth-child(1)::after { top: 50%; right: calc(var(--g) / -2 - 14px); margin-top: -14px; }
.tx-cycle__list li:nth-child(2)::after { bottom: calc(var(--g) / -2 - 14px); left: 50%; margin-left: -14px; transform: rotate(90deg); }
.tx-cycle__list li:nth-child(3)::after { top: 50%; left: calc(var(--g) / -2 - 14px); margin-top: -14px; transform: rotate(180deg); }
.tx-cycle__list li:nth-child(4)::after { top: calc(var(--g) / -2 - 14px); left: 50%; margin-left: -14px; transform: rotate(-90deg); }
.tx-cycle__mid { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; margin: -37px 0 0 -37px; border: 2px dashed var(--c-main); border-radius: 50%; background: var(--c-deeper); color: var(--c-main); font-size: 13px; font-weight: 800; }
.tx-career__note { grid-area: n; }
.tx-career__links { grid-area: l; align-self: start; }
.tx-career__note { margin: 0; font-size: 13.5px; line-height: 1.7; color: #d6f1f1; }
.tx-career__links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
.tx-career a.tx-go { color: #fff; }
.tx-career a.tx-go::after { background-color: var(--c-orange); }
.tx-career a.tx-go:hover::after, .tx-career a.tx-go:focus-visible::after { background-color: var(--c-main); }
.tx-career a.tx-go:focus-visible { outline: 3px solid var(--c-main); outline-offset: 3px; border-radius: 4px; }

/* 学びと育成のページへの、役割別のリンク（全体／半導体／IT） */
.tx-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
a.tx-role { position: relative; display: grid; align-content: start; gap: 2px; height: 100%; padding: 14px 54px 14px 16px; border: 1.5px solid var(--c-deeper); border-radius: 12px; background: #fff; color: var(--yh-ink); text-decoration: none; transition: background-color 0.2s var(--ease); }
a.tx-role small { justify-self: start; padding: 0 8px; border-radius: 999px; background: var(--c-tint); color: var(--c-deeper); font-size: 12px; font-weight: 700; line-height: 1.7; }
a.tx-role b { font-size: 16.5px; font-weight: 800; line-height: 1.4; }
a.tx-role span { font-size: 13.5px; line-height: 1.55; color: var(--c-ink2); }
a.tx-role::after { content: ""; position: absolute; top: 50%; right: 14px; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--c-deeper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; transition: background-color 0.2s var(--ease); }
a.tx-role:hover, a.tx-role:focus-visible { background: var(--c-tint); }
a.tx-role:hover::after, a.tx-role:focus-visible::after { background-color: var(--c-orange); }
a.tx-role:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }

/* 960px以下：見出し → 輪 → 注記 → 導線 の順に縦。輪は 2×2 のまま（すき間を少し詰める） */
@media (max-width: 960px) {
  .tx-career { grid-template-columns: 1fr; grid-template-areas: "h" "c" "n" "l"; grid-template-rows: none; }
  .tx-cycle { width: 100%; max-width: 560px; justify-self: center; margin: 6px 0; }
}
@media (max-width: 600px) {
  .tx-cycle { --g: 30px; }
  .tx-cycle__list li { padding: 12px 8px 14px; }
  .tx-cycle__mid { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 12px; }
}
@media (max-width: 760px) {
  .tx-roles { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  a.tx-role, a.tx-role::after { transition: none !important; }
}

/* ---------- 働き方の項目（3つ）：「年2回の査定」は学びの図と重なるので外した（制度と成長へは #learn から）---------- */
.tv-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .tv-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tv-facts li:nth-child(2) { border-right: 1px solid var(--yh-line); }
}
@media (max-width: 760px) {
  .tv-facts { grid-template-columns: 1fr; }
  .tv-facts li:nth-child(2) { border-right: 0; }
}

/* ---------- 改行：見出しと短いラベルは言葉のまとまりで折り返す（文字を小さくしない・隠さない・はみ出さない）----------
   word-break: auto-phrase は日本語の文節で折り返す（対応ブラウザ）。主な見出しは yh-chunk（inline-block）でもまとまりを守る */
.tv-head h2, .tv-lead, .tx-career__h, .tv-fields h3, .tx-path__txt b, .tx-cycle__list b, .tx-cycle__list li > span, .tv-flow b, .tv-facts b, .tx-role b, .tx-now__txt b, .tx-job__what, .tx-mission .tv-mission__h, .tx-mission .tv-mission__v { word-break: auto-phrase; }
.tv-head h2, .tx-career__h, .tx-mission .tv-mission__h { text-wrap: balance; }

/* footer-links-fix-20261015 */
.tx-footer__grp a.tx-footer__ext { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tx-footer__ext-icon { flex: none; font-size: 12px; line-height: 1; }
