:root {
	--main-width: 45vw;
	--main-width-max: 375px;
    --px-rate: min(100vw, var(--main-width), var(--main-width-max));
}
@media screen and (max-width:1200px) {
    :root {
        --main-width: 75vw;
        --main-width-max: 750px;
    }
}
@media screen and (max-width:900px) {
    :root {
        --main-width: 100vw;
        --main-width-max: 100vw;
    }
}

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.inline {
    display: inline-block;
}
.header {
    position: relative;
    height: 80px;
    background-color: #fff;
    width: 92%;
    z-index: 10;
}
.header_name {
    text-decoration: none;
    color: #000;
    font-size: 2.4rem;
    font-weight: 700;
}

main {
    position: relative;
    background-image: url(assets/background.png);
    background-repeat: no-repeat;
    background-position: 60%;
    background-size: 1920px;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
	height: calc(var(--vvh, 100dvh) - 80px);
	overflow-y: auto;
    display: flex;
    align-items: start;
}
main img {
    width: 100%;
    height: auto;
}
@media screen and (min-width:1920px) {
    main {
        background-size: 100%;
    }
}
@media screen and (min-height:960px) {
    main {
        background-size: auto 100%;
    }
}

.sp_scroll_section {
    order: 2;
    flex-shrink: 0;
    width: var(--main-width);
    max-width: var(--main-width-max);
    margin-inline: auto;
    border-left: 8px solid #fff;
    border-right: 8px solid #fff;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    box-sizing: content-box;
}

:is(.main_left_block, .main_right_block) {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
:is(.main_left_block, .main_right_block) .block_inner {
    width: 100%;
}
:is(.main_left_block, .main_right_block) .contents {
    width: 100%;
    max-width: 375px;
    margin-inline: auto;
}

.main_left_block {
    order: 1;
}
.main_left_block .block_inner {
    padding: 0 5% 0 7%;
}
.main_left_inner img {
    display: block;
    width: 100%;
}
.main_left_inner .cta {
    width: 100%;
}
.main_right_block {
    order: 3;
}
.main_right_block .block_inner {
    padding: 0 7% 0 5%;
}
.main_right_block .cta_block {
    background: #DAE8FF;
    padding-top: calc(10 / 375 * 100%);
    padding-bottom: calc(20 / 375 * 100%);
    border-radius: 10px;
}
@media screen and (max-width:767px) {
    .header {
        width: 100%;
        height: 54px;
    }
    .header_name {
        font-size: 1.2rem;
        font-weight: 700;
        line-height: calc(16 / 12);
    }
    main {
        height: calc(100vh - 54px);
    }
}
@media screen and (max-width:900px) {
    main {
        background: 0 0;
    }
    .sp_scroll_section {
        width: 100%;
        max-width: 100%;
        border: 0;
        box-shadow: none;
    }
}
footer {
    background: #000000;
    padding: calc((40 / 750) * var(--px-rate)) 4%;
    text-align: left;
    color: #C1C1C1;
}
.footer_inner {
    width: auto;
    font-size: calc((26 / 750) * var(--px-rate));
    text-align: left;
}

.footnote {
    background-color: #484848;
    color: #fff;
    font-size: calc((20 / 750) * var(--px-rate));
    line-height: 1.6;
    padding: calc(80 / 750 * 100%) calc(30 / 750 * 100%)
}
.footnote_inner {
    width: auto;
    max-width: 980px
}
.footnote-list + .footnote-list {
    margin-top: 1lh;
}


.block_wrapper {
    position: relative;
    width: 100%;
}

.cta_block {
    padding-bottom: calc(33 / 375 * 100%);
    padding-inline: calc((15 / 375 * 100%));
    background: #c3e8f7 url(assets/cta_bg.png) no-repeat 50% 100%;
    background-size: 100%;
}
.cta_block_bottom {
    padding-top: calc(20 / 375 * 100%);
}
.cta {
    position: relative;
    animation: cta-shake 3s infinite;
    overflow: hidden;
    transition: .2s;
    mask-image: url("assets/cta.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}
/* 光る帯のエフェクト */
.cta::before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    animation: shine 3s infinite;
    z-index: 1;
    pointer-events: none;
}

/* CTAボタンの横揺れアニメーション */
@keyframes cta-shake {
    0%, 90%, 100% {
        transform: translateX(0);
    }

    /* 横揺れアニメーション */
    5% {
        transform: translateX(3px);
    }
    10% {
        transform: translateX(-3px);
    }
    15% {
        transform: translateX(2px);
    }
    20% {
        transform: translateX(-1px);
    }
    25% {
        transform: translateX(0);
    }
}

/* 光が通り過ぎるアニメーション */
@keyframes shine {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    80% {
        transform: scale(0) rotate(45deg);
        opacity: 0.3;
    }
    81% {
        transform: scale(4) rotate(45deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(50) rotate(45deg);
        opacity: 0;
    }
}
.tab {
    display: flex;
    justify-content: space-between;
    background-color: #f13f7b;
}
.tab a {
    position: relative;
    display: block;
    width: calc(246 / 750 * 100%);
    cursor: pointer;
}
.tab a::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: calc(11 / 111 * 100%);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.5;
}
.tab .tab_on {
    cursor: default;
}
.tab .tab_on::after {
    opacity: 0;
}

.recommend_block {
    display: none;
    background: url(assets/bg-recommend.png);
    background-size: 100%;
}
.recommend_block.active {
    display: block;
}

.recommend_block .box_contents {
    position: relative;
    width: calc(670 / 750 * 100%);
    margin-inline: auto;
    z-index: 1;
}
.recommend_block .box_contents::before {
    content: "";
    position: absolute;
    inset: 0;
    top: calc((190 / 750) * var(--px-rate));
    background-color: #fff;
    border: 1px solid;
    border-radius: 10px;
    z-index: -1;
}
#roox.recommend_block .box_contents::before {
    border-color: #876620;
}
#serena.recommend_block .box_contents::before {
    border-color: #003E8E;
}
#xtrail.recommend_block .box_contents::before {
    border-color: #C3002F;
}
.recommend_block .box_text {
    padding: calc((40 / 750) * var(--px-rate));
    font-size: calc((24 / 750) * var(--px-rate));
    line-height: calc(16 / 12);
    word-break: break-all;
    color: #111111;
}
.recommend_block .box_text p + p {
    margin-top: 1.6em;
}
.recommend_block .box_text a {
    color: #111111;
    text-decoration: underline;
}
.recommend_block .cashback {
    background-color: #ffe3e3;
    width: calc(670 / 750 * 100%);
    margin-inline: auto;
    border-radius: 10px;
}
.recommend_block .cashback_text {
    padding: calc((40 / 750) * var(--px-rate));
    font-size: calc((24 / 750) * var(--px-rate));
    line-height: calc(16 / 12);
    word-break: break-all;
    color: #111111;
}
.recommend_block .cashback_text p + p {
    margin-top: 1.6em;
}
.recommend_block .cashback_text a {
    color: #111111;
    text-decoration: underline;
}
.recommend_block:has(.cashback:last-child) {
    padding-bottom: calc((80 / 750) * var(--px-rate));
}
@media (hover) {
    .recommend_block .box_text a:hover {
        text-decoration: none;
    }
    .recommend_block .cashback_text a:hover {
        text-decoration: none;
    }
}


@media screen and (max-width:1200px) {
    .main_left_block,
    .main_right_block {
        display: none;
    }
}


.floating_cta {
    display: none;
}
@media screen and (max-width:1200px) {
    .floating_cta {
        display: block;
        position: fixed;
        bottom: 0;
        width: var(--main-width);
        max-width: var(--main-width-max);
        padding: calc((20 / 750) * var(--px-rate)) calc((30 / 750) * var(--px-rate));
        background: rgba(0,0,0,0.7);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 10;
    }
    .floating_cta a {
        display: block;
        animation: cta-shake 3s infinite;
        overflow: hidden;
        border-radius: calc((20 / 750) * var(--px-rate));
    }
    .floating_cta a::before {
        position: absolute;
        content: '';
        display: inline-block;
        top: -180px;
        left: 0;
        width: 30px;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        animation: shine 3s infinite;
        z-index: 1;
        pointer-events: none;
    }

    .floating_cta.show {
        transform: translateY(0);
    }

    footer {
        padding-bottom: calc((90 / 375) * var(--px-rate) + (40 / 750) * var(--px-rate));
    }
}