@charset "utf-8";
a {
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease; 
}
a:hover {
  text-decoration: none;
  opacity: 0.7;
}
/* ポップアップを画面右下に固定 */
#scroll-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px; /* 必要に応じて調整 */
    z-index: 1000;
    /* 初期状態では非表示 */
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
/* ポップアップの中身のスタイル */
.popup-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* ポップアップのタイトル */
.popup-title {
    padding: 0 15px;
    color: #ffffff;
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: #4363c1;
    border-radius: 8px 8px 0 0;
    line-height: 44px;
}
/* 商品リストのスタイル */
.item-list {
    list-style: none; /* リストの点を消す */
    padding: 0;
    margin: 0;
}
/* 個々のアイテムのスタイル */
.item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 10px;
    border-bottom: 2px solid #eee;
    cursor: pointer;
}

.item img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    margin-right: 10px;
    }
.item-info {
    color: #000000;
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-align: left;
}
.popup-message a {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 44px;
}
.popup-message a {
    display: block;
    color: #4363c1;
}

/* 閉じるボタンのスタイル */
#close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: #555;
    border-radius: 50%;
    cursor: pointer;
}
/* 閉じるボタンの「×」アイコン */
#close-button::before, #close-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background-color: white;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
        -ms-transform: translate(-50%, -50%) rotate(45deg);
            transform: translate(-50%, -50%) rotate(45deg);
}
#close-button::after {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
        -ms-transform: translate(-50%, -50%) rotate(-45deg);
            transform: translate(-50%, -50%) rotate(-45deg);
}
/* ポップアップを表示するためのクラス */
#scroll-popup.visible {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 640px) {
    /* ポップアップを画面下部に固定し、横幅をいっぱいに広げる */
    #scroll-popup {
        right: 16px;
        bottom: 10px;
        width: 100%;
        width: calc(100vw - 30px);
        min-width: 290px;
        max-width: 337px;
        max-height: calc(100dvh - 30px);
        padding: 0;
    }

    /* ポップアップの中身のスタイル */
    .popup-content {
        font-size: 12px; 
    }
    
    /* ポップアップのタイトル */
    .popup-title {
        font-size: 16px;
        line-height: 40px;
    }

    /* 個々のアイテムのスタイル */
    .item {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 6px 8px;
    }
    .item img {
        width: 60px;
        height: 60px;
    }

    /* 商品情報のテキスト */
    .item-info {
        font-size: 10px;
    }
    
    /* メッセージのリンク */
    .popup-message a {
      font-size: 16px;
        line-height: 36px;
    }
    
}