:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --hunter-color: #e74c3c;
    --runner-color: #3498db;
    --buddy-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo {
    font-size: 2rem;
}

.brand-text {
    font-family: 'Rajdhani', sans-serif;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn.active {
    background: var(--secondary-color);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: #f8f9fa;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-color);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Animation */
.hero-animation {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    animation: float 3s ease-in-out infinite;
}

.card-hunter {
    top: -50px;
    right: 0;
    animation-delay: 0s;
}

.card-runner {
    top: 50px;
    right: 150px;
    animation-delay: 1s;
}

.card-compass {
    top: 150px;
    right: 50px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-family: 'Rajdhani', sans-serif;
}

/* Rules Section */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rule-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.rule-card:hover {
    transform: translateY(-5px);
}

.rule-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rule-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.rule-card ul {
    list-style: none;
    padding-left: 1rem;
}

.rule-card li {
    margin: 0.5rem 0;
}

/* Gameplay Flow */
.gameplay-flow {
    margin-top: 4rem;
}

.gameplay-flow h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.flow-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--secondary-color);
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.step-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Features Section */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Commands Section */
.commands-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.command-category h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.command-item code {
    display: block;
    font-family: 'Courier New', monospace;
    background: var(--dark-color);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.command-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Tips Section */
.tips-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 1rem;
}

.tab-btn.active {
    background: var(--secondary-color);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color);
}

.tip-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

/* Download Section */
.download-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.download-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.requirements-list {
    list-style: none;
    padding-left: 1rem;
}

.requirements-list li::before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
}

.install-steps {
    padding-left: 1.5rem;
}

.install-steps li {
    margin: 0.5rem 0;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.download-btn img {
    height: 60px;
    transition: transform 0.3s;
}

.download-btn:hover img {
    transform: scale(1.05);
}

/* Economy Section */
.economy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.economy-header h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.economy-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.earning-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.earning-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hunter-card {
    border-top: 4px solid var(--hunter-color);
}

.runner-card {
    border-top: 4px solid var(--runner-color);
}

.earning-role {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.earning-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.earning-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.earning-name {
    font-weight: 600;
    color: var(--text-color);
}

.earning-value {
    font-weight: 700;
    color: var(--primary-color);
}

.economy-note {
    margin-top: 3rem;
    padding: 2rem;
    background: #f0f9ff;
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
}

.economy-note h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.economy-note p {
    color: #666;
    line-height: 1.8;
}

/* Shop Section */
.shop-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.shop-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.shop-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.shop-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.shop-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.item-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.item-restriction {
    font-size: 0.9rem;
    color: #666;
}

.item-limit, .item-cooldown {
    font-size: 0.85rem;
    color: var(--warning-color);
    margin-top: 0.25rem;
    font-weight: 600;
}

.shop-item.special-limit {
    background: #fff9e6;
    border-color: var(--warning-color);
}

.shop-item.special-cooldown {
    background: #e6f7ff;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .language-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-animation {
        display: none;
    }

    .flow-timeline {
        flex-direction: column;
    }

    .flow-timeline::before {
        display: none;
    }

    .flow-step {
        margin-bottom: 2rem;
    }
    
    .earning-methods {
        grid-template-columns: 1fr;
    }
    
    .shop-items {
        grid-template-columns: 1fr;
    }
    
    .earning-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}