/*


 */

 /* ===== エラーメッセージ ===== */
.errors {
    border: 1px solid #e11d48;
    background: #fff1f2;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
}

.errors ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.errors li {
    color: #e11d48;
    font-weight: 600;
    margin: 4px 0;
}

/* ===== フラッシュ ===== */
.flash {
    padding: 10px 14px;
    margin: 12px 0;
    border-radius: 8px;
    font-weight: 600;
}

.flash.notice {
    border: 1px solid #16a34a;
    background: #dcfce7;
    color: #166534;
}

.flash.alert {
    border: 1px solid #e11d48;
    background: #fff1f2;
    color: #9f1239;
}

/* 予約一覧 */
.container {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.table th,
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
}

/* 1:日付 2:開始 3:終了 5:操作 を中央 */
table.table th:nth-child(1),
table.table td:nth-child(1),
table.table th:nth-child(2),
table.table td:nth-child(2),
table.table th:nth-child(3),
table.table td:nth-child(3),
table.table th:nth-child(5),
table.table td:nth-child(5) {
  text-align: center;
}

/* 4:サロン・クリニック名 は左 */
table.table th:nth-child(4),
table.table td:nth-child(4) {
  text-align: left;
}

.table thead th {
    background: #f6f7f8;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.new-reservation {
    margin-top: 10px;
    border-color: #2f6fed;
    background: #2f6fed;
    color: #fff;
}

.btn-primary {
    border-color: #2f6fed;
    background: #2f6fed;
    color: #fff;
}

.btn-secondary {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.btn-delete {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

/* ページタイトル */
.page-title {
    text-align: center;
    margin-bottom: 24px;
}

/* ===== フォーム ===== */
.form-container {
    max-width: 600px;
    margin: 24px auto;
    padding: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* ログイン関連 */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
}

.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 12px;
}

.auth-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
}

.auth-container .form-group {
    margin-bottom: 16px;
}

.auth-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.error_explanation {
    border: 1px solid #e11d48;
    background: #fff1f2;
    padding: 12px 16px;
    margin: 12px 0 16px;
    border-radius: 10px;
    font-weight: 600;
}

.error_explanation ul {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
}

.error_explanation li {
    color: #e11d48;
    margin: 4px 0;
}
