@charset "UTF-8";

/* ==========================================================================
   Recruit - Teamwork Page Styles
   Base Color: #FAFAFA (Off-white)
   Main Color: #1E3A8A (Navy)
   Accent Color: #D97706 (Woody Brown)
   ========================================================================== */

.l-teamwork-main {
    background-color: #fff;
}

/* --------------------------------------------------------------------------
   Common Section Headers
   -------------------------------------------------------------------------- */
.p-teamwork-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.p-teamwork-section-header__en {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1E3A8A;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.p-teamwork-section-header__jp {
    font-size: 1rem;
    font-weight: 500;
    color: #D97706;
    letter-spacing: 0.1em;
    margin-top: 5px;
}

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.p-teamwork-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.p-teamwork-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.p-teamwork-hero__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.p-teamwork-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Warm sepia-to-navy gradient overlay */
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(217, 119, 6, 0.5) 100%);
    mix-blend-mode: multiply;
}

.p-teamwork-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.p-teamwork-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.p-teamwork-hero__subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.u-display-sp {
    display: none;
}

.p-teamwork-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.p-teamwork-hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background-color: #fff;
    margin-top: 10px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -15px);
    }

    60% {
        transform: translate(-50%, -7px);
    }
}

@media screen and (max-width: 768px) {
    .p-teamwork-hero__img {
        background-attachment: scroll;
    }

    .p-teamwork-hero__title {
        font-size: 2rem;
    }

    .p-teamwork-hero__subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .u-display-sp {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   2. Synergy Section (Macro)
   -------------------------------------------------------------------------- */
.p-teamwork-macro {
    padding: 80px 0 100px;
}

.p-teamwork-macro__lead {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.p-teamwork-macro__cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.p-teamwork-card {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.p-teamwork-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.p-teamwork-card--ogawa {
    border-top-color: #1E3A8A;
}

/* Navy */
.p-teamwork-card--ace {
    border-top-color: #D97706;
}

/* Orange/Brown */
.p-teamwork-card--hitomi {
    border-top-color: #059669;
}

/* Green accent */

.p-teamwork-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.p-teamwork-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 5px;
}

.p-teamwork-card__role {
    display: inline-block;
    background-color: #FAFAFA;
    color: #D97706;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.p-teamwork-card__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .p-teamwork-macro__cards {
        flex-direction: column;
        gap: 20px;
    }

    .p-teamwork-card {
        padding: 30px 20px;
    }
}

/* --------------------------------------------------------------------------
   3. Micro Communication (Speech Bubbles)
   -------------------------------------------------------------------------- */
.p-teamwork-micro {
    padding: 100px 0;
    background-color: #fff;
    /* White background */
}

.p-teamwork-micro__lead {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.p-teamwork-chat {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.p-teamwork-chat__row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.p-teamwork-chat__row--right {
    justify-content: flex-end;
}

.p-teamwork-chat__avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}

.p-teamwork-chat__avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.p-teamwork-chat__name {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

.p-teamwork-chat__bubble {
    position: relative;
    max-width: 70%;
    padding: 20px 25px;
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    /* For JS Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}

.p-teamwork-chat__bubble.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.p-teamwork-chat__bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.p-teamwork-chat__row--left .p-teamwork-chat__bubble {
    background-color: #fff;
    color: #333;
    border-top-left-radius: 0;
}

.p-teamwork-chat__row--left .p-teamwork-chat__bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 15px solid #fff;
    border-left: 15px solid transparent;
}

.p-teamwork-chat__row--right .p-teamwork-chat__bubble {
    background-color: #1E3A8A;
    color: #fff;
    border-top-right-radius: 0;
}

.p-teamwork-chat__row--right .p-teamwork-chat__bubble::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 15px solid #1E3A8A;
    border-right: 15px solid transparent;
}

@media screen and (max-width: 768px) {
    .p-teamwork-chat__bubble {
        max-width: calc(100% - 100px);
        padding: 15px;
        font-size: 0.95rem;
    }

    .p-teamwork-chat__avatar {
        width: 60px;
    }

    .p-teamwork-chat__avatar img {
        width: 50px;
        height: 50px;
    }
}

/* --------------------------------------------------------------------------
   Support Section (Never alone)
   -------------------------------------------------------------------------- */
.p-teamwork-support {
    padding: 100px 0;
}

.p-teamwork-support__lead {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.p-teamwork-support__grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.p-teamwork-support__card {
    flex: 1;
    background-color: #fff;
    border: 2px solid #e0e6f2;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.p-teamwork-support__card:hover {
    transform: translateY(-5px);
    border-color: #1E3A8A;
    /* Navy */
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.08);
}

.p-teamwork-support__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.p-teamwork-support__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 15px;
}

.p-teamwork-support__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .p-teamwork-support__grid {
        flex-direction: column;
        gap: 20px;
    }

    .p-teamwork-support__card {
        padding: 30px 20px;
    }
}

/* --------------------------------------------------------------------------
   4. Gallery Section (Masonry)
   -------------------------------------------------------------------------- */
.p-teamwork-gallery {
    padding: 100px 0;
}

.p-teamwork-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.p-teamwork-masonry__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    grid-column: span 4;
    grid-row: span 1;
}

.p-teamwork-masonry__item--large {
    grid-column: span 8;
    grid-row: span 2;
}

.p-teamwork-masonry__item--wide {
    grid-column: span 8;
    grid-row: span 1;
}

/* Adjustments for specific layout to look like masonry using grid */
.p-teamwork-masonry__item:nth-child(2) {
    grid-column: span 4;
    grid-row: span 2;
}

.p-teamwork-masonry__item:nth-child(3) {
    grid-column: span 4;
}

.p-teamwork-masonry__item:nth-child(5) {
    grid-column: span 4;
}

.p-teamwork-masonry__item:nth-child(6) {
    grid-column: span 4;
}

.p-teamwork-masonry__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-teamwork-masonry__item:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .p-teamwork-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .p-teamwork-masonry__item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .p-teamwork-masonry__item--large {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }

    .p-teamwork-masonry__item--wide {
        grid-column: span 2 !important;
    }
}

/* --------------------------------------------------------------------------
   Back Button Area
   -------------------------------------------------------------------------- */
.p-teamwork-back {
    padding: 0 0 100px;
    text-align: center;
}
