/**
 * 企業用スタイル
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* ヘッダー */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: #2ecc71;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #2ecc71;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-name {
    color: #666;
    font-weight: 500;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* メインコンテンツ */
.main-content {
    min-height: calc(100vh - 70px - 200px);
}

/* ボタン */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.button:hover {
    background: #e0e0e0;
}

.button-primary {
    background: #2ecc71;
    color: white;
}

.button-primary:hover {
    background: #27ae60;
}

.button-secondary {
    background: #6c757d;
    color: white;
}

.button-secondary:hover {
    background: #5a6268;
}

.button-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.button-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* フラッシュメッセージ */
.message {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #17a2b8;
}

/* フッター */
.footer {
    background: #2c3e50;
    color: white;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    background: #1a252f;
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        gap: 15px;
    }

    .user-menu {
        flex-direction: column;
        align-items: flex-end;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}
