/* Ensure iframe fills the video wrapper */
.careers-video__iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}
/* ====================================
   Careers Page Styles
   ==================================== */

/* Variables */
:root {
    --ut-navy: #312d96;
    --main-navy: #061840;
    --ut-text: #231e1f;
    --ut-gray: #4c4c4c;
    --light-gray: #b2b2b2;
}

/* Page Container */
.careers-page {
    padding-top: 78px;
    background: linear-gradient(to bottom, #ffffff, #efefef);
}

/* ====================================
   Hero Section
   ==================================== */
.careers-hero {
    position: relative;
    width: 100%;
}

.careers-hero__title {
    font-family: 'Futura', sans-serif;
    font-weight: 500;
    font-size: 35px;
    background: linear-gradient(90deg, #492b91 0%, #e70769 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: normal;
    margin: 0;
    padding: 20px 0 20px 60px;
}

.careers-hero__visual {
    position: relative;
    width: 100%;
    height: 474px;
    background-color: #fff;
    overflow: hidden;
}

.careers-hero__bg {
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    min-width: 1299px;
    height: 722px;
    object-fit: cover;
    object-position: center;
}

.careers-hero__overlay {
    position: absolute;
    top: -6px;
    left: -55px;
    width: 1146px;
    height: 482px;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 62.963%);
    pointer-events: none;
}

.careers-hero__text {
    position: absolute;
    top: 50%;
    left: 7.81%;
    transform: translateY(-50%);
    z-index: 2;
}

.careers-hero__text-line1 {
    font-family: 'A-OTF Gothic MB101 Pr6N', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 39px;
    line-height: 63px;
    color: #0f2459;
    margin: 0;
}

.careers-hero__text-line2 {
    font-family: 'A-OTF Gothic MB101 Pr6N', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 39px;
    line-height: 63px;
    background: linear-gradient(90deg, #492b91 0%, #e70769 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* ====================================
   Video Section (below hero)
   ==================================== */
.careers-video {
    position: relative;
    max-width: 1280px;
    margin: 56px auto 0;
    padding: 0 60px;
}

.careers-video__title {
    font-family: 'Futura', sans-serif;
    font-weight: 500;
    font-size: 35px;
    background: linear-gradient(90deg, #452b92 0%, #f00466 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 75px;
    margin: 0;
}

.careers-video__wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 0;
    overflow: hidden;
}

.careers-video__container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.careers-video__video {
    width: 100%;
    height: 100%;
}

.careers-video__play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1;
}

.careers-video__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.careers-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 127px;
    height: 127px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.careers-video__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ====================================
   CAREER OPPORTUNITIES Section
   ==================================== */
.careers-opportunities {
    margin-top: 110px;
    margin-bottom: 110px;
    padding: 0 60px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.careers-opportunities__title {
    font-family: 'Futura', sans-serif;
    font-weight: 500;
    font-size: 35px;
    background: linear-gradient(90deg, #452b92 0%, #f00466 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 75px;
    margin: 0 0 40px 0;
}

.careers-opportunities__card {
    background: #fff;
    border-radius: 30px;
    padding: 32px 0;
    overflow: hidden;
}

.careers-opportunities__tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
}

.careers-opportunities__tab {
    font-family: 'A-OTF Gothic MB101 Pr6N', 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 27px;
    color: var(--light-gray);
    padding: 0 10px 10px;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    transition: color 0.3s ease;
}

.careers-opportunities__tab--active {
    background: linear-gradient(90deg, #472b92 5.97%, #eb0567 94.03%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.careers-opportunities__tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, #452b92 0%, #f90263 100%);
}

.careers-opportunities__panel {
    display: none;
}

.careers-opportunities__panel--active {
    display: block;
}

.careers-opportunities__header {
    padding: 0 132px;
    margin-bottom: 40px;
}

.careers-opportunities__header-title {
    font-family: 'Futura', sans-serif;
    font-weight: 500;
    font-size: 80px;
    line-height: 85px;
    background: linear-gradient(90deg, #452b92 0%, #f00466 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.careers-opportunities__content {
    padding: 0 132px;
}

.careers-opportunities__row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.careers-opportunities__row:last-child {
    border-bottom: none;
}

.careers-opportunities__label {
    flex: 0 0 200px;
    font-family: 'A-OTF Gothic MB101 Pr6N', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 27px;
    color: var(--light-gray);
}

.careers-opportunities__value {
    flex: 1;
    font-family: 'A-OTF Gothic MB101 Pr6N', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 27px;
    color: var(--ut-gray);
}

/* Application Button Wrapper */
.careers-opportunities__button-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 132px;
}

/* Application Button */
.careers-opportunities__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 40px 0 0;
    padding: 16px 48px;
    font-family: 'A-OTF Gothic MB101 Pr6N', 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 27px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.careers-opportunities__button--active {
    background: linear-gradient(90deg, #312d96 0%, #fd0162 100%);
    color: #ffffff;
}

.careers-opportunities__button--active:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 45, 150, 0.3);
}

.careers-opportunities__button svg {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.careers-opportunities__button--active svg {
    width: 11px;
    height: 16px;
}

.careers-opportunities__button--disabled {
    background: #e0e0e0;
    color: #999999;
    cursor: not-allowed;
}

.careers-opportunities__button--disabled:hover {
    transform: none;
}

/* ====================================
   Join Our Team CTA Section
   ==================================== */
.careers-cta {
    margin-top: 100px;
    background: linear-gradient(90deg, #2e2e97 0%, #ff0061 146.21%);
    position: relative;
    height: 540px;
    overflow: hidden;
}

.careers-cta__content {
    position: relative;
    z-index: 2;
    padding: 30px 60px;
    max-width: 600px;
}

.careers-cta__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.careers-cta__title {
    font-family: 'Futura', sans-serif;
    font-weight: 500;
    font-size: 35px;
    color: #fff;
    margin: 0;
    letter-spacing: -0.7px;
}

.careers-cta__subtitle {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.careers-cta__main-title {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 600;
    font-size: 60px;
    color: #fff;
    margin: 15px 0 20px;
    white-space: nowrap;
}

.careers-cta__desc {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: #fff;
    margin: 0 0 40px;
}

.careers-cta__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 175px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: transparent;
    text-decoration: none;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.careers-cta__button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.careers-cta__button-arrow {
    width: 32px;
    height: 24px;
    transform: rotate(180deg);
}

.careers-cta__button-text {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #fff;
}

.careers-cta__people {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    z-index: 1;
}

.careers-cta__slider {
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 0;
    padding: 30px 0;
}

.careers-cta__people-cards {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.careers-cta__pagination {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--ut-navy);
    border-radius: 6px 0 0 0;
    padding: 15px 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* New Member Badge */
.careers-heading-wrapper {
    position: relative;
    display: inline-block;
}

.new-member-badge {
    font-family: 'Charmonman', cursive;
    font-size: 40px;
    color: #ff0061;
    position: absolute;
    top: -30px;
    left: 250px;
    transform: rotate(-12.9deg);
    white-space: nowrap;
}

/* ====================================
   Tablet Styles (768px – 1219px)
   ==================================== */
@media (min-width: 768px) and (max-width: 1219px) {
    .careers-video {
        margin: 56px auto 0;
    }

    .careers-video__title {
        font-size: 35px;
        line-height: 75px;
        margin: 0 0 40px 0;
    }

    .careers-video__wrapper {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .careers-video__play-overlay {
        width: 100px;
        height: 100px;
    }

    /* Add margin to prevent overlap with fixed back-to-top button on the right */
    .people-slider-nav {
        margin-right: 50px;
    }
}

/* Extend margin for slightly larger screens */
@media (min-width: 1220px) and (max-width: 1370px) {
    .people-slider-nav {
        margin-right: 60px;
    }
}

/* ====================================
   Mobile Styles (max-width: 767px)
   ==================================== */
@media (max-width: 767px) {
    .careers-page {
        padding-top: 51px;
    }

    /* Hero Section */
    .careers-hero__title {
        font-size: 35px;
        padding: 12px 16px;
    }

    .careers-hero__visual {
        height: 424px;
    }

    .careers-hero__bg {
        top: 0;
        left: -480px;
        width: 800px;
        height: 100%;
        object-fit: contain;
        max-width: none;
    }

    .careers-hero__overlay {
        display: none;
    }

    .careers-hero__text {
        position: absolute;
        bottom: 40px;
        top: auto;
        left: 16px;
        right: 16px;
        transform: none;
    }

    .careers-hero__text-line1 {
        font-size: 24px;
        line-height: 40px;
    }

    .careers-hero__text-line2 {
        font-size: 24px;
        line-height: 40px;
    }

    /* White gradient overlay from bottom to top for SP */
    .careers-hero__visual::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.4) 75%, rgba(255, 255, 255, 0.15) 90%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
    }

    /* Video Section */
    .careers-video {
        margin: 40px auto 0;
        padding: 0 16px;
    }

    .careers-video__title {
        font-size: 35px;
        line-height: 32px;
        margin: 0 0 30px 0;
    }

    .careers-video__wrapper {
        aspect-ratio: 16/9;
        height: auto;
    }

    .careers-video__play-overlay {
        width: 70px;
        height: 70px;
    }

    .careers-video__play {
        width: 60px;
        height: 60px;
    }

    /* PEOPLE Section */
    .careers-people {
        margin-top: 80px;
        padding: 0 18px;
    }

    .careers-people__title {
        font-size: 35px;
        line-height: 32px;
        margin-bottom: 30px;
    }

    .careers-people__slider {
        flex-direction: column;
        gap: 15px;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 0;
        margin-right: 0;
        padding-right: 0;
    }

    /* Show only first 3 cards on mobile; clones are never rendered on SP */
    .people-card:nth-child(n+4),
    .people-card-clone {
        display: none;
    }

    .people-card {
        width: 100%;
        height: 130px;
    }

    .people-card__image {
        width: 100px;
        height: 130px;
    }

    .people-card__content {
        padding: 15px;
    }

    .people-card__name {
        font-size: 16px;
    }

    .people-card__role {
        font-size: 10px;
    }

    .people-card__date {
        font-size: 12px;
        line-height: 18px;
    }

    .people-card__corner {
        border-width: 0 0 40px 40px;
    }

    .people-card__arrow {
        bottom: 6px;
        right: 6px;
    }

    .people-card__arrow svg {
        width: 14px;
        height: 14px;
    }

    .people-slider-nav {
        display: none;
    }

    .people-more-btn {
        display: flex;
        margin-left: auto;
        margin-right: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* CULTURE Section */
    .careers-culture {
        margin-top: 80px;
        padding: 0 16px;
    }

    .careers-culture__title {
        font-size: 35px;
        margin-bottom: 40px;
    }

    .careers-culture__grid {
        gap: 40px;
    }

    .careers-culture__row {
        flex-direction: column;
        gap: 40px;
    }

    .careers-culture__item {
        width: 100%;
    }

    .careers-culture__icon {
        width: 100px;
        height: 100px;
    }

    .careers-culture__item-title {
        font-size: 18px;
    }

    .careers-culture__item-desc {
        font-size: 14px;
        line-height: 24px;
    }

    /* CAREER OPPORTUNITIES Section */
    .careers-heading-wrapper {
        margin-bottom: 0;
    }

    .careers-opportunities {
        margin-top: 80px;
        padding: 0 16px;
    }

    .careers-opportunities__title {
        line-height: 40px;
        margin-bottom: 30px;
    }

    .careers-opportunities__card {
        border-radius: 16px;
        padding: 20px 0;
    }

    .careers-opportunities__header {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .careers-opportunities__header-title {
        font-size: 40px;
        line-height: 50px;
    }

    .careers-opportunities__content {
        padding: 0 20px;
    }

    .careers-opportunities__row {
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }

    .careers-opportunities__label {
        flex: none;
        font-size: 14px;
    }

    .careers-opportunities__value {
        font-size: 14px;
        line-height: 24px;
    }

    .careers-opportunities__button-wrapper {
        padding: 0 16px;
        display: flex;
        justify-content: center;
    }

    .careers-opportunities__button {
        width: auto;
        padding: 14px 48px;
        font-size: 16px;
        line-height: 24px;
        margin: 30px auto 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
    }

    .careers-opportunities__button svg {
        right: 16px;
    }

    .careers-opportunities__button--active svg {
        width: 9px;
        height: 14px;
    }

    /* Join Our Team CTA Section */
    .careers-cta {
        margin-top: 60px;
        height: auto;
        padding-bottom: 200px;
    }

    .new-member-badge {
        font-size: 24px;
        top: -20px;
        left: 150px;
    }

    .careers-cta__content {
        padding: 30px 16px;
        max-width: 100%;
    }

    .careers-cta__title {
        font-size: 28px;
    }

    .careers-cta__subtitle {
        font-size: 12px;
    }

    .careers-cta__main-title {
        font-size: 32px;
        white-space: normal;
    }

    .careers-cta__desc {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .careers-cta__button {
        width: 150px;
        height: 35px;
    }

    .careers-cta__button-text {
        font-size: 14px;
    }

    .careers-cta__people {
        position: absolute;
        right: -50px;
        top: auto;
        bottom: 0;
        height: 200px;
        width: auto;
    }

    .careers-cta__slider {
        display: none;
    }
}

/* ====================================
   Footer Section (same as other pages)
   ==================================== */
.careers-footer {
    background: #fff;
    padding: 60px 0 30px;
}
