/* koto-na予約システム スタイルシート */

:root {
    --main-color: #d2691e;
    --sub-color: #ff8c00;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 
                 'Arial', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text-color);
    background: #f8f8f8;
    line-height: 1.8;
}

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

/* ヘッダー */
.header {
    background: var(--main-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

/* カード */
.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

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

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--main-color);
}

.form-label .required {
    color: #e74c3c;
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sub-color);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: white;
    background: var(--main-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--sub-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210,105,30,0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* カレンダー */
#calendar-container {
    margin-bottom: 20px;
}

.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 時間選択 */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    border-color: var(--sub-color);
    background: #fff5ee;
}

.time-slot.selected {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* 確認画面 */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.confirm-table th,
.confirm-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.confirm-table th {
    background: #f8f8f8;
    font-weight: bold;
    width: 30%;
    color: var(--main-color);
}

/* 完了画面 */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: #27ae60;
    margin-bottom: 20px;
}

/* エラーメッセージ */
.error-message {
    background: #ffe6e6;
    color: #c0392b;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c0392b;
}

/* 注意書き */
.note {
    background: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
    font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .card {
        padding: 20px;
    }
    
    .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }
    
    .confirm-table th {
        background: var(--main-color);
        color: white;
        padding: 10px;
    }
    
    .confirm-table td {
        padding: 10px 15px 20px;
        border-bottom: 2px solid var(--border-color);
    }
}

/* 管理画面用スタイル */
.admin-header {
    background: #34495e;
    color: white;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-nav {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.admin-nav a {
    color: var(--main-color);
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
}

.admin-nav a:hover {
    color: var(--sub-color);
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.reservation-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.reservation-table th,
.reservation-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.reservation-table th {
    background: #f8f8f8;
    font-weight: bold;
}

.reservation-table tbody tr:hover {
    background: #f8f8f8;
}
