/* ===================================================
   クチコミ・ガーディアン 共通スタイル
   =================================================== */

/* ── フォント ─────────────────────────────────────── */
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", sans-serif;
    font-size: 0.9rem;
    color: #333;
    background-color: #f8f9fa;
}

/* ── サイドバー ───────────────────────────────────── */
.sidebar-wrapper {
    background-color: #fff;
    border-right: 1px solid #e9ecef;
}

.sidebar {
    padding: 1rem 0.75rem;
}

.sidebar .list-group-item {
    border: none;
    border-radius: 6px;
    margin-bottom: 2px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    transition: background-color 0.15s;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item.active {
    background-color: #e8f0fe;
    color: #1a56db;
}

.sidebar .list-group-item.active {
    font-weight: 600;
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #adb5bd;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 0.5rem 0.3rem;
}

/* ── カード ───────────────────────────────────────── */
.card {
    border-radius: 10px;
}

.card-header {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
}

/* ── テーブル ─────────────────────────────────────── */
.table {
    font-size: 0.875rem;
}

.table thead th {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.02em;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background-color: #f8f9ff;
}

/* ── バッジ ───────────────────────────────────────── */
.badge {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── フォーム ─────────────────────────────────────── */
.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #495057;
}

.form-control, .form-select {
    font-size: 0.875rem;
    border-radius: 6px;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-text {
    font-size: 0.78rem;
    color: #6c757d;
}

/* ── ボタン ───────────────────────────────────────── */
.btn {
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
}

/* ── アラート ─────────────────────────────────────── */
.alert {
    border-radius: 8px;
    font-size: 0.875rem;
}

/* ── ページネーション ─────────────────────────────── */
.pagination .page-link {
    font-size: 0.8rem;
    color: #495057;
    border-radius: 4px !important;
    margin: 0 1px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ── ナビタブ ─────────────────────────────────────── */
.nav-tabs .nav-link {
    font-size: 0.875rem;
    color: #6c757d;
    border-radius: 6px 6px 0 0;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
}

/* ── ユーティリティ ───────────────────────────────── */
.font-monospace {
    font-size: 0.8rem !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── レスポンシブ ─────────────────────────────────── */
@media (max-width: 767px) {
    main {
        padding: 1rem !important;
    }
}

/* ── 星評価 ───────────────────────────────────────── */
.stars-display span {
    font-size: 1.1rem;
    line-height: 1;
}
