/* design.css - 色、フォント、装飾、アニメーション */

/* --- 全体フォント・背景 --- */
body {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-feature-settings: "palt";
}

a {
    text-decoration: none !important;
}

.wrap {
    background-color: #FFC81E;
}

/* --- 横スクロールエリア装飾 --- */
.yoko {}

.yoko img {
    border-radius: 8px;
}

/* --- products カード装飾 --- */
.products {
    background-color: #FFF;
    border-radius: 20px;
}

/* --- スライダー装飾 --- */
.slider-wrapper {
    scrollbar-width: thin;
}

.slider-wrapper::-webkit-scrollbar {
    height: 6px;
}

.slider-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.slider-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.slider-wrapper img {
    cursor: zoom-in;
}

/* ナビボタン */
.slider-nav {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.slider-prev::after {
    content: "<";
}

.slider-next::after {
    content: ">";
}

.single-image-wrapper img {
    cursor: zoom-in;
}

/* --- 見出し装飾 (Pop Sticker Style) --- */
h2 {
    font-family: "A P-OTF PuhuPicnic Min2", sans-serif;
    font-size: 5rem;
    font-weight: 500;
    color: #C00121;
    /* 画像の赤に近い色 */
    border-left: 10px solid #FFF600;
    /* 画像の帯の黄色 */
    padding-bottom: -5px;
    letter-spacing: 0.1em;
    background-color: #ffffff;
}

/* --- ボタン装飾 (Candy Glossy Style) --- */
.point_btn,
.order_btn {
    border: none;
    border-radius: 50px;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.point_btn {
    background-color: #f80;
}

.order_btn {
    font-family: "Sawarabi Gothic", sans-serif;
    background-color: #37A0DA;
    letter-spacing: 0.1rem;
    text-align: center;
}

.order_btn:hover {
    transform: translateY(4px);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 0 #635463;
}

/* --- バッジ・アイコン装飾 --- */
.cook_item {
    border: 1px solid #ccc;
    font-size: 0.8em;
    border-radius: 3px;
    color: #555;
    background: #f9f9f9;
}

.todosen::before {
    content: "トドックのみ";
    background: #e6f7ff;
    color: #007bff;
    border: 1px solid #007bff;
    font-size: 0.7em;
    padding: 1px 4px;
    margin-right: 3px;
}

.new::before {
    content: "新登場";
    background: #fff0f6;
    color: #d63384;
    border: 1px solid #d63384;
    font-size: 0.7em;
    padding: 1px 4px;
    margin-right: 3px;
}

.non_alcohol::before {
    content: "ノンアルコール";
    background: #fff0f6;
    color: #d63384;
    border: 1px solid #d63384;
    font-size: 0.7em;
    padding: 1px 4px;
    margin-right: 3px;
}

.wrapping::before {
    content: "包装";
    background: #f0f0f0;
    color: #333;
    border: 1px solid #999;
    font-size: 0.7em;
    padding: 1px 4px;
    margin-right: 3px;
}

.limited_su {
    background-color: #0b8300;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    border-radius: 5px;
}

.limited_su::before {
    content: "限定数";
    font-size: 80%;
}

.limited_su::after {
    content: "個";
    font-size: 80%;
}

.deri_no {
    font-size: 90%;
    font-weight: 600;
    color: #555;
    border: 2px solid #555;
    padding: 1px 6px;
    border-radius: 5px;

}

.frozen::before {
    content: "冷凍";
    font-size: 90%;
    font-weight: 600;
    color: #ff008c;
    border: 2px solid #ff008c;
    padding: 1px 6px;
    border-radius: 5px;
}

.child::before {
    content: "冷蔵";
    font-size: 90%;
    font-weight: 600;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 1px 6px;
    border-radius: 5px;
}

/* プルダウン・テキスト */
.variant-select {
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.top {
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* topにポイントが入る場合 */
.top .point-badge {
    /*--
    background-color: #d00;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;

    border-radius: 15px;
    --*/

    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    color: #fff;
    border-radius: 15px;
    background: #E50012;
    font-size: 3em;
    font-weight: 500;

    background-image: -webkit-gradient(linear, left top, right top, from(#E50012), to(#fb8422));
    background-image: -webkit-linear-gradient(left, #E50012 40%, #fb8422 100%);
    background-image: linear-gradient(to right, #E50012 40%, #fb8422 100%);
}

.top .point-badge::before {
    position: absolute;
    bottom: -0.4em;
    left: 0.8em;
    width: 0;
    height: 0;
    content: '';
    border-width: 30px 20px 0 20px;
    border-style: solid;
    border-color: #E50012 transparent transparent transparent;
}

.top .point-badge::after {
    content: "ポイント付与";
    display: block;
    font-size: 0.4em;
    line-height: 0.2;
    /* 必要に応じて行高を調整 */
}

.prd_bland {
    font-size: 0.85em;
    line-height: 105%;
    font-weight: 600;
}

.prd_hinmei {
    font-size: 1rem;
    font-weight: 800;
    line-height: 105%;
}

.prd_kikaku {
    font-size: 0.95em;
    line-height: 105%;
    font-weight: 500;
}

/* --- 価格装飾 --- */
.hontai {
    font-size: 150%;
    font-weight: 500;
}

.hontai::before {
    content: "本体";
    font-size: 60%;
    margin-right: 2px;
}

.hontai::after {
    content: "円";
    white-space: pre;
    font-size: 60%;
}

.intax {
    font-size: 110%;
    color: #000;
    line-height: 1;
}

.intax::before {
    content: "税込(";
    white-space: pre;
    font-size: 70%;
}

.intax::after {
    content: "円)";
    white-space: pre;
    font-size: 70%;
}

/* 価格の色分け・強調 */
.price.shimokisaiyasu .hontai,
.price.shimokisaiyasu .intax,
.price.kamikisaiyasu .hontai,
.price.kamikisaiyasu .intax {
    color: red !important;
    font-weight: bold;
}

.price.nenyasu {
    background-color: red;
}

.price.nenyasu::before {
    content: "年間最安値";
    font-weight: 900;
    background-color: yellow;
    color: red;
    text-align: center;
}

.price.nenyasu .hontai,
.price.nenyasu .intax {
    color: yellow !important;
    font-weight: bold;
    margin: 0 1em;
}

.price.special,
.price.special .hontai,
.price.special .intax {
    color: #d00 !important;
    font-weight: bold;
}

.annotation {
    line-height: 98%;
    font-size: 90%;
    color: #555;
    word-break: break-all;
}

.exp {
    font-size: 90%;
    font-weight: 500;
}

.exp::before {
    content: "賞:";
}

.exp::after {
    content: "日";
}

.detail-btn {
    color: #5c380e !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.9em;
}

.detail-btn::before {
    content: "▼";
}



.detail_link {
    color: #5c380e !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 85%;
    display: block;
    text-align: center;
    margin-bottom: 2em;

}

.detail_link::after {
    content: " >";
}

.point_before {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: #d00;
    margin-bottom: 1em;
}

.point {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #d00;
    margin-bottom: 1em;
    width: 100%;
}


/* --- モーダル装飾・アニメーション --- */
.image-modal,
.text-modal {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: modalFadeIn 0.3s forwards;
    cursor: pointer;
}

@keyframes modalFadeIn {
    to {
        opacity: 1;
    }
}

.modal-content-box {
    background-color: #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.modal-close-btn {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.detail-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9em;
}

.text-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.text-modal-body {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333;
}

.text-modal-close {
    background: #eee;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    font-size: 18px;
}

/* --- 重ね合わせ表示 (img-type="joint") --- */
.joint-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.joint-img-2 {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    z-index: 1;
    cursor: zoom-in;
    transition: transform 0.2s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.joint-img-1 {
    position: absolute;
    bottom: -5px;
    right: 0%;
    width: 40%;
    z-index: 2;
    cursor: zoom-in;
    transition: transform 0.2s;
}

/* --- ���ӏ����ƍi�荞�݃{�^�� --- */
.attention {
    background-color: #fff;
    border-left: 8px solid #FFF600;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.attention p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5em;
}

/* �A�C�R���̑��� */
.attention p::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 3px;
    background-color: #FFF600;
    color: #C00121;
    width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.7rem;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px auto;
    width: 95%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-container p {
    margin: 0;
    font-size: 0.9rem;
}

.filter-btn {
    border: none;
    padding: 0.2em 1em;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.8em;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.filter-btn:active {
    transform: scale(0.95);
}

.filter-btn.active {
    background-color: #FFF600;
    color: #C00121;
    box-shadow: 0 4px 12px rgba(255, 246, 0, 0.4);
    pointer-events: none;
}


.filter-btn a {
    color: #000000;
}

/* 山崎追加 */
.main-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    box-sizing: border-box;
}

.main-visual img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 注意事項 */
.precaution {
    padding: 10px 10px;
    margin-top: 8px;
    width: 100%;
}

.precaution h3 {
    font-family: "A P-OTF PuhuPicnic Min2", "M PLUS 1p", sans-serif;
    font-weight: 700;
    margin: 0 10px;
    font-size: 2.4em;
    color: #E50012;
    line-height: 1.5;
    position: relative;
    text-align: center;
}

.precaution h4 {
    background-color: #E50012;
    padding: 0.2em 1em;
    margin: 0 10px;
    border-radius: 50px;
    font-size: 1.4em;
    font-weight: 400;
    color: #FFF;
    line-height: 1.5;
    position: relative;
    text-align: center;
}

.precaution ul {
    margin: 8px 0 0 0;
    padding: 0px 10px;
    font-size: 1.0em;
    font-weight: 400;
    color: #333;
    list-style: none;
}

.precaution li {
    padding: 0.1em 0;
    /* 箇条書きの文どうしの間隔 */
    margin-left: 1.4em;
    text-indent: -1.4em;
}

.precaution li:before {
    content: "※";
    padding-right: 4px;
    /* リストの番号と文字の間に隙間をあける */
}


/* カテゴリごと背景色 */
.bg-section {
    background-color: #FFC81E;
    /* 好きな背景色に変えてください */
    width: 100%;
    /* 幅をいっぱいに広げる */

    display: flex;
    /* 親(wrap)と同じ性質を持たせる */
    flex-wrap: wrap;
    /* 中の商品を折り返させる */

    justify-content: center;
    /* 均等配分ではなく中央に寄せる */
    gap: 0 3%;
    /* 商品同士の隙間を直接10pxに指定 */
}

/* この時、col2側の自動マージンが邪魔をするので解除する */
.bg-section .products.col2 {
    margin-left: 0;
    margin-right: 0;
}

.mdm-bg-01 {
    background-color: #DEC987;
    /* 好きな背景色に変えてください */
}

.mdm-bg-02 {
    background-color: #C6FFC1;
    /* 好きな背景色に変えてください */
}

.pt-bg-100 {
    background-color: #FFF100;
    /* 好きな背景色に変えてください */
}

.pt-bg-50 {
    background-color: #A8D182;
    /* 好きな背景色に変えてください */
}

.pt-bg-alc {
    background-color: #E3D590;
    /* 好きな背景色に変えてください */
}

.pt-bg-daily {
    background-color: #87D3F3;
    /* 好きな背景色に変えてください */
}


/* 見出しを画像にする場合(読み上げのために画像下にテキストを隠す) */
.h2image {
    width: 100%;
    max-width: 600px;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
}

.h2image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.h2image p {
    font-size: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    z-index: -1;
    /* これで画像の下（裏）に隠れる */
}


.inline-btn-img {
    height: 1.8em;
    /* 文字の高さより少し大きく設定 */
    vertical-align: middle;
    /* テキストの垂直中央に合わせる */
    margin: 0 4px;
    /* 前後のテキストとの間に少し隙間を作る */
    display: inline-block;
}

.red {
    color: #E50012;
}

.mokuji {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px;
    width: 95%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mokuji p {
    margin: 0;
    font-size: 0.9rem;
}

.mokuji h3 {
    font-family: "A P-OTF PuhuPicnic Min2", "M PLUS 1p", sans-serif;
    font-weight: 700;
    margin: 0 10px;
    font-size: 2.4em;
    color: #000000;
    line-height: 1.5;
    position: relative;
    text-align: center;
}

.mokuji-btn {
    border: none;
    padding: 0.2em 1em;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.8em;
}

.mokuji-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.mokuji-btn:active {
    transform: scale(0.95);
}

.mokuji-btn.active {
    background-color: #FFF600;
    color: #C00121;
    box-shadow: 0 4px 12px rgba(255, 246, 0, 0.4);
    pointer-events: none;
}

/* コープのお店からのお知らせ フローティングボタン */
.coop-notice-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation: modalFadeIn 0.5s forwards;
}

.coop-notice-close {
    background: #555;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: -13px;
    margin-right: -10px;
    z-index: 1000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.coop-notice-content {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coop-notice-content:hover {
    transform: translateY(-2px);
}

.coop-notice-label {
    background-color: #E50012;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 10px 10px 0 0;
    margin-bottom: -1px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.coop-notice-banner {
    width: 250px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #E50012;
}

/*スマホ表示の場合*/
@media screen and (max-width:600px) {
    .coop-notice-float {
        bottom: 70px;
        right: 10px;
    }
    .coop-notice-banner {
        width: 200px;
    }
    .coop-notice-label {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    .precaution h3 {
        font-size: 2em;
    }

    .precaution h4 {
        font-size: 1.2em;
    }

    .precaution ul {
        font-size: 0.8em;
    }

    .top .point-badge {
        font-size: 2.5em;
    }

    .campaign_switch h3 {
        font-size: 2.0em;
    }

    .campaign_switch p {
        font-size: 1.2em;
    }

    .accent_text {
        font-size: 1.5em;
    }
}