/* リセット・基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ナビゲーション */
.main-nav {
    background-color: #4CAF50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* フッター */
.main-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* コンテナ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container-small {
    max-width: 600px;
}

/* 見出し */
h1 {
    color: #333;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    color: #333;
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

th {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f5f5f5;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

.btn-info {
    background-color: #2196F3;
    color: white;
}

.btn-info:hover {
    background-color: #1976D2;
}

.btn-warning {
    background-color: #ff9800;
    color: white;
}

.btn-warning:hover {
    background-color: #f57c00;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.button-group {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4CAF50;
}

.required {
    color: #f44336;
    margin-left: 5px;
}

.help-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* メッセージ */
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.warning-message {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.info-message {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
}

.badge-default {
    background-color: #e0e0e0;
    color: #666;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* カテゴリ */
.category {
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-block;
}

/* その他のスタイル */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.count {
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
}

.quantity {
    text-align: center;
    font-weight: bold;
    color: #ff9800;
    font-size: 1.1em;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    table {
        font-size: 0.9em;
    }
    
    .button-group {
        flex-direction: column;
    }
}