/*
 * トップページ（未ログイン）専用CSS
 * 対象: /  → DashboardController::index()
 * 作成日: 2026-05-25
 * スコープ: .page-top-renewal
 *
 * 納品HTML: .claude/plans/3uplab_top_no_login.html
 * 規約: .claude/docs/design_replace_rules.md
 *
 * 共通セクション（about/pts/voice/festa）は top_common.css 側
 * グローバル変数は _tokens.css 側
 */

/* === FV === */
.page-top-renewal .fv {
    background: var(--mr-orange);
    position: relative;
    overflow: hidden;
}
.page-top-renewal .fv__img-wrap {
    width: 100%;
    position: relative;
}
.page-top-renewal .fv__img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.page-top-renewal .fv__img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--mr-orange));
}
.page-top-renewal .fv__body {
    padding: 0 16px 28px;
    position: relative;
    z-index: 1;
}
.page-top-renewal .fv__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 14px;
    animation: mr-top-fadeUp .5s ease both;
}
@media (min-width: 768px) {
    .page-top-renewal .fv__img-wrap::after {
        height: 60px;
    }
}

/* 3ポイント帯（FV内） */
.page-top-renewal .fv__3pts {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--mr-r-md);
    padding: 14px 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 18px;
    animation: mr-top-fadeUp .5s ease .18s both;
}
.page-top-renewal .fv3-item {
    text-align: center;
    position: relative;
}
.page-top-renewal .fv3-item + .fv3-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}
.page-top-renewal .fv3-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}
.page-top-renewal .fv3-simple-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* CTA ボタン（オレンジ背景上の白ボタン） */
.page-top-renewal .btn-cta {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    border-radius: var(--mr-r-md);
    padding: 17px 24px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 18px;
    font-weight: 900;
    width: 100%;
    transition: transform .15s, box-shadow .15s;
    animation: mr-top-fadeUp .5s ease .25s both;
}
.page-top-renewal .btn-orange {
    background: var(--mr-white);
    color: var(--mr-orange);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.page-top-renewal .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}
.page-top-renewal .btn-orange:active {
    transform: scale(.97);
}
.page-top-renewal .fv__note {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    animation: mr-top-fadeUp .5s ease .32s both;
}

/* 紹介リンク限定バナー（常時表示・カード装飾なし・画像のみ） */
.page-top-renewal .fv__referral-banner {
    width: 100%;
    height: auto;
    display: block;
    animation: mr-top-fadeUp .5s ease .4s both;
    border-radius: var(--mr-r-md);
}
@media (min-width: 768px) {
    .page-top-renewal .fv__referral-banner {
        width: auto;
        max-width: 100%;
    }
}

/* === BENEFIT SECTION（来月3万円） === */
.page-top-renewal .benefit-sec {
    background: var(--mr-orange);
    text-align: center;
}
.page-top-renewal .benefit-lead {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
}
.page-top-renewal .benefit-lead strong {
    font-size: 22px;
    color: #FFD700;
}
.page-top-renewal .benefit-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.page-top-renewal .benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--mr-r-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0;
}
.page-top-renewal .benefit-card img {
    width: 100%;
    display: block;
}
.page-top-renewal .benefit-footer-lead {
    margin-top: 20px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    text-align: center;
}

/* オレンジ→クリームの区切り */
.page-top-renewal .gradient-divider {
    height: 40px;
    background: linear-gradient(to bottom, var(--mr-orange), var(--mr-cream-light));
}

/* === CTA mid（白オレンジボタン） === */
.page-top-renewal .cta-mid {
    padding: 20px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.page-top-renewal .btn-blue {
    background: var(--mr-white);
    color: var(--mr-orange);
    box-shadow: 0 8px 28px rgba(255, 100, 0, 0.25), 0 2px 0 rgba(200, 100, 0, 0.15);
    border: 2px solid rgba(255, 100, 0, 0.15);
}
.page-top-renewal .btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 100, 0, 0.32), 0 2px 0 rgba(200, 100, 0, 0.15);
}
.page-top-renewal .cta-note {
    font-size: 11px;
    color: var(--mr-text-light);
}

/* === 参加の流れ（白カード削除・画像のみ表示） === */
.page-top-renewal .flow-sec {
    background: var(--mr-beige-cta);
    border-top: 1px solid var(--mr-beige-border);
    margin-top: 28px;
    padding: 28px 16px 32px;
}
.page-top-renewal .flow-steps {
    display: flex;
    flex-direction: column;
}
.page-top-renewal .flow-card img {
    width: 100%;
    display: block;
}
/* PC: 2枚×2行のflex、各画像 max-height 500px・中央寄せ */
@media (min-width: 768px) {
    .page-top-renewal .flow-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        max-width: 1040px;
        margin: 0 auto;
    }
    .page-top-renewal .flow-card {
        flex: 0 0 calc(50% - 8px);
        max-width: 500px;
        display: flex;
        justify-content: center;
    }
    .page-top-renewal .flow-card img {
        width: auto;
        max-width: 100%;
        max-height: 500px;
    }
}

/* === お仕事一覧（白カード削除・画像のみ表示） === */
.page-top-renewal .work-banner-link {
    display: block;
    transition: transform .15s;
    margin-bottom: 10px;
}
.page-top-renewal .work-banner-link:hover {
    transform: translateY(-2px);
}
.page-top-renewal .work-other-label {
    font-size: 12px;
    font-weight: 900;
    color: var(--mr-text-light);
    letter-spacing: .5px;
    margin-bottom: 8px;
    margin-top: 4px;
    padding-left: 2px;
}
.page-top-renewal .work-other-text {
    font-size: 13px;
    color: var(--mr-text-mid);
    line-height: 1.7;
}

/* === BOTTOM CTA === */
.page-top-renewal .btm-cta {
    background: var(--mr-beige-cta);
    border-top: 2px solid var(--mr-beige-border);
    margin-top: 28px;
    padding: 32px 16px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-top-renewal .btm-cta::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 100, 0, 0.05);
}
.page-top-renewal .btm-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--mr-orange);
    line-height: 1.3;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.page-top-renewal .btm-sub {
    font-size: 13px;
    color: var(--mr-text-mid);
    margin-bottom: 22px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}
.page-top-renewal .btn-orange-lg {
    background: var(--mr-orange);
    color: #fff;
    box-shadow: 0 6px 28px rgba(255, 100, 0, 0.38);
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.page-top-renewal .btn-orange-lg:hover {
    background: var(--mr-orange-mid);
    transform: translateY(-2px);
}
.page-top-renewal .btm-note {
    font-size: 11px;
    color: var(--mr-text-light);
    position: relative;
    z-index: 1;
}

/* === アニメーション === */
@keyframes mr-top-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Floating CTA（スクロール出現 → 下部固定追従） === */
.page-top-renewal .floating-cta {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) translateY(140%);
    width: calc(100% - 24px);
    max-width: 560px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    line-height: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
    transition: transform 360ms cubic-bezier(.16, 1, .3, 1), opacity 240ms ease-out;
}
.page-top-renewal .floating-cta.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.page-top-renewal .floating-cta__img {
    width: 100%;
    height: auto;
    display: block;
}

/* 内側ラッパー（puyopuyo の scale() と外側の translate を競合させない2層構造） */
.page-top-renewal .floating-cta__inner {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center bottom;
}

/* ぷよぷよアニメ：0〜40%で素早く弾み、40〜100%は静止で待機 */
.page-top-renewal .puyopuyo {
    animation: puyopuyo 3s ease-in-out infinite;
    transform-origin: center bottom;
}
@keyframes puyopuyo {
    0%   { transform: scale(1, 1); }
    8%   { transform: scale(1.1, 0.8); }
    18%  { transform: scale(0.9, 1.15); }
    27%  { transform: scale(1.05, 0.92); }
    35%  { transform: scale(0.98, 1.04); }
    40%  { transform: scale(1, 1); }
    100% { transform: scale(1, 1); }
}

/* A/Bテスト：バリアントB（円形・右下追従） */
.page-top-renewal .floating-cta--b {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 90px;
    max-width: none;
    transform: translateY(140%);
}
.page-top-renewal .floating-cta--b.is-visible {
    transform: translateY(0);
}
@media (min-width: 768px) {
    .page-top-renewal .floating-cta--b {
        width: 120px;
    }
}
