/* トピック用カスタムCSS - EC-CUBEアップデート時に保護されます */

.ec-topicRole_1{
    padding: unset;
    background-color: #333;
    margin-bottom: 10px;
}

.ec-topicRole__list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0;
    max-height: 380px;
}

.ec-topicRole__list {
    flex-wrap: wrap !important; /* デフォルトのnowrapを上書き */
}

.ec-topicRole__listRow {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.ec-topicRole__listItem {
    width: 49%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.ec-topicRole__listItem a {
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ec-topicRole__listItem a:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.ec-topicRole__listItem img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s;
}

.ec-topicRole__listItem img:hover {
    opacity: 0.9;
}
@media screen and (max-width: 1090px) {
  .ec-topicRole__list {
    padding-top: 30px;
    max-height: none !important;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .ec-topicRole__list {
        padding: unset;
    }

    .ec-topicRole__listRow {
        flex-wrap: wrap;
    }

    .ec-topicRole__listItem {
        width: 48%;
    }
}

@media screen and (max-width: 480px) {
    .ec-topicRole__listRow {
        flex-direction: column;
    }

    .ec-topicRole__listItem {
        width: 100%;
        margin-bottom: 15px;
    }
}
