*,
*::before,
*::after { box-sizing:border-box; margin:0; padding:0; }

/* ===== HERO / 検索フォーム ===== */
.hero-search{
    margin:0 auto;
    padding:60px 20px 40px;
    text-align:center;
}

.search-box{
    margin:32px auto 20px;
    display:flex;
    max-width:520px;
    border:2px solid #ccc;
    border-radius:2px;
}
.search-box input{
    flex:1; padding:10px 12px; font-size:14px; border:none; background:none;
}
.search-box button{
    border:none; background:#fff; cursor:pointer; padding:0 14px; font-size:18px;
}

.filter-row{
    display:flex; flex-wrap:wrap; gap:14px; justify-content:center;
    margin-top:16px;
}
.filter-row select{
    padding:6px 28px 6px 12px;
    border:1px solid #ddd;
    font-size:13px;
    min-width:128px;
}

/* ===== 商品グリッド ===== */
.product-grid{
    --card-gutter:36px;
    --card-min:260px;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(var(--card-min),1fr));
    gap:var(--card-gutter);
    max-width:1220px;
    margin:60px auto;
    padding:0 20px;
}
.new-products-scroll{
    --card-gutter:16px;
    --card-min:260px;
    display:flex;
    gap:var(--card-gutter);
    overflow-x:auto;
    margin:0 auto;
    padding:0 20px;
}
.new-products-scroll .product-card{
    flex:0 0 var(--card-min);
    width:var(--card-min);
}
.new-products-section .section-header{
    text-align:center;
}
.new-products-section .title-group{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.new-products-section .more-btn{
    background:#fff;
    border:1px solid #000;
    border-radius:100px;
    color:#000;
    font-weight:700;
    font-size:16px;
    cursor:pointer;
    display:block;
    text-align:center;
    padding:8px 48px;
    margin:20px auto 0;
    width: fit-content;
    text-decoration: none;
}


/* ===== カード ===== */
.product-link{
    display:block;
    color:inherit;
    text-decoration:none;
}
.product-link *{
    text-decoration:none;
}

.product-card{
    border:1px solid #dcdcdc;
    background:#fff;
    box-shadow:6px 6px 0 rgba(0,0,0,.18);
    display:flex;
    flex-direction:column;
}

.thumb{
    position:relative;
    width:100%;
    padding-top:75%;        /* 4:3 比率を確保 (fallback) */
    aspect-ratio:4/3;       /* 4:3 サムネ比率。変更可 */
    background:#f5f5f5;
    overflow:hidden;
}
.thumb img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;     /* アスペクト比を維持して収める */
}

.thumb button{
    position:absolute; top:50%; transform:translateY(-50%);
    width:36px; height:36px; border:none; color:#fff;
    background:rgba(0,0,0,.6); cursor:pointer; font-size:22px;
    display:flex; align-items:center; justify-content:center;
}
.thumb .prev{ left:8px; }
.thumb .next{ right:8px; }

/* プランタグを画像の右上に重ねる */
.plan-tag{
    position:absolute; top:8px; right:8px;
    padding:4px 12px;
    font-size:11px; font-weight:600;
    color:#fff; border-radius:2px;
    letter-spacing:.5px;
    background:#999;
}
.plan-tag.basic    { background:#CFCFCF; }
.plan-tag.standard { background:#7E7E7E; }
.plan-tag.premium  { background:#000; }

.card-body{
    padding:18px 20px 22px;
    font-size:14px;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.card-body .artist{ font-size:12px; color:#4a4a4a; }
.card-body .title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.meta{
    width:100%; border-collapse:collapse; font-size:12px;
}
.meta th{ font-weight:400; color:#666; padding-right:6px; white-space:nowrap; }
.meta td{ color:#333; }
.meta td.no-stock{ color:#c00; }

.price{
    font-size:18px; font-weight:600; margin-top:4px;
}
.price small{ font-size:12px; }

/* ===== read more ===== */
.readmore-wrap{ text-align:center; margin:60px 0 80px; }
#readMore{
    border:1px solid #000;
    background:#fff;
    border-radius:100px;
    cursor:pointer;
    font-size:14px;
    letter-spacing:.5px;
    padding:8px 24px;
}
#readMore span{ font-size:16px; }


/* ╭── Filter Box ───────────────────────────── */
.filter-box{
    max-width:1000px;
    margin:40px auto;
    padding:60px 60px 40px;
    background:#fff;
}
.filter-h{
    font-size:26px;
    font-weight:600;
    margin-bottom:20px;
}

.filter-item{
    margin-bottom:30px;
}
.filter-title{
    display:flex;
    align-items:center;
}
.filter-arrow{
    display:none;
    width:18px;
    transition:transform 0.3s ease;
    transform:rotate(180deg);
}
.value-note{
    font-size:12px;
    margin-right:4px;
    margin-left:auto;
    text-align:right;
    flex-grow:1;
}
.keyword-wrap{
    position:relative;
    margin-bottom:36px;
}
.keyword-wrap input{
    width:100%; height:48px;
    border:2px solid #e5e5e5;
    border-radius:100px;
    font-size:16px;
    padding:0 70px 0 26px;
}
.keyword-wrap button{
    position:absolute; right:16px; top:50%;
    transform:translateY(-50%);
    width:40px; height:40px; border:none; background:none; padding:0;
    background:none; cursor:pointer;
}
.keyword-wrap button img{ width:60%; height:60%; }

.check-row{ display:flex; gap:38px; margin-bottom:32px; justify-content:flex-start; }
.chk{ font-size:18px; display:flex; align-items:center; gap:8px; cursor:pointer; }
.chk input{ display:none; }
.chk .square{
    width:24px; height:24px; border:2px solid #000; display:inline-block;
}
.chk input:checked + .square{ background:#000; position:relative; }
.chk input:checked + .square::after{
    content:""; position:absolute; left:6px; top:2px; width:8px; height:14px;
    border-right:3px solid #fff; border-bottom:3px solid #fff;
    transform:rotate(45deg);
}

.select-grid{
    display:grid;
    grid-template-columns:auto auto 1fr 1fr;
    gap:26px 38px;
    margin-bottom:46px;
}
.select-grid select{
    width:100%; height:48px; padding:0 42px 0 20px;
    font-size:16px; border:2px solid #e5e5e5; border-radius:32px;
    background:url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23000'/%3E%3C/svg%3E") no-repeat right 18px center/10px 6px;
    appearance:none; -moz-appearance:none; -webkit-appearance:none;
}

.size-range{
    display:grid;
    grid-template-columns:auto auto 1fr 1fr;
    gap:26px 38px;
    margin-bottom:46px;
}
.size-row{
    display:flex; align-items:center; gap:10px;
}
.size-row input{
    width:100px; height:48px; padding:0 12px;
    font-size:16px; border:2px solid #e5e5e5; border-radius:32px;
}
.size-label{
    font-weight:600;
    align-self:center;
}
.size-buttons{
    display:flex; align-items:center; gap:10px;
    justify-content:center;
}
.size-btn{
    width:40px; height:40px; line-height:36px;
    font-size:14px; background:#fff; border:2px solid #e5e5e5;
    border-radius:20px; cursor:pointer;
}
.size-btn.active{ background:#000; color:#fff; }
.price-range{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:46px;
}
.price-range input{
    width:100px;
    height:48px;
    padding:0 12px;
    font-size:16px;
    border:2px solid #e5e5e5;
    border-radius:32px;
}

.view-btn{
    display:block;
    width:280px;
    padding: 12px;
    margin:0 auto;
    font-size:18px;
    background:#000; color:#fff; border:none; border-radius:100px;
    cursor:pointer;
    text-decoration: none;
    font-weight: bold;
}
.clear-btn{
    display: block;
    width: 160px;
    padding: 8px 12px;
    margin: 20px auto 0;
    font-size: 16px;
    background: white;
    color: black;
    border: 1px solid;
    border-radius: 100px;
    cursor: pointer;
}

/* ===== レスポンシブ ===== */
@media(max-width:768px){
    .hero-search{ padding:40px 12px; }
    .filter-row select{ width:100%; min-width:100%; font-size:18px; }
    .product-grid{ grid-template-columns:1fr; gap:24px; margin:40px auto; }
    .thumb{ padding-top:100%; aspect-ratio:1/1; }          /* スマホでは正方形に */
    .price{ font-size:18px; }

    .thumb button{ width:28px;height:28px;font-size:18px; }
    .plan-tag{ font-size:10px; padding:2px 10px; }

    .filter-box{ padding:40px 20px; }
    .filter-h{ font-size:18px; margin-bottom:20px; cursor:pointer; }
    .filter-arrow{ display:inline-block; }
    .filter-item.closed .filter-content{ display:none; }
    .filter-item.closed .filter-arrow{ transform:rotate(0deg); }
    .check-row{ flex-direction:row; gap:16px; justify-content:center; }
    .select-grid{ grid-template-columns:1fr; gap:18px; }
    .select-grid select{ font-size:18px; }
    .size-range{ grid-template-columns:1fr; gap:18px; }
    .size-row{ flex-direction:row; align-items:center; gap:10px; }
    .size-row input{ flex:1; font-size:18px; }
    .size-buttons{ justify-content:center; }
    .price-range{ flex-direction:row; align-items:center; gap:10px; }
    .price-range input{ flex:1; font-size:18px; }
    .price-range span{ display:inline; }
    .view-btn{ width:100%; font-size:18px; }
    .clear-btn{ width:100%; font-size:18px; }
}

