:root {
    --primary: #f16363;
    --bg: #fafafa;
    --text: #1f2937;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter','Noto Sans JP',sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.title {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.server-info {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.server-info:hover {
    transform: translateY(-2px);
}

.server-address {
    font-family: 'Space Mono',monospace;
    font-size: 1.2rem;
    color: var(--primary);
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 6px;
    user-select: all;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #6b7280;
    font-size: 0.95rem;
}

.btn {
    display: block;
    text-decoration: none;
    width: 100%;
    padding: .7rem;
    margin-top: .5rem;
    border-radius: 6px;
    color: var(--card-bg);
    background-color: var(--primary);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.scroll-button {
    display: none;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--primary);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    animation: bounce 2s infinite;
}

.scroll-button:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.scroll-button i {
    font-size: 1.5rem;
}

@keyframes floating {
    0% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-10px)
    }

    100% {
        transform: translateY(0px)
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at top right, rgba(241, 99, 99, 0.1) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(229, 70, 70, 0.1) 0%, transparent 60%);
}

@media (max-width: 768px) {
    .container {
        padding: 0;
        justify-content: flex-start;
    }

    .header {
        margin-bottom: 2rem;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: linear-gradient(165deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
        padding: 2rem;
    }

    .title {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        scroll-margin-top: 1rem;
    }

    .server-info {
        width: 100%;
        max-width: 300px;
    }

    .server-address {
        font-size: 1rem;
    }

    .scroll-button {
        display: block;
    }
}