/* =========================
   ① BASE
========================= */

body {
    font-family: sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
    background: #f5f5f5;
    color: #222;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   ② HEADER / NAV
========================= */

header {
    margin-bottom: 30px;
    border-bottom: 3px solid #8a5cff;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

h1 a {
    color: #111;
}

/* =========================
   ③ MAIN
========================= */

main {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================
   ④ HEADINGS
========================= */

h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #8a5cff;
    padding-left: 12px;
}

h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 8px;
}

p {
    margin-bottom: 18px;
}

/* =========================
   ⑤ POST GRID
========================= */

.post-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    transition:.2s;
}

.post-card:hover{
    transform:translateY(-4px);
    box-shadow:0 6px 18px rgba(0,0,0,.15);
}

.post-card a{
    display:block;
    color:inherit;
}

.post-card img{
    width:100%;
    aspect-ratio:2/3;
    object-fit:cover;
    object-position:center top;
}

/* PICKだけ高さを変更 */
.pickup-grid .post-card img{
    height:300px;
    aspect-ratio:auto;
}

.post-card p{
    padding:10px;
    font-size:14px;
    line-height:1.5;
    min-height:64px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* =========================
   ⑥ CATEGORY（唯一正解UI）
========================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 15px 0 30px;
}

.category-grid a {
    display: block;
    text-align: center;
    padding: 10px 6px;
    background: #fff7fa;
    border: 1px solid #f0c7d1;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.category-grid a:hover {
    background: #ffe4ec;
}

/* =========================
   ⑦ BADGE
========================= */

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
}

.badge.new { background: #ff3b30; }
.badge.hot { background: #ff9500; }
.badge.pick { background: #5856d6; }

/* =========================
   ⑧ MORE LINK
========================= */

.more-link {
    text-align: center;
    margin: 15px 0 40px;
}

.more-link a {
    display: inline-block;
    padding: 10px 18px;
    background: #8a5cff;
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
}

.more-link a:hover {
    opacity: .9;
}

/* =========================
   ⑨ CATEGORY PAGE
========================= */

.genre-intro {
    margin-bottom: 30px;
}

.genre-features {
    background: #faf7ff;
    border-left: 4px solid #8a5cff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.genre-features ul {
    margin: 0;
    padding-left: 20px;
}

.genre-features li {
    margin-bottom: 8px;
}

.genre-summary {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 30px;
    padding: 12px;
    background: #fff1f4;
    border-radius: 10px;
}

.genre-card {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #f0c7d1;
    border-radius: 999px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

.genre-card:hover {
    background: #ffe4ec;
}

.genre-strip a.genre-strip-primary {
    background: #8a5cff;
    color: #fff;
    font-weight: 800;
    transform: scale(1.03);
}

/* =========================
   ⑩ PAGINATION
========================= */

.pagination {
    margin: 40px 0 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.pagination a:hover {
    background: #8a5cff;
    color: #fff;
}

.pagination .current {
    background: #8a5cff;
    color: #fff;
    font-weight: bold;
}

/* =========================
   カード一覧
========================= */

/* PICK */
.pickup-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pickup-grid .post-card img{
    height:300px;
}

/* NEW */
.new-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

/* HOT */
.hot-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

/* ランキング */
.ranking-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
}

/* 商品ページ関連記事 */
.post-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:20px;
}

.post-grid .post-card img{
    height:180px;
}

/* =========================
   ジャンル一覧（CTR最適化・横5分割）
========================= */

.genre-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 20px 0 35px;
}

.genre-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: #fff1f4; /* 薄ピンク帯 */
    border: 1px solid #f0c7d1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

/* hover */
.genre-strip a:hover {
    background: #ffe4ec;
    transform: translateY(-1px);
}

.hot-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0 25px;
}

.hot-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.hot-nav a:hover {
    background: #fff1f4;
}

/* =========================
   商品ページ
========================= */

.product-image{
    text-align:center;
    margin:25px 0;
}

.product-image img{
    max-width:600px;
    width:100%;
    height:auto;
    display:block;
    margin:0 auto;
}

/* 作品情報 */

.product-info{
    margin:25px 0;
}

.product-info table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.product-info th,
.product-info td{
    border:1px solid #ddd;
    padding:12px;
}

.product-info th{
    width:120px;
    background:#f8f8f8;
    font-weight:bold;
    text-align:left;
}

/* サンプル画像 */

.sample-gallery{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
    margin:20px 0;
}

.sample-gallery img{
    width:100%;
    height:auto;
    display:block;
    border-radius:6px;
}

/* CTA */

.cta-button{
    display:block;
    text-align:center;
    background:#ff4d6d;
    color:#fff;
    padding:14px;
    border-radius:10px;
    font-size:18px;
    font-weight:bold;
    margin:25px 0;
}

.cta-button:hover{
    opacity:.9;
}

/* 関連作品 */

.review-content{
    max-width:750px;
    margin:0 auto;
    line-height:2.1;
    font-size:17px;
}

.review-content p{
    margin-bottom: 1.8em;
}

.review-points{

background:#fafafa;

padding:20px 25px;

border-left:4px solid #e74c3c;

margin:30px 0;

}


.review-points li{

margin-bottom:12px;

}

/* =========================
   ⑪ MOBILE
========================= */

@media(max-width:768px){

    .pickup-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .new-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .hot-grid{
    grid-template-columns:repeat(2,1fr);
    } 

    .ranking-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .post-card img{
        height:150px;
    }

    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .genre-strip{
        grid-template-columns:repeat(3,1fr);
    }

.post-grid{
    grid-template-columns:repeat(2,1fr);
}

}
