/* app.css */

/* 共通スタイル */
body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

main {
    min-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
}

/* 固定サイドバー（PC用） */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar a {
    color: #275543;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
}

.sidebar a:hover {
    background-color: #f8f9fa;
}

.sidebar a.active {
    background-color: #ffffff;
    color: #ffffff !important;
}

.btn-toggle {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 10px 15px;
    font-weight: 600;
    color: #333;
}

.btn-toggle:hover,
.btn-toggle:focus {
    background-color: #f8f9fa;
}

.btn-toggle-nav a {
    padding-left: 30px;
}

/* メインコンテンツ（PC用）の余白：md以上ならサイドバー分のスペースを空ける */
.main-content {
    background-color: #fafafa;
    margin-left: 0;
    /* padding-top: 1rem; */
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 280px;
    }

    .main-content.no-sidebar {
        margin-left: 0;
    }
}

/* フォーム関連 */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #275543;
    color: #ffffff;
    font-weight: bold;
    border-bottom: none;
}

.form-label {
    font-weight: 600;
    color: #333;
}

.form-control {
    border-radius: 0.25rem;
}

.input-group-text {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

.btn-primary {
    background-color: #33cc33;
    border-color: #33cc33;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #2ca02c;
    border-color: #2ca02c;
}

.card-body .mb-3 {
    margin-bottom: 1.25rem;
}

.btn-secondary {
    margin-left: 0.5rem;
}

.table thead th {
    text-align: center;
    white-space: nowrap;
    /* 左右の余白を少し増やして幅に余裕を持たせる */
    padding: 0.75rem 1.5rem;
}

/* 各列に幅を振る（調整はお好みで） */
.table .col-image {
    width: 15%;
}

.table .col-maker {
    width: 15%;
}

.table .col-name {
    width: 20%;
}

.table .col-classification {
    width: 15%;
}

.table .col-introduction {
    width: 15%;
}

.table .col-price {
    width: 10%;
}

.table .col-shop {
    width: 10%;
}

/* セル内も中央寄せしたければ */
.table tbody td.text-center {
    text-align: center;
}

.pagination .page-link {
    color: #28a745;
    border-color: #28a745;
}

.pagination .page-link:hover {
    color: #1e7e34;
    background-color: #e9f5ec;
    border-color: #275543;
}

.pagination .page-link svg {
    fill: #28a745;
}

.pagination .page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* 無効（disabled）の色 */
.pagination .page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
}