@charset "UTF-8";
/* 主にメインコンテンツ下に表示するフッターコンテンツについて取り扱う */
/**
 * レスポンシブ対応のブレイクポイント
 * タブレット：max-width: 960px
 * スマートフォン：max-width: 576px
*/

/* 人気スマホの買取価格表一覧 */
div.popular_sp_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    div.popular_sp_item {
        width: calc(100% / 4 - 16px);
        height: 50px;
        border-radius: 5px;
        background: #EAEAEA;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        margin: 10px 0;
        text-align: center;

        @media (max-width: 960px) {
            /* モデル名は文字数が長くて途中で切れてしまうため、 3カラムは実装しない */
            width: calc(100% / 2 - 10px);
        }

        a {
            width: 100%;
            height: 100%;
            color: #333333;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 5px;

            /*font-size: blade側で専用classを付与して設定*/
            font-weight: 500;
            white-space: nowrap;

            &:hover {
                box-shadow: none;
                color: #ffffff;
                background: #e70012;
            }
        }
    }
}

/* ノジマのスマホ買取とは */
.about_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;

    .about_item {
        max-width: 450px;
        min-width: 200px;
        width: 45%;
        position: relative;
        overflow: hidden;
        @media (max-width: 576px) {
            width: 80%;
            margin: 20px 0 ;
        }

        a {
            width: 100%;
            height: 100%;
            overflow: hidden;

            div.about-img-pc {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                overflow: hidden;
                transition: all 0.5s ease;
                @media (max-width: 576px) {
                    display: none;
                    position: relative;
                }

                &:hover {
                    transform: scale(1.2, 1.2);
                    transition: all 0.5s ease;
                }
            }

            img.about-img-sp {
                visibility: hidden;
                position: static;
                width: 100%;
                height: 100%;
                margin: 0 !important;
                @media (max-width: 576px) {
                    visibility: visible
                }
            }

            div.about-banner-text {
                position: absolute;
                bottom: 0;
                width: 100%;
                height: 60px;
                background: rgba(24, 45, 124, 0.7);
                display: flex;
                align-items: center;
                text-align: center;

                label {
                    position: absolute;
                    bottom: 20px;
                    width: 100%;
                    height: 30px;
                    color: white;
                    font-weight: 700;

                    /* タブレット時に見切れてしまうため、例外的にフォントサイズを変更させる */
                    @media (max-width: 960px ) and (min-width: 769px) {
                        font-size: clamp(18px, 2.7vw, 24px);
                        bottom: 2.2vw;
                    }
                    @media (max-width: 768px ) and (min-width: 577px) {
                        font-size: clamp(13px, 2.3vw, 21px);
                        bottom: 2.0vw;
                    }

                    @media (max-width: 576px ) {
                        font-size: clamp(18px, 5.0vw, 24px);
                        bottom: 4.0vw;
                    }
                }

                img.about-banner-arrow {
                    position: absolute;
                    top: 35%;
                    right: 20px;
                    width: 10px;
                    height: 20px;
                    @media (max-width: 960px ) and (min-width: 577px) {
                        top: 38%;
                        right: 20px;
                        width: 8px;
                        height: 16px;
                    }
                    @media (max-width: 576px ) {
                        display: none;
                    }
                }
            }


        }
    }
}
