/* --- 全体の基本設定 --- */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* --- ヘッダー（ここを修正しました） --- */
header {
    background-color: #343a40; /* 濃いグレー・黒系の背景 */
    color: #ffffff;            /* 白い文字 */
    padding: 20px 0;
    text-align: center;        /* 文字を中央寄せ */
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
}

/* --- メインレイアウト --- */
main {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 15px 40px 15px;
}

/* --- 左側サイドバー --- */
aside {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    padding-left: 5px;
}

#manufacturerList {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* サイドバーのボタン */
.mfr-link {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    border: none;
    background: #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.mfr-link:hover {
    background-color: #dee2e6;
}

.mfr-link.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* --- 右側メインコンテンツエリア --- */
#productListArea {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    min-height: 600px;
}

/* --- 詳細画面のレイアウト（維持） --- */
.back-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.search-button-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-search {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white !important;
    font-weight: bold;
}

.btn-google { background-color: #4285f4; }
.btn-amazon { background-color: #ff9900; }

.detail-meta-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.detail-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* --- 一覧画面のスタイル --- */
.list-item {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.item-name-blue {
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* お問い合わせ・画像提供などのサブボタン共通スタイル */
.sub-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s;
}

.sub-link:hover {
    background-color: #eee;
    color: #333;
    border-color: #999;
}