:root {
    --brand-color: #ff4747;
    --bg-gray: #f5f5f5;
    --footer-bg: #e0e0e0;
    --footer-text: #4a4a4a;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--bg-gray);
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* PC制限表示 */
#mobile-blocker {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 10000; display: none;
    flex-direction: column; justify-content: center; align-items: center;
}

/* ヘッダー */
header {
    background: #ffffff;
    padding: 10px 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
}

.logo { 
    font-size: 30px; 
    font-weight: 900; 
    color: var(--brand-color); 
    cursor: pointer; 
    margin-right: 40px; 
    font-style: italic; 
}

.search-container { 
    flex-grow: 1; 
    max-width: 700px; 
    display: flex; 
}

.search-container input { 
    width: 100%; 
    padding: 12px 25px; 
    border: 2px solid var(--brand-color); 
    border-radius: 25px; 
    outline: none; 
    font-size: 14px; 
}

/* コンテンツ */
.container { 
    flex: 1; 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 0 20px; 
    width: 100%; 
    box-sizing: border-box; 
}

.hidden { 
    display: none !important; 
}

/* 商品グリッド */
.ad-banner {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.ad-banner img {
    width: 100%;
    max-width: 1200px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    object-fit: cover;
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; 
}

.card { 
    background: #fff; 
    overflow: hidden; 
    cursor: pointer; 
    transition: 0.2s; 
    border: 1px solid transparent; 
    position: relative; 
}

.card:hover { 
    transform: translateY(-5px); 
    border-color: var(--brand-color); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.card img { 
    width: 100%; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    background: #eee; 
}

.card-info { 
    padding: 12px; 
}

.card-price { 
    color: var(--brand-color); 
    font-size: 20px; 
    font-weight: bold; 
}

.card-title { 
    font-size: 13px; 
    height: 36px; 
    overflow: hidden; 
    margin: 8px 0; 
    color: #555; 
    line-height: 1.4; 
}

.card-tag { 
    font-size: 11px; 
    color: #00a650; 
    font-weight: bold; 
}

.pop-ad {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}

.pop-ad-content {
    display: inline-block;
    position: relative;
    width: 40%;
    max-width: 480px;
}

.pop-ad-content img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    object-fit: cover;
}

.pop-ad-text {
    position: absolute;
    left: 100%;
    bottom: 0;
    margin: 0 0 0 12px;
    font-size: 12px;
    color: #666;
    text-align: left;
    white-space: normal;
    line-height: 1.4;
    max-width: 220px;
}

/* 詳細画面 */
.detail-card { 
    background: #fff; 
    padding: 40px; 
    border-radius: 15px; 
    display: flex; 
    gap: 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.detail-img { 
    width: 450px; 
    max-width: 100%; 
    height: 450px; 
    object-fit: contain; 
    background: #f7f7f7; 
    border-radius: 10px; 
    border: 1px solid #eee; 
    display: block; 
}

.detail-txt { 
    flex: 1; 
}

.btn-main { 
    background: var(--brand-color); 
    color: #fff; 
    border: none; 
    padding: 18px; 
    font-size: 20px; 
    border-radius: 35px; 
    cursor: pointer; 
    width: 100%; 
    font-weight: bold; 
    margin-top: 20px; 
    transition: 0.3s; 
}

.btn-main:hover { 
    opacity: 0.85; 
    transform: scale(1.02); 
}

/* フッター */
footer { 
    background: var(--footer-bg); 
    color: var(--footer-text); 
    padding: 50px 0 30px; 
    margin-top: 60px; 
    font-size: 13px; 
}

.f-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
}

.f-col h4 { 
    color: #222; 
    margin-bottom: 20px; 
    font-size: 16px; 
}

.f-col ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.f-col li { 
    margin-bottom: 10px; 
    cursor: pointer; 
}

.f-col li:hover { 
    color: var(--brand-color); 
}

.f-bottom { 
    max-width: 1200px; 
    margin: 40px auto 0; 
    padding-top: 30px; 
    border-top: 1px solid #ccc; 
    text-align: center; 
}

.f-icons { 
    font-size: 30px; 
    margin-bottom: 15px; 
    opacity: 0.5; 
    filter: grayscale(1); 
}
/* ===== 間違い探しゲーム用スタイル ===== */
[data-diff] {
    transition: outline 0.15s ease, background-color 0.15s ease;
}
body.answer-mode-active [data-diff] {
    cursor: pointer;
}
.diff-found-highlight {
    outline: 3px solid #ff3b3b !important;
    outline-offset: 3px;
    background-color: rgba(255, 59, 59, 0.12) !important;
    border-radius: 4px;
    animation: diffPulse 0.6s ease;
}
@keyframes diffPulse {
    0% { outline-color: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,0.5); }
    100% { outline-color: #ff3b3b; box-shadow: 0 0 0 10px rgba(255,59,59,0); }
}

/* 画面が狭い場合（分割表示など）でもレイアウトが崩れないようにする */
@media (max-width: 900px) {
    .detail-card {
        flex-direction: column;
        gap: 20px;
    }
    .detail-img {
        width: 100%;
        height: auto;
        max-height: 320px;
    }
    .detail-txt {
        min-width: 0;
    }
}
