* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    color: #2c7be5;
    cursor: pointer;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

nav a:hover {
    color: #2c7be5;
}

.btn-login {
    background: #2c7be5;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 5px;
}

/* Hero */
.hero {
    height: 400px;
    background-image: url('../images/backimage.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Search */
.search-bar {
    padding: 30px 0;
    background: #f8f9fa;
}

.search-bar .container {
    display: flex;
    gap: 10px;
}

.search-bar input,
.search-bar select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-bar button {
    padding: 12px 30px;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background: #1a5dc4;
}

/* Job List */
.job-list {
    padding: 50px 0;
}

.job-list h2 {
    margin-bottom: 30px;
}

.jobs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.job-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.job-location {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-pay {
    font-weight: bold;
    color: #2c7be5;
    font-size: 18px;
}

.job-status {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
}

/* Detail */
.detail-container {
    padding: 50px 0;
    background: #f8f9fa;
}

.btn-back {
    background: none;
    border: none;
    color: #2c7be5;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

.detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.status-badge {
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
}

.detail-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row .label {
    width: 150px;
    font-weight: bold;
    color: #666;
}

.info-row .value {
    flex: 1;
}

.detail-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.detail-description ul {
    margin-left: 20px;
}

.detail-description li {
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    flex: 1;
    padding: 15px;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.btn-primary:hover {
    background: #1a5dc4;
}

.btn-secondary {
    padding: 15px 30px;
    background: #fff;
    color: #2c7be5;
    border: 2px solid #2c7be5;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #f0f7ff;
}

.provider-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.provider-info h3 {
    margin-bottom: 15px;
}

.provider-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.provider-rating {
    color: #f39c12;
}

/* Auth */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 50px 0;
}

.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-box h2 {
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-links a {
    color: #2c7be5;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* MyPage */
.mypage-container {
    padding: 50px 0;
    background: #f8f9fa;
}

.mypage-container .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.mypage-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.user-info h3 {
    margin-bottom: 5px;
}

.user-info p {
    color: #666;
    font-size: 14px;
}

.mypage-nav {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.mypage-nav a {
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: background 0.3s;
}

.mypage-nav a:hover,
.mypage-nav a.active {
    background: #f0f7ff;
    color: #2c7be5;
}

.mypage-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.job-list-simple {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-item h3 {
    margin-bottom: 8px;
}

.job-item p {
    color: #666;
    margin-bottom: 5px;
}

.job-item button {
    margin-top: 10px;
    padding: 8px 20px;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.status-pending {
    background: #ffc107;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
}

.status-active {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
}

.status-completed {
    background: #6c757d;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.history-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Post */
.post-container {
    padding: 50px 0;
    background: #f8f9fa;
}

.post-container .container {
    max-width: 800px;
}

.post-container h2 {
    margin-bottom: 30px;
}

.post-container form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .jobs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 14px;
    }
    
    nav a {
        padding: 5px 10px;
    }
    
    .btn-login {
        padding: 6px 15px;
    }
    
    .hero {
        height: 250px;
    }
    
    .search-bar {
        padding: 20px 0;
    }
    
    .search-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100%;
        padding: 10px;
    }
    
    .job-list {
        padding: 30px 0;
    }
    
    .job-list h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .jobs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-card {
        padding: 15px;
    }
    
    .job-card h3 {
        font-size: 16px;
    }
    
    .job-pay {
        font-size: 16px;
    }
    
    .detail-container {
        padding: 30px 0;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .detail-header h2 {
        font-size: 18px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-row .label {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .auth-box {
        padding: 25px;
        margin: 0 15px;
    }
    
    .auth-box h2 {
        font-size: 20px;
    }
    
    .mypage-container .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mypage-sidebar {
        order: 2;
    }
    
    .mypage-content {
        order: 1;
        padding: 20px;
    }
    
    .mypage-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .mypage-nav a {
        flex-shrink: 0;
    }
    
    .post-container {
        padding: 30px 0;
    }
    
    .post-container form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    
    nav {
        font-size: 13px;
        gap: 10px;
    }
    
    .hero {
        height: 200px;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .provider-info {
        padding: 15px;
    }
}
