@charset "utf-8";

/* ================================================= */
/* 1. Reset & Base Settings (destyle.css + Custom) */
/* ================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");

*, ::before, ::after {
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-size: 14px;
}

body {
    margin: 0;
    background-color: #fff;
    color: #333;
    font-family: "Noto Sans JP", 'メイリオ', Meiryo, sans-serif !important;
    font-weight: 400;
}

@media screen and (min-width:961px) {
    body { font-size: 15px; }
}

main { display: block; }
img, svg, iframe { vertical-align: bottom; max-width: 100%; }
a { text-decoration: none; color: inherit; background-color: transparent; }
button { cursor: pointer; -webkit-appearance: none; appearance: none; background: none; }

/* ================================================= */
/* 2. Layout (Header , Common Wrapper) */
/* ================================================= */
header {
    background-color: #182d7c;
    padding: 8px;
}


.njLpWrap {
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
}

.custom-width {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

@media screen and (min-width:961px) {
    .njLpWrap { margin-top: 80px; }
}

/* ================================================= */
/* main*/
/* ================================================= */

.target-products-header {
    background-color: #e28194; 
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border: 1px solid #e28194;
}

@media (max-width: 767px) {
    .target-products-header {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

.campaign-banner {
    text-align: center;
    margin-bottom: 10px;
}

.campaign-banner img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.campaign-banner a:hover img {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.banner-caption {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    text-align: center; 
    line-height: 1.5;
    font-weight: normal;
}

@media screen and (max-width: 767px) {
    .banner-caption {
        font-size: 0.7rem;
        padding: 0 10px;
    }
}

h1{
    position: relative;
    padding: 0em 0.5em 0em 1.5em;
    line-height: 1.3em;
    font-size: 1.6rem;
    color: #642b14; /*文字色*/
    border-bottom: dashed 3px #e28194;/*下線の設定*/
}

h1::before {/*ピンクハートの設定*/
  font-family: FontAwesome; /*アイドルフォントの設定*/
  content: "\f004"; /*アイコンフォントの設定*/
  position: absolute;
  font-size: 0.75em; /*サイズ*/
  left: 0.2em; /*アイコンの位置*/
  top: -0.3em; /*アイコンの位置*/
  color: #e28194; /*アイコン色*/
}

h1::after {/*グレーハートの設定*/
  font-family: FontAwesome; /*アイコンフォントの設定*/
  content: "\f004"; /*アイコンフォントの設定*/
  position: absolute; 
  font-size: 0.5em; /*サイズ*/
  left: 1.4em; /*アイコンの位置*/
  top: 0.6em; /*アイコンの位置*/
  color: #d0c0c0; /*アイコン色*/
}

/* ================================================= */
/* categorybutton */
/* ================================================= */

.categories ul{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 5px;
    list-style: none;
    padding: 0;
}

.category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e28194;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    min-height: 60px;
    padding: 8px 8px;
    text-align: center;
    line-height: 1.3;
    font-size: 1.0rem;
    transition: opacity 0.3s ease;
    width: 100%;
}

.categories ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories li a:hover {
    opacity: 0.8;
    color: #fff;
}

@media screen and (max-width: 767px) {
    .categories ul {
        grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    }
}


/* ================================================= */
/* どこでもカート (productslist) & アイテム内のスタイル */
/* ================================================= */

.productslist * {
    box-sizing: border-box;
}

.productslist {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto; 
    padding: 0 5px; 
}

.cartanywhere {
    width: 100%; 
    margin: 0 0 1.5rem;
    display: block;
}

.productslist ul {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    height: 100%;
    padding: 1rem;
    margin: 0;
    list-style: none; 
}

/* 1. 画像エリア (モバイル: 50%) */
.productslist ul li:nth-child(1) {
    flex: 0 0 50%;
    padding-right: 10px;
}

.productslist ul li:nth-child(1) img {
    width: 100% !important; 
    height: auto;
    display: block;
    margin: 0 auto; 
}

/* 2. 情報エリア (モバイル: 50%) */
.productslist ul li:nth-child(2) {
    flex: 0 0 50%;
    text-align: left;
}

/* 3. それ以降のliがある場合の対策 (ボタンなど) */
.productslist ul li:nth-child(n+3) {
    flex: 0 0 100%;
    margin-top: 10px;
}

/* --- 商品情報テキスト --- */
.productslist p {
    background-color: #CAE5E9;
    font-size: 0.8rem;
    padding: 0.5rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.cartprodname {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
}

/* 価格表示 */
.cartprice {
    font-size: 1.4rem;
    color: #ff0000;
    font-weight: bold;
    text-align: right;
    display: block;
}

.yencolor {
    color: #333;
    font-size: 0.75rem;
    margin-left: 2px;
}

/* 納期・クーポン・ポイント */
.cartnouki {
  font-size: 0.8rem;
  color: #27c10d;
}

.cartcoupon {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #d80c39;
  color: #ffffff;
  font-size: 1.0rem;
  font-weight: bold;
  padding: 4px 0;
  box-sizing: border-box;
}

.cartcoupon:empty,
.cartcoupon:has(> .result-data:empty) {
  display: none !important;
}

.pointkangen {
  font-size: 0.8rem;
  font-weight: normal;
}

.pointkangen::before {
  content: "\f51e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.25em;
  color: rgb(250, 202, 10);
}


/* ================================================= */
/* メディアクエリ (PC・タブレット向け) */
/* ================================================= */

/* --- タブレットサイズ (768px以上): 2列表示 --- */
@media all and (min-width: 768px) {
    /* 1行に2つ並ぶ設定 */
    .cartanywhere {
        display: flex;
        flex: 0 0 calc(50% - 10px); 
        max-width: calc(50% - 10px);
        margin-bottom: 2rem;
    }

    .productslist ul {
        display: block; 
        padding: 0;
        border: 1px solid #eee;
        overflow: hidden;
        background: #fff;
    }

    .productslist ul li:nth-child(1) {
        width: 100%;
        padding: 0;
    }

    .productslist ul li:nth-child(1) img {
        width: 100% !important;
        height: auto;
        margin: 0;
        display: block;
    }

    .productslist ul li:nth-child(2) {
        width: 100%;
        padding: 15px; 
        text-align: left;
    }

    .cartprice {
        font-size: 1.6rem;
        text-align: right;
    }
}

/* --- PCサイズ (1024px以上): 3列表示 --- */
@media all and (min-width: 1024px) {
    article {
        max-width: 1100px; 
    }

    /* 1行に4つ並ぶ設定 (25% - 余白) */
    .cartanywhere {
        flex: 0 0 calc(25% - 14px); 
        max-width: calc(25% - 14px);
        margin: 0 7px 2rem;
    }
}


/* 手動版カードの基本構造 */
.manual-product-card {
    width: 100%;
    margin-bottom: 1.5rem;
}

@media all and (min-width: 768px) {
    .manual-product-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media all and (min-width: 1024px) {
    .manual-product-card {
        flex: 0 0 calc(25% - 14px);
        max-width: calc(25% - 14px);
        margin: 0 7px 2rem;
    }
}

.custom-more-btn {
    display: block;
    width: 100%;
    background-color: #e28194;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

.manual-price-box {
    text-align: right; 
    white-space: nowrap; 
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
    width: 100%;
}

.manual-product-card .cartprice {
    display: inline-block;
    font-size: 1.6rem;
    color: #ff0000;
    font-weight: bold;
    text-align: right;
    margin: 0;
    line-height: 1;
}

.manual-product-card .yencolor {
    display: inline-block;
    color: #333;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 2px;
    vertical-align: baseline;
}
.manual-product-card a:hover .custom-more-btn {
    opacity: 0.8;
    color: #fff;
}

.manual-product-card .cartprodname {
    min-height: 3.5em;
    margin-bottom: 10px;
}


/* ================================================= */
/* ページトップボタン */
/* ================================================= */
#pageTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#pageTop a {
    display: block;
    z-index: 999;
    padding: 8px;
    border-radius: 60px;
    width: 70px;
    height: 70px;
    background-color: #9FD6D2;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

#pageTop a:hover {
    text-decoration: none;
    opacity: 0.7;
}

body footer.mt-5 {
    background-color: #182d7c !important;
    color: #ffffff !important;
    border: none !important;
    display: block !important;
    margin: 0 calc(50% - 50vw) 0 !important;
    padding: 0 !important;
    clear: both !important;
}

body footer.mt-5 div {
    background-color: transparent !important;
    border: none !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

body footer.mt-5 small {
    font-weight: normal !important;
    border: none !important;
    color: #fff !important;
}