/* 求人プラグイン フロントエンドスタイル */

.wjp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 求人詳細ページ */
.wjp-single-job {
    padding: 20px 0;
}

.wjp-job-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}

.wjp-job-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.wjp-job-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.wjp-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wjp-job-meta span {
    padding: 5px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.wjp-employment-type {
    background: #0073aa !important;
    color: #fff !important;
}

.wjp-location {
    background: #46b450 !important;
    color: #fff !important;
}

.wjp-salary {
    background: #ff9800 !important;
    color: #fff !important;
}

.wjp-job-content {
    margin-top: 30px;
}

.wjp-job-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.wjp-job-details {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wjp-job-details h2 {
    font-size: 20px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.wjp-job-details dl {
    margin: 0;
}

.wjp-job-details dt {
    font-weight: bold;
    margin-top: 15px;
    color: #333;
}

.wjp-job-details dd {
    margin: 5px 0 0 0;
    padding-left: 20px;
    color: #666;
}

/* 応募フォーム */
.wjp-application-form {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wjp-application-form h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #333;
}

.wjp-form-group {
    margin-bottom: 20px;
}

.wjp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.wjp-form-group .required {
    color: #dc3232;
}

.wjp-form-group input[type="text"],
.wjp-form-group input[type="email"],
.wjp-form-group input[type="tel"],
.wjp-form-group input[type="file"],
.wjp-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wjp-form-group textarea {
    resize: vertical;
}

.wjp-form-group .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.wjp-job-button {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0 0;
    border-top: 1px solid #ddd;
}
.wjp-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.wjp-button:hover {
    background: #005a87;
}

.wjp-application-link {
    margin-top: 30px;
    text-align: center;
}

#wjp-application-message-area {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#wjp-application-message-area.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#wjp-application-message-area.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 求人一覧ページ */
.wjp-archive-jobs {
    padding: 20px 0;
}

.wjp-archive-header {
    margin-bottom: 30px;
}

.wjp-archive-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #333;
}

.wjp-search-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.wjp-search-form form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wjp-search-form input[type="text"],
.wjp-search-form select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wjp-search-form button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.wjp-search-form button:hover {
    background: #005a87;
}

.wjp-job-list {
    display: grid;
    gap: 20px;
}

.wjp-job-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.wjp-job-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wjp-job-item-title {
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
}

.wjp-job-item-title a {
    color: #0073aa;
    text-decoration: none;
}

.wjp-job-item-title a:hover {
    text-decoration: underline;
}

.wjp-job-item-meta {
/*    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;*/
}

.wjp-job-item-meta span {
    /*
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    */
}
.wjp-employment {
    margin-bottom: 0.75rem;
}
.wjp-employment-type {
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}
.wjp-job-item-meta p {
    margin: 0.5rem 0;
}
.wjp-salary-area {
}
.wjp-salary-text {
    font-weight: 700;
}

.wjp-location-icon,
.wjp-salary-icon {
    display: inline-block;
    width: 5em;
    margin-right: 1rem;
    border: 1px solid #ccc;
    text-align: center;
    border-radius: 1em;
    font-size: 0.8rem;
}

.wjp-job-item-excerpt {
    margin: 1.5rem 0;
    color: #666;
    line-height: 1.6;
}

.wjp-pagination {
    margin-top: 30px;
    text-align: center;
}

.wjp-no-jobs {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* ショートコード */
.wjp-search-shortcode {
    margin: 20px 0;
}

.wjp-search-shortcode form {
    display: flex;
    gap: 10px;
}

.wjp-search-shortcode input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wjp-search-shortcode button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wjp-list-shortcode {
    margin: 20px 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .wjp-container {
        padding: 10px;
    }
    
    .wjp-archive-title {
        font-size: 2rem;
    }

    .wjp-job-detail {
        padding: 20px;
    }
    
    .wjp-job-title {
        font-size: 24px;
    }
    
    .wjp-search-form form {
        flex-direction: column;
    }
    
    .wjp-search-form input[type="text"],
    .wjp-search-form select {
        width: 100%;
    }

    .wjp-location-text,
    .wjp-salary-text {
        display: block;
        margin-top: 0.15rem;
    }

}
