.product_list_wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 3%;
    width: 80%;
    text-align: center;
    margin: 0 auto 40px;
}
.product_list_item {
    width: 22%;
    text-align: center;
}
.product_list_item a {
    display: block;
    text-decoration: none;
    color: #333;
}
.product_list_item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}
.product_list_item_tagA{
    background-color: #A52A2A;
    padding: 0.2em 1em;
    font-weight: bold;
    color: #fff;
}
.product_list_item_tagB{
    background-color: #F9D216;
    padding: 0.2em 1em;
    font-weight: bold;
    color: #fff;
}
.product_list_item_tagC{
    background-color: #EDB7D9;
    padding: 0.2em 1em;
    font-weight: bold;
    font-size: 13px;
    color: #333;
}
@media screen and (max-width: 767px) {
.product_list_wrap {
    width: 100%;
}
.product_list_item {
    width: 30%;
}
.product_list_item_tagC{
    padding: 0.2em 0.6em;
    font-size: 10px;
}
}

.nerigoma-btn-container {
    margin: 0 auto 40px;
    font-size: 18px;
    border: 1px solid #333;
    width: 380px;
    padding: 0.5em;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 初期状態の軽い影 */
    cursor: pointer;
}

/* マウスホバー時の動き (主にPC向け) */
.nerigoma-btn-container:hover {
    transform: translateY(-2px); /* 少し上に浮く */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 影を濃く・大きくする */
    background-color: #e3ddcf; /* 背景色を少し明るく */
}

/* クリック/タップ時の動き (押し込む表現) */
.nerigoma-btn-container:active {
    transform: translateY(1px); /* 元の位置より少し下がる */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 影を小さくする */
    background-color: #d1c8b4; /* 背景色を少し暗く */
}

/* 矢印アイコンのアニメーション (ホバー時に少し右へ動く) */
.nerigoma-btn-container:hover .btn-icon {
    transform: translateX(4px);
}

.btn-icon {
    transition: transform 0.2s ease;
}
.nerigoma-btn-container a{
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    color: inherit;
    width: 100%; /* aタグのクリック範囲を広げる */
    height: 100%;
}
@media screen and (max-width: 767px) {
.nerigoma-btn-container {
    font-size: 16px;
    width: 100%;
}
}

.category_recipelist_container{
    padding-bottom: 20px;
}
.category_recipelist_wrap{
    display: flex;
    justify-self: start;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}
.category_recipelist_item{
    width: 22%;
    margin: 0 auto 50px;
}
.category_recipelist_item img{
    height: 160px;
    width: 100%;
    object-fit: cover;
}
.category_recipelist_item h3{
    font-weight: bold;
    height: 2.2em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category_recipelist_item p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
}
.category_recipe_button{
    background: url(../img/r-delta.svg) no-repeat 96% center #c6ae7b;
    background-size: 12px 12px;
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    padding: 5px 5%;
}
.category_recipelist_button_wrap{
    text-align: center;
    font-weight: bold;
}
.category_recipelist_button_item{
    width: 36%;
    margin: 10px auto;
    border: 1px solid;
    padding: 1em;
    display: block;
}
.category_recipelist_item a:hover {
    border: none;
    outline: none;
    text-decoration: none;
}
@media screen and (max-width: 767px) {
.category_recipelist_container{
    padding-top: 20px;
}
.category_recipelist_item{
    width: 46%;
    margin: 0 auto 40px;
}
.category_recipelist_button_item{
    width: 96%;
}
.conta_banner{
    margin-bottom: 18px !important;
}
.sp-none{
    display: none;
}
}

.nerigoma-btn-wrap{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
@media screen and (max-width: 767px) {
.nerigoma-btn-container{
    margin: 0 auto 24px;
}
}
/* 左横の画像（疑似要素）の設定A */
.nerigoma-btn-containerA a::before {
  content: "";
  display: inline-block;
  width: 90px;
  height: 90px;
  margin-right: 15px; 
  background-image: url('https://gomayamada.itembox.cloud/product/005/000000000522/000000000522-01.jpg?size=l&w=NjAw&t=20260330171648');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
/* 左横の画像（疑似要素）の設定B */
.nerigoma-btn-containerB a::before {
  content: "";
  display: inline-block;
  width: 90px;
  height: 90px;
  margin-right: 15px;
  background-image: url('https://gomayamada.itembox.cloud/product/004/000000000497/000000000497-01.jpg?size=l&w=NjAw&t=20230303113525');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ギフトページナビゲーションコンテナのスタイル */
.page-link-nav {
    display: flex;
    gap: 15px; /* ボタン間の余白 */
    justify-content: center; /* 中央寄せ */
    flex-wrap: wrap; /* 画面幅が狭い場合は折り返す */
    margin-top: 40px;
    margin-bottom: 70px; /* 下部のコンテンツとの余白 */
    width: 100%;
    max-width: 1200px; /* 最大幅を設定 (スクリーンショットの比率に合わせる) */
    margin-left: auto;
    margin-right: auto;
}

.page-link-item {
    flex: 1; /* すべてのボタンを同じ幅にする */
    min-width: 120px; /* 最小幅を設定して潰れすぎないようにする */
    background-color: #cf3c02; /* スクリーンショットから抽出した背景色 (小豆色/ダークブラウン) */
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.page-link-item:hover {
    opacity: 0.85; /* 少し透明にしてホバー効果を出す */
}

.page-link-text {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px; /* アイコンとの間の余白 */
    letter-spacing: 1px;
}

.page-link-icon {
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
    margin-top: 2px;
}

.gift_page_section {
    padding: 40px 20px;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
    transform: translateY(-5px); /* ホバーで少し浮き上がる効果 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* 画像のアスペクト比を固定 */
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    object-fit: cover; /* 実際の画像を読み込んだ時のため */
}

/* カテゴリテキストのスタイル */
.category-text-container {
    padding: 15px;
    text-align: center;
    background-color: #fcfcfc;
    flex-grow: 1; /* テキスト領域を伸ばしてカードの高さを揃える */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    font-weight: bold;
    font-size: 16px;
}

#ranking,
#budget,
#scene,
#give,
#recommend {
    scroll-margin-top: 180px; /* PCのヘッダー高さに合わせて調整 */
}

@media (max-width: 768px) {
    #ranking,
    #budget,
    #scene,
    #give,
    #recommend {
        scroll-margin-top: 60px; /* スマホのヘッダー高さに合わせて調整 */
    }
}

html {
    scroll-behavior: smooth;
}

/* ナビゲーションボタン：クリック後も白文字を維持 */
.page-link-item:visited {
    color: #fff;
}

/* ギフトページレスポンシブ対応 (スマートフォン向け) */
@media (max-width: 768px) {
    .page-link-nav {
        gap: 10px;
    }
    .page-link-nav {
        display: grid; /* flexからgridに変更 */
        grid-template-columns: repeat(2, 1fr); /* 均等な2列にする */
        gap: 10px;
    }
    .page-link-item {
        min-width: auto; /* PC用の最小幅をリセット */
        padding: 12px 5px;
    }
    .page-link-text {
        font-size: 14px;
    }

    /* スマホでは2カラムにする */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* スマホでは隙間を少し狭める */
    }
    .category-text-container {
        padding: 10px;
    }
    .category-name {
        font-size: 14px;
    }

    .gift_page_section {
    padding: 40px 0px;
    }
}