/* recruit.css - Recruitment Page Styles */

/* Hero */
.recruit-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    /* Adjusted background-position to 'center 40%' to prevent 'namakubi' look by showing more body */
    background: url('../images/recruit_hero_new.jpg') center 50%/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.recruit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(59, 130, 246, 0.4));
}

.recruit-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px; /* Add padding to avoid overlap with cards */
}

.recruit-section {
    padding: 100px 0; /* Increased padding */
}

/* Category Cards */
.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Increased gap */
    margin-top: 0; /* Removed overlap to create gap */
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 0 0 40px; /* Increased bottom padding */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.job-card:hover {
    transform: translateY(-8px);
}

.job-card-header {
    background: #e2e8f0;
    color: var(--text-main);
    font-weight: 700;
    padding: 20px; /* Increased padding */
    font-size: 1.15rem;
    border-bottom: 4px solid var(--primary);
    line-height: 1.4;
}

.job-card-img {
    font-size: 4.5rem;
    color: var(--primary);
    padding: 40px 0; /* Increased vertical padding */
    background: #f8fafc;
}

.job-title-center {
    font-size: 1.3rem;
    font-weight: 700;
    color: #cc0033;
    margin: 25px 0 15px; /* Increased margins */
}

.job-desc {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0 30px; /* Increased side padding */
    line-height: 1.8; /* improved line-height */
}

/* Benefits Section */
.section-benefits {
    background: #475569; /* Dark background per image ribbon concept */
    padding-top: 100px; /* Space for cards */
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.section-benefits::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    transform: skewY(-2deg);
}

.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.benefit-item {
    background: #fff;
    border-radius: 50%; /* Circle look or rounded card? Image shows icons over text. Let's do cards. */
    border-radius: 15px;
    width: 300px;
    padding: 30px;
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    color: #1e3a8a; /* Deep blue */
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e3a8a;
}

/* Vision / Message - Revised */
.vision-box {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 60px 40px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 2px solid #e2e8f0;
    /* Previous arrow styles removed */
}

/* Vision Section Styling - Reset */
.section-vision {
    background-color: #f1f5f9; /* Thin Gray Background */
    padding-bottom: 80px;
    position: relative;
    /* Removed clip-path to avoid double background issues */
}

.vision-tagline {
    position: absolute;
    top: -25px; /* Boxの上に飛び出させる */
    left: 50%;
    transform: translateX(-50%);
    background: #cc0033;
    color: #fff;
    white-space: normal; /* Allow text to wrap on small screens */
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(204, 0, 51, 0.3);
    width: auto;
    max-width: 90%; /* Keep max-width */
    z-index: 10;
    line-height: 1.4; /* Improve readability when wrapped */
}

.br-sp-tagline {
    display: none;
}

@media (max-width: 480px) {
    .vision-tagline {
        font-size: 1.1rem; /* Smaller font on very small screens */
        padding: 10px 20px;
        width: 85%; /* Ensure it fits within screen */
    }
    .br-sp-tagline {
        display: inline !important;
    }
}

.vision-checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.vision-checklist li {
    font-size: 1.1rem;
    font-weight: 700;
    color: #cc0033;
    background: #fff3f3;
    padding: 10px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

.vision-checklist li i {
    margin-right: 8px;
    font-size: 1.2em;
}

.vision-text {
    text-align: left;
    font-size: 1.05rem;
    line-height: 2;
    color: #334155;
    background: transparent;
    padding: 0 20px;
}

/* Requirements */
.section-requirements {
    background: #fff;
    padding-top: 150px; /* Increased padding top for the arrow shape */
    margin-top: -80px; /* Pull up to overlap the gray section above */
    position: relative;
    z-index: 5;
    /* Create 'Valley Fold' (V-shape cutout) at the top */
    /* This makes the gray section above look like a downward arrow */
    clip-path: polygon(0 0, 50% 80px, 100% 0, 100% 100%, 0 100%);
}

.requirements-header {
    background: #1e3a8a;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    width: 250px;
    margin: 0 auto 40px;
}

.requirements-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.req-table {
    flex: 1;
    min-width: 300px;
    width: 100%;
    border-collapse: collapse;
}

.req-table th, .req-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.req-table th {
    width: 30%;
    color: #1e3a8a;
    font-weight: 700;
    background: #f1f5f9;
}

.salon-req-box {
    flex: 1;
    min-width: 300px;
    background: #fff0f5; /* Light pink for salon section */
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #fbcfe8;
}

.salon-req-box h3 {
    font-size: 1.1rem;
    color: #d12e69; /* Pinkish red */
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(209, 46, 105, 0.3);
    padding-bottom: 10px;
}

.salon-table th {
    background: rgba(255,255,255,0.5);
    color: #d12e69;
}

/* Footer Entry */
.entry-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    text-align: center;
    margin-top: 40px;
}

.contact-card {
    background: #fff;
    display: inline-block;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.phone-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.contact-person {
    font-size: 1rem;
    font-weight: 500;
    vertical-align: middle;
}

.contact-address {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-link {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

/* Global fix for horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {
    .recruit-hero h1 { 
        font-size: 2rem;
        line-height: 1.3;
        margin-top: 10px;
    }
    .recruit-hero-content {
        padding: 0 15px; /* Add side padding for safety */
        width: 100%; /* Ensure container respects width */
        box-sizing: border-box;
    }
    .hero-sub {
        font-size: 1.1rem !important; /* Force smaller size */
    }
    
    .phone-number { 
        font-size: 1.5rem; 
        display: flex; /* Flex container to control flow */
        flex-direction: column; /* Force stack */
        align-items: center; /* Center align items */
    }
    
    .contact-card { 
        padding: 30px 20px; 
        width: 100%; 
        box-sizing: border-box;
    }
    
    /* Make contact person detail break line on mobile */
    .contact-person {
        display: block !important;
        width: 100%;
        margin-top: 5px;
        font-size: 0.9rem;
    }

    .benefit-item { width: 100%; }
    
    .req-table th, .req-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .req-table th {
        background: transparent;
        border-bottom: none;
        padding-bottom: 5px;
        color: #1e3a8a;
    }
}
