/* 採用B案：番号・見出し・説明を横に並べる役割の工程表。 */
#roles .role-study__heading { display:block; }
#roles .role-study__heading h2 { margin:32px 0 0; color:var(--color-text-strong); font-size:clamp(30px,3.4vw,48px); font-weight:700; line-height:1.55; }
#roles .role-study__heading h2 .u-line { display:block; }
#roles .role-study__list { margin-top:48px; }
#roles .role-study__item { display:grid; grid-template-columns:128px minmax(0,320px) minmax(0,1fr); gap:32px; border-top:1px solid #d9d8e3; padding-block:36px; align-items:start; }
#roles .role-study__item:last-child { border-bottom:1px solid #d9d8e3; }
#roles .role-study__marker { display:flex; flex-direction:column; gap:24px; align-items:flex-start; color:var(--color-text-strong); }
#roles .role-study__marker>span { font-size:64px; line-height:1; font-weight:500; }
#roles h3 { margin:0; font-size:24px; line-height:1.65; font-weight:700; color:var(--color-text-strong); }
#roles h3 .u-line { display:block; }
#roles .role-study__description p { line-height:1.95; font-size:16px; }
#roles .role-study__description ul { display:flex; flex-wrap:wrap; gap:8px; padding:0; list-style:none; margin-top:16px; }
#roles .role-study__description li { padding:5px 12px; border:1px solid var(--color-border-accent); border-radius:999px; color:var(--color-text-strong); font-size:13px; }
@media(max-width:1023px) {
 #roles .role-study__item { gap:24px; grid-template-columns:70px minmax(0,1fr) minmax(0,1fr); }
 #roles h3 { font-size:21px; }
}
@media(max-width:767px) {
 #roles .role-study__heading { display:block; }
 #roles .role-study__heading h2 { margin-top:20px; font-size:28px; }
 #roles .role-study__list { margin-top:32px; }
 #roles .role-study__item { grid-template-columns:52px minmax(0,1fr); gap:20px; padding-block:28px; }
 #roles .role-study__description { grid-column:2; }
 #roles .role-study__marker>span { font-size:44px; }
 #roles .role-study__description p { font-size:15px; }
 #roles .role-study__description li { font-size:12px; padding-inline:10px; }
}

#roles .role-study__heading h2.d-label { margin:0; font-size:28px; line-height:1.8; }
@media(max-width:767px) { #roles .role-study__heading h2.d-label { font-size:22px; } }

#roles h3 .role-study__emphasis { display:block; margin-top:4px; font-size:1.12em; font-weight:700; -webkit-text-stroke:.35px currentColor; }

#roles .role-study__count { position:relative; top:.1em; color:#c96b18; font-size:1.3em; line-height:1; margin-inline:.12em; }

/* 部署LP：見出しの列を最長行の字数ぶんに広げ、1024px以上では見出しを折らない（--role-title-em は department-page.php が出す）。 */
@media(min-width:1024px) {
 .dept-lp #roles .role-study__item { grid-template-columns:128px calc(var(--role-title-em) * 24px + 8px) minmax(0,1fr); }
 .dept-lp #roles h3 .u-line { white-space:nowrap; }
}
