/* --- Career Produce Page Styles --- */

.page-career-produce {
    background-color: #fff;
}

/* --- Section General --- */
.career-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.career-section.l-bg-light {
    background-color: #f7f7f2;
}

.career-section.l-bg-beige {
    background-color: #f5f2ed;
}

.cp-combined {
    background-color: #fff;
}

.career-section.has-texture {
    background-image: url('../images/career_bg_texture.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.career-section.has-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.career-section.has-watermark::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 600px;
    height: 600px;
    background-image: url('../images/logo_f.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

/* --- Background Text (TOP Page Aesthetic Refined) --- */
.cp-bg-text {
    position: absolute;
    top: 60px;
    right: 5vw;
    left: auto;
    font-size: clamp(60px, 8vw, 100px);
    font-family: var(--font-eng);
    color: #F5F4F3;
    z-index: 1;
    pointer-events: none;
    line-height: 0.85;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
    text-align: right;
}

.cp-overview .cp-bg-text {
    top: 40px;
    /* Slight adjustment for overview */
}

.cp-grid-reverse .cp-bg-text {
    left: auto;
    right: 0;
    text-align: right;
}

.cp-content {
    position: relative;
    z-index: 2;
}

/* --- Grid Layouts --- */
.cp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.cp-overview-grid {
    grid-template-columns: 1fr 1fr;
}

.cp-grid-reverse {
    direction: ltr;
}

/* --- Visuals --- */
.cp-visual {
    width: 100%;
}

.cp-visual img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    opacity: 1 !important;
}

/* --- Combined Full-Width Section --- */
.cp-full-inner {
    padding: 0 5vw;
    width: 100%;
}

.cp-combined-grid {
    display: flex;
    flex-direction: column;
}

.cp-combined-item {
    position: relative;
    padding: 50px 0;
}

.cp-combined-item.has-watermark::after {
    bottom: 50px;
    right: 5vw;
}

.cp-combined-item .cp-content {
    max-width: 1400px;
    margin: 0 auto;
}

.cp-concept-header {
    margin-bottom: 50px;
}

.cp-concept-header .section-label {
    margin-bottom: 12px;
}

.cp-title-row {
    align-items: flex-start;
}

.cp-title-row .section-title {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.cp-title-row .cp-lead {
    margin: 0;
    font-size: clamp(18px, 2.3vw, 26px);
    line-height: 1.8;
}

/* --- Typography --- */
.cp-lead {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 25px;
    letter-spacing: 0.02em;
}

.cp-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-sub-text);
}

/* --- TYPE Cards (FOR YOU) --- */
.cp-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.cp-type-card {
    background: #fff;
    padding: 60px 45px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.cp-type-header {
    margin-bottom: 25px;
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-accent);
    letter-spacing: 0.3em;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 36px);
    color: var(--color-text);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* Centered Style (Large English, Small Japanese) */
.section-heading.is-centered {
    margin-bottom: 60px;
}

.section-heading.is-centered .section-label {
    font-family: var(--font-eng);
    font-size: clamp(48px, 12vw, 95px);
    color: #ae915c;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
    font-weight: 400;
    line-height: 1;
}

.section-heading.is-centered .section-title {
    font-size: 15px;
    color: var(--color-sub-text);
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
}

.cp-type-title {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
    font-weight: 600;
}

.cp-type-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-sub-text);
    margin: 0;
}

/* --- CONTACT Section --- */
.cp-contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cp-contact-heading {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.5vw, 26px);
    color: var(--color-text);
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.cp-contact-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-sub-text);
    margin-bottom: 60px;
    text-align: center;
}

.cp-contact-cta {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* --- Animations --- */
.career-section .cp-content {
    opacity: 0;
    transform: translateY(20px);
    animation: cpFadeIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes cpFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#career-overview .cp-content {
    animation-delay: 0.2s;
}

#career-what-we-do .cp-content {
    animation-delay: 0.3s;
}

#career-self-image .cp-content {
    animation-delay: 0.4s;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .career-section {
        padding: 60px 0;
    }

    .cp-grid,
    .cp-overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cp-bg-text {
        font-size: 80px;
        top: 0;
        transform: none;
        position: relative;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .cp-grid-reverse .cp-bg-text {
        text-align: left;
    }

    .cp-full-inner {
        padding: 0 var(--spacing-sm);
    }

    .cp-combined-item {
        padding: 45px 0;
    }

    .cp-type-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cp-type-card {
        padding: 30px 24px;
    }

    .career-section.has-texture {
        background-attachment: scroll;
    }

    .cp-bg-text {
        font-size: 60px;
        opacity: 0.5;
    }
}

/* SP: CAREER PRODUCE title — force word break at space (7th span) */
@media (max-width: 600px) {
    .page-career-produce .page-hero-title span:nth-child(7) {
        width: 100%;
        font-size: 0;
        height: 0.12em;
    }
}

@media (max-width: 480px) {
    .career-section {
        padding: 50px 0;
    }

    .cp-grid,
    .cp-overview-grid {
        gap: 30px;
    }

    .cp-combined-item {
        padding: 0;
    }

    .cp-bg-text {
        font-size: 48px;
    }
}