/* ==========================================================================
   --- EXPLICIT MASTER FONT IMPORT (PREVENTS TYPOGRAPHIC DROPOUTS) ---
   ========================================================================== */
/* Variable Font Import: Downloads the entire range seamlessly */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;600;700;800&family=Work+Sans:wght@100;200;300;400;500;600;700;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 nav links (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;
}

/* ==========================================================================
   --- UNIFIED SHARED INTRO SIZING RULES (Career & Contact Pages) ---
   ========================================================================== */
.rejuice-intro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px 60px 60px;
}

/* Fixes the tiny label text sizes and spreads them perfectly to the left and right corners */
.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;
}

/* Fixes the giant headline text block for both pages */
.career-main .intro-large-text,
.contact-main .intro-large-text {
    font-family: var(--font-eng);
    font-weight: 700;
    font-size: 42px !important;
    line-height: 1.5 !important;
    letter-spacing: 1px;
    max-width: 1100px;
    color: var(--color-white) !important;
}

/* ==========================================================================
   --- CONTACT PAGE INPUT STYLES (DARK EDITORIAL) ---
   ========================================================================== */
.contact-main {
    background-color: var(--color-black) !important;
    padding: 120px 0;
    color: var(--color-white) !important;
    width: 100%;
}

.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label {
    font-family: var(--font-eng), var(--font-jp);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.form-label .req {
    color: var(--color-orange);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    color: var(--color-white);
    font-family: var(--font-jp), var(--font-eng);
    font-size: 16px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    color: #FFFFFF;
    cursor: pointer;
}

.form-select option {
    background-color: #111111;
    color: var(--color-white);
}

.form-input:focus {
    border-color: var(--color-orange);
}

.form-submit-row {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.form-submit-btn {
    background-color: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: 18px 50px;
    font-family: var(--font-eng);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.form-submit-btn:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   --- 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;
}

/* ==========================================================================
   --- CORRECTED SYSTEM GLOBAL MOBILE RESPONSIVENESS (NO BROKEN CODE) ---
   ========================================================================== */
@media (max-width: 768px) {

    /* Top Header Squish Repair */
    .hero-top {
        padding: 30px 20px 40px 20px !important;
        min-height: 50vh !important;
    }

    /* Stack Nav & Branding Blocks cleanly vertically */
    .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;
    }

    /* Safely wrap address elements on tight viewports */
    .contact-mini,
    .contact-mini p:last-child {
        font-size: 13px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.5px !important;
    }

    /* Prevent Nav bar targets from flying off the right side frame */
    .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;
    }

    /* Smooth Dynamic Sizing for Section Header Title */
    .main-logo {
        font-size: 14vw !important;
        line-height: 1.0 !important;
    }

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

    /* Fixed Contact Intro Typography Scalers */
    .rejuice-intro {
        padding: 60px 24px 40px 24px !important;
    }

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

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

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

    /* Contact Form Formats */
    .contact-form-section {
        padding: 0 24px !important;
    }

    .minimal-form {
        gap: 30px !important;
    }

    .form-submit-btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* Bottom Footer Rescalers */
    .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;
    }
}