/* ==========================================================================
   Kyowa Seiko — Recruitment Module Styles
   ========================================================================== */

/* --- Accordion (募集要項) --- */
.ks-recruitment-wrap {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.ks-accordion {
    margin-top: 20px;
}

.ks-accordion-item {
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.ks-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: transparent;
    color: #333;
    padding: 20px 24px;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans Japanese', serif;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s;
}

.ks-accordion-trigger:hover,
.ks-accordion-trigger:focus {
    background: #ebebeb;
    outline: none;
}

.ks-accordion-trigger:focus-visible {
    outline: 2px solid #004B9C;
    outline-offset: -2px;
}

.ks-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #004B9C;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ks-accordion-icon::before,
.ks-accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ks-accordion-icon::before {
    width: 14px;
    height: 2px;
}

.ks-accordion-icon::after {
    width: 2px;
    height: 14px;
}

.ks-accordion-trigger[aria-expanded="true"] .ks-accordion-icon {
    transform: rotate(45deg);
}

.ks-accordion-body {
    padding: 0 24px 30px;
}

.ks-section {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid #004B9C;
}

.ks-section:last-of-type {
    border-bottom: 1px solid #004B9C;
}

.ks-section-heading {
    width: 25%;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
    padding-right: 15px;
}

.ks-section-body {
    width: 75%;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

@media screen and (max-width: 767px) {
    .ks-section-heading {
        width: 100%;
        margin-bottom: 10px;
    }
    .ks-section-body {
        width: 100%;
    }
}

.ks-entry-cta-wrap {
    margin-top: 40px;
    text-align: center;
}

.ks-entry-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #333 !important;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #b5b5b5;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s, background 0.3s;
    min-width: 280px;
}

.ks-entry-cta:hover {
    background: #fdfdfd;
    opacity: 0.8;
}

.ks-entry-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #004B9C;
    border-radius: 50%;
    margin-right: 15px;
    color: #fff;
    font-size: 12px;
}

.ks-entry-cta-icon::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: -2px;
}

.ks-placeholder-row .ks-accordion-trigger {
    color: #999;
}


/* --- Bottom Entry Block --- */
.ks-entry-footer {
    background: #004B9C;
    padding: 20px 0;
}

.ks-entry-footer-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    font-style: italic;
    font-family: 'Arial', sans-serif;
    margin: 0;
}

.ks-entry-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
}

.ks-entry-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #333 !important;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.ks-entry-btn:hover {
    opacity: 0.9;
}

.ks-entry-btn .ks-entry-cta-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.ks-entry-btn .ks-entry-cta-icon::after {
    width: 5px;
    height: 5px;
    border-width: 1.5px;
}

@media screen and (max-width: 767px) {
    .ks-entry-buttons {
        justify-content: flex-start;
        margin-top: 20px;
    }
}


/* --- Form (エントリーフォーム) --- */
.ks-form-wrap {
    margin-top: 2rem;
    margin-bottom: 4rem;
    background: #f5f5f5;
    padding: 40px;
    border-radius: 8px;
}

@media screen and (max-width: 767px) {
    .ks-form-wrap {
        padding: 20px;
    }
}

.ks-form-group {
    float: left;
    width: 100%;
    margin: 0 0 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.ks-form-group p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ks-form-group label {
    width: 30%;
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

.ks-form-group span:not(.required):not(.ks-form-error):not(.mwform-radio-field) {
    width: 70%;
    margin: 0;
    padding: 0;
}

.ks-form-group span.mwform-radio-field {
    width: 70%;
    margin: 0;
    padding: 0;
}

span.required {
    color: #fff;
    line-height: 1;
    padding: 4px 8px;
    margin: 0;
    border-radius: 4px;
    vertical-align: middle;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: normal;
}

.ks-radio-group label {
    width: auto !important;
    float: none;
    margin-right: 20px;
    font-weight: normal;
}

.ks-form-wrap input[type="text"],
.ks-form-wrap input[type="tel"],
.ks-form-wrap input[type="email"],
.ks-form-wrap input[type="date"],
.ks-form-wrap textarea,
.ks-form-wrap select {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
}

.ks-form-wrap textarea {
    min-height: 120px;
}

/* Existing form widths */
.in_name { width: 18.5em; }
.in_tel { width: 15em; }
.in_mail { width: 100%; max-width: 400px; }
.in_text1 { width: 100%; }

/* File upload button styling */
.ks-file-upload-btn {
    display: inline-block !important;
    background: #755f55;
    color: #fff !important;
    padding: 8px 24px !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem !important;
    margin-right: 10px;
    font-weight: normal !important;
    width: auto !important;
}
.ks-file-upload-btn i {
    margin-right: 5px;
}
.ks-file-name-display {
    font-size: 0.85rem;
    color: #666;
    float: none !important;
}
input[type="file"].ks-file-hidden {
    display: none;
}

.ks-submit-btn {
    background: #004B9C !important;
    color: #fff !important;
    padding: 12px 60px !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    border: none !important;
    transition: opacity 0.3s;
    font-weight: bold;
}
.ks-submit-btn:hover {
    opacity: 0.8;
}

/* Confirmation Table Styles */
.ks-confirm-table th {
    vertical-align: middle;
    font-weight: bold;
    border-color: #ddd;
}
.ks-confirm-table td {
    vertical-align: middle;
    border-color: #ddd;
    color: #333;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .ks-form-group p {
        flex-direction: column;
        align-items: flex-start;
    }
    .ks-form-group label {
        width: 100%;
        margin-bottom: 10px;
    }
    .ks-form-group span:not(.required):not(.ks-form-error) {
        width: 100%;
    }
    .in_name, .in_tel, .in_mail, .in_text1 {
        width: 100%;
        max-width: 100%;
    }
    .ks-confirm-table th, .ks-confirm-table td {
        display: block;
        width: 100% !important;
    }
    .ks-confirm-table th {
        border-bottom: none;
    }
}
