/* Google FontsからPoppinsフォントをインポート */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上下に要素を配置 */
}

/* コンテンツエリアの下部にフッターのスペースを確保 */
.container {
    background-color: white;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding:50px 20px 100px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    flex-grow: 1;
}

/* 見出しと画像のレイアウト */
h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

h1::before {
    content: '';
    display: inline-block;
    width: 60px;
    height: 60px;
    background-image: url('https://bonworld.jp/img/buzzword_icon.png');
    background-size: cover;
    border-radius: 22%; /* 角丸をiPhoneのアイコン風に */
    margin-right: 15px; /* アイコンとテキストの間隔を調整 */
}

.container p{
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Sticky menu design */
#controls {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    font-size: 0.9em;
    gap: 8px;
}

.filter-btn {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 3px 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: inline-block;
}

.filter-btn::after {
    content: "|";
    margin-left: 8px;
}

.filter-btn:last-child::after {
    content: "";
}

.filter-btn:hover {
    color: #007BFF;
    background-color: #f0f0f0;
}

.filter-btn.active {
    color: #fff;
    background-color: #007BFF;
    border-radius: 3px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Setting row background color and making the border same as body background (#f7f7f7) */
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f7f7f7; /* Border color same as body background */
    font-size: 0.9em;
}

th {
    background-color: #333;
    color: white;
}

/* Category-based row colors with pastel tones */
tr.セール {
    background-color: #FFD9E0;
}

tr.お得 {
    background-color: #D4F1E0;
}

tr.行動 {
    background-color: #C9E6FF;
}

tr.緊急性 {
    background-color: #FFE8CC;
}

tr.商品 {
    background-color: #E5DBFF;
}



/* Responsive Design */
@media (max-width: 768px) {
    #controls {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .filter-btn {
        padding: 3px;
    }
	
    .container {
        padding: 50px 15px 100px;
    }
	
}
