/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #00ffff;
    --primary-purple: #bd00ff;
    --primary-blue: #0066ff;
    --accent-red: #ff0055;
    --accent-yellow: #ffcc00;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #151520;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-glow: rgba(0, 255, 255, 0.3);
    --section-spacing: 2.5rem;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    width: 100%;
    min-height: 100vh;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    scroll-behavior: smooth;
}

/* リンクスタイル */
a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

a:visited {
    color: #00ccff;
}

/* パーティクル背景 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* グローバルアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-cyan), 0 0 10px var(--primary-cyan);
    }
    50% {
        box-shadow: 0 0 10px var(--primary-cyan), 0 0 20px var(--primary-cyan), 0 0 30px var(--primary-cyan);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    opacity: 0;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.animate-in.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-in.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-in.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* ボタンスタイル */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #000000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
    vertical-align: middle;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.5);
}

.btn-discord.copied {
    background: #28a745;
}

/* カードスタイル */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

/* グラデーションテキスト */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ナビゲーション */
nav {
    transition: all 0.3s ease;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav.scrolled {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.1);
}

nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    width: 100%;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

nav .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav .nav-links a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

nav .mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
}

nav .mobile-menu.active {
    display: flex;
}

nav .mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

nav .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* コンテナの中央配置 */
.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl,
.max-w-3xl {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* レスポンシブコンテナサイズ */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

/* フィーチャーアイコン */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(189, 0, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

/* プライシングカード */
.pricing-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.pricing-card.featured {
    border-color: var(--primary-cyan);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.badge-primary {
    background: rgba(0, 255, 255, 0.2);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

/* グリッドレイアウト */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* フレックスレイアウト */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    nav .nav-links .btn-primary {
        padding: 12px 24px;
    }

    .mobile-menu .btn-primary {
        width: 100%;
        display: block;
    }

    .card {
        padding: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .md\:grid-cols-2,
    .md\:grid-cols-3,
    .md\:grid-cols-4,
    .lg\:grid-cols-3,
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .text-5xl,
    .text-6xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .text-7xl {
        font-size: 3rem;
        line-height: 1.2;
    }

    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ローディングスピナー */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-cyan);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* スクロールバーカスタマイズ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* セクション区切り線 */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    margin: 60px auto;
    max-width: 80%;
}

/* テキスト配置 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* マージン・パディング */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

/* 幅 */
.w-full {
    width: 100%;
}

/* 相対位置 */
.relative {
    position: relative;
}

/* Z-index */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* インラインブロック */
.inline-block {
    display: inline-block;
}

/* ブロック */
.block {
    display: block;
}

/* Hidden */
.hidden {
    display: none;
}

/* スペース */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

/* レスポンシブ表示 */
@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: block;
    }

    .sm\:flex-row {
        flex-direction: column;
    }

    .sm\:px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav .nav-links {
        display: none !important;
    }

    nav .mobile-menu-toggle {
        display: block !important;
    }

    .flex-col.sm\:flex-row {
        flex-direction: column;
    }

    .flex-col.sm\:flex-row > * {
        width: 100%;
    }

    /* モバイルで画像サイズを調整 */
    section img[alt*="スクリプト"],
    section img[alt*="チート"] {
        max-width: 100% !important;
        height: auto !important;
    }

    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none !important;
    }

    .md\:block {
        display: block;
    }

    nav .nav-links {
        display: flex !important;
    }

    nav .mobile-menu-toggle {
        display: none !important;
    }

    nav .mobile-menu {
        display: none !important;
    }
}

/* FAQ Styles */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: white;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-cyan);
}

.faq-question i:first-child {
    color: var(--primary-cyan);
    margin-right: 0.75rem;
}

.faq-question i:last-child {
    transition: transform 0.3s ease;
    color: var(--primary-cyan);
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer strong {
    color: white;
    font-weight: 600;
}
