/* プリセールスLP スタイル */

.presell-lp {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.presell-lp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 428px;
    /* スマホ幅に合わせる（iPhone Pro Maxサイズ） */
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.presell-image-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.presell-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.presell-image-with-spacer {
    margin-bottom: 100px;
}

/* ボタンスタイル */
.presell-button-wrapper {
    width: 100%;
    max-width: 428px;
    /* スマホ幅に合わせる */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.presell-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #d19ab4 0%, #c08497 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.presell-button:hover {
    background: linear-gradient(135deg, #c08497 0%, #b0758a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 154, 180, 0.4);
}

.presell-button:active {
    transform: translateY(0);
}

/* ボタンを配置する画像のラッパー */
.presell-image-with-button {
    position: relative;
}

/* 画像の上に重ねるボタン */
.presell-overlay-button {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: block;
    text-decoration: none;
    cursor: pointer;
    width: calc(100% - 40px);
    /* 左右に20pxずつ余白 */
    max-width: 100%;
    box-sizing: border-box;
}

.presell-button-image {
    width: 100%;
    /* ボタン画像のサイズ（調整可能） */
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.presell-overlay-button:hover .presell-button-image {
    transform: scale(1.05);
    opacity: 0.9;
}

.presell-overlay-button:active .presell-button-image {
    transform: scale(0.98);
}

/* 36.jpgの下に配置する3つのボタン（横並び） */
.presell-course-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
    box-sizing: border-box;
}

.presell-course-button {
    flex: 1;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: calc(33.333% - 7px);
}

.presell-course-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.presell-course-button:active {
    transform: scale(0.98);
}

.presell-course-button-image {
    width: 100%;
    height: auto;
    display: block;
}

/* スマホ表示 */
@media screen and (max-width: 768px) {
    .presell-lp {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .presell-lp-container {
        max-width: 100%;
        /* スマホでは画面幅いっぱい */
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .presell-image-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .presell-image {
        width: 100%;
        height: auto;
    }

    .presell-image-with-spacer {
        margin-bottom: 8px;
    }

    .presell-button-wrapper {
        width: 100%;
        max-width: 100%;
        /* スマホでは画面幅いっぱい */
        padding: 15px;
    }

    .presell-button {
        width: 100%;
        max-width: 90%;
        padding: 14px 30px;
        font-size: 15px;
    }

    .presell-overlay-button {
        bottom: -13px;
        width: calc(100% - 30px);
    }

    .presell-button-image {
        width: 100%;
        /* スマホ用サイズ */
    }

    .presell-course-button {
        max-width: 33.333%;
    }
}

/* より小さいスマホ表示 */
@media screen and (max-width: 480px) {
    .presell-button {
        font-size: 14px;
        padding: 12px 25px;
    }

    .presell-overlay-button {
        width: calc(100% - 20px);
    }

    .presell-button-image {
        width: 100%;
    }

    .presell-course-buttons {
        padding: 10px 5px;
        gap: 3px;
    }

    .presell-course-button {
        max-width: calc(33.333% - 2px);
    }
}
