/* ベース設定・CSS変数 */
:root {
    --bg-color: #121212;
    --bg-darker: #0a0a0a;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --primary-color: #4ade80; /* マイクラ風のグリーン */
    --primary-hover: #22c55e;
    --card-bg: #1e1e1e;
}

/* リセットCSS & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ヘッダー */
.header {
    background-color: rgba(18, 18, 18, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav a {
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

/* ヒーローセクション */
.hero {
    /* 背景画像をWebPで用意してください。サイズを軽くすることが必須です */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/assets/images/mk.webp') center/cover no-repeat;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* IPコピーツール */
.ip-box {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
}

#server-ip {
    padding: 0.8rem 1.2rem;
    font-family: monospace;
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* セクション共通 */
.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* グリッドレイアウト（特徴カード） */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card h3 {
    padding: 1rem 1rem 0.5rem;
}

.card p {
    padding: 0 1rem 1.5rem;
    color: var(--text-muted);
}

/* フッター */
.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #000;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* トースト通知 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav a {
        margin: 0 0.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    
    .ip-box {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .btn-primary {
        width: 100%;
    }
}
