/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ✅ ページ全体の読み込み待ち */
body {
    visibility: hidden;
    /* 読み込み中は非表示 */
    opacity: 0;
    /* 読み込み中は透明 */
    transition: opacity 0.5s ease-in-out;
    /* スムーズなフェードイン */
}

/* ✅ 読み込み完了後に表示 */
body.loaded {
    visibility: visible;
    opacity: 1;
}

/* ✅ 全体のリセットと基本設定 */
html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    /* 横スクロールを無効化 */
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    /* テキストサイズ自動調整防止 */
    -ms-text-size-adjust: 100%;
}

/* ✅ bodyの基本スタイル */
body {
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    /* 文字色 */
    background-color: #f4f4f4;
    /* 背景色 */
    max-width: 500px;
    /* モバイル向けに幅を制限 */
    margin: 0 auto;
    /* 水平中央揃え */
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* デザインCSS */
.header {
    background-color: #c51251;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}

.header .site-title {
    font-size: 1.6rem;
    margin: 0;
}

.header .site-tagline {
    font-size: 1rem;
    margin-top: 5px;
}

.reasons,
.intro,
.stats,
.cta {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    font-size: 1rem;
}

.reasons h3,
.intro h2,
.stats h3,
.cta h3 {
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    background: #5b2508;
    padding: 10px;
    font-family: serif;
}

.stats {
    margin-top: -120px !important;
    padding-top: 140px !important;
    z-index: 2 !important;
    position: relative;
    background: #5b2508;
    overflow: visible;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 50% 100%, 0 calc(100% - 50px));
    color: #fff;
    padding-bottom: 50px !important;
    !i;
    !;
}



.intro p,
.stats p,
.cta p {
    margin-bottom: 10px;
}

.stats ul {
    margin: 10px 0;
    gap: 10px;
    display: flex;
}

.stats {
    background-image: url(https://43566bec87a464df.main.jp/lp/mclp/img/stats-bg.png);
}

.stats li {
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column-reverse;
    background-image: url(https://43566bec87a464df.main.jp/lp/mclp/img/badge-bg.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    height: 200px;
    padding-top: 3px;
    width: 50%;
    justify-content: flex-start;
    align-items: center;
}

.stats li span {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Lora', serif;
    letter-spacing: 2px;
    /* 数字と単位の高さを揃える */
    margin-bottom: 15px;
}

.stats li p {
    margin-bottom: 5px;
    background: #371503bd;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    height: 60px;
}

.stats li span span {
    font-size: 36px;
    /* 数字と単位の高さを揃える */
}

.cta {
    text-align: center;
}

.cta .cta-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #c51251;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.cta .cta-button:hover {
    background-color: #700;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: #fff;
    font-size: 0.8rem;
}

/* スマホ向けのレスポンシブ調整 */
@media (max-width: 768px) {
    .header .site-title {
        font-size: 1.4rem;
    }

    .header .site-tagline {
        font-size: 0.9rem;
    }

    .reasons,
    .intro,
    .stats,
    .cta {
        padding: 20px;
    }

    .cta .cta-button {
        font-size: 0.9rem;
    }
}

@keyframes heartbeat-bg {
    0% {
        background-size: 100% 100%;
        /* 初期状態 */
    }

    15% {
        background-size: 102% 102%;
        /* 少し拡大 */
    }

    30% {
        background-size: 100% 100%;
        /* 戻る */
    }

    45% {
        background-size: 102% 102%;
        /* 再度わずかに拡大 */
    }

    60% {
        background-size: 100% 100%;
        /* 再び戻る */
    }

    100% {
        background-size: 100% 100%;
        /* 初期状態に戻る */
    }
}

/* CSS適用例 */
.key-visual {
    text-align: center;
    padding: 20px 0 0 0;
    height: 780px;
    position: relative;
    background: url(https://43566bec87a464df.main.jp/lp/mclp/img/bg.png) no-repeat center center;
    background-size: 100% 100%;
    animation: heartbeat-bg 1.6s cubic-bezier(0.66, 0, 0.34, 1) infinite;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 50% 100%, 0 calc(100% - 50px));
    z-index: 10;
    box-shadow: 0 0 20px 0px #000;
}

/* 半透明オーバーレイ */
.key-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(65 31 4 / 75%);
    /* 半透明の黒 */
    z-index: 1;
    /* 背景の上、burst画像の下 */
    pointer-events: none;
}

/* burst画像 */
.key-visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://43566bec87a464df.main.jp/lp/mclp/img/burst.png) no-repeat center center;
    background-size: cover;
    /* 画像サイズを要素に収める */
    z-index: 2;
    /* 半透明オーバーレイの上、コンテンツの下 */
    pointer-events: none;
    animation: burst-appear .5s ease-out forwards;
    /* アニメーションを適用 */
}

@keyframes burst-appear {
    0% {
        transform: scale(3);
        /* 外側から始まる（3倍の大きさ） */
        opacity: 0;
        /* 完全に透明 */
    }

    50% {
        opacity: 0.5;
        /* 徐々に見えてくる */
    }

    100% {
        transform: scale(1);
        /* 通常の大きさに */
        opacity: 1;
        /* 完全に表示 */
    }
}

/* コンテンツ */
.key-visual>* {
    position: relative;
    z-index: 3;
    /* 疑似要素より上に配置 */
}


.key-visual h1 {
    color: #fff;
    font-family: serif;
}

.site-tagline {
    color: #fff;
}



.key-text {
    position: absolute;
    top: 5px;
    /* 上からの距離 */
    right: 5px;
    /* 右からの距離 */
    font-size: 14px;
    font-weight: bold;
    color: #00a10d;
    /* text-shadow: 2px 2px 5px rgb(0 29 93 / 29%); */
    /* 読みやすくするためのシャドウ */
    background: rgb(255 255 255 / 92%);
    /* 背景を少し暗くして目立たせる */
    padding: 5px 10px;
    border-radius: 5px;
    letter-spacing: 2px;
}

.key-logo {
    width: 80%;
    max-width: 120px;
    margin: 10px auto;
    display: block;
    border-radius: 20px;
    border: 2px solid #ff4f4f;
    box-shadow: 1px 1px 10px #0000008c;
}

.key-subtext {
    font-size: 1rem;
    color: #ffffff;
    margin: 10px 0;
}

/* 三角形のベルトコンベア */
.triangle-belt {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 30px;
    margin: 10px 0;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #f8e401;
    margin: 0 5px;
    animation: moveTriangles 1s linear infinite, growTriangles 0s linear infinite;
}

/* 三角形の動き */
@keyframes moveTriangles {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* 三角形のサイズ拡大 */
@keyframes growTriangles {
    0% {
        transform: scale(0.5) translateY(-100%);
    }

    100% {
        transform: scale(1.2) translateY(100%);
    }
}

/* バナー画像 */
.key-banner {
    max-width: 400px;
    margin: 20px auto 0;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 動画コンテナ */
.video-container {
    position: relative;
    width: 100%;
    height: auto;
    /* 動画の高さを指定 */
    overflow: hidden;
}

/* 動画 */
.key-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 要素全体をカバー */
}

/* 動画上の文字のオーバーレイ */
.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 動画の高さを基準にする */
    display: flex;
    flex-direction: column;
    /* 縦方向に複数行を配置 */
    justify-content: center;
    /* 縦方向の中央揃え */
    align-items: center;
    /* 横方向の中央揃え */
    overflow: hidden;
    /* テキストが外に出ないように */
    z-index: 2;
    pointer-events: none;
    /* 文字がクリックイベントを妨げないように */
}

.overlay-text span {
    position: absolute;
    /* 中央高さに配置 */
    left: 100%;
    /* 初期位置を右端外に設定 */
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    /* 文字を折り返さない */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    /* 読みやすくするためのシャドウ */
    animation: marquee 7s linear infinite;
    /* 流れるアニメーション */
}

/* アニメーションの定義 */
@keyframes marquee {
    0% {
        transform: translateX(100%);
        /* 右から */
    }

    100% {
        transform: translateX(-150%);
        /* 左へ流れる */
    }
}

/* テキスト間のスペース調整（必要に応じて） */
.overlay-text span:not(:last-child) {
    margin-bottom: 10px;
}

.top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-btn small{
    color: #ccc;
    margin-top: 5px;
}

.btn-text {
    color: #fff;
}


.container {
    position: relative;
    height: 1020px;
    /* セクションの高さ */
    overflow: hidden;
    /* はみ出しを隠す */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 50% 100%, 0 calc(100% - 50px));
    z-index: 3;
}

.inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0);
    /* 背景画像をクリッピング */
    padding: 120px 20px 0;
}

.bg01 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://43566bec87a464df.main.jp/lp/mclp/img/intro-bg.png');
    /* 背景画像を設定 */
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* 背景を背面に配置 */
    filter: blur(5px);
    /* ブラー効果を適用 */
}

.bg02 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://43566bec87a464df.main.jp/lp/mclp/img/intro-bg.png');
    /* 背景画像を設定 */
    background-size: cover;
    background-position: center;
    z-index: -2;
    /* 背景を背面に配置 */
    filter: blur(5px);
    /* ブラー効果を適用 */
}


main {
    margin-top: -100px;
}

.text-white-bg {
    background: #ffffffad;
    padding: 20px;
    font-family: serif;
    line-height: 1.5;
    text-align: left;
}

.text-black-bg {
    background: #000000ad;
    padding: 10px 20px;
    font-family: serif;
    line-height: 1.5;
}


.text-white-bg small {
    color: #777;
    text-align: right;
    display: block;
    font-size: 12px;
}

.area-box {
    box-shadow: 0 0 20px 0px #575757;
}

.reasons {
    background-color: #f9f9f9;
    text-align: center;
    margin-top: -100px;
    position: relative;
    z-index: -1 !important;
    height: 625px !important;
    overflow: visible;
    /* 要素が隠れないようにする */
}

.reasons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo,
.line-icon,
.chain {
    max-height: 70px;
    object-fit: contain;
    border-radius: 20px;
}

.description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

/* ✅ リスト全体のスタイル */
.promises {
    list-style: none;
    padding-left: 0;
}

.promises li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* アイコンとテキストの間隔 */
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* ✅ チェックアイコンのスタイル */
.promises li i {
    color: #28a745;
    /* チェックマークの色 */
    font-size: 1.2rem;
    /* アイコンの大きさ */
    flex-shrink: 0;
    /* サイズを維持 */
}

.description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.description .highlight {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    /* マーカーの高さを調整 */
    display: inline;
    /* テキストに背景を適用 */
    line-height: 1.5;
    /* 行間を調整 */
}

.stats h3 {
    font-size: 1.2rem;
    color: #5b2508;
    text-align: center;
    background: #fff;
    padding: 10px;
    font-family: serif;
}


.custom-container {
    width: 300px;
    /* 親要素に幅を指定 */
    position: relative;
}

.bottom-triangle {
    width: 100%;
    position: relative;
    z-index: 10;
}

.bottomliner {
    font-size: 15px;
    background: #aeaeae91;
    padding: 5px;
    border-radius: 100vh;
    text-align: center;
    letter-spacing: 1px;
    margin: 0 auto;
}

/* 共通アニメーションクラス */
.expand-from-center {
    position: relative;
    /* アニメーションの基準点 */
    transform-origin: center;
    /* 拡大の起点を中央に */
    animation: expand-center 1s ease-out forwards;
}

/* アニメーションの定義 */
@keyframes expand-center {
    0% {
        transform: scale(0);
        /* 中心の一点から開始 */
        opacity: 0;
        /* 完全に透明 */
    }

    50% {
        opacity: 0.7;
        /* 徐々に表示される */
    }

    100% {
        transform: scale(1);
        /* 通常サイズに拡大 */
        opacity: 1;
        /* 完全に表示 */
    }
}

/* スライドイン用共通スタイル */
.slide-in-left,
.slide-in-bottom {
    opacity: 0;
    /* 初期状態は非表示 */
    visibility: hidden;
    /* 非表示 */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    will-change: transform, opacity;
}

/* 左からスライドイン */
.slide-in-left.show {
    transform: translateX(0);
    /* 元の位置に戻る */
    opacity: 1;
    /* 完全に表示 */
    visibility: visible;
}

.slide-in-left {
    transform: translateX(-100px);
    /* 左からスタート */
}

/* 下からスライドイン */
.slide-in-bottom.show {
    transform: translateY(0);
    /* 元の位置に戻る */
    opacity: 1;
    /* 完全に表示 */
    visibility: visible;
    box-shadow: 0 0 10px #0000008a;
}

.slide-in-bottom {
    transform: translateY(100px);
    /* 下からスタート */
}


.cta {
    padding-top: 160px;
    margin-top: -140px;
    position: relative;
    z-index: -2;
}

/* .ctaセクションのベース */
.cta {
    position: relative;
    padding-top: 160px;
    margin-top: -140px;
    z-index: -2;
    overflow: hidden;
    /* 動画がはみ出ないように */
    padding-bottom: 100px;
}

/* 背景動画のスタイル */
.cta-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 動画を要素に合わせてカバー */
    z-index: -3;
    /* 背面に配置 */
    pointer-events: none;
    /* クリックを妨げない */
}

.cta .cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #ff5722;
    /* 明示的に背景色 */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    /* 明示的に指定 */
}

.cta .cta-button:hover {
    background-color: #e64a19;
    /* ホバー時の背景色 */
}

/* 半透明のオーバーレイ */
.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(112 42 0 / 23%);
    /* 半透明の黒 */
    z-index: -1;
    /* 動画より上、テキストより下 */
    pointer-events: none;
    /* クリックを妨げない */
}

/* LINE追加ボタン: 初期状態 */
.register-button {
    width: 240px;
    /* 横長サイズ */
    height: 45px;
    /* 高さ */
    background: linear-gradient(to right, #06C755, #04A745);
    /* グラデーション背景 */
    color: #fff;
    /* テキストカラー */
    font-size: 18px;
    /* テキストサイズ */
    font-weight: bold;
    /* 太字 */
    border-radius: 30px;
    /* 角丸 */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    /* 影 */
    z-index: 1000;
    /* 最前面 */
    transition: bottom 0.5s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    margin: 10px auto;
    letter-spacing: 2px;
}

/* ✅ LINEボタンの基本スタイル */
.line-add-button {
    position: fixed;
    /* 画面上に固定 */
    bottom: -100px;
    /* 初期状態: 画面外に隠す */
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 300px;
    height: 50px;
    background: linear-gradient(to right, #03c755, #03c755);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    border-radius: 30px;
    display: flex;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    /* 初期状態で画面下に隠れる */
    opacity: 0;
    /* 完全に透明 */
    transition: bottom 0.3s ease-out, transform 0.3s ease-out, opacity 0.3s ease-out;
    cursor: pointer;
    align-items: center;
    justify-content: flex-start;
    padding-left: 13px;
    letter-spacing: 1px;
}

.line-add-button img {
    width: 35px;
    height: 35px;
    margin-right: 10px;
}

/* ✅ 表示状態 (JavaScriptで`.show`が付与された時) */
.line-add-button.show {
    bottom: 20px;
    /* 浮上して表示 */
    transform: translateY(0);
    /* 位置調整 */
    opacity: 1;
    /* 不透明に */
}

/* ✅ `.footer`上で停止する状態 */
ï .line-add-button.footer-stop {
    position: absolute;
    /* フッターの直上で停止 */
    bottom: auto;
    top: auto;
    transform: translateY(0);
}

/* ✅ スライドショーコンテナ */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 300px; /* 高さは任意 */
    overflow: hidden;
    background-color: #ffffffad;
}

/* ✅ オーバーレイ */
.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    /* スライド画像より下 */
}

.slideshow-container.completed .slideshow-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ✅ 12枚目の画像にブラー効果 */
.slideshow-container.completed .slideshow-image {
    filter: blur(8px);
    /* ブラー効果 */
    transition: filter 0.5s ease-in-out;
}


/* ✅ 「もっと見る」ボタン */
.slideshow-more-button {
    position: absolute;
    /* 親要素外で独立配置 */
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    background: #a0a0a0;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
    /* 最前面に配置 */
    pointer-events: auto; /* クリックを有効にする */
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    /* 初期状態は透明 */
    transform: scale(0.95);
    /* 初期は少し小さく */
    transition: opacity 1s ease-in-out,
        transform 1s ease-in-out;
    padding: 0px 30px;
}

/* ✅ アクティブな画像 */
.slideshow-image.active {
    opacity: 1; /* 表示 */
    transform: scale(1); /* 拡大 */
    z-index: 2;
}


/* ✅ 表示状態 */
.slideshow-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

* 遅延付きアニメーション */
.slide-in-bottom.delay-1 {
    transition-delay: 0.5s; /* 0.5秒遅延 */
}

.slide-in-bottom.delay-2 {
    transition-delay: 1s; /* 1秒遅延 */
}

.slide-in-bottom.delay-3 {
    transition-delay: 1.5s; /* 1.5秒遅延 */
}