/* ========================================
   Base
======================================== */
body {
    margin: 0;
    font-size: 0;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体",
                 "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

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

/* ========================================
   アニメーション キーフレーム
======================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}

/* ── パルス（CTAボタン） ── */
.pulse-anim {
    animation: pulse 1.5s ease-in-out infinite;
    will-change: transform;
    display: block;
}

/* ── スクロールトリガーアニメーション共通 ──
   各クラスが初期状態（非表示）を定義。
   .anim-visible が付与されると表示状態になる。
   --anim-base: left:50% で中央寄せした絶対配置要素が
               translateX(-50%) を保持するためのCSS変数。
======================================== */

/* フェードしながら下から上へ */
.anim-fade-up {
    opacity: 0;
    transform: var(--anim-base, translate(0,0)) translateY(28px);
    transition: opacity 0.65s ease 0.5s, transform 0.65s ease 0.5s;
    will-change: opacity, transform;
}
/* 左からスライドイン */
.anim-slide-left {
    opacity: 0;
    transform: var(--anim-base, translate(0,0)) translateX(-40px);
    transition: opacity 0.65s ease 0.5s, transform 0.65s ease 0.5s;
    will-change: opacity, transform;
}
/* 中心からスケールイン（scale 0 → 1） */
.anim-scale-in {
    opacity: 0;
    transform: var(--anim-base, translate(0,0)) scale(0);
    transition: opacity 0.45s ease 0.5s,
                transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
    will-change: opacity, transform;
}
/* やわらかいポップイン（scale 0.82 → 1） */
.anim-pop {
    opacity: 0;
    transform: var(--anim-base, translate(0,0)) scale(0.82);
    transition: opacity 0.5s ease 0.5s,
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
    will-change: opacity, transform;
}

/* 遅延修飾クラス（ベース 0.3s に対する追加遅延） */
.anim-d1 { transition-delay: 0.65s; }
.anim-d2 { transition-delay: 0.85s; }

/* 表示状態（JSが付与） */
.anim-fade-up.anim-visible,
.anim-slide-left.anim-visible {
    opacity: 1;
    transform: var(--anim-base, translate(0,0));
}
.anim-scale-in.anim-visible,
.anim-pop.anim-visible {
    opacity: 1;
    transform: var(--anim-base, translate(0,0)) scale(1);
}

/* ========================================
   カウントダウンバー
======================================== */
#countdown_fixed {
    background: #c61730;
    text-align: center;
    font-weight: bold;
    padding: 4% 0 1%;
    letter-spacing: 1px;
    font-family: inherit;
}

.countdown_label {
    font-size: 4.2vw;
    color: #FFFFFF;
    line-height: 0.5;
    margin: 0 0 1%;
}

#count24h {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.2vw;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.cpntimer {
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    display: inline-block;
    text-align: center;
    letter-spacing: 2px;
    margin: 0% 1%;
}

@media (min-width: 900px) {
    #countdown_fixed { padding: 8px 0 6px; }
    .countdown_label  { font-size: 14px; margin-bottom: 3px; }
    #count24h         { font-size: 50px; }
}

/* ========================================
   メインラップ
======================================== */
.main_wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
}

/* ========================================
   FVセクション
======================================== */
.sec-fv {
    background: url('') no-repeat top center;
    background-size: 100% auto;
}
.fv_video {
    width: 100%;
}

/* ========================================
   CTAボタンセクション
======================================== */
.sec-cta {
    background-image: url('../images/cta_back.png');
    background-size: cover;
    background-repeat: no-repeat;
}
.sec-cta a  { display: block; }
.cta_btn_1  { width: 100%; display: block; margin-top: -1%; padding: 0 0 1% 0;}

/* ========================================
   コンテンツ1：スキマ時間×スマホ＋体験談スライダー
======================================== */
.sec-content1 {
    background-image: url('../images/content1_back.png');
    background-size: 100%;
    background-repeat: no-repeat;
    position: relative;
}

.content1_1 { padding: 23% 5% 0 6%; box-sizing: border-box; margin-top: -1%;}
.content1_2  { padding: 0 8% 7% 8%; margin-top: -4%; box-sizing: border-box; }

/* カルーセル */
.carousel-wrap     { padding: 2% 4% 10%; overflow: hidden; }
.carousel-viewport { overflow: hidden; border-radius: 4px; }
.carousel-track {
    display: flex;
    gap: 5%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.carousel-track img {
    min-width: 100%;
    flex-shrink: 0;
    display: block;
}

/* ========================================
   コンテンツ2：3つのPOINT
======================================== */
.content2_heading {
    width: 100%;
    margin: 0 auto 4%;
    display: block;
}

.content2_card {
    width: 92%;
    margin: 0 auto 2%;
    display: block;
}

.content2_lastcard {
    width: 92%;
    margin: 0 auto 0;
    display: block;
    padding-bottom: 7%;
}

/* ========================================
   コンテンツ3：今日からスマホ1つで 最短即日稼げる!!
======================================== */
.sec-content3 {
    background-image: url('../images/content3_back.png');
    background-size: 100%;
    background-repeat: no-repeat;
    position: relative;
}

.content3_1 {
    width: 83%;
    padding: 25% 8% 13% 1%;
    display: block;
}

/* ========================================
   コンテンツ4：かんたん3STEP
======================================== */
.content4_heading {
    width: 80%;
    margin: 0 auto 2%;
    display: block;
}

.step {
    width: 100%;
    padding: 0 0 5% 0;
}

/* ========================================
   コンテンツ5：LINEキャンペーン 最大5万円分
======================================== */
.sec-content5 {
    margin-top: -11%;
}

.content5-card {
    position: relative;
    background: url('../images/content5_back.png') no-repeat top center;
    background-size: 100% auto;
    padding-top: 117.47%;
}

/* content5_1 は content5_back 上に絶対配置。
   left:50% で中央寄せするため --anim-base で translateX(-50%) を保持する。 */
.content5_1 {
    position: absolute;
    top: 26.5%;
    left: 50%;
    width: 84%;
    --anim-base: translateX(-50%);
}

.cta-mid {
    width: 100%;
    margin-top: -33%;
}

/* ========================================
   コンテンツ6：Q&A よくある質問（画像まるごと）
======================================== */
.sec-content6 {
    background: url('../images/content6_back.png') no-repeat top center;
    background-size: 100% auto;
    padding-top: 233.6%;
}

/* ========================================
   コンテンツ7：クロージング 不安な人も大丈夫！
======================================== */
.sec-content7 {
    background: #f5e8e8;
}

.content7-wrapper {
    position: relative;
    background: url('../images/content7_back.png') no-repeat top center;
    background-size: 100% auto;
    padding-top: 126.5%;
}

/* 吹き出し「でも、本当に私にできるかな…」 */
.content7_1 {
    position: absolute;
    top: 4.5%;
    right: 3%;
    width: 56%;
}

/* 吹き出し「不安な人も大丈夫！」 */
.content7_4 {
    position: absolute;
    top: 38.5%;
    left: 10%;
    width: 80%;
}

/* 鳥マスコット */
.content7_3 {
    position: absolute;
    bottom: 26%;
    right: 0%;
    width: 33%;
    z-index: 5;
}

/* 「無料LINE登録で始められるから安心!!」
   left:37% + translateX(-50%) で中央寄せ。--anim-base で保持する。 */
.content7_2 {
    position: absolute;
    top: 50%;
    left: 37%;
    width: 75%;
    --anim-base: translateX(-50%);
}

/* ========================================
   フッター（特商法・プライバシーポリシー）
   policy.css の footer 要素セレクタ（全幅の赤帯）が
   本文の .main_wrap（max-width:900px）と噛み合わず
   PC幅で帯だけ画面いっぱいに広がってしまうため、
   本文カラムに合わせて幅と中央寄せを上書きする。
======================================== */
.footer {
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ========================================
   スクロール追従フッターCTA
======================================== */
#footer_cta {
    position: fixed;
    left: 1%;
    bottom: 1%;
    z-index: 999;
    display: none;
    width: 98%;
}

.cta_btn_2 { display: block; }

@media (min-width: 900px) {
    #footer_cta {
        width: 47%;
        left: 50%;
        bottom: 2%;
        transform: translateX(-50%);
    }
}

/* ========================================
   モーション軽減（アクセシビリティ）
======================================== */
@media (prefers-reduced-motion: reduce) {
    .pulse-anim  { animation: none; }
    .anim-fade-up,
    .anim-slide-left,
    .anim-scale-in,
    .anim-pop    { transition: none !important; opacity: 1; }
    .anim-fade-up,
    .anim-slide-left { transform: var(--anim-base, translate(0,0)); }
    .anim-scale-in,
    .anim-pop        { transform: var(--anim-base, translate(0,0)) scale(1); }
    .carousel-track  { transition: none; }
}
