/* ========================================
   archive-job-final.css
   CIW Construction元色 + Plus Startup検索フォーム
   ======================================== */

/* ========================================
   1. Hero Section
   ======================================== */
.job-archive-hero {
    background-color: #f9f9f9;
    background-image: linear-gradient(rgba(45, 74, 67, 0.06) 1px, transparent 1px), linear-gradient(to right, rgba(45, 74, 67, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    padding: 120px 0 112px;
    border-bottom: 1px solid #e7e7e7;
    position: relative;
    text-align: left;
}

.job-archive-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 56px;
    background: #e7e7e7;
}

.job-hero-kicker {
    font-size: 11px;
    color: #C0A375;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.job-hero-kicker::before,
.job-hero-kicker::after {
    content: '';
    width: 24px;
    height: 1px;
    background: #C0A375;
}

.job-hero-title {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.65;
    color: #2D4A43;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.job-hero-subtitle {
    font-size: 15px;
    color: #4a4a4a;
    max-width: 680px;
    line-height: 2;
    margin: 0;
}

/* ========================================
   2. Filter Section (新構造 + 元色)
   ======================================== */
.job-filter-section {
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    padding: 32px 0;
    position: static;
    z-index: 99;
    box-shadow: none;
}

.job-search-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   2.1 Search Form Inner
   ======================================== */
.job-search-form-inner {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   2.2 Search Rows & Fields
   ======================================== */
.search-row {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

/* 第1行: キーワード・勤務地・雇用形態 (3列) */
.search-row-primary {
    grid-template-columns: repeat(3, 1fr);
}

/* 第2行: 業種・職種 (2列) */
.search-row-secondary {
    grid-template-columns: repeat(2, 1fr);
}

/* 第3行: ボタン (固定幅) */
.search-row-actions {
    grid-template-columns: auto auto;
    gap: 12px;
    margin-top: 24px;
}

/* ========================================
   2.3 Search Fields (元色)
   ======================================== */
.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-label {
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.search-input,
.search-select {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    color: #4a4a4a;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input::placeholder {
    color: #a3a3a3;
    opacity: 0.7;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: #2D4A43;
    box-shadow: 0 0 0 3px rgba(45, 74, 67, 0.1);
    background: #ffffff;
}

.search-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888888' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 従来のクラス名も対応（後方互換性） */
.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item label {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-input,
.filter-select {
    padding: 12px 14px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    font-size: 14px;
    color: #4a4a4a;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #2D4A43;
    box-shadow: 0 0 0 3px rgba(45, 74, 67, 0.1);
}

.filter-input.has-error,
.filter-select.has-error {
    border-color: #d32f2f;
    background-color: #ffebee;
}

.filter-error {
    font-size: 12px;
    color: #d32f2f;
    margin-top: 4px;
    display: block;
}

/* ========================================
   2.4 Search Buttons (元色)
   ======================================== */
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: #2D4A43;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 44px;
    box-sizing: border-box;
}

.btn-search:hover {
    background: #3d5f56;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 74, 67, 0.2);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-search .btn-text {
    display: inline-block;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #4a4a4a;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 44px;
    box-sizing: border-box;
}

.btn-reset:hover {
    background: #eeeeee;
    border-color: #2D4A43;
    color: #2D4A43;
}

/* ========================================
   3. Search Toggle Button (Mobile)
   ======================================== */
.job-search-toggle {
    display: none;
}

@media (max-width: 768px) {
    .job-search-toggle {
        display: block;
        width: 100%;
        padding: 14px 16px;
        margin-bottom: 16px;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        background-color: #fff;
        border: 2px solid #e7e7e7;
        border-radius: 8px;
        cursor: pointer;
        text-align: left;
        transition: all 0.2s ease;
        position: relative;
        box-sizing: border-box;
    }

    .job-search-toggle:hover,
    .job-search-toggle:focus {
        background-color: #f7f7f7;
        border-color: #2D4A43;
        outline: none;
    }

    .job-search-toggle .toggle-text {
        display: inline-block;
        padding-right: 32px;
        word-break: break-word;
    }

    .job-search-toggle .toggle-icon {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        display: inline-block;
        border: solid #333;
        border-width: 0 2px 2px 0;
        padding: 5px;
        transition: transform 0.3s ease;
    }

    .job-search-toggle.is-open .toggle-icon {
        transform: translateY(-50%) rotate(-135deg);
    }

    .job-search-form-inner {
        display: none;
    }

    .job-search-form-inner.is-open {
        display: block;
    }
}

/* ========================================
   2.5. Job Results Info
   ======================================== */
.job-results-info {
    margin-bottom: 32px;
    padding: 20px 24px;
    background: #f9f9f9;
    border-left: 4px solid #2D4A43;
    border-radius: 4px;
}

.results-text {
    margin: 0;
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
}

.results-text strong {
    color: #2D4A43;
    font-weight: 700;
    font-size: 18px;
}

.results-range {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: #737373;
}

/* ========================================
   3. Job Grid & List
   ======================================== */
.job-archive-wrapper {
    padding: 64px 0;
    background: #ffffff;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.job-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 32px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #e7e7e7;
}

.job-no-posts p {
    font-size: 16px;
    color: #737373;
    margin: 0 0 20px 0;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    background: #2D4A43;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #3d5f56;
    transform: translateY(-1px);
}

/* ========================================
   4. Job Card
   ======================================== */
.job-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #2D4A43;
}

.job-card-header {
    padding: 20px;
    border-bottom: 1px solid #e7e7e7;
}

.job-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.job-card-company {
    font-size: 13px;
    color: #737373;
    margin: 0;
}

.job-card-meta {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-meta-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
    font-size: 11px;
    color: #737373;
    white-space: nowrap;
}

.job-card-body {
    padding: 16px 20px;
    flex-grow: 1;
}

.job-card-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-summary-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-summary-label {
    color: #737373;
    min-width: 60px;
}

.job-summary-value {
    color: #1a1a1a;
    font-weight: 500;
}

.job-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #e7e7e7;
    background: #fafafa;
}

.job-card-date {
    font-size: 11px;
    color: #a3a3a3;
}

/* ========================================
   5. Pagination
   ======================================== */
.job-pagination-wrapper {
    margin-top: 64px;
    text-align: center;
}

.job-pagination-wrapper .nav-links {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 2px solid #e7e7e7;
    border-radius: 9999px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #ffffff;
}

.page-numbers:hover,
.page-numbers.current {
    background: #2D4A43;
    color: #ffffff;
    border-color: #2D4A43;
    transform: scale(1.05);
}

/* ========================================
   6. Single Job Page
   ======================================== */
.job-single-page-container {
    padding: 40px 0 80px;
}

.job-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.job-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: flex-start;
}

.job-main {
    min-width: 0;
}

.job-single-article {
    background: #ffffff;
}

.job-header {
    margin-bottom: 32px;
}

.job-title-wrapper {
    margin-bottom: 24px;
}

.job-header-label {
    font-size: 11px;
    color: #C0A375;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.job-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.company-name {
    font-size: 16px;
    color: #737373;
    margin: 0;
}

.job-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.job-meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge.industry {
    background: #e8f5e9;
    color: #2d5016;
}

.badge.category {
    background: #e3f2fd;
    color: #1565c0;
}

.job-post-date {
    font-size: 12px;
    color: #a3a3a3;
}

/* ========================================
   7. Summary Box
   ======================================== */
.job-summary-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 32px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-label {
    font-size: 12px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-value {
    font-size: 16px;
    font-weight: 600;
    color: #2D4A43;
}

/* ========================================
   8. Sticky Apply Box
   ======================================== */
.apply-box-sticky-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.apply-box-sticky-wrapper.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.apply-box-horizontal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.apply-box-horizontal p {
    margin: 0;
    font-size: 14px;
    color: #4a4a4a;
}

.apply-btn {
    padding: 12px 28px;
    background: #2D4A43;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.apply-btn:hover {
    background: #3d5f56;
    transform: translateY(-2px);
}

/* ========================================
   9. Job Sections
   ======================================== */
.job-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2D4A43;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e7e7e7;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #C0A375;
}

.section-content {
    font-size: 15px;
    line-height: 1.9;
    color: #4a4a4a;
}

.subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #2D4A43;
    margin: 20px 0 12px 0;
}

.requirements-list {
    margin: 0;
}

.requirements-list p {
    margin-bottom: 12px;
}

/* ========================================
   10. Tags Section
   ======================================== */
.job-tags {
    margin-bottom: 48px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    color: #4a4a4a;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2D4A43;
    color: #ffffff;
    border-color: #2D4A43;
}

.tag.job-industry {
    background: #e8f5e9;
    border-color: #2d5016;
    color: #2d5016;
}

.tag.job-industry:hover {
    background: #2d5016;
    color: #ffffff;
}

.tag.job-category {
    background: #e3f2fd;
    border-color: #1565c0;
    color: #1565c0;
}

.tag.job-category:hover {
    background: #1565c0;
    color: #ffffff;
}

/* ========================================
   11. Apply CTA Section
   ======================================== */
.job-apply-cta {
    margin: 56px 0;
    padding: 40px;
    background: linear-gradient(135deg, #2D4A43 0%, #3d5f56 100%);
    border-radius: 12px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    margin: 0 0 18px 0;
}

.cta-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px 0;
}

.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #ffffff;
    color: #2D4A43;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   12. Sidebar
   ======================================== */
.job-sidebar {
    align-self: start;
}

/* ========================================
   13. Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .job-container {
        padding: 0 32px;
    }

    .job-content-layout {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .job-hero-title {
        font-size: 32px;
    }

    .job-title {
        font-size: 28px;
    }

    .search-row-primary {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-row-secondary {
        grid-template-columns: 1fr;
    }

    .job-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .job-summary-box {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 968px) {
    .job-archive-hero {
        padding: 60px 0 56px;
        background-size: 40px 40px;
    }

    .job-hero-title {
        font-size: 32px;
        line-height: 1.5;
    }

    .job-hero-subtitle {
        font-size: 14px;
    }

    .job-search-form {
        padding: 0 20px;
    }

    .filter-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .job-archive-hero {
        padding: 48px 0 44px;
    }

    .job-archive-wrapper {
        padding: 32px 0;
    }

    .job-hero-title {
        font-size: 28px;
    }

    .job-container {
        padding: 0 16px;
    }

    .job-search-form {
        padding: 0 16px;
    }

    .search-row-primary {
        grid-template-columns: 1fr;
    }

    .search-row-secondary {
        grid-template-columns: 1fr;
    }

    .search-row-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .search-field {
        width: 100%;
        box-sizing: border-box;
    }

    .search-input,
    .search-select {
        width: 100%;
        box-sizing: border-box;
    }

    .btn-search,
    .btn-reset {
        width: 100%;
        box-sizing: border-box;
    }

    .filter-group {
        grid-template-columns: 1fr;
    }

    .job-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .job-content-layout {
        gap: 32px;
    }

    .job-title {
        font-size: 24px;
    }

    .job-header-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .apply-box-horizontal {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .apply-box-horizontal p {
        text-align: center;
    }

    .apply-btn {
        width: 100%;
    }

    .job-card-header {
        padding: 16px;
    }

    .job-card-body {
        padding: 12px 16px;
    }

    .job-card-footer {
        padding: 12px 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-content {
        font-size: 14px;
    }

    .subsection-title {
        font-size: 15px;
    }

    .job-apply-cta {
        margin: 32px 0;
        padding: 24px;
    }

    .cta-title {
        font-size: 20px;
    }

    .cta-text {
        font-size: 14px;
    }

    /* Job Results Info - モバイル対応 */
    .job-results-info {
        margin-bottom: 24px;
        padding: 16px 20px;
    }
    
    .results-text {
        font-size: 14px;
    }
    
    .results-text strong {
        font-size: 16px;
    }
    
    .results-range {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .job-results-info {
        padding: 14px 16px;
    }
    
    .results-text {
        font-size: 13px;
    }
    
    .results-text strong {
        font-size: 15px;
    }
    
    .results-range {
        font-size: 12px;
    }
}

/* ========================================
   14. Single Job Hero Section
   ======================================== */
.single-job-hero {
    background-color: #f9f9f9;
    background-image: linear-gradient(rgba(45, 74, 67, 0.06) 1px, transparent 1px), linear-gradient(to right, rgba(45, 74, 67, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    padding: 80px 0 60px;
    border-bottom: 1px solid #e7e7e7;
}

.job-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.job-id {
    font-size: 12px;
    color: #C0A375;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.job-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.4;
    color: #2D4A43;
    margin: 0 0 16px 0;
}

.job-company {
    font-size: 18px;
    color: #737373;
    margin: 0 0 24px 0;
}

.job-meta-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.job-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.job-tag-category {
    background: #e3f2fd;
    color: #1565c0;
}

.job-tag-industry {
    background: #e8f5e9;
    color: #2d5016;
}

/* ========================================
   15. Single Job Content Layout
   ======================================== */
.single-job-content {
    padding: 60px 0 80px;
    background: #ffffff;
}

.job-content-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: flex-start;
}

.job-content-main {
    min-width: 0;
}

.job-content-sidebar {
    position: sticky;
    top: 40px;
}

/* ========================================
   16. Job Info Grid
   ======================================== */
.job-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.job-info-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.job-info-item:last-child {
    border-bottom: none;
}

.job-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #737373;
}

.job-info-label i {
    width: 16px;
    height: 16px;
    color: #C0A375;
}

.job-info-value {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.6;
}

.job-info-value strong {
    font-size: 18px;
    font-weight: 600;
    color: #2D4A43;
}

.job-type-details {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f8f4;
    color: #2d5016;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.age-reason {
    color: #737373;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ========================================
   17. Job Description & Requirements
   ======================================== */
.job-description-content,
.job-conditions-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a4a;
}

.job-description-content p,
.job-conditions-content p {
    margin-bottom: 16px;
}

.job-description-content p:last-child,
.job-conditions-content p:last-child {
    margin-bottom: 0;
}

.requirements-block {
    margin-bottom: 32px;
}

.requirements-block:last-child {
    margin-bottom: 0;
}

.requirements-heading {
    font-size: 18px;
    font-weight: 600;
    color: #2D4A43;
    margin: 0 0 12px 0;
    padding: 8px 16px;
    border-left: 4px solid #C0A375;
    background: #f9f9f9;
}

.requirements-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a4a;
    padding-left: 20px;
}

.requirements-content p {
    margin-bottom: 12px;
}

.requirements-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   18. Company Info Section
   ======================================== */
.company-name {
    font-size: 24px;
    font-weight: 600;
    color: #2D4A43;
    margin: 0 0 16px 0;
}

.company-size {
    font-size: 15px;
    color: #4a4a4a;
    margin: 0 0 20px 0;
}

.company-overview {
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a4a;
}

.company-overview p {
    margin-bottom: 16px;
}

.company-overview p:last-child {
    margin-bottom: 0;
}

/* ========================================
   19. Apply Section
   ======================================== */
.job-apply-section {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, #2D4A43 0%, #3d5f56 100%);
    border-radius: 12px;
    text-align: center;
}

.btn-apply {
    display: inline-block;
    padding: 16px 40px;
    background: #ffffff;
    color: #2D4A43;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.apply-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 12px 0 0 0;
}

/* ========================================
   20. Sidebar Widgets
   ======================================== */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #2D4A43;
    margin: 0;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* Apply Widget */
.sidebar-apply {
    background: linear-gradient(135deg, #2D4A43 0%, #3d5f56 100%);
    border: none;
    text-align: center;
    padding: 24px;
}

.btn-apply-sidebar {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: #2D4A43;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-apply-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Job Summary Widget */
.job-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.job-summary-list li:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: #737373;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
}

.summary-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Share Widget */
.share-buttons {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-twitter {
    background: #e8f5fd;
    color: #1da1f2;
}

.share-twitter:hover {
    background: #1da1f2;
    color: #ffffff;
}

.share-facebook {
    background: #e8f4fd;
    color: #1877f2;
}

.share-facebook:hover {
    background: #1877f2;
    color: #ffffff;
}

.share-line {
    background: #e8f5e8;
    color: #00b900;
}

.share-line:hover {
    background: #00b900;
    color: #ffffff;
}

/* Related Jobs Widget */
.related-jobs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-job-item {
    border-bottom: 1px solid #f0f0f0;
}

.related-job-item:last-child {
    border-bottom: none;
}

.related-job-link {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-job-link:hover {
    background: #f9f9f9;
}

.related-job-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D4A43;
    margin-bottom: 4px;
    display: block;
    line-height: 1.4;
}

.related-job-company {
    font-size: 12px;
    color: #737373;
    display: block;
}

/* Back to List Button */
.btn-back-to-list {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: #f9f9f9;
    color: #2D4A43;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px;
    box-sizing: border-box;
    width: calc(100% - 40px);
}

.btn-back-to-list:hover {
    background: #2D4A43;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ========================================
   21. Single Job Responsive
   ======================================== */
@media (max-width: 1024px) {
    .job-content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .job-content-sidebar {
        position: static;
        order: -1;
    }

    .job-info-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .job-info-label {
        font-size: 13px;
    }

    .summary-value {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .single-job-hero {
        padding: 60px 0 40px;
    }

    .job-hero-content {
        padding: 0 20px;
    }

    .job-title {
        font-size: 28px;
    }

    .job-content-layout {
        padding: 0 20px;
        gap: 32px;
    }

    .single-job-content {
        padding: 40px 0 60px;
    }

    .job-apply-section {
        padding: 24px 20px;
        margin: 32px 0;
    }

    .sidebar-apply {
        padding: 20px;
    }

    .job-summary-list li {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .summary-value {
        text-align: left;
    }

    .share-buttons {
        gap: 6px;
    }

    .share-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .job-hero-content {
        padding: 0 16px;
    }

    .job-content-layout {
        padding: 0 16px;
    }

    .job-title {
        font-size: 24px;
    }

    .job-meta-tags {
        gap: 8px;
    }

    .job-tag {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ========================================
   Breadcrumb List Styles
   ======================================== */

.breadcrumb-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    padding: 16px 0;
    display: none;
}

.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumbs li {
    font-size: 13px;
    color: #737373;
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #d0d0d0;
}

.breadcrumbs a {
    color: #2D4A43;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: #C0A375;
    text-decoration: underline;
}

.breadcrumbs li.active {
    color: #1a1a1a;
    font-weight: 600;
}

.breadcrumbs li.active a {
    color: #1a1a1a;
    cursor: default;
    text-decoration: none;
}

/* ========================================
   モバイル固定応募ボタン (追加機能)
   ======================================== */

/* デスクトップでは非表示 */
.job-apply-mobile-fixed {
    display: none;
}

/* モバイル表示のみ */
@media (max-width: 1024px) {
    /* サイドバーの応募ボタンを非表示 */
    .sidebar-apply {
        display: none !important;
    }
    
    /* メインコンテンツ内の応募セクションも非表示 */
    .job-apply-section {
        display: none !important;
    }
    
    /* サイドバーの表示順序を変更（メインコンテンツの後に表示） */
    .job-content-layout {
        display: flex;
        flex-direction: column;
    }
    
    .job-content-main {
        order: 1;
    }
    
    .job-content-sidebar {
        order: 2;
        margin-top: 40px;
    }
    
    /* モバイル固定応募ボタンを表示 */
    .job-apply-mobile-fixed {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        animation: slideUp 0.3s ease-out;
    }
    
    .job-apply-mobile-fixed .btn-apply {
        width: 100%;
        margin: 0;
        padding: 16px;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        display: block;
        box-sizing: border-box;
        background: #2D4A43;
        color: #ffffff;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .job-apply-mobile-fixed .btn-apply:hover,
    .job-apply-mobile-fixed .btn-apply:active {
        background: #1f3530;
        transform: translateY(-1px);
    }
    
    /* コンテンツの下部に余白を追加（固定ボタンと重ならないように） */
    .single-job-content {
        padding-bottom: 100px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}