.border-radius-14 {
    border-radius: 14px!important;
}

/* ボタンのスタイル */
.creditcard button {
    width: 180px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    border-radius: 14px;
    transition: background-color 0.1s;
    border: 2px solid #ddd
}

/* 選択された状態のスタイル */
.creditcard button.selected {
    background-color: #19a3f9;
    border-color: #19a3f9;
}

.button-v2 {
    margin-top: 0px;
    margin-bottom: 0px;
    cursor: pointer;
    margin-top: 24px;
}

.button-v2.selected {
    background-color: #19a3f9 !important;
    border-color: #19a3f9 !important;
    border-radius: 100px;
}

.button-v2.selected span {
    color: #ffffff !important;
}

/* 各カテゴリーの親要素に position: relative を設定 */
/* これにより子要素の p タグ（絶対配置）の基準点となる */
.recommendation {
    position: relative;
}

.students {
    position: relative;
}

.collaboration {
    position: relative;
}

.travel {
    position: relative;
}

.donation {
    position: relative;
}

.company {
    position: relative;
}

.chenge_thumb {
    text-align: center;
}

/* デフォルトで p タグを非表示にする */
.creditcard p {
    display: none;
    position: absolute;
    top: 50%;
    left: 45%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* ボタンが押されたら p タグを表示する */
.creditcard button.selected+p {
    display: block;
    cursor: pointer;
}

/* 選択された状態の画像の塗りつぶし */
.creditcard button.selected img {
    opacity: 0.0;
}

/* メインカード画像のスタイル */
.card_thumb_main {
    /* 固定の高さを設定 */
    object-fit: contain;
    /* アスペクト比を保持しながら、指定したサイズに収める */
    max-height: 300px;
    /* ブロック要素として表示 */
    display: block;
    margin: 0;
    /* 中央寄せ */
    height: auto;
}

/* サムネイル画像のスタイル - 通常時 */
.card_thumb {
    cursor: pointer;
    width: 90%;
    max-width: 70px;
    margin: 15px 2% 0;
    border-radius: 3px;
    transition: box-shadow 0.3s ease;
    /* 影のアニメーション効果 */
    box-shadow: none;
    border: 2px solid #e5e5e5;
}

/* 最初のサムネイルに青い影をつける（recentクラスがない場合のみ） */
.chenge_thumb:not(:has(.recent)) .card_thumb:first-child {
    box-shadow: 0 0 4px 4px #69f;
}

/* 選択された画像（recentクラス）に青い影をつける */
.card_thumb.recent {
    box-shadow: 0 0 4px 4px #69f;
}

/* 選択されていない画像から青い影を消す */
.card_thumb:not(.recent):not(:first-child) {
    box-shadow: none;
}

/* 特典ボックスの個別スタイル */
.service-box {
    height: 83px;
    /* 固定の高さを設定 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #9c9a9a;
    /* 幅を100%に設定 */
    box-sizing: border-box;
}

/* 該当数表示テキストの中央寄せ */
.js_text {
    text-align: center;
    font-size: 150%;
}

/* 該当数の強調表示 */
.js_text span {
    padding: 5px 5px 5px;
    font-size: 45px;
    color: #f51fe3;
    font-weight: bold;
}

.bold {
    font-weight: bold;
}

/* PC表示時のスタイル */
.pc_media {
    display: block;
}

/* スマートフォン表示時のスタイル */
.sp_media {
    display: none
}

/* 特典 */
/* 太字＆大文字 */
.bold_large {
    font-size: 215%;
    font-weight: bold;
    white-space: nowrap;
}

.bold-middle1 {
    font-size: 138%;
    font-weight: bold;
}

/* 太字＆中文字 */
.bold_middle2 {
    font-weight: bold;
    font-size: 120%;
}

/* 太字テキストのスタイル調整 */
.font-bold {
    font-weight: bold;
    text-align: center;
    word-break: keep-all;
}

.font-small {
    font-size: 75%;
    font-weight: bold;
}

/* 特典の位置調整＆border設置 */
.service-box {
    margin-top: 1px;
    border-left: 1px solid #bdbdbd;
}


.service-kinds .longcard {
    font-size: 58%;
    font-weight: bold;
    line-height: 0.5;
}

/* font-bold_1用文字サイズ */
.font-bold_1 {
    font-weight: bold;
    text-align: center;
    word-break: keep-all;
    font-size: 89%;
}

/* ボタン位置調整 */
.button-wrap.details-button {
    padding-left: 0px;
    margin-top: 0px !important;
    width: 116% !important;
}

/* 右ボーダー付きサービスボックスの幅調整 */
.service-box.border-right-pc {
    border-right: 1px solid #bdbdbd;
}

/* 券面とカードタイトル横並び */
.dis_flex {
    display: flex;
}

.text_black {
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-block-start: 0px;
    margin-block-end: 24px;
}

.anothercrad_box {
    background-color: #ececec;
    margin-top: 55px !important;
    margin-bottom: 15px !important;
    padding: 3rem;
    border-radius: 10px;
}

.anothercrad_box>p {
    font-size: 24px;
}

.anothercrad_box>div {
    margin: 2rem 0 0;
}

.card-list-wrap .card-list__newfeature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%
}

.card-list-wrap .card-list__newfeature .type-company,
.card-list-wrap .card-list__newfeature .type-payment {
    display: flex;
    align-items: center;
    justify-content: center
}

.card-list-wrap .card-list__newfeature .type-payment {
    position: relative
}

.card-list-wrap .card-list__newfeature .type-payment:before {
    position: absolute;
    border-left: 1px solid #ddd;
    content: ""
}

.card-list-wrap .card-list__newfeature {
    justify-content: left;
    margin-top: 20px
}

.card-list-wrap .card-list__newfeature .type-company__img {
    width: 60px;
    margin-right: 8px
}

.card-list-wrap .card-list__newfeature .type-payment {
    margin-left: 20px
}

.card-list-wrap .card-list__newfeature .type-payment__img {
    width: 60px;
    margin-right: 8px
}

.card-list-wrap .card-list__newfeature .type-payment:before {
    top: 8px;
    left: -20px;
    width: 1px;
    height: 32px
}

.card-list-wrap .card-list__newfeature {
    margin-top: 4px
}

.card-list-wrap .card-list__newfeature .type-company__img {
    width: 45px;
    margin-right: 0px
}

.card-list-wrap .card-list__newfeature .type-payment {
    margin-left: 18px
}

.card-list-wrap .card-list__newfeature .type-payment__img {
    width: 40px;
    margin-right: 14px
}

.card-list-wrap .card-list__newfeature .type-payment:before {
    top: 0;
    left: -18px;
    width: 1px;
    height: 23px
}


/* Base grid system */
[data-col-newpc]:not([data-col-newpc="1"]) {
    display: flex;
    flex-flow: row wrap;
}

[data-col-newpc]:not([data-col-newpc=auto])>* {
    margin-top: 1.25em;
}

/* Grid system for 6 columns */
/* [data-col-newpc="6"]>:nth-child(-n+6) {
    margin-top: 0 !important;
} */

[data-col-newpc="6"]>:nth-child(6n+1) {
    margin-left: 0 !important;
}

[data-col-newpc="6"]>* {
    width: calc((100% - 180px)/ 6 - .1px);
}

/* Heading specific adjustments */
[class^=heading]+.column-heading[data-col-newpc="6"]>.column-heading__item:nth-child(-n+6) [class^=heading] {
    margin-top: 0 !important;
}

/* Anchor navigation adjustments */
.anchor-navi .anchor-navi__list[data-col-newpc="6"]>li {
    width: calc((100% - 180px)/ 6 - .1px);
    margin-left: 36px !important;
}

.anchor-navi .anchor-navi__list[data-col-newpc="6"]>li:nth-child(6n+1) {
    margin-left: 0 !important;
}

.anchor-navi .anchor-navi__list[data-col-newpc="6"]>li:nth-child(6n):after {
    display: none;
}

/* Feature column adjustments */
.feature-column[data-col-newpc="6"]>:nth-child(-n+6) {
    margin-top: 0 !important;
}

.feature-column[data-col-newpc="6"]>:nth-child(6n+1) {
    margin-left: 0 !important;
}

.feature-column[data-col-newpc="6"]>* {
    width: calc((100% - 200px)/ 6 - .1px);
}

/* Feature column v2 adjustments */
.feature-column-v2[data-col-newpc="6"]>:nth-child(-n+6) {
    margin-top: 0 !important;
}

.feature-column-v2[data-col-newpc="6"]>:nth-child(6n+1) {
    margin-left: 0 !important;
}

.feature-column-v2[data-col-newpc="6"]>* {
    width: calc((100% - 100px)/ 6 - .1px);
}

.button-wrap--centering {
    margin: 0 !important;
}

.button-v2__type.reset-buttan-type {
    color: #4a4848 !important;
    border: 2px solid #ddd !important;
    border-radius: 100px;
}

.button-v2.selected .button-v2__type.reset-buttan-type {
    color: #ffffff !important;
    background-color: #19a3f9 !important;
    border: 2px solid #19a3f9 !important;
    border-radius: 100px;
}



.thumbnail-container {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    width: 100%;
}

.chenge_thumb {
    margin: 0;
    width: 100%;
}

.card_thumb_main.vertical {
    width: auto;
    height: 290px;
    margin-left: 55px;
}

.card_thumb {
    width: 55px;
    height: auto;
}

.card_thumb.vertical {
    width: auto;
    height: 70px;
}

.card-list-wrap .card-list:first-child {
    padding-top: 20px !important;
}

/* 最初のサムネイルに青い影をつける（recentクラスがない場合のみ） */
.chenge_thumb:not(:has(.recent)) .card_thumb:first-child {
    box-shadow: 0 0 4px 4px #69f;
}

/* 選択された画像（recentクラス）に青い影をつける */
.card_thumb.recent {
    box-shadow: 0 0 4px 4px #69f;
}

/* 選択されていない画像から青い影を消す */
.card_thumb:not(.recent):not(:first-child) {
    box-shadow: none;
}

.creditcard {
    width: 102% !important;
}

.card-list__link>img {
    border-radius: 10px;
}

.card-list__link--blank>img {
    border-radius: 10px;
}

[data-col-newpc="6"]>div {
    width: calc(100% / 6);
}



/* SP表示時のスタイル */
@media only screen and (max-width : 767px) {

    /* ボタンのスタイル */
    .creditcard button {
        padding: 0;
        width: auto;
        border: 2px solid transparent;
        background: none;
        cursor: pointer;
        margin: 5px;
        border-radius: 14px;
        transition: background-color 0.3s;
        border: 2px solid #ddd
    }

    /* デフォルトで p タグを非表示にする */
    .creditcard p {
        display: none;
        position: absolute;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        color: #ffffff;
        font-weight: bold;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    /* PC用要素の非表示 */
    .pc_hidden {
        display: none;
    }

    .card-list-wrap .card-list:first-child {
        margin-top: 20px;
    }

    /* sp用文字サイズ */
    .creditcard p {
        font-size: 12px;
        font-weight: bold;
    }


    /* ボタンのスタイル */
    .creditcard button {
        margin: 0px;
    }

    .card-list__link>img {
        border-radius: 5px;
    }

    .thumbnail-container {
        display: flex;
        flex-direction: column;
        width: 100% !important;
    }

    .card_thumb_main {
        width: auto;
        height: 110px;
        object-fit: contain;
        display: block;
        margin: 0;
    }

    .card_thumb {
        width: 26%;
        max-width: 38px;
        margin: 10px 2px 0;
        transition: box-shadow 0.3s ease;
        object-fit: contain;
        cursor: pointer;
        /* PCと同じポインタ設定 */
        border-radius: 3px;
        /* PCと同じ角丸 */
        border: 2px solid #ccc;
    }

    /* サムネイル画像のホバー効果（スマートフォン） */
    .card_thumb:hover {
        box-shadow: 0 0 4px 4px #69f;
    }

    .dis_flex {
        display: flex;
    }

    .stylish_p {
        font-size: 145% !important;
    }

    /* 該当数表示テキストの中央寄せ */
    .js_text {
        text-align: center;
        margin-top: 40px;
    }

    /* 該当数の強調表示 */
    .js_text span {
        padding: 5px 5px 5px;
        font-size: 28px;
        color: #f51fe3;
        font-weight: bold;
    }

    /* タイトルの配置調整 */
    .card-list__title {
        text-align: left;
        margin-left: 5px;
        padding: 10px 0;
        padding-bottom: 0%;
        line-height: 1.4;
    }

    /* カード会社ロゴの配置調整 */
    .type-company img {
        margin-left: 0px;
    }

    /* ボタン位置調整 */
    .button-wrap.details-button {
        margin-top: 0 !important;
        padding-left: 0%;
        width: 100% !important;
    }

    .type-company__img {
        margin: 0 !important;
    }

    .card-list-wrap .card-list__newfeature .type-company__img {
        width: 36px;
        margin-right: 0px
    }

    /* IMGが1つの場合の左寄せ用に追加 */
    .type-company {
        display: flex;
        justify-content: flex-start !important;
        /* 左寄せに変更 */
    }

    /* カード会社ロゴの余白調整 */
    .card-list__newfeature {
        padding-left: 5px;
    }

    /* 詳細を見るボタン横幅100％ */
    .button__type {
        width: 100%;
    }

    .button__type--blank {
        width: 100%;
    }

    /* 詳細を見るボタン位置調整 */
    .button-wrap {
        padding-left: 0;
        margin-top: 10% !important;
    }

    .lenghtmainvertical {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 特典エリアの調整 */
    .card_box {
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* 二行目の特典の位置調整 */
    .sp_m_10 {
        margin-top: 15px;
        width: 100% !important;
    }

    /* 特典の位置調整 */
    .service-box {
        height: 68px;
        /* 固定の高さを設定 */
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid #bdbdbd;

    }

    .card_box.sp_m_10 .heading {
        left: 0;
    }


    .card_box.sp_m_10 .service-box .service-kinds:has(.heading) {
        position: relative;
        height: 100%;
        margin: 0;
    }

    .card_box.sp_m_10 .service-box .service-kinds .heading {
        position: absolute;
        width: 100%;
        margin: 0 0 0 0;
        text-align: center;
    }

    .card_box.sp_m_10 .service-box .service-kinds .heading {
        position: absolute;
        width: 100%;
        margin: 0 0 0 0;
        text-align: center;
    }

    .heading {
        font-size: 10px;
    }

    .card_box.sp_m_10 .service-box .service-kinds:has(.heading)>*:not(.heading) {
        line-height: 1.2;
        /* 行間を詰める */
    }

    /* 特典中央寄せ */
    .service-kinds {
        position: relative;
        text-align: center;
        margin-left: -19px;
    }

    .service-kinds_sm {
        font-size: 77%;
        margin-left: -26px;
    }

    .service-kinds.service-kinds-right {
        padding-right: 0;
        margin-left: -36px;
    }

    /* スマートフォンでの右ボーダー */
    .border-right {
        border-right: 1px solid #bdbdbd;
    }

    /* メディア表示切替 */
    .pc_media {
        display: none;
    }

    .sp_media {
        display: block;
    }

    .creditcard {
        width: 100% !important;
    }

    /* head部分の大きさを固定 */
    .card-list__head {
        min-width: unset;
        width: 100%;
    }

    /* newbody部分の大きさを固定 */
    .card-list__newbody {
        width: 100%;
    }

    .card-list-wrap .card-list {
        border-bottom: 0px solid #ddd;
        margin-top: 60px;
        padding-bottom: 0px !important;
    }

    .white-card-border {
        border: 2px solid #ccc;
    }

    .chenge_thumb {
        padding: 0px 0px 5px;
    }


    .card_thumb_main.vertical {
        width: 110px;
        height: auto;
        margin-left: 0px;
    }

    .card_thumb {
        width:34px;
        height: auto;
    }

    .card_thumb.vertical {
        width: auto;
        height: 40px;
    }

    .saovertical {
        width: auto;
        height: 40px;
        margin-left: -15px;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .sphoken {
        line-height: 2 !important;
    }

    /* 特典3分割 */
    .card_box {
        row-gap: 15px;
    }

    .stylish_p {
        font-size: 90% !important;
    }

    .card_box[data-col-sp="3"]>div {
        width: calc(100% / 3);
        margin: 0 !important;
    }

    .service-box>.service-kinds {
        width: 104%;
        margin: 0;
    }


    .stylish_p {
        font-size: 10px !important;
    }

    .creditcard[data-col-sp="3"] {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .creditcard[data-col-sp="3"]>div {
        width: calc((100% - 20px) / 3);
        margin: 0;
    }

    .creditcard[data-col-sp="3"] button {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .creditcard[data-col-sp="3"] img {
        width: 100%;
        height: auto;
    }

    .creditcard[data-col-sp="3"] p {
        font-size: 12px;
        text-align: center;
    }

    .card-list-wrap .card-list__link .card-list__title {
        margin-top: 16px !important;
        font-size: 15px !important;
    }

    .font-small {
        font-size: 75%;
        font-weight: bold;
    }

}

/* PC表示時のスタイル */
@media only screen and (min-width : 768px) {
    .imgwide {
        width: 177px !important;
    }

    /* スマートフォン用要素の非表示 */
    .sp_hidden {
        display: none;
    }

    /* ブロック要素化 */
    .pc_block {
        display: block;
    }

    /* 見出しの調整（年会費など） */
    .heading {
        display: block;
        font-size: 12px;
    }


    .font-bold.bold_large {
        padding: 15px 0;
    }

    /* 特典中央寄せ */
    .service-kinds {
        position: relative;
        text-align: center;
        justify-content: center;
        font-size: 92%;
        min-height: 85px;
    }

    /* 見出しの調整（年会費など） */
    .service-kinds .heading {
        display: block;
        position: relative;

    }


    /* 右端の要素は従来の中央寄せのまま */
    .service-kinds.service-kinds-right {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    /* 海外利用キャッシュバックの特別調整 */
    .service-box:last-child .service-kinds-right {
        padding: 15px 0;
        /* 上下の余白を追加 */
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* カードリンクのブロック化 */
    .card-list__link {
        display: block !important;
    }

    .card-list__link--blank {
        display: block !important;
    }

    /* カード情報ボックス位置調整 */
    .card_box {
        margin-bottom: 20px;
    }

    /* newbody部分の大きさを固定 */
    .card-list__newbody {
        margin-left: 50px !important;
    }

    /* 新しいカードリストのレイアウト調整 */
    .card-list-wrap .card-list__newbody {
        width: calc(100% - 326px);
        padding: 0;
    }

    .service-kinds_sm {
        font-size: 69%;
    }

    .chenge_thumb {
        text-align: center;
    }


    /* カード情報ボックス位置調整 */
    .card_box {
        margin-bottom: 23px;
    }

    .stylish_p {
        font-size: 12px !important;
    }

    /* 特典の文字中央寄せ */
    .service-kinds {
        text-align: center;
        line-height: 1.25;
    }

    .service-kinds .heading {
        margin-bottom: 12px;
    }

    .nopoint {
        margin-bottom: 20px !important;
    }

    .button-v2__type.reset-buttan-type:hover {
        color: #ffffff !important;
        background-color: #19a3f9 !important;
        border: 2px solid #19a3f9 !important;
    }

    .headinglong {
        margin-bottom: 0px !important;
    }

    .headinglonggold {
        margin-bottom: 5px !important;
    }

    .hoken {
        margin-bottom: 20px !important;
    }

}

@media screen and (max-width : 767px) {
    [data-col-sp="3"]>div {
        width: calc((100% - 30px) / 3);
    }

    .anothercrad_box {
        padding: 2rem;
    }

    .anothercrad_box>p {
        font-size: 1.8rem;
        margin-top: 0px;
        margin-bottom: 18px;
    }

    .anothercrad_box>div {
        margin: 1.4rem 0 0;
    }

    .button-wrap--centering-allcard {
        margin: 1em 0 !important;
    }
}

@media screen and (max-width: 767px) and (orientation: landscape) {
    .thumbnail-container {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        align-items: center;
    }

    .card_thumb_main {
        width: auto;
        margin: 0 auto;
    }

    .chenge_thumb {
        margin: 0;
        padding: 5px 0;
        text-align: center;
        width: 100%;
    }

    .card_thumb {
        width: 26%;
        max-width: 38px;
        margin: 10px 2px 0;
    }

    .card-list__link>img {
        border-radius: 5px;
    }
}