* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP';
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #e4943f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-home {
    color: white;
    text-decoration: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-background.webp');
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.welcome-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.welcome-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.server-info {
    text-align: center;
}

.server-info p {
    margin-bottom: 0.5rem;
}

.server-ip {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffeb3b;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.server-status {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.status-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4caf50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.version-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.version-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.version-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4caf50;
}

.join-button {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Gallery Section */
/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.gallery p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background: white;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.gallery-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.02);
}

.feature-card h3 {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.5rem;
    color: #333;
}

.feature-card p {
    padding: 0 1.5rem;
    color: #666;
    line-height: 1.6;
}

.feature-link {
    display: inline-block;
    margin: 1.5rem;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ec8a09, #ec8a09);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.feature-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Page Styles */
.page-header {
    background: url('../images/header.webp');
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Styles */
.content {
    padding: 4rem 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-card, .sidebar-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.content-card h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-card h3 {
    color: #ec8a09;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content-card h3.ok-list {
    color: #2e7d32;
}

.content-card h3.ng-list {
    color: #c62828;
}

.content-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-card li {
    margin-bottom: 0.5rem;
    color: #666;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #ec8a09;
    padding-bottom: 0.5rem;
}

.connection-info p {
    margin-bottom: 0.8rem;
    color: #666;
}

.connection-info .server-ip {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ec8a09;
}

/* Rules Page Styles */
.rules-content {
    max-width: 800px;
    margin: 0 auto;
}

.rule-section {
    margin-bottom: 3rem;
}

.rule-section h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #ec8a09;
    padding-bottom: 0.5rem;
}

.rule-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.rule-card.important {
    border-left: 5px solid #f44336;
    background: #fff5f5;
}

.rule-card.warning {
    border-left: 5px solid #ff9800;
    background: #fff8e1;
}

.rule-card.info {
    border-left: 5px solid #ec8a09;
    background: #f3f8ff;
}

.rule-card.contact {
    border-left: 5px solid #4caf50;
    background: #f8fff8;
}

.rule-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.rule-card ul {
    margin-left: 1.5rem;
}

.rule-card li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Guide Page Styles */
.guide-content {
    max-width: 900px;
    margin: 0 auto;
}

.guide-section {
    margin-bottom: 4rem;
}

.guide-section h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #ec8a09;
    padding-bottom: 0.5rem;
}

.guide-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.guide-card.welcome {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #ec8a09;
}

.guide-card.contact {
    border-left: 5px solid #4caf50;
    background: #f8fff8;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: #ec8a09;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* ギャラリーとフィーチャーのアニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #ec8a09;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: 60vh;
    }

    .welcome-box {
        padding: 2rem;
    }

    .welcome-box h2 {
        font-size: 2rem;
    }

    .version-info {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .gallery h2 {
        font-size: 2rem;
    }
    
    .gallery p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }

        .server-status {
        margin-bottom: 1rem;
    }
    
    .status-item {
        padding: 0.8rem 1.5rem;
    }
    
    .status-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .welcome-box {
        padding: 1.5rem;
    }

    .welcome-box h2 {
        font-size: 1.8rem;
    }

    .server-ip {
        font-size: 1.5rem !important;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }    .rule-card, .guide-card, .content-card {
        padding: 1.5rem;
    }

    .gallery {
        padding: 3rem 0;
    }
    
    .gallery h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 180px;
    }
}

.rank {
    font-weight: 700;
    color: #333;
}

.player {
    font-weight: 500;
    color: #ec8a09;
}

.value {
    font-weight: 600;
    color: #666;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.monthly-goals {
    display: grid;
    gap: 1.5rem;
}

.goal-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.goal-title {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.8rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Links Page Styles */
.links-content {
    max-width: 1000px;
    margin: 0 auto;
}

.link-section {
    margin-bottom: 4rem;
}

.link-section h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid #ec8a09;
    padding-bottom: 0.5rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.link-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.link-card.main {
    border-left: 4px solid #4caf50;
}

.link-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.link-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.link-info p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
    }

    .link-card {
        flex-direction: column;
        text-align: center;
    }
}
