@charset "utf-8";
/* CSS Document */

/* ============ Theme Colors ============ */
:root{
  --color-bg:#FEFAF7;      /* 背景 */
  --color-primary:#0E2C42; /* 見出し/ボタン/メニューの基調色 */
  --color-accent:#c9a953;  /* ホバーなどの差し色 */
  --color-text:#5A4634;    /* 説明文などの本文色 */
  --color-red:#bf0000;     /* 強調・価格色 */
  --color-pink:#e65f78;    /* タグ色 */
  --color-menu-bg:#0B7AC1; /* メニュー背景色（水色） */	
}
/* ===================================== */

body {
    margin: 0;
    background-color: var(--color-bg);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px; /* スマホメニュー用余白 */
}
a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}
a:hover {
    opacity: 0.7;
}

/* --- アニメーション --- */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1000ms 0s ease;
}
.fadein {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   ▼▼▼ メインビジュアル (FV) スライダー版 ▼▼▼
   ============================================ */

.fv_pc { width: 100%; background-size: cover; }
.fv_sp { display: none; width: 100vw; background-size: contain; }

/* PCスライダー設定 */
#mainimage {
    width: 100%;
    height: 880px; 
    position: relative;
    overflow: hidden;
}
#mainimage ul {
    position: absolute; top: -16px; left: -11%; width: 100%;
    margin: 0; padding: 0;
}
#mainimage ul li {
    list-style: none; width: 110%;
    position: absolute; top: 0; right: -10%;
    z-index: 6; opacity: 0; transition: opacity 1s;
}
#mainimage ul li.active { z-index: 9; opacity: 1; }
#mainimage ul li.last-active { z-index: 8; opacity: 1; }

#mainimage .topimage01 { width: 100%; height: 887px; background: url("images/title1.jpg") center; background-size: cover; }
#mainimage .topimage02 { width: 100%; height: 887px; background: url("images/title2.jpg") center; background-size: cover; }
#mainimage .topimage03 { width: 100%; height: 887px; background: url("images/title3.jpg") center; background-size: cover; }

#mainimage .title {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

/* SP用スライダー設定 */
#mainimage_sp {
    width: 100%;
    height: 100vw; /* 正方形 */
    position: relative;
    overflow: hidden;
}
#mainimage_sp ul {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    margin: 0; padding: 0;
}
#mainimage_sp ul li {
    list-style: none; width: 100%; height: 100%;
    position: absolute; top: 0; left: 0;
    z-index: 6; opacity: 0; transition: opacity 1s;
}
#mainimage_sp ul li.active { z-index: 9; opacity: 1; }

#mainimage_sp .topimage01 { width: 100%; height: 100%; background: url("images/title_sp1.jpg") center; background-size: cover; }
#mainimage_sp .topimage02 { width: 100%; height: 100%; background: url("images/title_sp2.jpg") center; background-size: cover; }
#mainimage_sp .topimage03 { width: 100%; height: 100%; background: url("images/title_sp3.jpg") center; background-size: cover; }

#mainimage_sp .title {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}
.fvimage { opacity: 0; transition: all 3000ms 0s ease; }


/* ============================================
   ▼▼▼ 共通エリア ▼▼▼
   ============================================ */
.area {
    background-color: var(--color-bg);
    width: 100%; overflow: hidden; position: relative; z-index: 999;
    margin-bottom: 20px; padding: 0;
}
.wrapper {
    max-width: 800px; margin: 0 auto; padding: 10px;
}

/* 背景固定エリア */
.cd-fixed-bg {
    width: 100%; margin: 0px; padding: 0px;
    background-size: 100%; background-repeat: no-repeat;
    min-height: 500px;
    background-position: center center; background-attachment: fixed;
}
.cd-fixed-bg.cd-bg-1 { background-image: url("images/fd_cate_back1.jpg"); }
.cd-fixed-bg.cd-bg-2 { background-image: url("images/fd_cate_back2.jpg"); }
.nonebg { background-image: none !important; }

/* 見出し */
h1 {
    color: var(--color-primary);
    text-align: center !important;
    font-family: serif; font-size: 42px;
    margin: 40px auto 20px auto; width: 100%;
}
.midashi1 {
    color: var(--color-primary);
    text-align: center;
    font-family: serif; font-size: 28px;
    font-weight: bolder; line-height: 1.5;
}
.line {
    border: 0;
    background-color: var(--color-primary);
    height: 1px; margin: 15px 0; opacity: 0.3;
}
.setsumei {
    text-align: center;
    font-family: serif;
    color: var(--color-text);
    font-size: 18px; line-height: 2;
    margin-bottom: 30px;
}
.image_w { width: 100%; display: block; }


/* ============================================
   ▼▼▼ メニュー（タイル） ▼▼▼
   ============================================ */
.menu-area {
    margin: 30px auto; max-width: 800px;
}
.tile-menu {
    padding: 0; margin: 0; list-style: none;
    display: flex; flex-wrap: wrap; justify-content: center;
    border: 1px solid #fff;
}
.tile-menu li {
    width: 33.33%; box-sizing: border-box;
    border: 1px solid #fff;
    background-color: var(--color-menu-bg);
    text-align: center; transition: all 0.3s;
}
.tile-menu li a {
    display: flex; justify-content: center; align-items: center;
    height: 80px;
    color: #ffffff; /*ボタンの文字*/
    font-family: serif; font-size: 18px;
    text-decoration: none; width: 100%;
}
.tile-menu li:hover { background-color: #8acbef; opacity: 0.9; }

/* 追従サイドメニュー */
.menulist2 {
    position: fixed; right: 0; top: 20px;
    width: 180px; z-index: 9999;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
    opacity: 0; transition: opacity 0.5s;
    list-style: none; padding: 0;
    border-radius: 8px 0 0 8px; overflow: hidden;
}
.menulist2 li a {
    display: block; padding: 15px 10px;
    color: var(--color-primary);
    font-size: 15px; font-weight: bold;
    border-bottom: 1px solid #eee;
    text-align: center; transition: background 0.3s;
}
.menulist2 li a:hover { background-color: var(--color-menu-bg); }


/* ============================================
   ▼▼▼ 商品カード ▼▼▼
   ============================================ */
.niretu, .priceList {
    padding: 0; list-style: none;
    display: flex; flex-wrap: wrap; 
    justify-content: flex-start !important; /* 左揃えに統一 */
    gap: 20px 10px;
}
.niretu li, .priceList > li {
    width: calc(50% - 5px); box-sizing: border-box; margin: 0;
}
.haikei {
    background-color: #fff; padding: 0 0 10px 0;
    height: 100%; display: flex; flex-direction: column;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.item-card-single {
    max-width: 600px; margin: 0 auto 40px auto !important;
    border: 1px solid #eee;
}
.pname {
    padding: 10px 12px 0; flex-grow: 1; display: flex; flex-direction: column;
}

/* タグ */
.tag-area { margin-bottom: 5px; line-height: 1; text-align: left; }
.tag {
    display: inline-block; padding: 4px 8px !important;
    margin: 0 4px 4px 0; font-size: 12px !important;
    font-family: sans-serif; color: #fff;
    border-radius: 4px; font-weight: bold;
    vertical-align: middle; letter-spacing: 0.05em; line-height: 1;
}
/* --- 基本タグ --- */
.tag-shipping { background-color: var(--color-red); }   /* 送料無料 */
.tag-bag      { background-color: var(--color-primary); } /* 手提袋付 */

/* --- 父の日用（新色） --- */
.tag-fathers-noshi { background-color: #353c73; }     /* 父の日掛け紙（ネイビー） */
.tag-kfh-noshi     { background-color: #1a4593; }     /* KFH掛け紙（ロイヤルブルー） */
.tag-ribbon-seal   { background-color: #7ebdec; }     /* リボンシール（水色） */

/* --- 季節共通 --- */
.tag-noshi { background-color: #c5a059; }             /* 熨斗（ゴールド） */

.item-name {
    font-family: serif; font-size: 16px; font-weight: 600;
    line-height: 1.4; color: #333;
    margin-bottom: 2px !important; min-height: 2.8em;
}
.item-price {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 17px; color: var(--color-red);
    font-weight: bold; margin-bottom: 5px; letter-spacing: 0.05em; margin-top: auto;
}
.item-price span { font-size: 11px; color: #888; font-weight: normal; margin-left: 2px; }

.psetumei {
    padding: 0 12px; text-align: left;
    color: var(--color-text);
    font-size: 13px; line-height: 1.5; margin: 8px 0;
}

/* レビュー星 */
.review-box {
    padding: 0 12px; margin-top: auto; font-size: 13px;
    display: flex !important; align-items: center; flex-wrap: wrap; gap: 5px;
}
.review { color: var(--color-primary); font-weight: bold; line-height: 1; }
.star5_rating{
    position: relative; z-index: 0; display: inline-block;
    white-space: nowrap; color: #CCCCCC; line-height: 1;
}
.star5_rating:before, .star5_rating:after{ content: '★★★★★'; font-size: 14px; }
.star5_rating:after{
    position: absolute; z-index: 1; top: 0; left: 0;
    overflow: hidden; white-space: nowrap; color: #C5A059;
}
.star5_rating[data-rate="5"]:after{ width: 100%; }
.star5_rating[data-rate="4.5"]:after{ width: 90%; }
.star5_rating[data-rate="4.0"]:after{ width: 80%; }


/* ============================================
   価格フィルタ・ランキング
   ============================================ */
.priceFilter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 30px auto;
    padding: 0;
    list-style: none;
}

.priceFilter li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.priceFilter button {
    padding: 10px 15px;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    cursor: pointer;
    min-width: 100px;
    line-height: 1;
    display: block;
}

/* ホバー・アクティブ時 */
.priceFilter button.active, 
.priceFilter button:hover {
    background: var(--color-primary);
    color: #fff;
}

.rankingList {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 15px 10px; padding: 0; margin: 0; list-style: none;
}
.rankCard {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; width: calc(50% - 5px);
}
.rankCard:first-child { width: 100% !important; margin-bottom: 10px; }
.rankBadge {
    position: absolute; top: 0; left: 0; width: 40px; height: 40px;
    background: #c9a953; border-bottom-right-radius: 50%; z-index: 10;
}
.rankBadge span { position: absolute; top: 8px; left: 12px; color: #fff; font-size: 18px; font-weight: bold; }
.rankTitle { font-size: 14px; font-weight: bold; padding: 10px; margin: 0; color: var(--color-primary); line-height: 1.4; }


/* ============================================
   レスポンシブ (SP)
   ============================================ */
@media screen and (max-width: 768px) {
    .fv_pc { display: none; }
    .fv_sp { display: block; }
    
    h1 { font-size: 28px; margin: 20px auto; }
    .midashi1 { font-size: 20px; }
    .setsumei { font-size: 14px; line-height: 1.8; padding: 0 15px; text-align: center !important; }
    
    .menulist2 { display: none !important; }
    
    .niretu li, .priceList > li { width: calc(50% - 5px) !important; margin-bottom: 10px; }
    .pname { padding: 8px 8px 0; }
    .item-name { font-size: 12px; min-height: 3.8em; }
    .item-price { font-size: 15px; }
    .tag { font-size: 11px !important; padding: 4px 6px !important; margin-bottom: 3px; }
    
    /* 母の日準拠：スマホで説明文と線を消す */
    .psetumei, .line { display: none !important; }
    
    .review-box { display: flex !important; padding: 0 8px 8px; }

    /* SP用 下部固定メニュー */
    .mobile-fixed-nav {
        display: block !important; position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: #fff; z-index: 99999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-nav-list {
        display: flex; overflow-x: auto; white-space: nowrap; padding: 0; margin: 0; list-style: none;
    }
    .mobile-nav-list li { flex: 0 0 auto; width: 22%; text-align: center; border-right: 1px solid #eee; }
    .mobile-nav-list li a {
        display: block; padding: 12px 0; font-size: 11px;
        color: var(--color-primary); font-weight: bold;
        display: flex; flex-direction: column; align-items: center;
    }
    .mobile-nav-list li a::before { content: ""; display: block; width: 6px; height: 6px; background: #ddd; border-radius: 50%; margin-bottom: 4px; }
}

.mobile-fixed-nav { display: none; }
.soldout { position: relative; pointer-events: none; }
.soldout::after {
    content: "SOLD OUT"; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(100,100,100,0.8); color: #fff; padding: 8px 15px; font-size: 14px; font-weight: bold; letter-spacing: 2px; z-index: 10;
}
.soldout img { opacity: 0.5; }

/* ============================================
   ▼▼▼ 2列リストの幅をシングルに合わせる ▼▼▼
   ============================================ */
@media screen and (min-width: 769px) {
    .niretu {
        max-width: 600px !important; /* item-card-singleと同じ幅 */
        margin: 0 auto 40px auto !important; /* 中央寄せ */
    }
}