/* Variable Font Import: Downloads the entire range from 100 to 800 seamlessly */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..800&family=Work+Sans:wght@100..800&display=swap');

:root {
    --color-orange: #FF4306;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --font-eng: 'Work Sans', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ==========================================================================
   --- HERO TOP SECTION (ORANGE) ---
   ========================================================================== */
.hero-top {
    background-color: var(--color-orange);
    color: var(--color-black);
    padding: 40px 60px 80px 60px;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.brand-name {
    font-family: var(--font-eng);
    font-weight: 800;
    font-size: 35px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 20px;
}

.contact-mini {
    font-family: var(--font-eng);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-mini p:last-child {
    font-family: var(--font-jp);
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 1px;
}

.header-right ul {
    list-style: none;
    text-align: right;
}

.header-right ul li {
    margin-bottom: 8px;
}

/* Base style for the link (Standard state: Black text, hidden line) */
.header-right ul li a {
    text-decoration: none;
    color: var(--color-black);
    font-family: var(--font-eng);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
    transition: color 0.2s ease;
}

/* The underline wrapper (White by default, starts shrunk at 0 width) */
.header-right ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-white);
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}

/* Hover / Touch focus states (Turns text white + slides the line out) */
.header-right ul li a:hover,
.header-right ul li a:focus,
.header-right ul li a:active {
    color: var(--color-white);
}

.header-right ul li a:hover::after,
.header-right ul li a:focus::after,
.header-right ul li a:active::after {
    transform: scaleX(1);
}

/* The Current Page State (Locks both text and line as solid white permanently) */
.header-right ul li a.active {
    color: var(--color-white) !important;
}

.header-right ul li a.active::after {
    transform: scaleX(1) !important;
}

.hero-main-title {
    margin-top: auto;
    padding-top: 60px;
}

.subtitle {
    font-family: var(--font-jp);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.main-logo {
    font-family: var(--font-eng);
    font-weight: 700;
    font-size: clamp(5rem, 15vw, 20rem);
    line-height: 0.9;
    letter-spacing: -2px;
}

/* ==========================================================================
   --- MIDDLE IMAGE BANNER (GIF FULL WIDTH FIX) ---
   ========================================================================== */
.hero-banner-img {
    background-image: url('https://i.postimg.cc/qqJjXCpT/IMG-27401-ezgif-com-optimize-(1).gif');
    background-size: cover;
    background-position: center;
    height: 450px;
    width: 100vw;
    max-width: 100%;
    display: block !important;
    clear: both;
}

/* ==========================================================================
   --- INNER INTRO BANNER AREA (CAREER / CONTACT / SERVICE) ---
   ========================================================================== */
.rejuice-intro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px 60px 60px;
}

.career-main,
.contact-main,
.service-main {
    background-color: var(--color-black) !important;
    padding: 120px 0;
    color: var(--color-white) !important;
    width: 100%;
}

.career-main .intro-meta-row,
.contact-main .intro-meta-row,
.career-main .grid-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: var(--font-eng);
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.5;
    color: #888888 !important;
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.career-main .intro-large-text,
.contact-main .intro-large-text {
    font-family: var(--font-jp), var(--font-eng);
    font-weight: 700;
    font-size: 42px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.5px;
    max-width: 1100px;
    color: var(--color-white) !important;
}

.eng-sub-statement {
    display: block;
    font-family: var(--font-eng);
    font-size: 32px !important;
    font-weight: 400;
    color: #888888 !important;
    margin-top: 16px;
    letter-spacing: 0px;
}

/* ==========================================================================
   --- CAPSULE CARD STRUCTURES ---
   ========================================================================== */
.career-columns.capsule-layout {
    max-width: 1400px;
    margin: 60px auto 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.capsule-card {
    flex: 1.2;
    position: relative;
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 1000px;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.capsule-card:hover {
    border-color: var(--color-orange);
    transform: translateY(-2px);
}

.capsule-badge {
    position: absolute;
    top: 40px;
    right: -18px;
    background-color: var(--color-white);
    color: var(--color-black);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-eng);
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.capsule-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.capsule-arrow-icon {
    font-family: var(--font-eng);
    font-weight: 700;
    font-size: 55px;
    line-height: 1;
    margin-bottom: 20px;
}

.text-yellow {
    color: #FFC000 !important;
}

.text-orange-pop {
    color: var(--color-orange) !important;
}

.capsule-main-heading {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-white) !important;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.capsule-sub-label {
    font-family: var(--font-eng);
    font-size: 13px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.capsule-details {
    max-width: 290px;
    text-align: left;
}

.capsule-details .card-paragraph-jp {
    color: #E0E0E0 !important;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.capsule-details .career-list-minimal {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capsule-details .career-list-minimal li {
    font-family: var(--font-jp);
    color: #CCCCCC !important;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.capsule-details .career-list-minimal li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
}

.rejuice-underline-link {
    font-family: var(--font-eng);
    color: var(--color-white) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    border-bottom: 2px solid var(--color-white) !important;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.rejuice-underline-link:hover {
    color: var(--color-orange) !important;
    border-color: var(--color-orange) !important;
}

.career-main .grid-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 100px auto 30px auto;
    padding: 0 40px;
    font-family: var(--font-eng);
}

.career-main .grid-meta-row .meta-left {
    font-size: 22px !important;
    font-weight: 600;
    color: var(--color-white) !important;
    letter-spacing: 0.5px;
    text-transform: none;
}

.career-main .grid-meta-row .meta-right {
    font-size: 20px !important;
    font-weight: 500;
    color: var(--color-orange) !important;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   --- BOTTOM FOOTER SECTION (BLACK) ---
   ========================================================================== */
.footer-bottom {
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
    padding: 0 60px 30px 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 100px 0 120px 0;
}

.footer-left h2 {
    font-family: var(--font-eng);
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 4rem);
    line-height: 1.3;
    letter-spacing: 1px;
}

.footer-left h2 a {
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-eng);
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 4rem);
    line-height: 1.3;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.footer-left h2 a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-white);
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}

.footer-left:hover h2 a,
.footer-left:focus-within h2 a {
    color: var(--color-white);
}

.footer-left:hover h2 a::after,
.footer-left:focus-within h2 a::after {
    transform: scaleX(1);
}

.instagram-link {
    font-family: var(--font-eng);
    color: var(--color-white);
    text-decoration: none;
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.instagram-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-white);
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}

.instagram-link:hover,
.instagram-link:focus,
.instagram-link:active {
    color: var(--color-white);
}

.instagram-link:hover::after,
.instagram-link:focus::after,
.instagram-link:active::after {
    transform: scaleX(1);
}

.footer-sub-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding-top: 20px;
}

.bottom-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-eng);
    font-size: 13px;
    font-weight: 300;
    margin-right: 20px;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.bottom-nav a:hover,
.bottom-nav a:focus,
.bottom-nav a:active {
    opacity: 1;
}

.copyright p {
    font-family: var(--font-eng);
    font-size: 13px;
    font-weight: 300;
    margin-right: 20px;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* ==========================================================================
   --- SYSTEM PRECISED GLOBAL RESPONSIVE MOBILE ADJUSTMENTS ---
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Fix mobile content canvas squish from image.png */
    .hero-top {
        padding: 30px 20px 40px 20px !important;
        min-height: 50vh !important;
    }

    /* 2. Re-arrange top headers into clean vertical columns */
    .hero-header {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 25px !important;
    }

    .brand-name {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }

    /* 3. Wrap long text chains safely */
    .contact-mini,
    .contact-mini p:last-child {
        font-size: 13px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.5px !important;
    }

    /* 4. Layer navigation targets across screen width boundaries safely */
    .header-right {
        width: 100% !important;
        margin-top: 5px !important;
    }

    .header-right ul {
        text-align: left !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 15px 20px !important;
    }

    .header-right ul li {
        margin-bottom: 0 !important;
    }

    .header-right ul li a {
        font-size: 14px !important;
        padding-bottom: 4px !important;
    }

    /* 5. Liquid screen scale adjustments for large banners */
    .main-logo {
        font-size: 14vw !important;
        line-height: 1.0 !important;
    }

    .hero-main-title {
        padding-top: 40px !important;
    }

    /* 6. General Page Structure Mobile Cushions */
    .rejuice-intro {
        padding: 60px 24px 40px 24px !important;
    }

    .career-main,
    .contact-main,
    .service-main {
        padding: 60px 0 !important;
    }

    .career-main .intro-meta-row,
    .contact-main .intro-meta-row {
        font-size: 13px !important;
        margin-bottom: 30px !important;
    }

    .career-main .intro-large-text,
    .contact-main .intro-large-text {
        font-size: 26px !important;
        line-height: 1.4 !important;
    }

    .eng-sub-statement {
        font-size: 18px !important;
        margin-top: 10px !important;
    }

    /* 7. Grid Subtitle Element Splits */
    .career-main .grid-meta-row {
        flex-direction: row !important;
        padding: 0 24px !important;
        margin-top: 40px !important;
        margin-bottom: 20px !important;
    }

    .career-main .grid-meta-row .meta-left {
        font-size: 16px !important;
    }

    .career-main .grid-meta-row .meta-right {
        font-size: 15px !important;
    }

    /* 8. Collapse Capsule Layouts smoothly into structured rows */
    .career-columns.capsule-layout {
        flex-direction: column !important;
        gap: 50px !important;
        padding: 0 24px !important;
    }

    .capsule-card {
        min-height: auto !important;
        padding: 50px 30px !important;
        border-radius: 40px !important;
        /* Converts vertical capsules into round-edged safe text containers */
    }

    .capsule-badge {
        right: 30px !important;
        top: -18px !important;
    }

    /* 9. Bottom Footer Elements Layout Wrapper */
    .footer-bottom {
        padding: 0 24px 20px 24px !important;
    }

    .footer-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 40px !important;
        padding: 60px 0 !important;
    }

    .footer-sub-links {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
}