/**
 * Gozigen Gokigenz 3D - ロゴスタイル
 * 新しいキャラクターデザインに合わせたスタイリング
 */

/* ゲームタイトルロゴ */
.ggz3d-game-logo {
    position: relative;
    display: inline-block;
    padding: 20px;
    margin: 20px auto;
    text-align: center;
}

/* タイトルテキストスタイル */
.ggz3d-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Gozigen */
.ggz3d-title-top {
    font-family: 'Arial Rounded MT Bold', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #3B8FD8;
    text-transform: none;
    letter-spacing: -1px;
    line-height: 0.9;
    text-shadow: 
        2px 2px 0 #2563A0,
        4px 4px 8px rgba(59, 143, 216, 0.3);
    animation: float 3s ease-in-out infinite;
    font-style: italic;
    transform: skewX(-5deg);
}

/* Gokigenz */
.ggz3d-title-bottom {
    font-family: 'Arial Rounded MT Bold', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #20BF6B;
    text-transform: none;
    letter-spacing: -1px;
    line-height: 0.9;
    text-shadow: 
        2px 2px 0 #0E7938,
        4px 4px 8px rgba(32, 191, 107, 0.3);
    animation: float 3s ease-in-out infinite 0.5s;
    font-style: italic;
    transform: skewX(-5deg);
}

/* 日本語サブタイトル */
.ggz3d-subtitle-jp {
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.ggz3d-subtitle-jp .text-blue {
    color: #2563A0;
}

.ggz3d-subtitle-jp .text-green {
    color: #0E7938;
}

/* キャラクター装飾 */
.ggz3d-character {
    position: absolute;
    animation: bounce 2s ease-in-out infinite;
}

/* 青い筒型キャラクター（左） */
.ggz3d-cylinder-blue {
    width: 80px;
    height: 110px;
    left: -120px;
    bottom: 0;
    background: linear-gradient(180deg, #2f4169 0%, #3d5378 50%, #2f4169 100%);
    border-radius: 40px 40px 45% 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(47, 65, 105, 0.4);
}

/* 青の笑顔 */
.ggz3d-cylinder-blue::before {
    content: "";
    position: absolute;
    top: 35px;
    left: 15px;
    width: 8px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 25px 0 0 white;
}

/* 青の笑っている口 */
.ggz3d-cylinder-blue::after {
    content: "";
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 18px;
    border: 3px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
}

/* 青のひらめきマーク */
.ggz3d-cylinder-blue .exclamation {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #FFD700;
    animation: bounce-exclamation 2s ease-in-out infinite;
}

.ggz3d-cylinder-blue .exclamation::before {
    content: "💡";
}

/* 緑の筒型キャラクター（右） */
.ggz3d-cylinder-green {
    width: 80px;
    height: 110px;
    right: -120px;
    top: 0;
    background: linear-gradient(180deg, #20bf6b 0%, #26d07c 50%, #20bf6b 100%);
    border-radius: 40px 40px 45% 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(32, 191, 107, 0.4);
}

/* 緑の笑顔 */
.ggz3d-cylinder-green::before {
    content: "";
    position: absolute;
    top: 35px;
    left: 15px;
    width: 8px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 25px 0 0 white;
}

/* 緑の笑っている口 */
.ggz3d-cylinder-green::after {
    content: "";
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 18px;
    border: 3px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
}

/* 緑のひらめきマーク */
.ggz3d-cylinder-green .exclamation {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #FFD700;
    animation: bounce-exclamation 2s ease-in-out infinite 0.5s;
}

.ggz3d-cylinder-green .exclamation::before {
    content: "💡";
}

/* 曲線アーチ */
.ggz3d-arch {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60px;
    border: 4px solid #4A90E2;
    border-bottom: none;
    border-radius: 150px 150px 0 0;
    opacity: 0.6;
}

/* アニメーション */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce-exclamation {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        transform: translateX(-50%) translateY(-5px) scale(1.2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(5px) rotate(5deg);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ggz3d-game-logo {
        padding: 15px;
        margin: 10px auto;
    }
    
    .ggz3d-title-top,
    .ggz3d-title-bottom {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .ggz3d-subtitle-jp {
        font-size: 1rem;
        gap: 10px;
    }
    
    .ggz3d-cylinder-blue,
    .ggz3d-cylinder-green {
        width: 50px;
        height: 70px;
    }
    
    .ggz3d-cylinder-blue {
        left: -60px;
    }
    
    .ggz3d-cylinder-green {
        right: -60px;
    }
    
    .ggz3d-cylinder-blue::before,
    .ggz3d-cylinder-green::before {
        top: 25px;
        left: 10px;
        width: 6px;
        height: 8px;
        box-shadow: 18px 0 0 white;
    }
    
    .ggz3d-cylinder-blue::after,
    .ggz3d-cylinder-green::after {
        top: 40px;
        width: 25px;
        height: 12px;
    }
    
    .ggz3d-cylinder-blue .exclamation,
    .ggz3d-cylinder-green .exclamation {
        font-size: 20px;
        top: -20px;
    }
    
    .ggz3d-arch {
        display: none;
    }
    
    .ggz3d-logo-bg {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ggz3d-title-top,
    .ggz3d-title-bottom {
        font-size: 1.5rem;
    }
    
    .ggz3d-subtitle-jp {
        font-size: 0.9rem;
    }
    
    .ggz3d-cylinder-blue,
    .ggz3d-cylinder-green {
        position: static;
        margin: 0 10px;
        display: inline-block;
        vertical-align: middle;
    }
    
    .game-logo-container {
        padding: 10px;
    }
}

/* ゲーム内ロゴ表示 */
#ggz3d-menu .game-logo-container {
    margin: 30px auto;
    max-width: 600px;
}

/* 3D効果 */
.ggz3d-logo-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.ggz3d-logo-3d:hover .ggz3d-title-top {
    transform: rotateY(-10deg) translateZ(20px);
    transition: transform 0.3s ease;
}

.ggz3d-logo-3d:hover .ggz3d-title-bottom {
    transform: rotateY(10deg) translateZ(20px);
    transition: transform 0.3s ease;
}

/* キラキラエフェクト */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s linear infinite;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}

/* カラフルな背景グラデーション */
.ggz3d-logo-bg {
    background: linear-gradient(
        135deg,
        rgba(74, 144, 226, 0.1) 0%,
        rgba(32, 191, 107, 0.1) 50%,
        rgba(37, 99, 160, 0.1) 100%
    );
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}