/* ジャンプ位置の調整 */
#koko_lineup {
  scroll-margin-top: 100px; /* ここで見出しの止まる位置が決まります */
}

/* 読み込み前のガタつき防止 */
#koko-product-grid {
  min-height: 500px;
}

/* --- Section Layout --- */
.koko-lineup-section {
    font-family: "Yu Mincho", "MS Mincho", serif;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    max-width: 1000px;
    margin: 110px auto;
}

.koko-lineup-header {
    text-align: center;
    margin-bottom: 40px;
}

.koko-lineup-logo {
    max-width: 200px;
    height: auto;
    border: none; /* CMS対策 */
}

/* --- Filter Navigation --- */
.koko-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
}

.koko-filter-btn {
    background: none;
    border: 1px solid #d4af37;
    color: #333;
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    outline: none;
}

.koko-filter-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.koko-filter-btn.active {
    background-color: #d4af37;
    color: #fff;
}

/* --- Product Grid --- */
.koko-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* --- Product Card (Link Base) --- */
.koko-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important; /* リンクの下線を消す */
    color: #333 !important;           /* リンクの青色をリセット */
    transition: opacity 0.3s ease;
}

.koko-product-card:hover {
    opacity: 0.7; /* ホバー時にふわっとさせる */
}

/* --- Status Tags (Unicode Escape for Shift-JIS) --- */
.koko-tag-limited::before {
    content: "\671f\9593\9650\5b9a"; /* 期間限定 */
}

.koko-tag-last::before {
    content: "\306e\3053\308a\308f\305a\304b"; /* のこりわずか */
}

.koko-tag-student::before {
    content: "\5b66\751f\30c7\30b6\30a4\30f3"; /* 学生デザイン */
}

.koko-product-img-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.koko-product-img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border: none;
}

/* --- Status Tags Style --- */
.koko-tag-last, .koko-tag-limited, .koko-tag-student {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    font-size: 14px;
    padding: 4px 0;
    letter-spacing: 0.1em;
    pointer-events: none; /* タグがクリックを邪魔しないように */
}

.koko-tag-limited, .koko-tag-student {
    background-color: rgba(212, 175, 55, 0.9);
}

/* --- Info Area --- */
.koko-product-type {
    font-size: 13px!important;
    color: #888;
    margin-bottom: 0 !important;
}

.koko-product-name {
    font-size: 14px;
    font-weight: normal;
    margin: 0 0 12px 0 !important;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

/* --- Icons (Leaf/Bag) --- */
.koko-product-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    min-height: 24px;
}

.koko-icon {
    width: 24px;
    height: auto;
    opacity: 0.7;
    border: none;
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
    .koko-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .koko-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
    }
    .koko-tag-last, .koko-tag-limited, .koko-tag-student {
        font-size: 12px; /* スマホではタグの文字を少し小さく */
    }
}