/* 完全リセットとベーススタイル */
* {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html, body {
    width: 100% !important;
    height: 100% !important;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background-color: #f3f4f6 !important;
    font-size: 16px !important;
    min-width: 320px !important;
}

/* ヘッダー強制スタイル */
header {
    background-color: #316da2 !important;
    color: white !important;
    padding: 12px 0 !important;
    width: 100% !important;
    display: block !important;
}

header > div {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

header > div > div {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

header img {
    height: 32px !important;
    display: block !important;
}

header nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
}

header nav a {
    background-color: #4d9a4d !important;
    border: 1px solid white !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    color: white !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color 0.3s !important;
}

header nav a:hover {
    background-color: #3d7c3d !important;
}

/* メインコンテンツ強制スタイル */
main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 32px 16px !important;
    display: block !important;
}

main > div {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    padding: 48px !important;
    margin: 0 !important;
}

/* ヒーローセクション */
.hero-section {
    text-align: center !important;
    padding: 40px 0 !important;
    margin-bottom: 50px !important;
    display: block !important;
}

.hero-image, .hero-image > div {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
}

.main-image {
    width: 100% !important;
    max-width: 800px !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
    margin: 0 auto !important;
    display: block !important;
}

.job-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    display: block !important;
}

.apply-button-main, .apply-button-main > div {
    text-align: center !important;
    margin: 30px 0 !important;
    display: block !important;
}

.apply-btn {
    background: linear-gradient(135deg, #4472C4, #5a82d4) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(68, 114, 196, 0.3) !important;
}

.apply-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(68, 114, 196, 0.4) !important;
}

.apply-btn .fas {
    font-size: 16px !important;
}

/* セクション共通 */
section {
    margin-bottom: 50px !important;
    display: block !important;
}

section h2 {
    font-size: 28px !important;
    color: #2c3e50 !important;
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid #4472C4 !important;
    display: inline-block !important;
}

section h3 {
    font-size: 20px !important;
    color: #34495e !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* ハイライトセクション */
.highlights {
    background: white !important;
    padding: 30px !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 50px !important;
}

.highlight-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.highlight-list li {
    position: relative !important;
    padding-left: 20px !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    font-size: 16px !important;
    display: block !important;
}

.highlight-list li:last-child {
    margin-bottom: 0 !important;
}

.highlight-list li:before {
    content: "•" !important;
    color: #4472C4 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 16px !important;
}

.highlight-list li strong {
    color: #4472C4 !important;
    font-weight: 600 !important;
}

/* 仕事内容 */
.content-with-image {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.intro-text {
    font-size: 18px !important;
    color: #4472C4 !important;
    font-weight: 500 !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
}

.content-image {
    width: 100% !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

ul {
    list-style: none !important;
    margin-bottom: 25px !important;
}

ul li {
    position: relative !important;
    padding-left: 25px !important;
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

ul li:before {
    content: "•" !important;
    color: #4472C4 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 18px !important;
}

/* 求人詳細テーブル */
.job-details {
    margin: 50px 0 !important;
}

.details-table-container {
    overflow-x: auto !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

.details-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
    margin: 0 !important;
    border: 1px solid #dee2e6 !important;
}

.details-table thead {
    background: transparent !important;
    color: #333 !important;
}

.details-table thead th {
    padding: 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border-bottom: 2px solid #dee2e6 !important;
}

.details-table thead th:first-child {
    background-color: #f8f9fa !important;
    width: 200px !important;
    min-width: 200px !important;
    border-right: 1px solid #dee2e6 !important;
}

.details-table thead th:last-child {
    background-color: #f8f9fa !important;
}

.details-table tbody tr {
    border-bottom: 1px solid #e9ecef !important;
}

.details-table tbody tr:last-child {
    border-bottom: none !important;
}

.details-table tbody td {
    padding: 15px !important;
    vertical-align: top !important;
    line-height: 1.6 !important;
}

.details-table tbody td:first-child {
    background-color: #f8f9fa !important;
    font-weight: 600 !important;
    color: #333 !important;
    white-space: nowrap !important;
    width: 200px !important;
    border-right: 1px solid #dee2e6 !important;
}

.details-table tbody td:last-child {
    background-color: white !important;
    color: #333 !important;
}

/* 応募プロセス */
.process-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.step {
    text-align: center !important;
    min-width: 200px !important;
}

.step-number {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #4472C4, #5a82d4) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 auto 15px !important;
    box-shadow: 0 4px 15px rgba(68, 114, 196, 0.3) !important;
}

.step h3 {
    color: #4472C4 !important;
    font-size: 16px !important;
    margin-bottom: 10px !important;
    justify-content: center !important;
}

.step p {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.step-arrow {
    font-size: 24px !important;
    color: #4472C4 !important;
    font-weight: bold !important;
}

/* 応募セクション */
.contact-section {
    background: linear-gradient(135deg, #4472C4, #5a82d4) !important;
    color: white !important;
    padding: 50px !important;
    border-radius: 20px !important;
    text-align: center !important;
    margin: 50px 0 !important;
}

.contact-section h2 {
    color: white !important;
    border-bottom-color: white !important;
    margin-bottom: 20px !important;
}

.contact-description {
    font-size: 16px !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
}

.contact-buttons {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.apply-btn.primary {
    background: white !important;
    color: #4472C4 !important;
}

.apply-btn.primary:hover {
    background: #f8f9ff !important;
}

/* フッター */
footer {
    background: white !important;
    margin-top: 48px !important;
    padding: 24px 0 !important;
    border-top: 1px solid #e5e7eb !important;
    width: 100% !important;
}

footer > div {
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: center !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    padding: 0 16px !important;
}

footer > div > div {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
}

footer a {
    color: #6b7280 !important;
    text-decoration: none !important;
}

footer a:hover {
    color: #4472C4 !important;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    main {
        padding: 16px 8px !important;
    }
    
    main > div {
        padding: 24px !important;
    }
    
    .job-title {
        font-size: 24px !important;
    }
    
    header > div > div {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    header nav {
        justify-content: center !important;
    }
    
    footer > div > div {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .content-with-image {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .details-table-container {
        border-radius: 0 !important;
    }
    
    .details-table thead th:first-child {
        width: auto !important;
        min-width: 120px !important;
    }
    
    .details-table tbody td {
        padding: 12px !important;
    }
    
    .details-table tbody td:first-child {
        font-size: 14px !important;
    }
    
    .process-steps {
        flex-direction: column !important;
    }
    
    .step-arrow {
        transform: rotate(90deg) !important;
    }
    
    .contact-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .apply-btn {
        padding: 12px 30px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 20px !important;
    }
    
    .job-title {
        font-size: 20px !important;
    }
    
    section h2 {
        font-size: 24px !important;
    }
    
    .highlights,
    .contact-section {
        padding: 30px 20px !important;
    }
    
    .main-image {
        height: 200px !important;
    }
}