/******************************** 共通 *********************************/
/* 紫：#9966bb */
/* 赤：#bb6666 */
/* 茶：#d08a4a */
/* 緑：#66bb66 */
/* 青：#6666bb */
/* 水：#66a0bb */
/* 桃：#bb66a0 */
/* デフォルト青：#3f6ec2 */
.font-red {
    color: red;
}

.font-blue {
    color: #1e88e5;
}

.marker-yellow {
    background: linear-gradient(transparent 20%, #fff59d 40%);
}

.panNav {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 8px;
    font-size: 12px;
    margin-bottom: -10px;
    flex-wrap: wrap;
}

div.inner {
    --main-color: var(--color, gray);
    --main2-color: color-mix(in srgb, var(--main-color) 80%, white);
    --pale-color: color-mix(in srgb, var(--main-color) 20%, white);
    --deep-color: color-mix(in srgb, var(--main-color) 70%, black);
    --bg-color: color-mix(in srgb, var(--main-color) 10%, white);

    background-color: var(--bg-color);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    row-gap: 30px;

    .content-box {
        position: relative;
        background-color: white;
        border-radius: 10px;
        padding: 20px 10px;
        border: 2px solid var(--border-color, white);
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);

        &.is-title {
            margin-top: 10px;
            padding-top: 30px;
        }

        p {
            font-size: 14px;
            line-height: 1.5em;

            .textlink {
                color: #3f6ec2;
                cursor: pointer;
            }
        }

        .btn {
            /* 橙：#ff6b3e; */
            /* 桃：#ff3e7d; */
            /* 青：#3f6ec2; */
            background-color: var(--button-color, #ff6b3e);
            width: 100%;
            padding: 5px;
            border-bottom: none;

            span {
                font-size: 15px;
            }

            img {
                width: 18px;
                height: 18px;
            }

            &::after {
                display: none;
            }
        }

        /* タイトル部分 */
        .ribbon-title {
            position: relative;
            background-color: var(--main-color);
            width: 100%;
            padding: 10px 0;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: -10px;
            margin-bottom: 10px;
        }

        .ribbon-border {
            position: absolute;
            top: 5px;
            left: 5px;
            width: calc(100% - 10px);
            height: calc(100% - 10px);
            border-radius: 3px;
            border: 1px dashed var(--pale-color);
        }

        .ribbon-dots .dot {
            position: absolute;
            width: 6px;
            height: 6px;
            background-color: var(--pale-color);
            border-radius: 50%;
        }

        .ribbon-text {
            font-family: Arial, sans-serif;
            font-size: 16px;
            color: white;
            font-weight: bold;
            text-align: center;
        }

        /* サブタイトル部分 */
        .subtitle {
            position: relative;
            background-color: var(--pale-color);
            width: 100%;
            padding: 10px 0;
            margin: 10px auto;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .subtitle-border {
            position: absolute;
            top: 5px;
            left: 5px;
            width: calc(100% - 10px);
            height: calc(100% - 10px);
            border-radius: 3px;
            border: 1px dashed var(--main-color);
        }

        .subtitle-dots .dot {
            position: absolute;
            width: 4px;
            height: 4px;
            background-color: var(--main-color);
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
        }

        .subtitle-text {
            font-family: Arial, sans-serif;
            font-size: 14px;
            font-weight: bold;
            color: var(--deep-color);
            text-align: center;
            margin: 0;
        }
    }
}

.balloon-wrapper {
    position: relative;

    .balloon {
        position: absolute;
        background: #ffffff;
        border-radius: 50px;
        padding: 8px 20px;
        width: 100%;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
        z-index: 1;

        &::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 120px;
            width: 20px;
            height: 20px;
            background: #ffffff;
            box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
            transform: rotate(45deg);
            z-index: 2;
        }

        p {
            font-size: 13px;
            font-weight: bold;
            color: #444444;
        }
    }
}

p.attention {
    /* 注釈 */
    font-size: 11px !important;
    color: #979797;
}

.qa-item {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;

    &:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .qa-question {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .q-mark {
            color: var(--main-color);
            font-weight: bold;
            margin-right: 8px;
        }

        .question-text {
            flex: 1;
            font-size: 16px;
            font-weight: 400;
            text-align: left;
        }

        .toggle-icon {
            font-size: 20px;
            color: #555;
            transition: transform 0.2s ease;
        }

        &.selected {
            .toggle-icon {
                transform: rotate(45deg);
            }
        }
    }


    .qa-answer {
        margin-top: 10px;
        padding: 12px;
        font-size: 14px;
        color: #555;
        display: none;
        background-color: var(--bg-color);
    }
}

.show-more-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    .show-more {
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .show-more-mask {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,
                rgba(255, 255, 255, 0.7) 0%,
                /* 下: 白の半透明 */
                rgba(255, 255, 255, 0) 50%
                /* 上: 完全に透明 */
            );
        z-index: 2;
        opacity: 1;
    }

    .toggle-btn {
        position: absolute;
        bottom: -20px;
        background-color: var(--deep-color);
        width: 100px;
        padding: 6px;
        margin-top: 8px;
        border-radius: 4px;
        text-align: center;
        cursor: pointer;
        color: white;
        font-size: 11px;
        font-weight: bold;
        z-index: 3;
    }
}

.ad-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;

    .ad-title {
        font-size: 16px;
        font-weight: bold;
        color: var(--ad-title-color, --main-color);
        text-align: center;
        margin: 0 -10px;
        padding: 10px;
        position: relative;
        margin-bottom: -10px;

        &::before,
        &::after {
            content: '';
            position: absolute;
            top: 30%;
            width: 2px;
            height: 50%;
            background-color: var(--ad-title-color, --main-color);
        }

        &::before {
            left: -5px;
            transform: rotate(-25deg);
        }

        &::after {
            right: -5px;
            transform: rotate(25deg);
        }
    }

    .ad-image {
        width: 300px;
    }

    .ad-link {
        align-self: flex-end;
        font-size: 12px;
        color: #666666;
    }
}

.chapter-links {
    display: flex;
    ;
    flex-direction: column;
    row-gap: 20px;
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
    text-decoration: underline;
}

.steps {
    display: flex;
    flex-direction: column;
    row-gap: 10px;

    .step {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 10px;

        .step-number {
            display: flex;
            flex-direction: row;
            align-items: center;
            column-gap: 16px;

            span {
                background-color: var(--main2-color);
                color: white;
                font-weight: bold;
                font-size: 15px;
                padding: 4px 8px;
                border-radius: 4px;
            }

            &::before {
                content: '';
                display: inline-block;
                width: 24px;
                height: 24px;
                background-color: #cccccc;
                border-radius: 50px;
            }
        }

        .step-content {
            border-left: solid 3px #cccccc;
            margin-left: 10px;
            padding: 20px 0px 20px 20px;
            display: flex;
            flex-direction: column;
            row-gap: 10px;
        }

        &:last-child {
            .step-content {
                border-left: unset;
            }
        }
    }

}

.pitch {
    animation: pitch 3.6s infinite;
}

.share {
    display: flex;
    flex-direction: row;
    justify-content: center;

    .share-button {
        border-radius: 20px;
        background: linear-gradient(45deg, var(--main2-color), var(--deep-color));
        border: 2px solid color-mix(in srgb, var(--main-color) 40%, white);
        box-shadow: 0 8px 10px color-mix(in srgb, var(--main-color) 50%, white);
        width: fit-content;
        padding: 8px 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        column-gap: 4px;
        cursor: pointer;
        transition: all 0.3s ease;

        &:hover {
            transform: scale(0.95);
        }

        span.share-text {
            font-size: 14px;
            color: white;
            font-weight: bold;
        }
    }
}

@keyframes pitch {

    0%,
    5%,
    95%,
    100% {
        transform: translateY(-4px);
    }

    45%,
    55% {
        transform: translateY(4px);
    }
}

.column-list-title {
    text-align: center;
    font-size: 16px;
    color: var(--deep-color);
    border-bottom: 1px solid var(--deep-color);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.column-list-title.single {
    align-self: center;
    margin-bottom: 0px;
    padding-bottom: 2px;
    border-bottom: 1.5px solid var(--deep-color);
}

ul.column-list {
    display: flex;
    flex-direction: column;
    row-gap: 16px;

    li {
        border-bottom: 1px dashed #ccc;
        position: relative;
        margin-left: 24px;
        display: flex;
        flex-direction: row;
        align-items: center;

        &::before {
            position: absolute;
            left: -24px;
            content: url("");
            background-color: var(--deep-color);
            background-image: url("../../img/common/check.svg");
            background-size: 10px;
            background-position: center;
            background-repeat: no-repeat;
            width: 16px;
            height: 16px;
            border-radius: 4px;
            display: inline-block;
        }
    }
}

/************************************ destyle **********************************/
#column_footer_banner {
    position: sticky;
    bottom: 0px;
    z-index: 6;
    display: none;
    margin-bottom: -2px;
    overflow: hidden;

    background-color: #ffffffbb;
    background-image: unset;
    height: unset;
    flex-direction: column;

    .footer_banner_button {
        display: flex;
        flex-direction: column;
        width: 100%;

        .btn {
            --deep-button-color: color-mix(in srgb, var(--button-color) 70%, black);
            background-color: var(--button-color);
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px 0px;
            border-bottom: 3px solid var(--deep-button-color);

            a {
                width: 100%;
                display: contents;

                span {
                    font-size: 16px;
                    line-height: 1.2rem;
                }

                img {
                    width: 24px;
                    height: 24px;
                }
            }
        }

        .ad-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            row-gap: 10px;
            margin: 5px auto;
            border: 2px solid #C30F0F;
            border-radius: 13px;
            padding-bottom: 7px;
            width: calc(100% - 16px);
            background-image: linear-gradient(176deg, #ffffff, #ffe8e8);
            box-shadow: 0 0 4px #ffbcbc;
            position: relative;
            overflow: visible;

            &::before {
                content: '';
                position: absolute;
                left: -7px;
                top: 6px;
                background-image: url(../img/check.png);
                background-size: contain;
                width: 56px;
                height: 22px;
            }

            .ad-title {
                font-size: 11px;
                font-weight: bold;
                color: var(--ad-title-color, --main-color);
                width: 100%;
                display: flex;
                flex-direction: row;
                margin: 5px 0px 0px 0px;
                padding: 0px;
                justify-content: center;
                align-items: center;
                flex-wrap: wrap;

                &::before,
                &::after {
                    display: none;
                }
            }

            h4 {
                line-height: 130%;
                color: #1b1b1b;
                margin-bottom: 6px;
                font-size: 13px;
                font-weight: 600;
                line-height: 150%;

                b {
                    border-bottom: 1px dotted #929292;
                    display: inline-block;

                }

                span {
                    color: #BD0A0A;
                }
            }

            @media screen and (max-width: 380px) {
                h4 {
                    font-size: 12px;
                }
            }

            .h5-box {
                margin: 0 auto;
                text-align: center;
                width: calc(100% - 20px);
                border-bottom: 3px solid #ae0c0c;
                border-radius: 40px;
                font-size: 17px;
                padding: 10px 0px;
                display: flex;
                gap: 10px;
                justify-content: space-around;

                background-image: linear-gradient(176deg, #BD0A0A, #EC3333);

            }

            h5 {
                text-align: center;
                display: flex;
                position: relative;
                color: #fff;
                font-size: 21px;
                line-height: 100%;
                align-items: center;
                gap: 2px;
                justify-content: space-around;
                margin-left: 12%;
            }

            h5::before {
                content: '';
                position: absolute;
                left: -54px;
                top: -16px;
                background-image: url(../img/cat.webp);
                background-size: contain;
                width: 56px;
                height: 53px;
                background-repeat: no-repeat;
            }

            img.btn-arrow {
                width: 17px;
                height: 17px;
            }

            .column-footer-title-2 h5::after {
                top: 0px !important;
            }

            .column-footer-title-2 .h5-box h5 {
                font-size: clamp(14px, 4vw, 18px) !important;
            }

            /* タイトル文字数9文字以上のとき：矢印の位置調整 */
            .column-footer-title-3 .h5-box {
                padding: 5px 0px !important;

                h5 {
                    font-size: 17px !important;
                    line-height: 120% !important;
                }
            }

            .column-footer-title-3 .h5-box h5 {

                &::before {
                    left: -63px !important;
                    top: -12px !important;
                    width: 66px !important;
                    height: 64px !important;
                }

                &::after {
                    right: -24px !important;
                    top: 9px !important;
                    width: 26px !important;
                    height: 25px !important;
                }

                img.btn-arrow {
                    width: 23px !important;
                    height: 23px !important;
                }
            }

            .column-footer-title-1 h5 br,
            .column-footer-title-2 h5 br {
                display: none;
            }
        }
    }
}

body {
    touch-action: manipulation;
    max-width: 500px;
    margin: 0 auto;
}

.header-wrapper {
    header {
        max-width: 500px;
    }
}

.footer-wrapper {
    display: none;
}

footer {
    div {
        display: none;
    }
}

div#page_top {
    display: none !important;
}

.mv-wrapper {
    margin: 0;
}

.shake {
    animation: swing 3s infinite;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    4%,
    12% {
        transform: rotate(-4deg);
    }

    8%,
    16% {
        transform: rotate(4deg);
    }

    20%,
    100% {
        transform: rotate(0deg);
    }
}

.blinking {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.shiny {
    position: relative;
}

.shiny::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -20%;
    width: 40px;
    height: 80%;
    transform: scale(2) rotate(20deg);
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .5) 100%, rgba(255, 255, 255, 0) 0%);
    animation-name: shiny;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: -1.2s;
}

@keyframes shiny {
    0% {
        left: -20%;
    }


    30% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes smooth-shiny {
    0% {
        left: -20%;
        opacity: 0.2;
        /* 最初は完全に透明 */
    }

    5% {
        left: -20;
        opacity: 0.2;
        /* 最初の5%は透明 */
    }

    10% {
        left: 0;
        opacity: 0.7;
        /* 最初の5%は透明 */
    }

    30% {
        left: 130%;
        opacity: 1;
        /* 10%で完全に見える */
    }

    90% {
        left: 130%;
        opacity: 0.2;
        /* 90%で完全に見える */
    }

    95% {
        left: 140%;
        opacity: 0.2;
        /* 95%で完全に透明 */
    }

    100% {
        left: 150%;
        /* 最後は右にずれる */
        opacity: 1;
        /* 最後は完全に透明 */
    }
}