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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000000;
    padding: 20px;
}

/* 言語切り替えボタン */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #333333;
    background-color: transparent;
    color: #333333;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.lang-btn:hover {
    border-color: #333333;
    background-color: #f0f0f0;
}

.lang-btn.active {
    background-color: #333333;
    color: white;
    border-color: #333333;
}

/* メインコンテナ */
.error-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    text-align: center;
    z-index: 2;
    padding: 20px;
}

/* エラーコード */
.error-code {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    perspective: 1000px;
}

.code-text {
    font-size: 120px;
    font-weight: 900;
    color: #000000;
    text-shadow: none;
}

/* テキスト要素 */
.error-title {
    font-size: 42px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: none;
}

.error-message {
    font-size: 18px;
    color: #333333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.error-details {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.code-highlight {
    color: #d32f2f;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* ボタン */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #333333;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #555555;
}

.btn-primary:active {
    background-color: #222222;
}

.btn-secondary {
    background-color: transparent;
    color: #333333;
    border: 2px solid #333333;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.btn-secondary:active {
    background-color: #e0e0e0;
}

/* 提案セクション */
.suggestion-section {
    background-color: #f0f0f0;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.suggestion-section h3 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 600;
}

/* コンタクトセクション */
.contact-section {
    background-color: #e3f2fd;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #bbdefb;
}

.contact-section h3 {
    font-size: 18px;
    color: #1976d2;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-section p {
    font-size: 15px;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    background-color: #1565c0;
}

.suggestions {
    list-style: none;
    text-align: left;
}

.suggestions li {
    padding: 10px 0;
    padding-left: 30px;
    color: #333333;
    font-size: 15px;
    position: relative;
    line-height: 1.5;
}

.suggestions li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 18px;
}

.suggestions li:hover {
    color: #000000;
}

/* 浮遊図形 */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: white;
    top: -50px;
    left: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: white;
    bottom: -50px;
    right: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: white;
    top: 50%;
    right: 10%;
}

/* アニメーション削除 */

/* レスポンシブ */
@media (max-width: 768px) {
    .error-code {
        gap: 10px;
        margin-bottom: 30px;
    }

    .code-digit {
        font-size: 80px;
    }

    .error-title {
        font-size: 32px;
    }

    .error-message {
        font-size: 16px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .contact-section {
        padding: 15px;
    }

    .contact-section h3 {
        font-size: 16px;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .error-code {
        gap: 5px;
    }

    .code-digit {
        font-size: 60px;
    }

    .error-animation {
        width: 40px;
        height: 40px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-message {
        font-size: 14px;
    }

    .suggestion-section {
        padding: 15px;
    }

    .suggestion-section h3 {
        font-size: 16px;
    }

    .suggestions li {
        font-size: 13px;
        padding-left: 25px;
    }
}
