/**
 * 商品カードコンポーネント用スタイル
 */

/* カード本体 */
.item-card {
    width: 19%;
    background-color: #fff;
    box-shadow: 0px 0px 10px #adadad52;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    transition: all ease 0.5s 0s;
    -webkit-transition: all ease 0.5s 0s;
    -moz-transition: all ease 0.5s 0s;
    margin-bottom: 25px;
    margin-right: calc(5% / 4);
}

.item-card:nth-of-type(5n+5) {
    margin-right: 0;
}

.item-card:hover {
    opacity: 0.6;
    transform: scale(1.05);
}

/* リンク */
.item-card-link {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
}

/* 画像 */
.item-card-img {
    position: relative;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.item-card-img span {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    background-color: #d19ab4;
    font-size: 16px;
    padding: 5px 9px;
    border-radius: 4px;
}

.item-card-img img {
    max-height: 252px;
    height: 14vw;
}

/* テキストエリア */
.item-card-body {
    margin-top: 10px;
}

/* タイトル */
.item-card-title {
    min-height: 50px;
    font-size: 16px;
    font-weight: 600;
}

.item-card-title span {
    display: block;
    font-size: 15px;
    color: #f1b500;
}

.item-card-title span em {
    color: #5a5a5a;
    letter-spacing: 1px;
}

/* 価格表示 */
.item-card-price {
    font-weight: bold;
    font-size: 14px;
    background-color: #f2f2f2;
    border: 1px solid #c4c4c4;
    padding: 5px 10px;
    margin-bottom: 5px;
}

.item-card-price br {
    display: none;
}

/* タグ */
.item-card-tags {
    margin: 10px 0 5px;
    font-size: 14px;
}

.item-card-tags span {
    font-weight: 800;
    padding-right: 7px;
}

.item-card-tags span.bp {
    font-weight: normal;
    color: #fff;
    background: #D19AB4;
    border-radius: 5px;
    padding: 3px 7px;
    display: inline;
}

.item-card-tags span.sr {
    font-weight: normal;
    color: #fff;
    background: #95A0BB;
    border-radius: 5px;
    padding: 3px 7px;
    display: inline;
}

/* レスポンシブ対応 */
@media screen and (max-width: 950px) {
    .item-card-tags span {
        display: block;
    }

    .item-card-price {
        font-size: 12px;
        padding: 5px 2px;
        display: block;
    }

    .item-card-tags {
        margin: 10px 0 5px;
        font-size: 10px;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
    }

    .item-card-tags span.bp {
        margin: 0 4px 4px 0;
    }

    .item-card-tags span.sr {
        margin-bottom: 4px;
    }

    .item-card-title {
        min-height: 43px;
        font-size: 14px;
    }

    .item-card-price br {
        display: inline-block;
    }
}

@media screen and (max-width: 640px) {
    .item-card-tags span.bp,
    .item-card-tags span.sr {
        font-size: 10px;
        padding: 3px;
    }
}

@media screen and (max-width: 480px) {
    .item-card {
        border-radius: 7px;
        width: 100%;
        margin-bottom: 4%;
        margin-right: 0;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .item-card-img {
        width: 30vw;
        height: 30vw;
        border: 1px solid #b7b7b7;
    }

    .item-card-body {
        width: calc(100% - 30vw);
        padding-left: 3vw;
    }

    .item-card-title {
        min-height: unset;
        font-size: 14px;
    }

    .item-card-price {
        margin: 10px 0;
        padding: 5px 10px;
        font-size: 14px;
    }

    .item-card-price br {
        display: none;
    }

    .item-card-tags {
        margin: 0;
        font-size: 13px;
    }

    .item-card-tags span.bp,
    .item-card-tags span.sr {
        font-size: 11px;
    }

    .item-card:nth-of-type(odd) {
        margin-right: 0;
    }

    .item-card-img span {
        font-size: 14px;
    }

    .item-card-img img {
        height: auto;
    }
}
