/* ==============================
   Admin 共通ベース
============================== */

body {
    background: #f4f6f8;
    font-size: 16px;
    /* ← 全体を大きく */
    line-height: 1.7;
    color: #333;
}

/* コンテンツ幅を制御 */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* タイトル */
.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    border-left: 6px solid #2c7be5;
    padding-left: 15px;
}

/* ==============================
   登録画面：news_create.php
============================== */

.news-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* フォームは縦並びを強制 */
.news-form label {
    display: block;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 17px;
}

/* 入力欄 */
.news-form input,
.news-form select,
.news-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* textarea */
.news-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* 登録ボタン */
.news-form button {
    margin-top: 10px;
    padding: 14px 30px;
    font-size: 17px;
    font-weight: 600;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.news-form button:hover {
    background: #1a68d1;
}

/* ==============================
   一覧画面：news_list.php
============================== */

.admin-table {
    width: 100%;
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ヘッダーを目立たせる */
.admin-table th {
    background: #2c7be5;
    color: #ffffff;
    padding: 16px;
    font-size: 16px;
}

/* 行 */
.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #e6e6e6;
    text-align: center;
    font-size: 15px;
}

/* 最終行の線を消す */
.admin-table tr:last-child td {
    border-bottom: none;
}

/* 行ホバー */
.admin-table tr:hover td {
    background: #f0f6ff;
}

/* 操作リンク */
.admin-table a {
    color: #2c7be5;
    font-weight: 600;
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

/* 新規登録ボタン */
.btn-secondary {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: #6c757d;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* ==============================
   カテゴリバッジ
============================== */

.category-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
}

/* 重要 */
.category-重要 {
    background: #dc3545;
    /* 赤 */
}

/* お知らせ */
.category-お知らせ {
    background: #17a2b8;
    /* 青 */
}

/* 休診 */
.category-休診 {
    background: #fd7e14;
    /* オレンジ */
}

/* ==============================
   操作ボタン
============================== */

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.action-buttons a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
}

/* 編集ボタン（青） */
.btn-edit {
    background: #2c7be5;
}

.btn-edit:hover {
    background: #1a68d1;
}

/* 削除ボタン（赤） */
.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
}

/* ==============================
   件数表示
============================== */

.news-count {
    margin-bottom: 15px;
    font-size: 15px;
    color: #666;
}

/* ==============================
   カテゴリ絞り込み
============================== */

.filter-form {
    margin-bottom: 20px;
}

.filter-form select {
    padding: 8px 12px;
    font-size: 14px;
}

/* ==============================
   アラート
============================== */

.alert-success {
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #e6f4ea;
    color: #155724;
    border-left: 6px solid #28a745;
    font-size: 15px;
}

/* ==============================
   ページネーション
============================== */

.pagination {
    margin-top: 25px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background: #2c7be5;
    color: #fff;
}

/* ==============================
   お知らせ登録フォーム
============================== */

.news-form {
    max-width: 600px;
}

.news-form label {
    display: block;
    margin-bottom: 20px;
    font-size: 15px;
}

.news-form input,
.news-form select,
.news-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    font-size: 15px;
}

.news-form textarea {
    resize: vertical;
}

.btn-primary {
    padding: 12px 24px;
    background: #2c7be5;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1a68d1;
}

/* エラーメッセージ */
.alert-error {
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #f8d7da;
    color: #721c24;
    border-left: 6px solid #dc3545;
}