:root {
    --mobile-width: 600px;
    --radius: 18px;
    --panel: #ffffff;
    --primary: #e25959;
    --primary-weak: #ecfdf5;
    --text: #363636;
    --muted: #64748b;
    --brand-green: #a1c755;
    --coupon-red: #e11d48;
    --nav-red: #ef4444;
}

p {
    margin: 0;
}

html,
body {
    height: 100%;
}

img {
    width: 100%;
    height: auto;
}

body {
    margin: 0;
    background: #fff;
    font-family: "Noto Serif JP", serif;
    color: var(--text);
    line-height: 1.6;
    display: grid;
    place-items: center;
    min-height: 100dvh;
}

.phone {
    aspect-ratio: 375 / 645;
    width: min(100%, 600px, calc(100dvh * (375 / 645)));
    overflow: clip;
    position: relative;
    overflow: hidden;
    background-image: url(../img/background.png);
    background-size: cover;

}

.canvas {
    width: 375px;
    /* 基準サイズに固定 */
    height: 645px;
    transform-origin: top left;
    will-change: transform;
    /* 滑らかに */
}

/* スマホだけフル画面表示 */
/*@media (max-width: 430px) {
    .phone {
        width: 100vw;
        height: 100dvh;
    }

    .canvas {
        width: 100%;
        height: 100%;
    }
}*/

.stepbar__wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 0;
}

.stepbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 1.12rem 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    z-index: 10;
}

.seg {
    height: 4px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

/*バーの進行の色*/
.seg.active>i {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background: #4DABD1;
    /*バーの進行の色*/
    transition: width 0.2s linear;
    display: block;
}

.stepbar__text {
    color: #E3F7FF;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.25rem;
}

.stepbar__text--shop {
    white-space: nowrap;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-weight: 500;
    letter-spacing: -0.04125em;
    font-size: 16px;
    margin: 0;
}

.stepbar__text--shop .small {
    font-size: 0.75em;
    font-size: 12px;
}

.stepbar__text--shop .base {
    font-size: 1.375rem;
    font-size: 22px;
}

.stepbar__text--shop .shop {
    font-size: 1.25rem;
    letter-spacing: -0.0375rem;
    font-size: 20px;
}

.stage {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
}

.stage.no-before::before {
    content: none;
    /* このクラスが付いたときは非表示 */
}

.bg {
    position: absolute;
    inset: 0;
}

.bg video,
.bg img {
    width: 100%;
    object-fit: contain;
    display: block;
}

.bg video {
    filter: brightness(80%);
}

.bg img.bg-poster,
.bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 比率優先なら contain に */
}

/* 初期状態：画像が見える、video は透明 */
.bg img.bg-poster {
    opacity: 1;
    will-change: opacity;
}

.bg video {
    opacity: 0;
    will-change: opacity;
}

.bg img {
    max-height: calc(100% - 310px);
    /*height: 50%;*/
}

.card {
    position: absolute;
    left: 50%;
    top: 26%;
    transform: translate(-50%, 0) scale(.84);
    width: calc(300 / 375 * 100%);
    max-width: 300px;
    border-radius: 0.9375rem;
    background: rgba(255, 255, 255, 0.9);
    margin: 10px auto;
}

/*アンケート質問の背景色*/
.title {
    background: #76C0DC;
    /*アンケート質問の背景色*/
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: -0.03375rem;
    border-radius: 0.9375rem 0.9375rem 0 0;
    padding: 0.5rem;
    font-family: "Noto Sans JP";
}

.choice {
    display: grid;
    gap: 10px;
    padding: 1.25rem 1.25rem 1.25rem;
}

.choice button {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    color: #242424;
    font-size: 0.9375rem;
    font-family: "Noto Sans JP";
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 0.05rem;
    cursor: pointer;
    border: none;
}

/*<>の背景色*/
.nav {
    position: absolute;
    top: 37%;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    overflow: hidden;
    aspect-ratio: 1/1;
    border-radius: 999px;
    background: #76C0DC;
    /*<>の背景色*/
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 0;
}

.nav.prev {
    left: 10px;
    /*left: -45px;*/
}

.nav.next {
    right: 10px;
    /*right: -45px;*/
}

/* 右向き「>」矢印を疑似要素で描く */
.nav.next::before {
    content: "";
    width: calc(35px * 0.26);
    /* 矢印の長さ */
    height: calc(35px * 0.26);
    border-right: calc(35px * 0.08) solid currentColor;
    border-top: calc(35px * 0.08) solid currentColor;
    transform: rotate(45deg);
    margin-right: calc(35px * 0.1);
}

/* 左向き「<」にしたい場合（必要なら） */
.nav.prev::before {
    content: "";
    width: calc(35px * 0.26);
    height: calc(35px * 0.26);
    border-left: calc(35px * 0.08) solid currentColor;
    border-bottom: calc(35px * 0.08) solid currentColor;
    transform: rotate(45deg);
    margin-left: calc(35px * 0.1);
}

.cta {
    position: absolute;
    left: 50%;
    /*bottom: 23%;*/
    bottom: 29%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 348px;
    text-align: center;
}

/*コードでCTA作成の場合*/
.cta .btn {
    display: block;
    width: 100%;
    border-radius: 100vmax;
    /*border: 3px solid #fff;*/
    background: #FFAE26;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 19px 22px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    transition: all 0.3s;
    border: initial;

    &:hover {
        scale: 0.95;
    }
}

.cta .btn::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../img/send.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    right: 36px;
    translate: 0 -50%;
}
/*終了_コードでCTA作成の場合*/

/*コードでCTA画像_ホバーアニメーション*/
.cta-image {
    transition: all 0.5s 0s ease;
}

.cta-image:hover {
    scale: 0.95;
}
/*終了_コードでCTA画像_ホバーアニメーション*/

#ctaBtn {
    cursor: pointer;
}

.company__links {
    display: flex;
    gap: 24px;
    justify-content: center;
    list-style: none;
    margin: 10px 00;
    padding: 0;
}

.company__links-item {
    a {
        display: block;
        color: #363636;
        font-size: 11px;
        font-weight: 600;
        line-height: 140%;
        /* 15.4px */
        letter-spacing: -0.33px;
        text-decoration: none;
        transition: all 0.3s;

        &:hover {
            opacity: 0.7;
        }
    }
}

/* ボタン強制非表示用（他のdisplay指定より強く） */
.nav.is-hidden {
    display: none !important;
}



.campaign,
.campaign-image {
    position: absolute;
    left: 50%;
    top: 0px;
    transform: translateX(-50%) scale(.9);
    width: calc(100% - 20px);
    max-width: 350px;
    z-index: 5;
    padding: 0 10px 13px;
    margin-top: 5px;
}