/* /assets/css/recruit.css
 * RECRUITページ専用（base.css / layout.css は読み込み済み前提）
 * - hero / bigWord は service/about と同じ構造を想定
 * - roles / flow / modal / cta を recruit用に定義
 */

/* ===== HERO（service/about と同型） ===== */
.hero {
    width: min(1320px, calc(100% - 56px));
    margin: 0 auto;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.heroSlider {
    position: relative;
    height: 560px;
    background: #111;
}

.heroTrack {
    height: 100%;
    display: flex;
    transition: transform .85s var(--ease);
    will-change: transform;
}

.heroSlide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.heroSlide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
    will-change: transform;
    transform: scale(1.06) translate3d(var(--px, 0px), var(--py, 0px), 0);
    transition: transform .35s var(--ease);
}

.heroOverlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 18% 80%, rgba(0, 0, 0, .55), transparent 62%),
        linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.heroContent {
    position: absolute;
    left: 44px;
    bottom: 44px;
    width: min(720px, calc(100% - 88px));
    color: #fff;
    pointer-events: auto;
}

.heroKicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 1000;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: .95;
}

.heroKicker .kDot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--orange2);
    box-shadow: 0 0 18px rgba(255, 90, 90, .5);
}

.heroTitle {
    margin: 12px 0 0;
    font-size: clamp(30px, 3.3vw, 54px);
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -.03em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.heroDesc {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 2.0;
    opacity: .92;
    max-width: 70ch;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.heroActions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.viewMore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 1000;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
    user-select: none;
    font-size: 13px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.viewMore:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .70);
}

.viewMore:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.viewMore .dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--orange2);
    box-shadow: 0 0 18px rgba(255, 90, 90, .45);
}

.heroArrows {
    position: absolute;
    right: 26px;
    bottom: 26px;
    display: flex;
    gap: 10px;
    z-index: 6;
}

.arrowBtn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.arrowBtn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .70);
}

.arrowBtn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}

.arrowBtn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .95;
}

.heroDots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 6;
}

.heroDot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.heroDot.active {
    background: var(--orange2);
    border-color: rgba(255, 90, 90, .75);
    box-shadow: 0 0 18px rgba(255, 90, 90, .45);
    transform: scale(1.15);
}

/* ===== Big Typo ===== */
.bigWord {
    width: min(1320px, calc(100% - 56px));
    margin: 26px auto 0;
    font-weight: 1000;
    letter-spacing: -.05em;
    font-size: clamp(64px, 8.6vw, 150px);
    line-height: .92;
    color: transparent;
    background: linear-gradient(90deg, rgba(255, 46, 46, 1), rgba(255, 90, 90, 1));
    -webkit-background-clip: text;
    background-clip: text;
    transform: skewX(-6deg);
    user-select: none;
    opacity: .95;
}

/* ===== Layout helpers ===== */
.pageWrap {
    width: min(1320px, calc(100% - 56px));
    margin: 0 auto;
}

.section {
    margin-top: 28px;
}

.sectionHead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.sectionHead h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -.02em;
}

.sectionHead p {
    margin: 6px 0 0;
    color: #444;
    font-weight: 900;
    line-height: 1.9;
    max-width: 74ch;
}

/* ===== Roles cards ===== */
.roleGrid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.rCard {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius2);
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: var(--shadow2);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
    cursor: pointer;
}

.rCard:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .12);
}

.rCard::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .28s var(--ease);
    background:
        radial-gradient(520px 260px at 0% 0%, rgba(255, 46, 46, .18), transparent 60%),
        radial-gradient(520px 260px at 100% 0%, rgba(255, 90, 90, .16), transparent 60%);
}

.rCard:hover::after {
    opacity: 1;
}

.rTop {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #efefef;
    position: relative;
    z-index: 2;
}

.rType {
    font-weight: 1000;
    letter-spacing: .10em;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.rBadge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .08em;
    color: #111;
    background: linear-gradient(135deg, rgba(255, 46, 46, .14), rgba(255, 90, 90, .10));
    border: 1px solid rgba(255, 46, 46, .16);
    white-space: nowrap;
}

.rBody {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.rTitle {
    margin: 0;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.rLead {
    margin: 0;
    color: #444;
    font-size: 13px;
    font-weight: 900;
    line-height: 2.0;
}

.rTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.tag {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-weight: 1000;
    font-size: 11px;
    letter-spacing: .04em;
    color: #111;
}

.rFoot {
    margin-top: auto;
    padding: 14px 18px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.rLink {
    font-weight: 1000;
    letter-spacing: .06em;
    font-size: 12px;
    position: relative;
}

.rLink::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--orange2));
    transform: scaleX(.35);
    transform-origin: left;
    transition: transform .28s var(--ease);
    border-radius: 999px;
}

.rCard:hover .rLink::after {
    transform: scaleX(1);
}

.rOpen {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(255, 46, 46, .22);
    font-weight: 1000;
    cursor: pointer;
    user-select: none;
}

.rOpen:hover {
    background: linear-gradient(135deg, rgba(255, 46, 46, .10), rgba(255, 90, 90, .08));
}

/* ===== Flow ===== */
.flowGrid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: stretch;
}

.fCard {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 22px;
    box-shadow: var(--shadow2);
    padding: 16px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.fCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .10);
}

.fStep {
    font-weight: 1000;
    letter-spacing: .12em;
    font-size: 12px;
    color: #666;
}

.fTitle {
    margin: 8px 0 0;
    font-weight: 1000;
    font-size: 16px;
    letter-spacing: -.02em;
}

.fDesc {
    margin: 8px 0 0;
    color: #444;
    font-weight: 900;
    line-height: 1.9;
    font-size: 13px;
}

/* ===== CTA ===== */
.cta {
    width: min(1320px, calc(100% - 56px));
    margin: 22px auto 0;
    border-radius: var(--radius2);
    border: 1px solid #e5e5e5;
    background:
        radial-gradient(900px 450px at 18% 0%, rgba(255, 46, 46, .10), transparent 60%),
        radial-gradient(900px 450px at 85% 10%, rgba(255, 90, 90, .10), transparent 60%),
        #fff;
    box-shadow: var(--shadow);
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -.01em;
}

.cta p {
    margin: 8px 0 0;
    color: #333;
    font-size: 13px;
    line-height: 1.9;
    max-width: 74ch;
    font-weight: 900;
}

.ctaRight {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    background: rgba(0, 0, 0, .45);
}

.modal.isOpen {
    display: block;
}

.modalPanel {
    width: min(860px, calc(100% - 28px));
    margin: 92px auto 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.modal.isOpen .modalPanel {
    transform: translateY(0);
    opacity: 1;
}

.modalTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px;
    border-bottom: 1px solid #efefef;
}

.modalTop b {
    font-weight: 1000;
}

.modalClose {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-weight: 1000;
}

.modalClose:hover {
    background: #fafafa;
}

.modalBody {
    padding: 18px;
}

.modalLead {
    margin: 0;
    color: #333;
    font-weight: 900;
    line-height: 2.0;
}

.modalList {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.modalList li {
    padding: 12px 12px;
    border: 1px solid #efefef;
    background: #fafafa;
    border-radius: 18px;
    font-weight: 900;
    line-height: 1.9;
}

.modalCta {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== Reveal（layout.cssにあるなら削除OK） ===== */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .heroSlider {
        height: 420px;
    }

    .heroContent {
        left: 18px;
        bottom: 18px;
        width: calc(100% - 36px);
    }

    .heroArrows {
        right: 14px;
        bottom: 14px;
    }

    .heroDots {
        bottom: 16px;
    }

    .bigWord {
        transform: skewX(-4deg);
    }

    .roleGrid {
        grid-template-columns: 1fr;
    }

    .flowGrid {
        grid-template-columns: 1fr;
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {

    .rCard,
    .fCard,
    .viewMore,
    .arrowBtn,
    .modalPanel,
    .reveal {
        transition: none;
    }

    .heroTrack {
        transition: none;
    }
}