/*
 * 採用情報ページのスタイル
 * Recruitment Page Styles
 */

/* ========================================
   ヒーローセクション
   ======================================== */

.recruitment-hero {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    width: 100%;
}

.recruitment-hero .hero-background {
    position: relative;
    background-image: url('../images/background06.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-3xl) 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.recruitment-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.recruitment-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.recruitment-hero .hero-title {
    font-size: 4rem;
    color: var(--color-text-white);
    font-weight: 800;
    font-family: var(--font-family-en);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1.2;
    margin-top: 0;
}

.recruitment-hero .subtitle {
    font-size: 1.5rem;
    color: var(--color-text-white);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ========================================
   採用情報コンテンツ
   ======================================== */

/* 採用情報固定ページのスタイル */
.recruitment-content-static {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.recruitment-intro {
    margin-bottom: 4rem;
    text-align: left;
}

.recruitment-intro .section-subtitle {
    font-size: 1.8rem;
    color: var(--color-dark-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.recruitment-intro .intro-text {
    line-height: 1.9;
    color: #555;
    border-left: none;
}

.recruitment-positions-static {
    margin-bottom: 3rem;
}

/* アコーディオンスタイル */
.positions-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.position-accordion-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.position-accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.position-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: white;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.position-accordion-header:hover {
    background: #f8f9fa;
}

.position-accordion-item.active .position-accordion-header {
    border-bottom-color: #e0e0e0;
    background: #f8f9fa;
}

.position-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.position-accordion-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark-gray);
}

.position-accordion-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-green);
    transition: transform 0.3s ease;
}

.position-accordion-item.active .position-accordion-toggle {
    transform: rotate(180deg);
}

.position-accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.position-accordion-item.active .position-accordion-content {
    max-height: 5000px;
    padding: 2rem;
}

.position-details {
    padding: 1rem 0;
}

/* カテゴリーバッジ */
.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--color-primary-green);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.category-badge.category-正社員,
.category-badge.category-full-time {
    background-color: var(--color-primary-green);
}

.category-badge.category-契約社員,
.category-badge.category-contract {
    background-color: #5b87a8;
}

.category-badge.category-パート,
.category-badge.category-part-time {
    background-color: #a85b87;
}

/* テーブルスタイル */
.recruitment-table {
    margin-bottom: 2rem;
}

.recruitment-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.recruitment-table th,
.recruitment-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.recruitment-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--color-dark-gray);
    width: 160px;
    white-space: nowrap;
}

.recruitment-table td {
    color: #555;
    line-height: 1.8;
    white-space: pre-wrap;
}

.recruitment-table tr:last-child th,
.recruitment-table tr:last-child td {
    border-bottom: none;
}

/* コンテンツセクション */
.job-description,
.application-method {
    margin-bottom: 2rem;
}

.job-description h4,
.application-method h4 {
    font-size: 1.2rem;
    color: var(--color-dark-gray);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary-green);
}

.content-text {
    line-height: 1.9;
    color: #555;
    white-space: pre-wrap;
    text-align: left;
}

.content-text p {
    margin-bottom: 1rem;
}

/* 応募方法セクションのテキストを確実に左揃えに */
.application-method .content-text {
    text-align: left !important;
}

.application-method .content-text p {
    text-align: left !important;
}

/* 応募ボタン */
.position-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.position-actions .btn-large {
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(46, 133, 64, 0.25);
    transition: all 0.3s ease;
}

.position-actions .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 133, 64, 0.35);
}

/* 募集なしの場合 */
.no-positions {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-positions p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media (max-width: 1024px) {
    .recruitment-hero .hero-background {
        min-height: 350px;
    }

    .recruitment-hero .hero-title {
        font-size: 3rem;
    }

    .recruitment-hero .subtitle {
        font-size: 1.35rem;
        font-weight: 700;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .recruitment-hero .hero-background {
        min-height: 300px;
    }

    .recruitment-hero .hero-title {
        font-size: 2.5rem;
    }

    .recruitment-hero .subtitle {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .recruitment-content-static {
        padding: 2rem 0;
    }
    
    .position-accordion-header {
        padding: 1.25rem 1.5rem;
    }
    
    .position-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .position-accordion-title {
        font-size: 1.1rem;
    }
    
    .position-accordion-item.active .position-accordion-content {
        padding: 1.5rem;
    }
    
    .recruitment-table th {
        width: 110px;
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
    
    .recruitment-table td {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }
}

/* 小型スマートフォン */
@media (max-width: 480px) {
    .recruitment-hero .hero-background {
        min-height: 250px;
    }

    .recruitment-hero .hero-title {
        font-size: 2rem;
    }

    .recruitment-hero .subtitle {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .recruitment-table th,
    .recruitment-table td {
        display: block;
        width: 100%;
    }
    
    .recruitment-table th {
        background-color: var(--color-primary-green);
        color: white;
        padding: 0.75rem 1rem;
        border-bottom: none;
    }
    
    .recruitment-table td {
        padding: 1rem;
        border-bottom: 2px solid #e0e0e0;
    }
    
    .recruitment-table tr:last-child td {
        border-bottom: 1px solid #e0e0e0;
    }
}

