﻿:root {
    --green-main: #2f7d32;
    --green-light: #e6f2e6;
    --green-dark: #1f5a23;
    --text-dark: #222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
}

body {
    background: #fff;
    color: var(--text-dark);
}

/* ===== ヘッダー ===== */
header {
    height: 56px;
    background: var(--green-main);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

    header img.logo {
        height: 32px;
    }

/* ===== ハンバーガー ===== */
.hamburger {
    font-size: 22px;
    margin-right: 12px;
    cursor: pointer;
    display: none;
}

/* ===== レイアウト ===== */
.container {
    display: flex;
    margin-top: 56px;
    min-height: calc(100vh - 56px);
}

/* ===== サイドメニュー ===== */
.sidebar {
    width: 220px;
    background: var(--green-light);
    padding: 16px;
}

    .sidebar a {
        display: block;
        padding: 10px;
        margin-bottom: 6px;
        text-decoration: none;
        color: var(--green-dark);
        border-radius: 6px;
    }

        .sidebar a:hover {
            background: var(--green-main);
            color: white;
        }

/* ===== メイン ===== */
main {
    flex: 1;
    padding: 16px;
    max-width: 1200px;
}

/* ===== チャット ===== */
.chat-box {
    height: calc(100vh - 180px);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    margin-top: 12px;
}

    .chat-input input {
        flex: 1;
        padding: 10px;
    }

    .chat-input button {
        padding: 10px 16px;
        background: var(--green-main);
        color: white;
        border: none;
    }

/* ===== 注意書き ===== */
.notice {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 56px;
        height: 100%;
        transition: left 0.3s;
        z-index: 99;
    }

        .sidebar.open {
            left: 0;
        }

    main {
        padding: 12px;
    }
}

/* ===== Login Overlay ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-modal {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.login-logo {
    width: 120px;
    margin-bottom: 16px;
}

.login-modal input {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-modal button {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

    .login-modal button.primary {
        background: #2f7d32;
        color: #fff;
        border: none;
    }

    .login-modal button.secondary {
        background: #e6f2e6;
        color: #2f7d32;
        border: none;
    }

.login-modal .terms {
    font-size: 12px;
    margin-top: 16px;
    color: #666;
}
