/* layout */
.mv_inner{
    width: 1200px;
    max-width: 100%;
    margin: auto;
    padding:0 15px;
}
@media (min-width: 1240px){
    .mv_inner{
        padding:0;
    }
}

/* title_and_lead */
.heading-1{
    margin-top: 20px;
    line-height: 1.4;
    font-size: 1.8rem;
}

.heading-2{
    text-align: center;
    background: #d9c48b;
    /* color: #fff; */
    padding: 20px 10px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-size: 1.7rem;
}

.heading-3{
    text-align: center;
    padding: 10px;
    border-top: 2px solid;
    border-bottom: 2px solid;
    line-height: 1.4;
    font-size: 1.6rem;
}

.main-introduction{
    line-height: 1.8;
    font-size: 1.4rem;
}

.section-introduction{
    margin: 20px 0;
    font-size:1.3rem;
}

.section-introduction a{
    text-decoration: underline;
    color: #2563eb
}

.section-introduction a:hover{
    text-decoration: none;
}

.heading-banner{
    text-align: center;
    margin: 20px 0;
}

.heading-banner img{
    vertical-align: bottom;
}

@media (min-width: 768px){
    .heading-1{
        font-size: 2rem;
    }

    .heading-2{
        font-size: 2.3rem;
    }

    .heading-3{
        font-size: 2rem;
    }

    .main-introduction{
        line-height: 1.8;
        font-size: 1.4rem;
    }

    .main-introduction{
        font-size: 1.5rem;
    }

    .main-introduction br{
        display: block;
    }

    .section-introduction{
        font-size:1.4rem;
    }
}


/* table of contents */
.block-toc__wrap{
    margin: 50px 0 60px;
}

.block-toc__title{
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.7rem;
}

.block-toc__list{
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    gap: 8px;
    width: 760px;
    max-width: 100%;
}

.block-toc__list > li{
    width: 100%;
}

.block-toc__list > li a{
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border: 1px solid #d9c48b;
    border-radius: 8px;
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
    color: #222;
    transition: all 0.2s;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.block-toc__list > li a:after{
    content: '';
    transform: translateY(-25%) rotate(45deg);
    width: 6px;
    height: 6px;
    margin-left: 10px;
    border-bottom: 2px solid #d9c48b;
    border-right: 2px solid #d9c48b;
    transition: transform .5s;
}

.block-toc__list > li a:hover{
    background: #efefef;
}

.block-toc__list > li img{
    width: 30px;
    height: 30px;
}

@media (min-width: 768px){
    .block-toc__list{
        justify-content: center;
        gap:12px;
    }

    .block-toc__title{
        font-size: 1.9rem;
    }

    .block-toc__list > li{
        width: calc((100% - 40px) / 3);
    }

    .block-toc__list > li a{
        padding: 10px;
        border-width: 2px;
        flex-direction: column;
    }

    .block-toc__list > li img{
        width: 50px;
        height: 50px;
    }
}

/* ranking */


/* product_list */
.block-productlist__items{

}

.block-productlist__item-sp{
    width:calc((100% - 16px) / 2);
    position:relative;
}

.block-productlist__item-sp a{
    transition: all 0.2s;
}

.block-productlist__item-sp a:hover{
    opacity: 0.7;
}

.block-productlist__item-sp .block-items__item__img {
    border: 1px solid #ddd;
}

.block-productlist__item-sp  .block-items__item__name{
    text-decoration: none;
    line-height: 1.4;
    font-size: 1.3rem;
    font-weight: bold;
}

.block-productlist__item-sp  .product-list__desc{
    display: none!important;
}

.ranking__inr {
    padding: 20px 0;
    gap: 32px 16px;
}
.ranking__inr .block-productlist__item-sp:before{
    position: absolute;
    top: -28px;
    left: -16px;
    border-radius: 50px;
    border: 2px solid #fff;
    background: #dbdbdb;
    color: #222;
    z-index: 1;
    padding-top: 0px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 2.2rem;
    font-weight: bold;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(1):before {
    content: "1";
    background: #a79950;
    color: #fff;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(2):before {
    content: "2";
    background: #839ba7;
    color: #fff;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(3):before {
    content: "3";
    background: #aa6e52;
    color: #fff;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(4):before {
    content: "4";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(5):before {
    content: "5";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(6):before {
    content: "6";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(7):before {
    content: "7";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(8):before {
    content: "8";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(9):before {
    content: "9";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(10):before {
    content: "10";
}

@media (min-width: 768px) {
    .block-productlist__item-sp{
        width:calc((100% - 64px) / 5);
    }
}

.all-item_btn{
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 別ページリンクボタン */
.all-item_btn a {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 20px 30px 20px 15px;
    border: 3px solid #d9c48b;
    border-radius: 5px;
    color: #222;
    font-size: 1.6rem;
    font-weight: bold;
    max-width: 608px;
    width: 450px;
    /* margin: auto; */
}

.all-item_btn a:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 10px;
    height: 10px;
    transform: rotate(-45deg) translate(0, -50%);
    border-bottom: 3px solid #d9c48b;
    border-right: 3px solid #d9c48b;
}

.all-item_btn a:hover{
    opacity: 0.7;
}

/* 予算リスト */
.budget-list{
        overflow: scroll;
}

.budget-list table{
    width: max-content;
    font-size: 1.2rem;
}

.budget-list th, .budget-list td {
    vertical-align: middle;
    border: 1px solid #cccccc;
    padding: 15px 10px;
}

.budget-list a {
    text-decoration: underline;
    color: #004e98;
}

.budget-list a:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .budget-list{
        overflow: auto;
    }
    .budget-list table{
        width: 100%;
        font-size: 1.3rem;
    }
}

/* 制作事例 */
.works_wrap{
    display: flex;
    gap:15px;
    flex-wrap: wrap;
    padding: 20px 0 40px;
}

.works_item{
    width:calc((100% - 20px) / 2);
}

.works_item img{
    vertical-align: bottom;
}

.works_item img:hover{
    opacity: 0.7;
}

.works_user{
    font-size: 1.5rem;
    font-weight: bold;
}

.works_product{
    font-size: 1.4rem;
}

.works_product a{
    display: block;
    color: #2563eb;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .works_item{
        width:calc((100% - 60px) / 4);
    }
}

.works_product a:hover{
    text-decoration: none;
}

/* レビュー */
/* 行カード：横長・ホバーで少し浮かせる */
.review-row{
  display:flex;
  align-items:flex-start;
  gap:20px;
  margin: 20px 0;
  padding:20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background:#fff;
}

/* 左カラム：画像のみ */
.review-media{max-width:200px; flex:0 0 200px;}
.review-figure{margin:0;}
.review-img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  transition:transform .25s ease;
}
.review-row:hover .review-img{ transform:scale(1.02); }

/* 右カラム：縦積み */
.review-content{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
}

/* タイトル：疑似要素の赤ライン（文字幅だけ） */
.review-title{
  position:relative;
  display:inline;          /* 文字幅ベース */
  margin-bottom: 10px;
  padding-bottom:8px;
  font-size: 1.8rem;
  font-weight:800;
  line-height:1.2;
}
.review-title::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:3px;
  background:#d9c48b;
  border-radius:2px;
}

/* 画像上オーバーレイは廃止するので旧クラスを無効化 */
.product-caption{ all:unset; } /* 念のための初期化 */

/* 右カラム用の商品リンク */
.product-link{
  font-weight:700;
  font-size: 1.5rem;
  color:#2563eb;
  margin-bottom: 5px;
  text-decoration:underline;
  text-underline-offset:3px;
  display:inline-block;
}

.product-link:hover{
  text-decoration:none;
}

/* 本文と星 */
.review-rating{ color:#ffcc00; font-size:1.1em; }
.review-text{font-size: 1.4rem;line-height: 1.6;color:#111827;}

/* スマホ：縦積み＆画像大きめ */
@media (max-width:768px){
  .review-row{ flex-direction:column; }
  .review-media{ max-width:60%; flex:none; margin:0 auto; }
  .review-content{ text-align:left; } /* 必要なら center に */
}

/* よくある質問 */
.faq__item{
    background: #f0f2ed;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 8px;
}

.faq__question{
    position: relative;
    line-height: 1.4;
    font-size: 1.8rem;
}

.faq__question span{
    color:#d9c48b;
    margin-right: 8px;
    font-size: 2.4rem;
}

.faq__reply{
    position: relative;
    margin-top: 8px;
    line-height: 1.4;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.faq__reply span{
    width: calc(100% - 52px);
}

.faq__reply:before{
    content: 'A';
    display: flex;
    justify-content: center;
    align-items: center;
    background: #Fff;
    width: 32px;
    height: 32px;
    margin-right: 20px;
    border-radius: 100px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #d9c48b;
}

/* 関連特集 */
.feature_list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
    padding-bottom: 40px;
}

.feature_list > li{
    width: 100%;
    -ms-flex-direction: row;
    flex-direction: row;
}

.feature_list > li a{
    display: flex;
  	flex-direction: column;
    color:#333;
}

.feature_list > li a:hover{
    opacity: 0.7;
}

.feature_list > li img{
    width: 100%;
    vertical-align: bottom;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.feature_list > li .name{
    margin: 8px 0;
    line-height: 1.4;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature_list > li .comment{
    line-height: 1.4;
    color: #555;
    font-size: 1.2rem;
}

@media screen and (min-width: 600px){
    .feature_list > li {
        width: calc((100% - 24px) / 2);
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .feature_list > li .name{
        font-size: 1.8rem;
    }
    
    .feature_list > li .comment{
        font-size: 1.3rem;
    }
}


/* sidenavi */
#side_navi{
    display: none;
}

.section-navi{
    padding-bottom: 40px;
}

@media screen and (min-width: 1400px) and (min-height: 550px){
    /* 初期表示はサイドメニューが表示された状態 */
    #side_navi {
        position: fixed;
        display: block;
        z-index: 100;
        right: -130px; 
        bottom: 20px;
        transition: all 0.3s ease; 
    }

    /* 非表示時のスタイル */
    #side_navi.hidden {
        right: -130px;
    }

    #side_navi.visible{
        right: -130px; 
    }

    #side_navi.visible.hidden{
        right: 0; 
    }

    /* トグルボタンのスタイル */
    .toggle-btn {
        position: absolute;
        left: -34px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #efefef;
        border: 1px solid #dfdfdf;
        border-radius: 5px 0 0 5px;
        border-right: none;
        padding: 25px 10px;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
        font-size: 1.4rem;
    }

    #side_navi .toggle-btn {
        opacity: 0;
        cursor: default;
    }

    #side_navi.visible .toggle-btn,
    #side_navi.visible.hidden .toggle-btn{
        opacity: 1;
        cursor: pointer;
    }

    .item_navi {
        position: relative;
        border-radius: 10px 0 0 10px;
        width: 130px;
        padding: 15px 10px;
        text-align: center;
        background: #efefef;
        border: 1px solid #dfdfdf;
        border-right: none;
    }

    .snav li {
        margin-top: 7px;
        position: relative;
    }

    .snav li a {
        display: flex;
        align-items: center;
        position: relative;
        color: #222;
        padding: 2px 2px 2px 14px;
        min-height: 30px;
        border: 1px solid #b3b3b3;
        border-radius: 5px;
        background: #fff;
        line-height: 1.3;
        font-size: 1rem;
        font-weight: bold;
        text-align: left;
        transition: all 0.2s;
    }

    .snav li a:before{
        content: "";
        position: absolute;
        top: 39%;
        left: 5px;
        color: #bf0000;
        border-style: solid;
        border-color: transparent;
        border-width: 0.35em 0.5em;
        border-right-color: currentColor;
        border-left: 0;
    }

    .snav li a:hover {
        color: #fff;
        background: #bf0000;
    }

    .snav li a.active {
        color: #fff;
        background: #bf0000;
    }

    .section-navi{
        margin-top: -100px;
        padding-top: 110px;
    }
}

@media screen and (min-width: 1500px) and (min-height: 650px){
    #side_navi {
        right: -150px; 
    }

    /* 非表示時のスタイル */
    #side_navi.hidden {
        right: -150px;
    }

    #side_navi.visible{
        right: -150px; 
    }

    .item_navi {
        width: 150px;
        padding: 15px 10px;
    }

    .snav li {
        margin-top: 7px;
    }

    .snav li a {
        padding: 3px 5px 3px 17px;
        min-height: 32px;
        font-size: 1.1rem;
    }
}

.desc-frame {
    padding: 8px;
    border: 1px solid #ffd78b;
    border-radius: 4px;
    background: #feffde;
    color: #555;
}


/* =====================================================================
   ver_2 追加分（20271015_提案書_周年記念特集の改修 対応）
   ※ここより上は既存CSSそのまま。以下が新規追加コンテンツ用。
===================================================================== */

/* ---------- メニュー（周年記念品を探す / お役立ち情報） ---------- */
.block-menu{
    width: 960px;
    max-width: 100%;
    margin: 0 auto 40px;
}

.block-menu__title{
    margin: 24px 0 12px;
    padding: 6px 12px;
    border-left: 5px solid #d9c48b;
    line-height: 1.4;
    font-size: 1.6rem;
    font-weight: bold;
}

.block-menu__list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.block-menu__list a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 100%;
    box-sizing: border-box;
    padding: 10px 6px 8px;
    border: 2px solid #d9c48b;
    border-radius: 8px;
    background: #fff;
    color: #222;
    line-height: 1.4;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    transition: background 0.2s;
}

.block-menu__list a:hover{
    background: #faf6ea;
}

.block-menu__list img{
    width: 44px;
    height: 44px;
    vertical-align: bottom;
}

.block-menu__arrow{
    width: 8px;
    height: 8px;
    margin-top: -2px;
    border-bottom: 2px solid #d9c48b;
    border-right: 2px solid #d9c48b;
    transform: rotate(45deg);
}

@media (min-width: 768px){
    .block-menu__title{
        font-size: 1.9rem;
    }

    .block-menu__list{
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .block-menu__list a{
        padding: 14px 8px 10px;
        font-size: 1.5rem;
    }

    .block-menu__list img{
        width: 60px;
        height: 60px;
    }
}

/* ---------- 大きい切り替えタブ ---------- */
.tab-block{
    margin: 20px 0 0;
}

.tab-nav{
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, 2fr);
}

.tab-nav--c2{ grid-template-columns: repeat(2, 1fr); }
.tab-nav--c3{ grid-template-columns: 1fr; }
.tab-nav--c4{ grid-template-columns: repeat(2, 1fr); }
.tab-nav--c5{ grid-template-columns: repeat(3, 1fr); }
.tab-nav--citem{ grid-template-columns: repeat(2, 1fr); }  /* アイテム別：SPは2列×5行 */

.tab-nav__btn{
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 56px;
    padding: 10px 6px;
    border: 2px solid #d9c48b;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    line-height: 1.4;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-direction: column;
}

.tab-nav__btn:hover{
    background: #faf6ea;
}

.tab-nav__btn:focus-visible{
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.tab-nav__btn.is-active{
    background: #d9c48b;
    color: #222;
}

.tab-panel{
    display: none;
    padding-top: 20px;
}

.tab-panel.is-active{
    display: block;
}

.tab-panel__lead{
    margin: 0 0 10px;
    line-height: 1.8;
    font-size: 1.3rem;
}

.tab-panel .all-item_btn{
    margin-top: 10px;
}

@media (min-width: 768px){
    .tab-nav{
        gap: 10px;
    }

    .tab-nav--c3{ grid-template-columns: repeat(3, 1fr); }
    .tab-nav--c4{ grid-template-columns: repeat(4, 1fr); }
    .tab-nav--c5{ grid-template-columns: repeat(5, 1fr); }
    .tab-nav--citem{ grid-template-columns: repeat(5, 1fr); }  /* アイテム別：PCは5列×2行 */

    .tab-nav__btn{
        min-height: 64px;
        padding: 12px 10px;
        font-size: 1.6rem;
    }

    .tab-panel__lead{
        font-size: 1.4rem;
    }
}

/* ---------- 相談フォーム埋め込み ---------- */
.consult-form{
    margin: 0 auto;
    padding: 24px 15px;
    max-width: 760px;
    box-sizing: border-box;
    border: 2px solid #d9c48b;
    border-radius: 8px;
    background: #fffbf0;
    text-align: center;
}

.consult-form__title{
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 1.7rem;
    font-weight: bold;
}

.consult-form__text{
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 1.3rem;
}

.consult-form__frame{
    max-width: 640px;
    margin: 0 auto;
}

.consult-form__frame iframe{
    display: block;
    width: 100%;
    max-width: 100%;
    height: 480px;
}

@media (min-width: 768px){
    .consult-form{
        padding: 32px 20px;
    }

    .consult-form__title{
        font-size: 2rem;
    }

    .consult-form__text{
        font-size: 1.4rem;
    }
}

/* ---------- 日本製・産地ブランド／のし付き（タグページ商品の出し分け） ---------- */
.brand-products{
    margin: 10px 0 20px;
}

.noshi-products{
    margin: 20px 0;
}

.anniv-pc-only{ display: none; }
.anniv-sp-only{ display: block; }

@media (min-width: 768px){
    .anniv-pc-only{ display: block; }
    .anniv-sp-only{ display: none; }
}

/* ---------- 販促花子の周年記念紹介 ---------- */
.anniv-case{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.anniv-case__media img{
    width: 100%;
    height: auto;
    border-radius: 8px;
    vertical-align: bottom;
}

.anniv-case__title{
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 3px solid #d9c48b;
    line-height: 1.4;
    font-size: 1.7rem;
    font-weight: bold;
}

.anniv-case__product{
    margin: 8px 0 4px;
    line-height: 1.4;
    font-size: 1.5rem;
    font-weight: bold;
}

.anniv-case__note{
    margin: 2px 0;
    color: #555;
    line-height: 1.5;
    font-size: 1.2rem;
}

.anniv-case__text{
    margin-top: 8px;
    line-height: 1.8;
    font-size: 1.4rem;
}

.anniv-case__link{
    margin-top: 12px;
    font-size: 1.4rem;
}

.anniv-case__link a{
    color: #2563eb;
    text-decoration: underline;
}

.anniv-case__link a:hover{
    text-decoration: none;
}

@media (min-width: 768px){
    .anniv-case{
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    .anniv-case__media{
        flex: 0 0 320px;
        width: 320px;
    }

    .anniv-case__body{
        flex: 1 1 auto;
        min-width: 0;
    }

    .anniv-case__title{
        font-size: 2rem;
    }
}

/* ---------- 共通ボタンのSP調整（ボタンが2つ並ぶ箇所の横はみ出し対策） ---------- */
@media (max-width: 767px){
    .all-item_btn{
        flex-wrap: wrap;
        gap: 12px;
    }

    .all-item_btn a{
        width: 100%;
        box-sizing: border-box;
        font-size: 1.4rem;
    }
}

/* ---------- 業種タブ（7タブ：SP 2列 / PC 4列） ---------- */
.tab-nav--c7{ grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px){
.tab-nav--c7 {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 4列を細かく8分割 */
    gap: 8px; /* 既存のgap値に合わせてください */
}

/* 全アイテムの幅を2マス分（元の1fr分）にする */
.tab-nav--c7 > * {
    grid-column: span 2;
}

/* 2行目の先頭（5番目）を2列目から開始させて中央に配置 */
.tab-nav--c7 > *:nth-child(5) {
    grid-column: 2 / span 2;
}
}

/* ---------- 業種タブ：アイコン付き（PC 4列グリッド / SP 2列） ---------- */
.tab-nav--icon .tab-nav__btn{
    flex-direction: column;
    gap: 6px;
    padding: 12px 6px 10px;
}

.tab-nav--icon .tab-nav__btn img{
    width: 36px;
    height: 36px;
    vertical-align: bottom;
}

@media (min-width: 768px){
    .tab-nav--icon .tab-nav__btn{
        min-height: 100px;
        gap: 8px;
    }

    .tab-nav--icon .tab-nav__btn img{
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 1024px) {
    .block-productlist {
        padding-bottom: 0 !important;
    }
}