/* ===== Base ===== */
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    background-color: #f5f7fa;
    color: #212529;
}

/* ===== Bottom padding (mobile: for fixed bottom nav / desktop: for footer) ===== */
.pb-mobile {
    padding-bottom: 300px !important;
}
@media (min-width: 768px) {
    .pb-mobile {
        padding-bottom: 6rem !important;
    }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: 0.8rem;
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
}

/* ===== Card ===== */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 600;
}

/* ===== Table ===== */
.table th {
    font-size: 0.8rem;
    white-space: nowrap;
}
.table td {
    vertical-align: middle;
    font-size: 0.88rem;
}

/* ===== Article card (mobile list) ===== */
.article-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border-left: 4px solid #0d6efd;
}
.article-card .article-theme {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    margin-bottom: 0.25rem;
}
.article-card .article-meta {
    font-size: 0.78rem;
    color: #6c757d;
}
.article-card .article-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===== Forms ===== */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.form-control, .form-select {
    border-radius: 0.5rem;
    font-size: 1rem;
    padding: 0.55rem 0.75rem;
}
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

/* ===== Buttons ===== */
.btn {
    border-radius: 0.5rem;
}
.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
}

/* ===== Flash messages ===== */
.message {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
}

/* ===== Pagination ===== */
.page-link {
    font-size: 0.85rem;
    border-radius: 0.4rem !important;
}

/* ===== View detail rows ===== */
.detail-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    min-width: 100px;
}

/* ===== Asc/Desc sort ===== */
.asc a::after  { content: " ↓"; }

/* ===== DebugKit ツールバー非表示 ===== */
#debug-kit-toolbar { display: none !important; }
.desc a::after { content: " ↑"; }


/* ===== Top page content width ===== */
.page-content {
    margin: 0 auto;
}
@media (min-width: 1200px) {
    .page-content {
        max-width: 800px;
    }
}
