#wrapper {
    background-color: #fff;
}
.pc{
  display: block;
}
:root {
    --ReX-Light-blue-800: #006A9E;
    --ReX-Gray-900: #333;
    --ReX-Crimson-Red-800: #BF0000;
    --ReX-Mobile-Pink: #FF008C;
    --Gray-00: #fff;
    --ReX-Gray-400: #B6B6B6;
    --ReX-Gray-200: rgba(235, 235, 235, 1);
}

.title {
    max-width: 960px;
    margin: 0 auto 20px;
}

.campaign-list-page .lead {
    font-size: 14px;
    text-align: left;
    color: var(--Gray-900, #333);
    font-style: normal;
    font-weight: 300;
    line-height: 16px;
    margin-bottom: 10px;
}

.campaign-list-page .caution {
    font-size: 12px;
}

.campaign-list-page .title-h1 {
    border-bottom: none;
    margin-bottom: 0;
}
.campaign-list-item::after{
  border: none;
}
.rc-container-wrapper {
    background: #f7f7f7;
    padding-top: 40px;
    padding-bottom: 26px;
}

@media screen and (max-width: 1021px) {
    .title {
        padding: 0 20px 20px;
        margin: 10px 0;
        border-bottom: 2px solid var(--ReX-Crimson-Red-800);
    }
    .campaign-list-page .title-h1 {
        font-size: 24px;
    }
    .lead {
        font-size: 12px;
    }
    .rc-container-wrapper {
        padding: 0 14px 14px;
        background-color: #fff;
    }
}

.rc-container-wrapper .cw-campaign-list {
    padding-left: 0;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 0px;
    column-gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

@media screen and (min-width: 431px) {
    .rc-container-wrapper .cw-campaign-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) {
    .rc-container-wrapper .cw-campaign-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 16px;
    }
}

.rc-container-wrapper .cw-campaign-list .cw-chart-card {
    background-color: var(--Gray-00);
    border-radius: 0px;
    list-style: none;
    border-radius: 4px;
}

.rc-container-wrapper .cw-campaign-list .cw-chart-card:hover {
    background-color: var(--ReX-Gray-200);
}

/* PC時のデフォルトスタイル（画像とテキストが縦並び） */
.rc-container-wrapper .cw-campaign-list .cw-chart-card a {
    display: flex;
    flex-direction: column; /* PCでは縦並び */
    padding: 16px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.rc-container-wrapper .cw-campaign-list .cw-chart-card a img {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px; /* 画像とテキストボックスの間にスペース */
}

.rc-container-wrapper .cw-campaign-list .cw-chart-card .txtbox {
    width: 100%; /* PCではテキストボックスが幅いっぱいに */
}

.campaign-name {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ReX-Light-blue-800);
}

/* エントリー要/不要のスタイル */
.campaign-category {
    display: flex; /* カテゴリのタグを横並びにするため */
    flex-wrap: wrap; /* 狭い画面で折り返すため */
    margin-bottom: 8px; /* カテゴリ全体と期間の間にスペース */
}

.campaign-category-red p {
    color: var(--ReX-Crimson-Red-800);
    border: 1px solid var(--ReX-Crimson-Red-800);
    display: inline-block;
    padding: 4px 7px;
    border-radius: 4px;
    line-height: 1.6;
    font-size: 12px;
    font-weight: bold;
    margin-right: 4px; /* タグ間のスペース */
    margin-bottom: 8px;
}
.campaign-category-red p.noentry{
  color: var(--Gray-900);
  border: 1px solid var(--ReX-Gray-400);
}
.campaign-category-red p:last-child {
    margin-right: 0;
}

/* mobile */
.campaign-category-pink p {
    color: var(--ReX-Mobile-Pink);
    border: 1px solid var(--ReX-Mobile-Pink);
    display: inline-block;
    padding: 4px 7px;
    border-radius: 4px;
    line-height: 1.6;
    margin-bottom: 4px; /* カテゴリ内のアイテム間のマージン */
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px; /* タグ間のスペース */
}

.campaign-term {
    color: var(--ReX-Gray-900);
    font-size: 14px;
    margin-bottom: 0;
    display: flex;
}

.noentry { /* エントリー不要のスタイル（既存のHTMLには無かったので追加） */
    color: var(--ReX-Gray-900);
    border: 1px solid var(--ReX-Gray-400);
    display: inline-block;
    padding: 4px 7px;
    border-radius: 4px;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: bold;
}


/* --- SP表示時のスタイル（max-width: 767px 以下で適用） --- */
@media screen and (max-width: 767px) {
    .pc{
    display: none;
  }
  .rc-container-wrapper .cw-campaign-list .cw-chart-card{
    border-bottom: 1px solid #ddd;
    border-radius: 0;
  }
    .rc-container-wrapper .cw-campaign-list .cw-chart-card a {
        flex-direction: row; /* SPで横並びにする */
        align-items: flex-start; /* 縦方向の配置を上揃えにする */
        gap: 12px; /* 画像とテキストの間にスペースを開ける */
        padding: 16px 0; /* SPでパディングを少し減らすなど調整 */
    }

    .rc-container-wrapper .cw-campaign-list .cw-chart-card a img {
        max-width: 140px; /* SPでの画像の最大幅を調整 */
        width: 50%; /* 例: 画像が全体の30%を占める */
        height: auto;
        margin-bottom: 0; /* 横並びになったので下マージンは不要 */
        flex-shrink: 0; /* 画像が縮小しないようにする */
    }

    .rc-container-wrapper .cw-campaign-list .cw-chart-card .txtbox {
        width: 70%; /* 残りのスペースをテキストボックスが占める */
    }

    .campaign-name {
        margin-bottom: 8px; /* テキストボックス内の要素間のマージンを調整 */
        font-size: 13px; /* SPでのフォントサイズ調整 */
    }

    .campaign-category {
        margin-bottom: 4px; /* SPでカテゴリと期間の間のマージンを調整 */
    }

    .campaign-category-red p,
    .campaign-category-pink p,
    .noentry {
        font-size: 11px; /* SPでのフォントサイズ調整 */
        padding: 3px 6px;
        margin-bottom: 6px; /* カテゴリ内のアイテム間のマージン調整 */
        margin-right:0;
    }

    .campaign-term {
        font-size: 12px; /* SPでのフォントサイズ調整 */
    }
}

.sp-content-wrapper{
    padding: 20px;
}
#button a {
  display: block;
  border: 1px solid #dddddd;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 12px;
  text-decoration: none;
  color: #333333;
}
#button a:not(:last-of-type) {
  margin-bottom: 10px;
}
#button a span {
  background-image: url(https://shaken.r10s.jp/shaken/img/sp/top/icon_arrow_gray_sp.png);
  background-repeat: no-repeat;
  background-size: 11px 17px;
  background-position: 100% 50%;
  display: block;
  font-weight: bold;
}