@charset "utf-8";

/* =========================================================
   ① 基本設定
========================================================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background: #f7f4ef;
    color: #1A1A1A;
}
body { padding-top: 60px; }

/* PC/SP 切替（デフォルトはPC） */
.pc_switch { display: block !important; }
.sp_switch { display: none !important; }

/* =========================================================
   ② レイアウト（コンテナ・グリッド）
========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}
.products-two, .products-three {
    display: grid;
    gap: 40px;
}

/* =========================================================
   ③ 固定ヘッダー
========================================================= */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}
.header-bar img {
    height: 45px;
    margin-top: 5px;
}

/* =========================================================
   ④ メインビジュアル
========================================================= */
.main-visual {
    background-image: url('https://gigaplus.makeshop.jp/isimaruudon/dokuji/img/image_deal-sample_mv.jpg');
    background-size: cover;
    background-position: center;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}
h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 4em;
    color: #fff;
    font-weight: 400;
    padding-bottom: 0.2em;
    border-bottom: 2px solid rgba(255,255,255,0.8);
}

/* =========================================================
   ⑤ 見出し
========================================================= */
.section-title-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4em;
    font-weight: 400;
    color: #B80000;
    text-align: center;
    margin: 70px auto 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid #B80000;
    width: fit-content;
}

.section-title-main {
    font-family: 'Noto Serif JP', serif;
    font-size: 2em;
    font-weight: 500;
    color: #1A1A1A;
    text-align: center;
    margin: 0 0 10px;
}

.section-title-normal {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.7em;
    font-weight: 500;
    text-align: center;
    margin: 0 0 70px;
    border-bottom: 1px solid #C8A96A;
    padding-bottom: 0.4em;
}

/* =========================================================
   ⑥ 商品カード
========================================================= */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-card {
    position: relative;
    padding: 36px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.product-link:hover .product-card {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* タグ */
.product-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 6px 22px;
    border: 1px solid #C8A96A;
    border-radius: 4px;
    font-size: 1.4em;
    font-weight: 600;
    color: #B80000;
}

/* PC時：3カラムだけ小さく */
.products-three .product-icon {
    font-size: 1.1em;
}

/* 吹き出し */
.product-balloon {
    position: absolute;
    top: -95px;
    left: 50%;
    transform: translateX(-50%);
    background: #1A1A1A;
    color: #fff;
    padding: 13px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    white-space: nowrap;
}
.products-three .product-balloon {
    font-size: 1em;
}
.product-balloon::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 8px 0 8px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}

/* ボタン */
.product-btn {
    background-color: #1a1a1a;
    color: #fff;
    padding: 16px 20px;
    font-size: 1.05em;
    border-radius: 14px;
    margin-top: 22px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease;
}
.product-link:hover .product-btn { background-color: #B80000; }

/* 画像 */
.mini-img {
    width: 100%;
    border-radius: 12px;
}

/* =========================================================
   ⑦ PC レイアウト
========================================================= */
@media screen and (min-width: 769px) {
    .products-two {
        padding: 130px 0 100px;
        grid-template-columns: repeat(2, 1fr);
    }
    .products-three {
        padding: 0 0 120px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   ⑧ スマホ レイアウト
========================================================= */
@media screen and (max-width: 768px) {

    .pc_switch { display: none !important; }
    .sp_switch { display: block !important; }

    .header-bar { height: 55px; padding: 0 20px; }
    body { padding-top: 55px; }
    .header-bar img { height: 38px; }

    .main-visual {
        height: 320px;
        background-image: url('https://gigaplus.makeshop.jp/isimaruudon/dokuji/img/image_deal-sample_mv_sp.jpg');
    }
    h1 { font-size: 2.4em; }

    .section-title-sub {
        font-size: 1.1em;
        margin: 50px auto 15px;
    }
    .section-title-main {
        font-size: 1.6em;
    }
    .section-title-normal {
        font-size: 1.3em;
        margin: 20px 0 130px;
    }

    .products-two {
        grid-template-columns: 1fr;
        gap: 150px;
        padding: 130px 0 40px;
    }
    .products-three {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 0 40px 0;
    }

    /* ★ スマホ時：すべての product-icon を統一 */
    .product-icon {
        font-size: 1.2em;
        padding: 6px 22px;
    }

    .products-three .product-balloon {
        font-size: 1.2em;
    }

    .product-btn { background-color: #B80000; }
}
