/* 基本設定 */
:root {
    --primary-color: #c41e3a; /* クリスマスレッド (深紅) */
    --accent-color: #1b5e20;  /* モミの木グリーン (深緑) */
    --price-color: #d32f2f;   /* 価格表示用鮮やかレッド */
    --text-color: #2c221e;    /* ダークブラウン/チャコール */
    --bg-light: #fffdf9;      /* ウォームホワイト */
    --bg-gray : #f4f6f4;      /* 柔らかいモミの木トーンの淡いグレーグリーン */
    --bg-gray-light : #fafcfa;
    --category-color: #c41e3a; /* カテゴリ見出しレッド */
    --line-color: #d4af37;     /* クリスマスゴールド */
    --font-family: "Hiragino Sans", "Meiryo", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

/* メインビジュアル */
.hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/hero.webp'),linear-gradient(to bottom, #ffffff, var(--bg-gray));
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #ffffff;
}


/* ページ説明文 */
.explanation
 {
    background: #fff; /* 実際は画像を表示 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    
}

.explanation h2 {
    font-size: 1.8rem;
    padding: 60px 20px;
}

.explanation p {
    background: linear-gradient(transparent 80% , var(--line-color) 80%);
    margin-bottom: 5px;
}

.category-nav {
    padding: 10px 0px 1px 0px;
    margin-top : 10px ;
    /* background: var(--bg-gray); */
    background: linear-gradient(to bottom, var(--bg-gray) 0%, var(--bg-gray-light) 100%);
    
}

/* 2列のグリッド設定 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 20px; /* 縦の隙間を広めにとる */
}

/* 個別アイテムの調整 */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央寄せ */
    margin: 10px;
}

/* ボタンの上の説明文 */
.btn-desc {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 8px; /* ボタンとの距離 */
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* ボタン本体 */
.btn {
    width: 100%; /* グリッド幅いっぱいに広げる */
    max-width: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background-color: #ffffff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* ホバー時の挙動 */
.btn:hover {
    background-color: var(--primary-color);
}

.btn:hover span {
    color: #ffffff;
}


.button-nav {
    margin: 30px auto;
}

.button-grid {
    display: grid;
    /* 2列固定 */
    grid-template-columns: repeat(2, 1fr); 
    /* 3行になるように隙間を調整 */
    gap: 15px; 
}

/*
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}
*/

/* ヘッダー */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
}


.gap {
height: 6vh;
}


/* product-section 共通設定 */



.product-section-header-text {
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 175px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-color);
    padding: 10px 10px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 6px rgba(0,0,0,0.3);
}

.product-section-header-text h2{
    font-size: 2.4rem;
    padding: 0px 0px;
    color: var(--category-color);
    margin-top: 4px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

/* フリーカットケーキ　商品セクション見出し */
.product-section-header-fccake {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head01.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}


/* カット不要ケーキ　商品セクション見出し */
.product-section-header-nccake {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head02.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}


/* フリーカットロールケーキ　商品セクション見出し */
.product-section-header-fcrcake {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head03.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}


/* カット不要ロールケーキ　商品セクション見出し (グラタン・シチュー・温かい料理) */
.product-section-header-ncrcake {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head04.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

/* Section 04 H2 長体・折り返し防止調整 */
.product-section-header-ncrcake h2 {
    font-size: 1.65rem !important;
    white-space: nowrap !important;
    letter-spacing: 0.01em !important;
}

/* 大容量アイス　商品セクション見出し */
.product-section-header-lrgice {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head05.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}


/* 小分けアイス　商品セクション見出し */
.product-section-header-smlice {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head06.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}


/* シュークリーム、ワッフル　商品セクション見出し */
.product-section-header-crpuff {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head07.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

/* 和風デザート　商品セクション見出し */
.product-section-header-jdessert {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head08.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

/* トッピング、ソース　商品セクション見出し */
.product-section-header-topping {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head09.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

/* お役立ち情報　商品セクション見出し */
.product-section-header-info {
    position: relative;
    height: 219px;
    background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/head10.webp');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
}


/* 商品セクション */
.product-section {
    /* padding: 20px 20px 50px; */
    margin-bottom: 100px;
    background-color: var(--bg-gray);
    border-radius: 0px 0px 30px 30px;

}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    padding:45px 0;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--bg-light);
}

/* レスポンシブグリッド */
.product-grid {
    margin-top:40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}


.product-image {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.product-image img{
    margin-top: 4px;
    height: 164px;
    width: 164px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}

.ranking-item {
  position: relative;
}

.ranking-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 164px;
  background: #fff;
  overflow: hidden;
  border-radius: 8px;
}

.ranking-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin-top: 0;
  border-radius: 4px;
}

.ranking-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  background: #c41e3a;
  color: #fff;
  border: 3px solid #d4af37;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}



.product-info {
    padding: 10px;
    flex-grow: 1; 
}

.product-info h3 {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.product-price {
    margin-top: auto;
    padding: 0 10px 10px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.product-price p{
    color: var(--price-color);
}

.btn-box {
    grid-column: 1 / -1; /* グリッドの全列を結合 */
    display: flex;       /* フレックスボックス化 */
    justify-content: center; /* 横方向の中央寄せ */
    margin-top: 40px;    /* 商品との間隔 */
    margin-bottom: 30px;    
    width: 100%;         /* 幅をいっぱいにする */
}

/* ラベル自体の設定（再掲・微調整） */
.more-btn {
    display: inline-block;
    width: 200px;
    height: 50px;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    vertical-align: bottom;
    transition: opacity 0.3s;
}

.more-btn:hover {
    opacity: 0.6;
}
	
/* フッター */
.footer {
    background: #1b5e20;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}


.container {
    max-width: 1196px;
    margin: 0 auto 50px auto;
    padding: 10px 20px;
    justify-content: center;
}

/* 5番目以降のカードを初期状態で非表示にする */
.product-card:nth-child(n+7) {
    display: none !important;
}

/* もっとみる　処理　01 */
#more-check01:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 01*/
#more-check01:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　02 */
#more-check02:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 02*/
#more-check02:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　03 */
#more-check03:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 03*/
#more-check03:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　04 */
#more-check04:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 04*/
#more-check04:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　05 */
#more-check05:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 05*/
#more-check05:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　06 */
#more-check06:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 06*/
#more-check06:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　07 */
#more-check07:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 07*/
#more-check07:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　08 */
#more-check08:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 08*/
#more-check08:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　09 */
#more-check09:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 09*/
#more-check09:checked ~ .product-grid .btn-box {
    display: none !important;
}

/* もっとみる　処理　10 */
#more-check10:checked ~ .product-grid .product-card:nth-child(n+7) {
    display: flex !important;
}
/* チェックが入ったら「もっとみる」ボタンを消す 10*/
#more-check10:checked ~ .product-grid .btn-box {
    display: none !important;
}

.toc-title {
    grid-column: 1 / -1;
    letter-spacing: 0.3em;
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 10px 0 10px;
}

.spotlist_back {margin-top: 60px; text-align: center;}
.spotlist_back a {
	font-size: 20px;
	border: solid 2px var(--primary-color);
	color: var(--primary-color);
	padding: 15px 80px;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.3s ease;
}
.spotlist_back a:hover {
	background-color: var(--primary-color);
	color: #ffffff;
}





/* メディアクエリ（スマホ用調整） */
@media (max-width: 768px) {
    body {
        font-size: 80%;
    }
    
    .hero {
        background-image: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), url('../img/hero.webp');
        background-size: cover;
        height: 30vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .explanation h2 {
        font-size: 1.2rem;
    }
    
    
    /* product-section-header-text 共通設定 */
    
    .product-section-header-text {
        width: 320px;
        height: 150px;
        padding: 10px;
    }
    
    /* フリーカットケーキ */
    .product-section-header-fccake h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    /* カット不要ケーキ */
    .product-section-header-nccake h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    
    /* フリーカットロールケーキ */
    .product-section-header-fcrcake h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    
    /* カット不要ロールケーキ (グラタン・シチュー・温かい料理) */
    .product-section-header-ncrcake h2 {
        font-size: 1.15rem !important;
        font-weight: 800;
        letter-spacing: 0.01em;
        white-space: nowrap !important;
    }
    
    
    /* 大容量アイス */
    .product-section-header-lrgice h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    
    /* 小分けアイス */
    .product-section-header-smlice h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    /* シュークリーム、ワッフル */
    .product-section-header-crpuff h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    /* 和風デザート */
    .product-section-header-jdessert h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    /* トッピング、ソース */
    .product-section-header-topping h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    /* デザートお役立ち情報 */
    .product-section-header-info h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }
    
    .product-grid {
    margin-top:40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    }
    
    .product-grid {
    gap: 8px;
}
}



/* PC/SP 表示切替 */
.pc { display: block !important; }
.sp { display: none !important; }

/* SEO用非表示h1 */
h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* メインバナー (かき氷特集仕様) */
.mainbnr {
    text-align: center;
    background-color: #f7f7f7;
    line-height: 0;
}

.mainbnr img {
    display: block;
    width: auto;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
}

.inner {
    width: 1000px;
    margin: 0 auto;
}

/* プロローグ（導入文）エリア */
#prologue {
    margin: 0 0 80px;
    text-align: center;
}

#prologue .inner {
    padding: 60px 0 0;
    text-align: center;
}

#prologue h2 {
    font-size: 25px;
    color: #1b5e20;
    text-align: center;
    margin-bottom: 30px;
}

#prologue p {
    text-align: center;
    font-size: 16px;
    color: #242424;
    width: 670px;
    max-width: 100%;
    margin: 0 auto;
}

/* フォント定義 */
.zenmaru {
    font-family: zen-maru-gothic, sans-serif;
    font-style: normal;
}

.monopin {
    font-family: "monopin-j", sans-serif;
    font-style: normal;
}

.genokaku {
    font-family: source-han-sans-japanese, sans-serif;
    font-style: normal;
}

/* お勧め商品エリア */
.recommended-product {
    margin: 30px auto;
}

.recommended-card {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: none;
}

.recommended-image {
    flex: 0 0 50%;
    width: 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recommended-image img {
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 4px;
}

.recommended-info {
    flex: 0 0 50%;
    width: 50%;
}

.recommended-badge {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 12px;
}

.recommended-badge img {
    display: inline-block;
    max-height: 45px;
    width: auto;
}

.recommended-point {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: bold;
}

.recommended-name-link {
    text-decoration: none;
    color: var(--text-color);
}

.recommended-info .rpa-product-name {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.4;
    display: block;
    margin-bottom: 6px;
}

.recommended-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--price-color);
    margin-bottom: 16px;
}

.recommended-btn-wrap {
    margin-top: 10px;
}

.recommended-btn-wrap .product-btn {
    width: auto;
    padding: 12px 36px;
    font-size: 1.1rem;
}

/* 商品サイズ・容量用スタイル */
.rpa-product-size {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 4px;
    display: block;
    line-height: 1.3;
}

/* 商品を見るボタン */
.product-btn-wrap {
    margin-top: 10px;
    text-align: center;
}

.product-btn {
    display: inline-block;
    width: 100%;
    padding: 8px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.product-btn:hover {
    opacity: 0.8;
}

/* 直リンク化された「もっと見る」ボタン */
.more-btn {
    display: inline-block;
    width: 200px;
    height: 50px;
    line-height: 26px;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.more-btn:hover {
    opacity: 0.6;
}

/* 関連特集バナー */
.related-banner-box {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.related-banner-box a {
    display: inline-block;
    max-width: 100%;
    transition: opacity 0.3s ease;
}

.related-banner-box a:hover {
    opacity: 0.8;
}

.related-banner-box img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
}

/* ④ ナビゲーション (#select) - 改訂デザイン (高さ・文字数統一対応) */
#select {
    padding: 30px 0 40px 0;
    background: linear-gradient(to bottom, var(--bg-gray) 0%, var(--bg-gray-light) 100%);
    margin-bottom: 40px;
}

#select .inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

#select h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: center;
    margin: 10px 0 25px;
    letter-spacing: 0.1em;
    font-weight: bold;
}

#select .select-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* すべてのliの高さを最長カードに揃える */
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

#select .select-list li {
    width: calc(100% / 6);
    display: flex; /* Flexコンテナ化してカード高さを均一化 */
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    margin-bottom: 15px;
}

#select .select-list li::after {
    content: "\25BC";
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--primary-color);
    margin-top: 4px;
    line-height: 1;
}

#select .select-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px 10px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    margin-right: -1px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px; /* 長い文字数でも綺麗に収まるフォントサイズ */
    font-weight: bold;
    text-align: center;
    height: 100%; /* liの高さいっぱいに広げて全カードの高さを統一 */
    min-height: 145px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#select .select-list a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

#select .select-list figure {
    margin: 0 0 8px 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

#select .select-list img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#select .select-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-height: 2.6em; /* 1行・2行のテキスト位置と全体の高さを完全統一 */
}

/* メディアクエリ（スマホ用調整） */
@media (max-width: 768px) {
    .pc { display: none !important; }
    .sp { display: block !important; }

    .mainbnr img {
        max-width: 100%;
        height: auto;
    }

    .inner {
        width: 95%;
    }

    #prologue {
        margin: 0;
    }

    #prologue .inner {
        padding: 20px 0 0;
    }

    #prologue h2 {
        margin-bottom: 10px;
    }

    #prologue p {
        width: 100%;
        text-align: center;
    }

    .recommended-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 16px;
    }

    .recommended-image, .recommended-info {
        flex: auto;
        width: 100%;
    }

    .recommended-info .rpa-product-name {
        font-size: 1.1rem;
    }

    .recommended-btn-wrap .product-btn {
        width: 100%;
    }

    #select .inner {
        padding: 0 10px;
    }

    #select .select-list li {
        width: calc(100% / 3);
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
    }

    #select .select-list a {
        height: 100%;
        min-height: 110px;
        padding: 8px 4px;
        font-size: 11px;
    }

    #select .select-list figure {
        height: 50px;
        margin-bottom: 4px;
    }

    #select .select-list img {
        max-height: 50px;
    }

    #select .select-list span {
        min-height: 2.5em;
        line-height: 1.2;
    }

    #select .select-list li::after {
        font-size: 9px;
        margin-top: 2px;
    }
}


/* Googleタグマネージャー / コンバージョン用スタイル (HTML直書き廃止) */
.noscript-img-wrap {
    display: inline;
}
.noscript-img {
    border-style: none;
}
.noscript-iframe {
    display: none;
    visibility: hidden;
}

.product-section-mobile-image {
    display: none;
}

@media (max-width: 768px) {
    section:is([id="01"], [id="02"], [id="03"]) {
        position: relative;
        height: auto;
        background-image: none;
        background-color: var(--bg-light);
    }

    section:is([id="01"], [id="02"], [id="03"]) > .product-section-mobile-image {
        display: block;
        width: 100%;
        height: auto;
    }

    section:is([id="01"], [id="02"], [id="03"]) > .product-section-header-text {
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-sizing: border-box;
        width: calc(100% - 48px);
        max-width: 360px;
        height: auto;
        padding: 12px;
        background: rgba(255, 255, 255, 0.86);
        border-radius: 12px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    }

    section:is([id="01"], [id="02"], [id="03"]) > .product-section-header-text h2 {
        margin: 0 0 6px;
        font-size: clamp(18px, 5vw, 24px);
        line-height: 1.3;
    }

    section:is([id="01"], [id="02"], [id="03"]) > .product-section-header-text p {
        margin: 0;
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .recommended-info {
        display: contents;
    }

    .recommended-card > .recommended-info > .recommended-badge,
    .recommended-card > .recommended-info > .recommended-point {
        order: -1;
        margin-bottom: 0;
    }

    .recommended-card > .recommended-info > .recommended-name-link,
    .recommended-card > .recommended-info > .recommended-name-link ~ * {
        order: 1;
        width: 100%;
    }
}

/* 導入のあしらい */
#prologue .inner {
    position: relative;
    max-width: 95%;
}

#prologue .inner::before,
#prologue .inner::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    pointer-events: none;
}

@media (min-width: 1050px) {
    #prologue .inner::before {
        left: 0;
        bottom: -20px;
        width: 155px;
        height: 172px;
        background-image: url("../img/prologue-wine.png"), url("../img/prologue-cake.png");
        background-position: left top, right bottom;
        background-size: 74px auto, 110px auto;
    }

    #prologue .inner::after {
        right: 0;
        bottom: -14px;
        width: 150px;
        height: 174px;
        background: url("../img/prologue-chicken.png") center / contain no-repeat;
    }
}

@media (max-width: 1049px) {
    #prologue .inner {
        padding-bottom: 96px;
    }

    #prologue .inner::before {
        left: calc(50% - 122px);
        bottom: 0;
        width: 162px;
        height: 86px;
        background-image: url("../img/prologue-wine.png"), url("../img/prologue-cake.png");
        background-position: left center, right center;
        background-size: 67px auto, 84px auto;
    }

    #prologue .inner::after {
        left: calc(50% + 44px);
        bottom: 0;
        width: 84px;
        height: 86px;
        background: url("../img/prologue-chicken.png") center / contain no-repeat;
    }
}

/* 関連資材バナーの案内 */
.related-banner-box .related-banner-label {
    margin: 0 0 10px;
    color: #205237;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

/* ページトップへのリンク */
p.pagetop.christmas-pagetop {
    position: static;
    float: none;
    width: 100%;
    margin: 28px auto;
    text-align: center;
}
p.pagetop > a.christmas-pagetop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 21px;
    border: 1px solid #d5aa58;
    border-radius: 999px;
    background: #205237;
    color: #fff9e8;
    box-shadow: 0 3px 8px #26312626;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

p.pagetop > a.christmas-pagetop-link::before {
    content: "";
    flex: 0 0 24px;
    height: 24px;
    background: url("../img/pagetop-tree.png") center / contain no-repeat;
}

p.pagetop > a.christmas-pagetop-link:hover {
    background-color: #326649;
    color: #fff9e8;
}

p.pagetop > a.christmas-pagetop-link:focus-visible {
    outline: 2px solid #8e2640;
    outline-offset: 3px;
}

/* 商品カテゴリ間のガーランド */
.product-section.has-category-divider {
    margin-bottom: 0;
}

.category-divider {
    padding: 56px 16px;
}

.category-divider img {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .category-divider {
        padding: 42px 12px;
    }
}

/* 商品一覧の「もっと見る」 */
.btn-box {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-box > .more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 50px;
    padding: 12px 20px;
    line-height: 1.45;
}

.btn-box > .more-btn:only-child {
    min-width: min(200px, 100%);
}

@media (max-width: 768px) {
    .btn-box {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
    }
}
