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

body {
    margin: 0;
    padding: 0;
    background: url('../img/d_gstomato_pc_back.png') no-repeat fixed;
    background-size: cover;
}

.img {
    vertical-align: bottom;
}

.content {
    max-width: 520px;
    margin: 0 auto;
}

.content img {
    display: block;
    width: 100%;
}

/* cta */

.ofa-style {
    position: relative;
}

.ofa-btn {
    display: flex;
    position: absolute;
    bottom: 0.5%;
    left: 0%;
    width: 100%;
}
.ofa-btn2 {
    display: flex;
    position: absolute;
    bottom: 38.5%;
    left: 0%;
    width: 100%;
}
.ofa-btn3 {
    display: flex;
    position: absolute;
    bottom: 18.5%;
    left: 0%;
    width: 100%;
}
.ofa-btn4 {
    display: flex;
    position: absolute;
    bottom: 18.5%;
    left: 0%;
    width: 100%;
}

/* 共通 hover 設定 */
.ofa-btn a,
.ofa-btn2 a,
.ofa-btn3 a,
.ofa-btn4 a {
    transition: .3s;
}

.ofa-btn a:hover,
.ofa-btn2 a:hover,
.ofa-btn3 a:hover,
.ofa-btn4 a:hover {
    opacity: 0.7;
}


/* 追従ボタンのコンテナ */
.floating-buttons {
    position: fixed;
    bottom: 15%;
    right: 1%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 30vw;
    max-width: 655px; /* 最大サイズを制限 */
}

/* 上段の3つのボタン */
.floating-buttons .button:nth-child(-n+3) {
    flex: 0 0 215px;
}

/* 下段の2つのボタン */
.floating-buttons .button:nth-child(n+4) {
    flex: 0 0 215px;
    margin: 0;
}

/* 画面幅が768px以下の場合にボタンを非表示 */
@media (max-width: 1400px) {
    .floating-buttons {
        display: none;
    }
}

.button {
    width: 10vw; /* ビューポート幅の10%をボタンの幅に設定 */
    height: 10vw; /* 高さも同様に設定 */
    max-width: 215px; /* 最大サイズを制限 */
    max-height: 211px; /* 最大サイズを制限 */
    transition: transform 0.3s;

/*width: 215px;
    height: 211px;
    transition: transform 0.3s;*/
}

.button:hover {
    transform: scale(1.1);
}

/* sns カルーセル右から */

@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.scroll-infinity {
    background-image: url('../img/sns_bk01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.scroll-infinity__wrap {
    display: flex;
    overflow: hidden;
    max-width: 520px;
}

.scroll-infinity__list {
    display: flex;
    list-style: none;
    padding: 0;
}

.scroll-infinity__list--left {
    animation: infinity-scroll-left 40s infinite linear 0.5s both;
}

.scroll-infinity__item {
    width: calc(1100px / 5);
}

ul.scroll-infinity__list.scroll-infinity__list--left {
    margin: 0;
}

li.scroll-infinity__item {
    margin: 0 6px;
}

/* sns カルーセル左から */

@keyframes infinity-scroll-right {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0%);
    }
}

.scroll-infinity2 {
    background-image: url('../img/sns_bk02.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.scroll-infinity__list--right {
    animation: infinity-scroll-right 40s infinite linear 0.5s both;
}

ul.scroll-infinity__list.scroll-infinity__list--right {
    margin: 0;
}

/* 767px以下の画面幅で追従ボタンを非表示にする */
@media screen and (max-width: 767px) {
    .floating-buttons {
        display: none;
    }
    .floating-buttons2 {
        display: none;
    }
    .fix_title {
        display: none;
    }
}

/* recipe contents */
.recipe-area {
    background-image: url('../img/d_gstomato_768px_08_ol_bottom01_02.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.recipe-area2 {
    background-image: url('../img/d_gstomato_768px_08_ol_bottom01_03.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.recipe-area3 {
    background-image: url('../img/d_gstomato_768px_08_ol_bottom01_04.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.recipe_img {
    display: flex;
}

.recipe_img img {
    width: 50%;
    transition: opacity 0.3s ease;
}

.recipe_img img:hover {
    opacity: 0.5;
}

/* ポップアップのスタイル */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto; /* 長い画像の場合、スクロール可能に */
}

.popup-content {
    max-width: 90%;
    max-height: 90%;
    overflow: auto; /* コンテンツが画面を超えた場合スクロールを有効に */
}

.popup-content img {
    width: 100%;
    height: auto;
    /*max-height: 90vh;  画面の高さの90%を超えないように設定 */
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* accordion contents */

/* -------------------------------------------------------------------- 
アコーディオン
-------------------------------------------------------------------- */
.ac,
.ac dd {
    margin: 0;
}

.ac dt {
    cursor: pointer;
}

.ac dt img {
    width: 100% !important;
    height: auto;
}

.ac .wrap_btn .btn {
    width: auto;
    top: 0;
    left: 0;
}

.ac dd,
.ac .wrap_btn .btn.cls {
    display: none;
}

.ac .wrap_btn.open .btn.opn {
    display: none !important;
}

.ac .wrap_btn.open .btn.cls {
    display: inline !important;
}

.wrap_btn {
    position: relative;
}

.wrap_btn:hover {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ac .btn {
    padding: 0;
}

.container {
    position: relative;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.image-a {
    display: block;
}

.image-b {
    position: absolute;
    top: 0%;
    left: 0%;
}


/**/
/*アコーディオン*/
.accordion_area {
    width:100%;
}

.accordion_box{
    margin: 0 auto;
}
.ac_item{
    margin: 0%;
}
.ac_answer{
    display:none;
}
.active{
    border-radius: 0;
    overflow: hidden;
}
.ac_question{
    display: block;
    position: relative;
    cursor: pointer;
}
.ac_question::before{
    content: '';
    position: absolute;
    width: 5%;
    height: 0.5px;
    border-bottom: solid #000;
    border-bottom-width: 0.2vw;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 6.6%;
    transform: rotate(0deg);
    transition: all .4s;
    z-index: 5;
}
.ac_question::after{
    content: '';
    position: absolute;
    width: 5%;
    height: 0.5px;
    border-bottom: solid #000;
    border-bottom-width: 0.2vw;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 6.65%;
    transform: rotate(90deg);
    transition: all .4s;
    z-index: 5;
}
.active::before{
    transform: rotate(360deg);
    transition: all .4s;
}
.active::after{
    transform: rotate(360deg);
    transition: all .4s;
}
dd.ac_answer {
    display: none;
    margin: 0;
}

@media screen and (max-width: 767px) {
.accordion_box{
    width: 100%;/*スマホ表示時のアコーディオン幅設定*/
}

.ac_question::before{

    border-bottom-width: 0.4vw;
}
.ac_question::after{
    border-bottom-width: 0.4vw;

}

}


/* footer */

        .footer {
            width: 100%;
            max-width: 520px;
            margin: 0 auto;
            text-align: center;
            font-family: Arial, sans-serif;
        }

        .footer-top {
            background-color: #87c300;
            padding: 30px 0;
            font-size: 15px;
            font-weight: bold;
            color: #333;
        }

        .footer-top a {
            color: #333;
            text-decoration: none;
            margin: 0 10px;
            display: inline-block;
        }

        .footer-bottom {
            background-color: #1c1d1d;
            padding: 35px 0 20px 0;
            color: white;
            font-size: 13px;
        }

        .footer-bottom span {
            display: block;
            margin-top: 5px;
        }

        /* Smaller screens (responsive adjustments) */
        @media screen and (max-width: 480px) {
            .footer-top {
                padding: 15px 0;
                font-size: 14px;
            }

            .footer-top a {
                margin: 0 5px;
                font-size: 14px;
            }

            .footer-bottom {
                padding: 25px 0 15px 0;
                font-size: 12px;
            }
        }