/**
 * 求人リスト共通スタイル
 * 用于所有求人列表相关页面的通用样式
 */

/* 求人リスト全体のスタイル */
.job-listing-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

/* 検索フォームのスタイル */
.job-search-form {
    background-color: #f5f5f5;
    padding: 20px 20px 2px 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.job-search-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* 职位列表标题样式 - 更大更酷更显眼 */
.job-listing-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin: 30px 0;
    margin-bottom: 0px;
    color: transparent;
    background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-family: 'Arial Black', 'Impact', sans-serif; /* 扁平字体 */
    transform: scale(1.05, 0.95); /* 横向拉伸，纵向压缩，使字体更扁平 */
    animation: gradient-animation 5s ease infinite;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-listing-title::before,
.job-listing-title::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 24%;
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.1), #4285f4);
}

.job-listing-title::before {
    right: 70%;
    background: linear-gradient(90deg, #4285f4, rgba(66, 133, 244, 0.1));
}

.job-listing-title::after {
    left: 70%;
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.1), #4285f4);
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end; /* 确保所有元素底部对齐 */
}

.search-field {
    flex: 1;
    min-width: 200px; /* 减小最小宽度，使按钮能够在同一行 */
}

.search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0; /* 移除底部内边距 */
    min-width: auto; /* 确保按钮不会过宽 */
}

.search-button button {
    background-color: #4285f4;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 44px; /* 与输入框高度保持一致 */
}

.search-button button:hover {
    background-color: #3367d6;
}

/* 求人リストのスタイル */
.job-results h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.job-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
}

.job-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* 左侧区域 - 占20%宽度 */
.job-left-section {
    width: 20%;
    background-color: #fff5eb; /* 修改为很淡的橘色 */
    position: relative;
    display: flex;
    flex-direction: column;
    border-left: 3px solid #4285f4; /* 添加细长的蓝色左边框 */
    border-radius: 4px 0 0 4px; /* 添加左侧圆角，与整体卡片圆角匹配 */
    overflow: hidden; /* 确保内容不超出圆角边界 */
}

/* 发布日期样式 - 放置在左侧区域底部 */
.job-date-left {
    font-size: 12px;
    color: #777;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

/* 右侧区域 - 占80%宽度 */
.job-right-section {
    width: 80%;
    display: flex;
    flex-direction: column;
}

/* 右上区域 - 职位标题 */
.job-header {
    padding: 15px 20px;
    background-color: #f0f7ff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.job-title {
    margin-top: 10px;
    font-size: 24px; /* 增大标题字体大小，从20px改为24px */
    font-weight: bold;
}

.job-title a {
    text-decoration: none;
}

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



/* 右中区域 - 职位详细信息表格 */
.job-details {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.job-details-table {
    font-size: 14px;
    width: 100%;
    border-collapse: collapse;
}

.job-details-table td {
    padding: 5px 0;
    vertical-align: top;
}

.job-details-table td.label-cell {
    width: 100px;
    color: #666;
}

.job-details-table td.content-cell {
    color: #333;
}

.job-qualification-row {
    height: 60px; /* 应募资格显示3行 */
    overflow: hidden;
}

.job-content-row {
    height: 100px; /* 仕事内容显示5行 */
    overflow: hidden;
}

.job-location-row {
    height: 20px; /* 勤務地显示1行 */
}

.job-salary-row {
    height: 20px; /* 給与待遇显示5行 */
    overflow: hidden;
}

/* 右下区域 - SNS分享按钮和其他信息 */
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 13px;
}

.job-date {
    color: #777;
}

/* 社交分享区域样式 */
.job-social-section {
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.job-social-share-container {
    display: flex;
    justify-content: center; /* 修改为居中对齐，原来是flex-start */
}

.job-more-link {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.job-more-link:hover {
    background-color: #eee;
    color: #1a73e8;
}

/* ページネーションのスタイル */
.job-pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.job-pagination a,
.job-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* 非选中状态的分页按钮应用hover效果 */
.job-pagination a {
    background-color: #f5f5f5;
    border-color: #aaa;
}

.job-pagination .current-page {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
    font-weight: bold;
}

/* 增强hover效果，让用户感知变化 */
.job-pagination a:hover {
    background-color: #e0e0e0;
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #1a73e8;
}

.job-pagination .prev-page,
.job-pagination .next-page {
    padding: 0 15px;
    font-weight: bold;
}

.job-pagination .page-dots {
    border: none;
    padding: 0 8px;
}

/* 求人が見つからない場合のスタイル */
.no-jobs-found {
    text-align: center;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 5px;
    color: #666;
}

/* 求人詳細モーダルのスタイル */
.job-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.job-detail-content {
    background-color: white;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.job-detail-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    flex: 1;
}

.close-modal {
    font-size: 28px;
    color: #999;
    text-decoration: none;
    line-height: 1;
}

.job-detail-company h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #555;
}

.job-detail-info {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 120px;
    font-weight: bold;
    color: #555;
}

.info-value {
    flex: 1;
}

.job-detail-description,
.job-detail-qualifications,
.job-detail-benefits,
.job-detail-company-profile {
    margin-bottom: 30px;
}

.job-detail-description h3,
.job-detail-qualifications h3,
.job-detail-benefits h3,
.job-detail-company-profile h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.description-content,
.qualifications-content,
.benefits-content,
.company-profile-content {
    line-height: 1.6;
    color: #333;
}

.job-detail-apply {
    text-align: center;
    margin-top: 30px;
}

.apply-button {
    display: inline-block;
    background-color: #4285f4;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.apply-button:hover {
    background-color: #3367d6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-field {
        min-width: 100%;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .job-detail-content {
        padding: 20px;
        margin: 10px auto;
    }
}