/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* PC表示時の最大幅制限 */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0,0,0,0.8);
    }
}

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

/* ファーストビュー */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 50%, #1a0a3e 100%);
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    opacity: 0.95;
}

.hero-sparkle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #06c755 0%, #05a844 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 20px 45px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 35px rgba(6,199,85,0.5), 0 0 50px rgba(255,215,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,215,0,0.5);
}

.hero-btn:active {
    transform: scale(0.95);
}

.btn-icon {
    font-size: 24px;
}

.hero-note {
    font-size: 14px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* マンガセクション */
.manga-section {
    background: linear-gradient(180deg, #1a0a3e 0%, #0f0624 50%, #1a0a3e 100%);
    padding: 50px 0 60px;
    position: relative;
}

.manga-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
}

.manga-header {
    text-align: center;
    padding: 0 20px 40px;
}

.manga-title {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.manga-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.manga-story {
    padding: 0 15px;
}

.manga-panel {
    margin-bottom: 8px;
}

.manga-panel img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(255,215,0,0.2), 0 4px 15px rgba(0,0,0,0.5);
}

.manga-cta {
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, transparent 70%);
}

.cta-text {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,215,0,0.6);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #06c755 0%, #05a844 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(6,199,85,0.5), 0 0 40px rgba(255,215,0,0.2);
    border: 2px solid rgba(255,215,0,0.3);
}

.cta-btn:active {
    transform: scale(0.95);
}

/* 3ステップ */
.steps {
    background: linear-gradient(180deg, #0f0624 0%, #1a0a3e 50%, #0f0624 100%);
    padding: 50px 20px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
}

.section-title {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 40px;
    animation: shimmer 2s ease-in-out infinite;
}

.section-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-bottom: 30px;
}

.step {
    background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, rgba(255,215,0,0.02) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(255,215,0,0.1);
}

.step-num {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a0a3e;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 20px;
    border-radius: 25px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.3));
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.step-arrow {
    text-align: center;
    font-size: 32px;
    color: #ffd700;
    margin: 10px 0;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
}

/* 当選者 */
.winners {
    background: linear-gradient(180deg, #0f0624 0%, #1a0a3e 50%, #0f0624 100%);
    padding: 50px 20px;
    position: relative;
}

.winners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
}

.winner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.winner {
    background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(255,215,0,0.03) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 15px;
    padding: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255,215,0,0.1);
}

.winner:active {
    transform: scale(0.95);
    border-color: rgba(255,215,0,0.6);
    box-shadow: 0 8px 30px rgba(255,215,0,0.3);
}

.winner-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.location, .age {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.amount {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.winners-note {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 20px;
}

/* メインCTA */
.cta-bottom {
    position: relative;
    background: linear-gradient(135deg, #2d1b69 0%, #4a2c7f 50%, #2d1b69 100%);
    padding: 60px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.cta-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
}

.cta-sparkle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.15) 0%, transparent 60%);
    animation: pulse 3s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1.5;
    animation: shimmer 2s ease-in-out infinite;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,215,0,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255,215,0,0.3);
}

.feature .icon {
    font-size: 18px;
    color: #ffd700;
}

.feature .text {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.cta-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #06c755 0%, #05a844 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 22px 50px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 12px 40px rgba(6,199,85,0.5), 0 0 60px rgba(255,215,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,215,0,0.5);
}

.cta-main-btn:active {
    transform: scale(0.95);
}

.btn-arrow {
    font-size: 20px;
}

/* フッター */
.footer {
    background: linear-gradient(180deg, #0a0a1a 0%, #000000 100%);
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid rgba(255,215,0,0.2);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.footer-note {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,215,0,0.2);
}

/* 固定CTAボタン */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10,10,26,0.98) 0%, rgba(10,10,26,0.95) 80%, transparent 100%);
    padding: 15px 20px 20px;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,215,0,0.3);
}

.fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #06c755 0%, #05a844 100%);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    padding: 19px 35px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 35px rgba(6,199,85,0.5), 0 0 50px rgba(255,215,0,0.3);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,215,0,0.4);
}

.fixed-btn:active {
    transform: scale(0.95);
}

.fixed-btn .icon {
    font-size: 24px;
}

/* セクション装飾 */
.manga-section::after,
.steps::after,
.winners::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
}

/* スクロールアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* ゴールドグロー効果 */
.hero-btn,
.cta-btn,
.cta-main-btn,
.fixed-btn {
    position: relative;
}

.hero-btn::before,
.cta-btn::before,
.cta-main-btn::before,
.fixed-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.hero-btn:hover::before,
.cta-btn:hover::before,
.cta-main-btn:hover::before {
    opacity: 0.6;
}

/* スマホ最適化 */
@media (max-width: 375px) {
    .hero-btn { font-size: 18px; padding: 18px 40px; }
    .manga-title { font-size: 24px; }
    .section-title { font-size: 22px; }
    .cta-title { font-size: 26px; }
    .cta-main-btn { font-size: 20px; padding: 20px 45px; }
    .step { padding: 25px 20px; }
}

/* 横画面対応 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero { min-height: auto; padding: 40px 20px; }
}

/* パフォーマンス最適化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
