/* === GLOBAL STYLES === */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    color: #ddd;
    line-height: 1.7;
    scroll-behavior: smooth;
}

/* === HEADER === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    min-height: 70px;
}

.logo {
    font-size: 28px;
    color: #f39c12;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    flex-shrink: 0;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: #bbb;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

nav a:hover {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #f39c12;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

/* === HEADER RIGHT SECTION === */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

#lang-toggle {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #fff;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
}

#lang-toggle:hover {
    background: linear-gradient(135deg, #444 0%, #555 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* === CLOCK STYLES === */
.clock {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid rgba(243, 156, 18, 0.3);
    font-size: 14px;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

/* === USER INFO === */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    border: 3px solid #f39c12;
    object-fit: cover;
    flex-shrink: 0;
}

#login-btn, #logout-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #111;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
}

#login-btn:hover, #logout-btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

/* === MAIN === */
main {
    padding-top: 100px;
    padding-inline: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 80px 0;
    background: radial-gradient(ellipse at center, rgba(243, 156, 18, 0.05) 0%, transparent 70%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #bbb;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.install-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #111;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.install-btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* === HEADINGS === */
h1, h2, h3 {
    color: #f39c12;
    margin-bottom: 16px;
    font-weight: 600;
}

h1 {
    font-size: 32px;
    text-align: center;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 12px;
    margin-bottom: 30px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #f39c12 50%, transparent 100%);
}

h2 {
    font-size: 26px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

h3 {
    font-size: 22px;
}

/* === PARAGRAPHS === */
p {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 16px;
}

/* === TERMS SECTION === */
.terms-section {
    background: linear-gradient(135deg, #292929 0%, #2d2d2d 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #444;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* === STATUS CARD === */
.status-card {
    background: linear-gradient(135deg, #2b2b2b 0%, #333 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin: 40px auto;
    color: #eee;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status-card h3 {
    margin-top: 0;
    font-size: 24px;
}

/* === SUPPORT TEAM === */
.support-team {
    text-align: center;
    background: linear-gradient(135deg, #1f1f1f 0%, #252525 100%);
    padding: 50px 30px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.support-team h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.team-group {
    margin-top: 40px;
}

/* === MODERATER GRID - 4列固定 === */
.moderater-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
    justify-items: center;
}

.member-card {
    background: linear-gradient(135deg, #222 0%, #2a2a2a 100%);
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 250px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.member-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #f39c12;
    object-fit: cover;
}

.member-card p,
.member-card .comment {
    margin: 8px 0;
}

.member-card .comment {
    color: #f39c12;
    font-style: italic;
    font-size: 14px;
}

/* === SOCIAL LINKS === */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-links a {
    color: #f39c12;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links a:hover {
    background: #f39c12;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* === SERVER GRID === */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.server-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #333 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.server-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.server-card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.server-card p {
    margin-bottom: 20px;
    color: #bbb;
}

.server-card button {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    color: #111;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-card button:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    color: #888;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    border-top: 1px solid #333;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    header {
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* モデレーターグリッド: 3列 */
    .moderater-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        min-height: auto;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav {
        order: -1;
        margin: 0;
        width: 100%;
    }
    
    nav ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .clock {
        font-size: 12px;
        padding: 4px 8px;
        min-width: 100px;
    }
    
    #lang-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #login-btn, #logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    main {
        padding-top: 140px;
        padding-inline: 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .server-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* モデレーターグリッド: 2列 */
    .moderater-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    nav ul {
        gap: 8px;
    }
    
    nav a {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .clock {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 90px;
    }
    
    #lang-toggle, #login-btn, #logout-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    main {
        padding-top: 130px;
        padding-inline: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* モデレーターグリッド: 1列 */
    .moderater-grid {
        grid-template-columns: 1fr;
    }
}
/* サポートメンバー画像の保護 */
.team-member img,
.support-team img,
img.member-avatar {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}