/* ==========================================
   ピタフク診断 - カスタムCSS
   ========================================== */

/* ==========================================
   カラー変数
   ========================================== */
:root {
    --color-bg-primary: #f8f7ee;
    --color-bg-secondary: #edebda;
    --color-accent-red: #db5331;
    --color-accent-blue: #1f3663;
    --color-accent-green: #208d62;
    --color-white: #ffffff;
    --color-text-dark: #333333;
    --color-text-gray: #505050;
}

/* ==========================================
   基本設定
   ========================================== */
body {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    background-color: #F8F7EE;
    color: var(--color-text-dark);
    overflow-x: hidden;
}

.main_body {
    background-color: #EDEBDA;
    overflow-x: hidden;
}

/* ==========================================
   ヘッダーセクション
   ========================================== */
.header {
    position: relative;
    text-align: center;
    padding-top: calc(100vw * 90 / 390);
    background-color: #F8F7EE;
}

/* FVエリア全体の高さ制御（SPのみ） */
@media screen and (max-width: 767px) {

    /* ヘッダーからstatsまでの高さを70vhに制限 */
    .header {
        padding-top: 8vh;
        padding-bottom: 1.5vh;
    }

    .header__title-img
     {
        max-height: 9vh;
        width: auto;
        object-fit: contain;
    }

    .header__subtitle-img {
        max-height: 8vh;
        width: auto;
        object-fit: contain;
    }

    .fv {
        padding: 1.5vh 0;
        min-height: 28vh;
        max-height: 32vh;
    }

    .fv__content {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fv__main-img {
        max-height: 28vh;
        width: auto;
        object-fit: contain;
    }

    .voices {
        padding: 1vh calc(100vw * 19 / 390);
    }

    .voices__img {
        max-height: 15vh;
        width: auto;
        object-fit: contain;
    }

    .stats {
        padding: 1.5vh calc(100vw * 20 / 390);
        min-height: auto;
    }
}

.header__title {
    margin-bottom: calc(100vw * 16 / 390);
}

.header__title-img {
    width: 100%;
    max-width: calc(100vw * 339 / 390);
    height: auto;
    display: block;
    margin: 0 auto;
}

.header__subtitle {
    margin: 0 auto;
}

.header__subtitle-img {
    width: 100%;
    max-width: calc(100vw * 247 / 390);
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================
   メインビジュアルセクション
   ========================================== */
.fv {
    position: relative;
    width: 100%;
    padding: calc(100vw * 37 / 390) 0;
    padding-top: calc(100vw * 0 / 390);
    padding-bottom: calc(100vw * 0 / 390);
    margin-bottom: calc(100vw * -10 / 390);
    overflow: hidden;
    background-color: #F8F7EE;
}

.fv__bg-circle {
    position: absolute;
    top: calc(100vw * 400 / 390);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw * 1222.54 / 390);
    height: calc(100vw * 1222.54 / 390);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(248, 247, 238, 0.1) 100%);
    pointer-events: none;
}

.fv__content {
    position: relative;
    z-index: 1;
    max-width: calc(100vw * 390 / 390);
    margin: 0 auto;
    padding: 0 calc(100vw * 34 / 390);
}

.fv__main-img {
    width: 90%;
    height: auto;
    display: block;
    margin: auto;
}

/* ==========================================
   ユーザーの声セクション
   ========================================== */
.voices {
    position: relative;
    max-width: calc(100vw * 390 / 390);
    margin: 0 auto;
    padding: 0 calc(100vw * 19 / 390);
}

.voices::before {
    content: '';
    position: absolute;
    top: -8vh;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw * 900 / 390);
    height: calc(100vw * 300 / 390);
    border-radius: 50%;
    background-color: #EDEBDA;
    z-index: 0;
}

.voices__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   実績表示セクション
   ========================================== */
.stats {
    position: relative;
    text-align: center;
    padding: calc(100vw * 120 / 390) calc(100vw * 20 / 390);
    padding-top: calc(100vw * 30 / 390);
    max-width: calc(100vw * 390 / 390);
    margin: 0 auto;
    overflow: hidden;
}

.stats__top {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: calc(100vw * 10 / 390);
    margin-bottom: 0;
    z-index: 1;
}

.stats__number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(100vw * 10 / 390);
    background-color: var(--color-white);
    padding: 0 calc(100vw * 5 / 390);
    padding-bottom: calc(100vw * 5 / 390);
    border-radius: calc(100vw * 3 / 390);
    flex-shrink: 0;
}

.stats__value {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: calc(100vw * 38 / 390);
    color: var(--color-accent-red);
    line-height: 1;
}

.stats__unit {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: calc(100vw * 24 / 390);
    color: var(--color-accent-red);
    line-height: 1;
}

.stats__suffix {
    font-family: 'YuGothic', sans-serif;
    font-weight: 700;
    font-size: calc(100vw * 18 / 390);
    color: var(--color-text-gray);
    line-height: 1.6;
    white-space: nowrap;
}

.stats__text {
    position: relative;
    font-family: 'YuGothic', sans-serif;
    font-weight: 700;
    font-size: calc(100vw * 18 / 390);
    color: var(--color-text-gray);
    line-height: 1.6;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
}

/* ==========================================
   CTAボタン
   ========================================== */
.cta-button {
    max-width: calc(100vw * 390 / 390);
    margin: calc(100vw * 30 / 390) auto;
    padding: 0 calc(100vw * 35 / 390);
}

.cta-button.first {
    margin-top: calc(100vw * 15 / 390);
}

/* 固定CTAボタン */
.cta-button--fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: calc(100vw * 10 / 390) calc(100vw * 30 / 390);
    background-color: transparent;
    z-index: 100;
    max-width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.cta-button--fixed.hidden {
    opacity: 0 !important;
    transform: translateY(calc(100vw * 20 / 390));
    pointer-events: none;
}

.btn-primary {
    position: relative;
    display: block;
    width: 100%;
    height: calc(100vw * 92 / 390);
    text-decoration: none;
    border: calc(100vw * 2 / 390) solid var(--color-white);
    border-radius: calc(100vw * 100 / 390);
    overflow: hidden;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }
}

.btn-primary__bg {
    position: absolute;
    inset: 0;
    border-radius: calc(100vw * 100 / 390);
    background-image: url('../img/cta_button_frame.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.btn-primary__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: calc(100vw * 100 / 390);
}

.btn-primary__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.btn-primary__badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100vw * 76 / 390);
    height: calc(100vw * 76 / 390);
    background-color: var(--color-white);
    border-radius: 50%;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: calc(100vw * 20 / 390);
    color: var(--color-accent-green);
    line-height: 1.2;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}


.btn-primary__text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: calc(100vw * 20 / 390);
    color: var(--color-white);
    line-height: 1.4;
    text-align: center;
    padding: 0 calc(100vw * 45 / 390) 0 calc(100vw * 16 / 390);
    transition: opacity 0.3s ease;
}

/* ==========================================
   ピタフクが診断できる理由セクション
   ========================================== */
.reason {
    max-width: calc(100vw * 390 / 390);
    margin: calc(100vw * 40 / 390) calc(100vw * 8 / 390);
    background-color: #FBFBF8;
    padding: calc(100vw * 37 / 390) 0 calc(100vw * 10 / 390);
    border-radius: calc(100vw * 50 / 390);
}

.reason__title {
    text-align: center;
    margin-bottom: calc(100vw * 30 / 390);
}

.reason__title-img {
    width: 100%;
    max-width: calc(100vw * 350 / 390);
    height: auto;
    display: block;
    margin: 0 auto;
}

.reason__item {
    margin-bottom: calc(100vw * 40 / 390);
}

.reason__item.third {
    margin-bottom: calc(100vw * 20 / 390);
}

.reason__item-img {
    width: 100%;
    height: auto;
    display: block;
}

/* バナー部分 */
.reason__banner {
    position: relative;
    width: calc(100vw * 375 / 390);
    height: calc(100vw * 80 / 390);
    margin: 0 auto calc(100vw * 15 / 390);
}

.reason__banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reason__banner-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: calc(100vw * 7 / 390);
    z-index: 1;
}

.reason__banner-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: calc(100vw * 49 / 390);
    color: var(--color-white);
    line-height: 0;
    width: calc(100vw * 75 / 390);
    flex-shrink: 0;
    padding-bottom: calc(100vw * 7 / 390);
}

.reason__banner-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: calc(100vw * 20 / 390);
    color: var(--color-white);
    line-height: 1.4;
    margin-left: calc(100vw * 13 / 390);
}

.reason__banner-text p {
    margin: 0;
    white-space: nowrap;
}

/* テキスト部分 */
.reason__text-wrapper {
    position: relative;
    padding: 0 calc(100vw * 7 / 390);
    margin-bottom: calc(100vw * 36 / 390);
}

.reason__decoration {
    position: absolute;
    background-color: rgba(219, 83, 49, 0.3);
    height: calc(100vw * 7.549 / 390);
    border-radius: calc(100vw * 9 / 390);
}

.reason__decoration--top {
    top: calc(100vw * 42 / 390);
    left: calc(100vw * 25 / 390);
    width: calc(100vw * 325 / 390);
}

.reason__decoration--bottom-left {
    bottom: calc(100vw * 29 / 390);
    left: calc(100vw * 25 / 390);
    width: calc(100vw * 63.36 / 390);
}

.reason__decoration--bottom-left.second {
    bottom: calc(100vw * 2 / 390);
    left: calc(100vw * 25 / 390);
    width: calc(100vw * 190 / 390);
}

.reason__decoration--bottom-left.third {
    bottom: calc(100vw * 2 / 390);
    left: calc(100vw * 25 / 390);
    width: calc(100vw * 220 / 390);
}

.reason__decoration--bottom-right {
    top: calc(100vw * 16 / 390);
    right: calc(100vw * 31 / 390);
    width: calc(100vw * 66 / 390);
}

.reason__decoration--bottom-right.second {
    top: calc(100vw * 42 / 390);
    right: calc(100vw * 25 / 390);
    width: calc(100vw * 165 / 390);
}

.reason__decoration--bottom-right.third {
    top: calc(100vw * 42 / 390);
    right: calc(100vw * 25 / 390);
    width: calc(100vw * 150 / 390);
}

.reason__text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: calc(100vw * 16 / 390);
    color: var(--color-text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0 calc(100vw * 20 / 390);
    letter-spacing: -0.0;
}

/* イラスト部分 */
.reason__illustration {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reason__illustration.first {
    margin-bottom: calc(100vw * -40 / 390);
}

.reason__illustration-img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.reason .cta-button {
    padding: 0 calc(100vw * 29 / 390);
}

/* ==========================================
   診断情報セクション
   ========================================== */
.diagnosis-info {
    text-align: center;
    max-width: calc(100vw * 390 / 390);
    margin: 0 auto;
}

.cta-button.diagnosis {
    margin-top: calc(100vw * 15 / 390);
}

.diagnosis-info__img {
    width: 100%;
    max-width: calc(100vw * 350 / 390);
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================
   特典セクション
   ========================================== */
.bonus {
    max-width: calc(100vw * 390 / 390);
    margin: calc(100vw * 60 / 390) auto;
    margin-bottom: calc(100vw * 50 / 390);
    padding: 0 calc(100vw * 20 / 390);
    position: relative;
    overflow: hidden;
}

.bonus_background {
    position: absolute;
    width: 300%;
    height: 200%;
    left: -100%;
    top: -13%;
    z-index: 0;
}

.bonus_img_relative {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.bonus_img_relative img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bonus__moreover {
    text-align: center;
    margin-bottom: calc(100vw * 52 / 390);
}

.bonus__moreover-img {
    width: 100%;
    max-width: calc(100vw * 350 / 390);
    height: auto;
    display: block;
    margin: 0 auto;
}

.bonus__content {
    text-align: center;
}

.bonus__description {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: calc(100vw * 20 / 390);
    color: var(--color-accent-blue);
    line-height: 1.3;
    margin: 0 0 calc(100vw * 8 / 390) 0;
}

.bonus__number {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    color: var(--color-accent-blue);
    margin: 0 0 calc(100vw * 5 / 390) 0;
}

.bonus__count {
    font-size: calc(100vw * 42 / 390);
    color: var(--color-accent-red);
    letter-spacing: 0.07em;
}

.bonus__unit {
    font-size: calc(100vw * 20 / 390);
    color: var(--color-accent-red);
}

.bonus__subtitle {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: calc(100vw * 32 / 390);
    color: var(--color-accent-blue);
    line-height: 1;
    margin: 0 0 calc(100vw * 13 / 390) 0;
}

.bonus__title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: calc(100vw * 42 / 390);
    color: var(--color-accent-red);
    line-height: 1;
    margin: 0;
}

.bonus-cta.cta-button {
    padding: 0 calc(100vw * 15 / 390);
    margin-bottom:  calc(100vw * 15 / 390);
}


/* ==========================================
   フッター
   ========================================== */
.footer {
    position: relative;
    padding: calc(100vw * 50 / 390) calc(100vw * 20 / 390) calc(100vw * 40 / 390);
    text-align: center;
    overflow: hidden;
}

.footer__circle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw * 1312.84 / 390);
    height: calc(100vw * 1312.84 / 390);
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-blue) 0%, rgba(31, 54, 99, 0.8) 100%);
}

.footer__links {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: calc(100vw * 12 / 390);
    color: var(--color-white);
}

.footer__link {
    color: var(--color-white);
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__separator {
    margin: 0 calc(100vw * 7 / 390);
}

/* ==========================================
   768px以上のレスポンシブ対応
   ========================================== */
@media screen and (min-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main_body {
        width: 390px;
        box-shadow: 0px 0px 17px 0px rgba(0, 0, 0, 0.35);
    }

    /* コンテナを中央配置 */
    .header,
    .fv,
    .voices,
    .stats,
    .cta-button,
    .reason,
    .diagnosis-info,
    .bonus {
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ヘッダーセクション */
    .header {
        padding-top: 90px;
    }

    .header__title {
        margin-bottom: 16px;
    }

    .header__title-img {
        max-width: 339px;
    }

    .header__subtitle-img {
        max-width: 247px;
    }

    /* メインビジュアルセクション */
    .fv {
        padding: 10px 0;
        padding-bottom: 55px;
    }

    .fv__bg-circle {
        top: 400px;
        width: 1222.54px;
        height: 1222.54px;
    }

    .fv__content {
        max-width: 390px;
        padding: 0 34px;
    }

    /* ユーザーの声セクション */
    .voices {
        max-width: 390px;
        padding: 0 19px;
    }

    .voices::before {
        top: -65px;
        width: 900px;
        height: 300px;
    }

    /* 実績表示セクション */
    .stats {
        padding: 120px 20px;
        padding-top: 30px;
        max-width: 390px;
    }

    .stats::before {
        top: -150px;
        width: 900px;
        height: 300px;
    }

    .stats__top {
        gap: 10px;
    }

    .stats__number {
        gap: 10px;
        padding: 0 5px;
        padding-bottom: 5px;
        border-radius: 3px;
    }

    .stats__value {
        font-size: 38px;
    }

    .stats__unit {
        font-size: 24px;
    }

    .stats__suffix {
        font-size: 18px;
    }

    .stats__text {
        font-size: 18px;
    }

    /* CTAボタン */
    .cta-button {
        max-width: 390px;
        margin: 30px auto;
        padding: 0 43px;
    }

    .cta-button.first {
        margin-top: 15px;
    }

    /* 固定CTAボタン */
    .cta-button--fixed {
        padding: 10px 20px;
        width: 326px;
    }

    .cta-button--fixed.hidden {
        transform: translateY(20px);
    }

    .btn-primary {
        height: 92px;
        border: 2px solid var(--color-white);
        border-radius: 100px;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.07);
        }

        100% {
            transform: scale(1);
        }
    }

    .btn-primary__bg {
        border-radius: 100px;
    }

    .btn-primary__bg::after {
        border-radius: 100px;
    }

    .btn-primary__content {
        padding: 0 9px;
    }

    .btn-primary__badge {
        width: 76px;
        height: 76px;
        font-size: 20px;
    }

    .btn-primary__text {
        font-size: 20px;
        padding: 0 45px 0 16px;
    }

    /* ピタフクが診断できる理由セクション */
    .reason {
        max-width: 390px;
        margin: 40px 8px;
        padding: 37px 0 10px;
        border-radius: 50px;
    }

    .reason__title {
        margin-bottom: 30px;
    }

    .reason__title-img {
        max-width: 350px;
    }

    .reason__item {
        margin-bottom: 40px;
    }

    .reason__item.third {
        margin-bottom: 20px;
    }

    .reason__banner {
        width: 375px;
        height: 80px;
        margin: 0 auto 15px;
    }

    .reason__banner-content {
        padding-left: 7px;
    }

    .reason__banner-number {
        font-size: 49px;
        width: 75px;
        padding-bottom: 7px;
    }

    .reason__banner-text {
        font-size: 20px;
        margin-left: 13px;
    }

    .reason__text-wrapper {
        padding: 0 7px;
        margin-bottom: 36px;
    }

    .reason__decoration {
        height: 7.549px;
        border-radius: 9px;
    }

    .reason__decoration--top {
        top: 42px;
        left: 25px;
        width: 330px;
    }

    .reason__decoration--bottom-left {
        bottom: 29px;
        left: 25px;
        width: 63.36px;
    }

    .reason__decoration--bottom-left.second {
        bottom: 2px;
        left: 25px;
        width: 190px;
    }

    .reason__decoration--bottom-left.third {
        bottom: 2px;
        left: 25px;
        width: 220px;
    }

    .reason__decoration--bottom-right {
        top: 16px;
        right: 25px;
        width: 75px;
    }

    .reason__decoration--bottom-right.second {
        top: 42px;
        right: 25px;
        width: 165px;
    }

    .reason__decoration--bottom-right.third {
        top: 42px;
        right: 25px;
        width: 150px;
    }

    .reason__illustration.first {
        margin-bottom: -40px;
    }

    .reason__text {
        font-size: 16px;
        padding: 0 20px;
    }

    .reason .cta-button {
        padding: 0 35px;
    }

    /* 診断情報セクション */
    .diagnosis-info {
        max-width: 390px;
    }

    .cta-button.diagnosis {
        margin-top: 15px;
    }

    .diagnosis-info__img {
        max-width: 350px;
    }

    /* 特典セクション */
    .bonus {
        max-width: 390px;
        margin: 60px auto;
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .bonus__moreover {
        margin-bottom: 52px;
    }

    .bonus__moreover-img {
        max-width: 350px;
    }

    .bonus__description {
        font-size: 20px;
        margin: 0 0 8px 0;
    }

    .bonus__number {
        margin: 0 0 5px 0;
    }

    .bonus__count {
        font-size: 42px;
    }

    .bonus__unit {
        font-size: 20px;
    }

    .bonus__subtitle {
        font-size: 32px;
        margin: 0 0 13px 0;
    }

    .bonus__title {
        font-size: 42px;
    }

    .bonus-cta.cta-button {
        padding: 0 23px;
        margin-bottom: 15px;
    }

    /* フッター */
    .footer {
        padding: 50px 20px 40px;
    }

    .footer__circle {
        width: 1312.84px;
        height: 1312.84px;
    }

    .footer__links {
        font-size: 12px;
    }

    .footer__separator {
        margin: 0 7px;
    }
}
