:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #fd7e14;
}

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Header & Navigation */
.navbar-brand img {
    max-height: 40px;
}

/* Page Content */
.page-content {
    margin-bottom: 2rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
}

/* Directory Listing */
.directory-description {
    margin-bottom: 1.5rem;
}

/* Admin Interface Tweaks */
.admin-link {
    margin-bottom: 1rem;
}



/* フル幅レイアウト用のスタイル */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* メディアクエリでページ全体の最大幅を設定 */
@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* ヘッダーコンテナのスタイル */
.header-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* レイアウトタイプに基づくスタイル調整 */
body.layout-fixed .container {
    max-width: 1140px;
}

body.layout-fluid .container-fluid {
    max-width: 100%;
}




/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}

/* Theme-specific colors */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    filter: brightness(90%);
    border-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    filter: brightness(90%);
    border-color: var(--secondary-color);
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* リストの項目を横並びにする */
.footer-links {
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline;  /* または inline-block でも可 */
    margin: 0;        /* 必要に応じて左右の余白を追加 */
}

/* 最後以外の li 要素のあとに区切り文字を挿入 */
.footer-links li:not(:last-child)::after {
    content: " / ";   /* 区切り文字を指定 */
    margin: 0 5px;    /* 左右の余白を設定（調整可能） */
}





/* Card layout styles */
.product-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.product-card {
    width: 220px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    border-radius: 4px;
}

.product-card h4 {
    font-size: 18px;
    margin: 10px 0 5px 0;
}

.product-card p {
    font-size: 14px;
    color: #555;
    margin: 4px 0;
}

.product-card a {
    display: inline-block;
    margin-top: 8px;
    color: #007bff;
    text-decoration: none;
}

.product-card a:hover {
    text-decoration: underline;
}

/* Table layout styles */
.product-table-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-table-list th,
.product-table-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.product-table-list th {
    background-color: #f8f9fa;
    font-weight: bold;
    font-size: 14px;
    text-transform: capitalize;
}

.product-table-list td img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}

.product-table-list tr:nth-child(even) {
    background-color: #fdfdfd;
}

.product-table-list tr:hover {
    background-color: #f1f7fd;
}

.product-table-list a {
    color: #007bff;
    text-decoration: none;
}

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


/* Product navigation menu styles */
.product-nav-menu {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.product-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.product-nav-menu li {
    display: inline-block;
}

.product-nav-menu a {
    text-decoration: none;
    color: #007bff;
}

.product-nav-menu a:hover {
    text-decoration: underline;
}

.product-nav-menu li.active a {
    font-weight: bold;
    text-decoration-line: underline;
}


