/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e8f4e8;
}

a {
    color: #2e7d32;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    padding-left: 20px;
}

/* ヘッダー */
header {
    background-color: #2e7d32;
    color: white;
    padding: 20px;
    text-align: center;
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.title h1 {
    margin: 0;
    font-size: 1.8rem;
}

.title h1 a {
    color: white;
    text-decoration: none;
}

.language-switcher {
    font-size: 0.9rem;
}

.language-switcher a {
    color: white;
    margin: 0 5px;
}

.active-lang {
    font-weight: bold;
    text-decoration: underline;
}

/* コンテナ */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* サイドバー */
.sidebar {
    width: 200px;
    background-color: #e8f4e8;
    padding: 20px 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 2px;
}

.sidebar a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #2e7d32;
    color: white;
}

/* メインコンテンツ */
.content {
    flex: 1;
    padding: 20px;
    min-height: 600px;
}

.page-content {
    display: none;
}

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

h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2e7d32;
}

h3 {
    color: #2e7d32;
    margin: 20px 0 10px;
}

h4 {
    margin: 15px 0 10px;
}

p {
    margin-bottom: 15px;
}

/* ニュースとイベント */
.news-item, .activity-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* テーブル */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* フォーム */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-login {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-login:hover {
    background-color: #1b5e20;
}

.login-form {
    max-width: 400px;
    margin: 20px 0;
}

/* フッター */
footer {
    background-color: #2e3e4e;
    color: white;
    padding: 30px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
}

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

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

.footer-section a {
    color: #b0bec5;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #455a64;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .title {
        flex-direction: column;
    }

    .language-switcher {
        margin-top: 10px;
    }

    .footer-content {
        flex-direction: column;
    }
}
