
.recruit-container {
    max-width: 900px;
    margin: 0 auto ;
    
}

.corp-indexHeader__title {
    margin: 3rem 0 0 .3rem!important;
}


.corp-index__recruit {
    padding: 6rem 5.2rem;
}


.recruit-description {
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
    background-color: #fff;
    padding:20px;
    border-radius: 16px;
}

.button-row {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.button-row-container {
    display: flex;
    gap: 15px;
    margin-bottom: 100px;
}

.button-company,.button-care {
    flex: 1;
    background-color: #F6E500;
    border: none;
    padding: 15px 30px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-company:hover, .button-care:hover {
    background-color: #f1c40f;
}



.yellow-button {
    flex: 1;
    background-color: #F6E500;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.yellow-button.active::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    margin-left: auto;
    transition: all 0.4s ease-in-out;
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.yellow-button:not(.active)::after {
    content: '\f054'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    margin-left: auto;
    transition: all 0.4s ease-in-out;
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.section-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.job-dropdown {
    width: 100%;
    background-color: #F6E500;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
}

.job-details {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* 初期状態は表示 */
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
}

/* 非表示状態のスタイル（JavaScriptでdisplay: noneが設定された時） */
.job-details[style*="display: none"] {
    opacity: 0 !important;
    transform: translateY(-30px) !important;
    max-height: 0 !important;
    padding: 0 20px !important;
    margin: 0 !important;
    visibility: hidden !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* アニメーション開始前の状態を強制 */
.job-details {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* キーフレームアニメーション */
@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
        padding: 20px;
        margin: 0 0 30px 0;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
        max-height: 0;
        padding: 0 20px;
        margin: 0;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        max-height: 0;
        padding: 0 20px;
        margin: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
        padding: 20px;
        margin: 0 0 30px 0;
    }
}

/* アニメーションクラス */
.job-details.slide-out {
    animation: slideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.job-details.slide-in {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 非表示状態（JavaScriptで制御） */
.job-details.collapsed {
    max-height: 0;
    padding: 0 20px;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    /* アニメーション完了後に完全に非表示 */
    transition-delay: 0s, 0s, 0s, 0.6s, 0s;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #b7b8b9;
    padding: 12px 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    max-width: 200px;
    width: 100%;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
    font-size: 16px;
}

.detail-content {
    flex: 1;
    color: #555;
    font-size: 14px;
}

.detail-content ul {
    margin: 5px 0;
    padding-left: 20px;
}

.detail-content li {
    margin-bottom: 3px;
    list-style-type: disc;
}

ul.detail-content-sub-list li {
    list-style-type: none!important;
}


li.detail-content-sub::before {
    content: "- ";
}

.application-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.entry-button {
    display: flex;
    justify-content: center;
}

.apply-button,.go-back-button {
    background-color: #000;
    color: white;
    text-emphasis: none;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.apply-button:hover,.go-back-button:hover {
    background-color: #34495e;
}

@media (max-width: 748px) {
    .recruit-container {
        padding: 20px;
    }
    
    .button-row {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    .corp-index__recruit {
     padding: 7.8rem 0 6.4rem;
    }
}

/* アコーディオン用スタイル */
.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    background: white;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    border-radius: 5px 5px 0 0;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header .detail-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.accordion-icon {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 20px;
    background: white;
    border-radius: 0 0 5px 5px;
}

.accordion-content.active {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.accordion-content .detail-content {
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.accordion-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.accordion-content li {
    margin-bottom: 5px;
}

/* 既存のdetail-rowスタイルを表示する */
.job-details .detail-row {
    display: flex;
}

/* アコーディオンがアクティブな時のアイコン回転 */
.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

@media (max-width: 748px) {
    .accordion-header {
        padding: 12px 15px;
    }
    
    .accordion-content.active {
        padding: 15px;
    }
    
    .accordion-header .detail-label {
        font-size: 13px;
    }
}

