/* DMMウィジェット - 公式ウィジェット用 */
.dmm-widget-container {
    position: fixed;
    top: 200px;
    right: 20px;
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: dmmWidgetSlideIn 0.5s ease-out;
}

.dmm-widget-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    flex-shrink: 0;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
}

.dmm-widget-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@keyframes dmmWidgetSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dmm-widget-container.hiding {
    animation: dmmWidgetSlideOut 0.3s ease-in forwards;
}

@keyframes dmmWidgetSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 既存のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c2b 0%, #1a1a3e 50%, #2d1b69 100%);
    color: white;
    overflow: hidden;
    height: 100vh;
}

#gameContainer {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#ui {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 20px;
    background: rgba(0, 0, 0, 0.9) url('logo.png') no-repeat left center;
    background-size: auto 150px;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #4a90e2;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    min-height: 160px;
}

#uiContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 280px;
    flex: 1;
}

#stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.stat-label {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.stat-item span:last-child {
    font-size: 16px;
    font-weight: bold;
    color: #4af;
}

#controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

button {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: linear-gradient(45deg, #357abd, #2c5d9a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Twitterシェアボタン専用スタイル */
#twitterShareBtn {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    color: white;
    border: 2px solid #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 3px #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#twitterShareBtn:hover {
    background: linear-gradient(45deg, #1a1a1a, #333333);
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

#twitterShareBtn::before {
    content: "𝕏";
    font-family: "Times New Roman", serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 2px #000;
}

#seedInput {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    min-width: 150px;
}

#seedInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#seedInput:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
}

#gameInfo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.info-item {
    font-size: 12px;
}

.info-label {
    color: #ccc;
    margin-right: 8px;
}

#gameCanvas {
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, #0f1419 0%, #020308 70%);
    cursor: crosshair;
    display: block;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* インストラクションとクレジット */
#instructions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    z-index: 1000;
}

#instructions p {
    margin: 5px 0;
    font-size: 14px;
    color: #ccc;
}

.credits-inline {
    margin-top: 8px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.credits-inline a {
    color: #FFD700;
    font-weight: bold;
    text-decoration: none;
}

.credits-inline a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* パーティクルエフェクト用のスタイル */
.star-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1s ease-out forwards;
}

@keyframes sparkle {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* ===== レスポンシブデザイン（大幅に改善） ===== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
    #ui {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 15px;
        background: rgba(0, 0, 0, 0.9) url('logo.png') no-repeat center top 10px;
        background-size: auto 80px;
        min-height: 120px;
    }
    
    #uiContent {
        margin-left: 0;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    /* ステータス表示の改善 */
    #stats {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        order: 1;
    }
    
    .stat-item {
        min-width: 65px;
        padding: 6px 8px;
        flex: 1;
        max-width: 85px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stat-item span:last-child {
        font-size: 14px;
    }
    
    /* コントロール部分の改善 */
    #controls {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        order: 2;
    }
    
    button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
        flex: 1;
        max-width: 120px;
    }
    
    #twitterShareBtn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
        flex: 1;
        max-width: 120px;
    }
    
    #seedInput {
        min-width: 100px;
        flex: 1;
        max-width: 150px;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    /* ゲーム情報の改善 */
    #gameInfo {
        text-align: center;
        order: 3;
        margin-top: 8px;
    }
    
    .info-item {
        font-size: 11px;
    }
    
    /* インストラクションの改善 */
    #instructions {
        position: static;
        transform: none;
        margin: 8px auto 0;
        max-width: 95%;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #instructions p {
        margin: 3px 0;
        font-size: 12px;
    }
    
    .credits-inline {
        font-size: 10px;
        gap: 8px;
        margin-top: 6px;
    }
    
    #gameCanvas {
        width: 95vw;
        max-width: 800px;
        height: auto;
        aspect-ratio: 4/3;
        margin: 10px auto;
    }
      /* DMMウィジェットのモバイル対応 */
    .dmm-widget-container {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        width: auto;
        max-width: calc(100vw - 20px);
        z-index: 2000;
    }
    
    .dmm-widget-close-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
        top: 3px;
        right: 3px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
        min-width: 30px;
        min-height: 30px;
        max-width: 30px;
        max-height: 30px;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    #ui {
        padding: 10px 8px;
        background: rgba(0, 0, 0, 0.9) url('logo.png') no-repeat center top 8px;
        background-size: auto 60px;
        min-height: 100px;
        gap: 10px;
        position: relative;
    }
    
    /* スマホでのロゴ透明度調整 */
    #ui::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 60px;
        background: url('logo.png') no-repeat center;
        background-size: auto 60px;
        opacity: 0.8;
        pointer-events: none;
        z-index: 1;
    }
    
    /* スマートフォンでロゴの透明度を80%に設定 */
    #ui::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 60px;
        background: url('logo.png') no-repeat center;
        background-size: auto 60px;
        opacity: 0.8;
        pointer-events: none;
    }
    
    #uiContent {
        gap: 10px;
    }
    
    /* ステータス部分をよりコンパクトに */
    #stats {
        gap: 6px;
    }
    
    .stat-item {
        min-width: 55px;
        padding: 5px 6px;
        font-size: 10px;
        max-width: 75px;
    }

    .stat-label {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .stat-item span:last-child {
        font-size: 12px;
    }
    
    /* コントロール部分をコンパクトに */
    #controls {
        gap: 6px;
    }
    
    button {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 55px;
        max-width: 100px;
    }
    
    #twitterShareBtn {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 55px;
        max-width: 100px;
    }
    
    #seedInput {
        min-width: 80px;
        font-size: 10px;
        padding: 6px 8px;
        max-width: 120px;
    }
    
    #gameInfo {
        margin-top: 6px;
    }
    
    .info-item {
        font-size: 10px;
    }
    
    #instructions {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    #instructions p {
        font-size: 11px;
    }
    
    .star-info {
        display: none; /* 画面が小さい場合は星情報を非表示 */
    }

    .credits-inline {
        font-size: 9px;
        gap: 6px;
    }    .dmm-widget-container {
        top: 15px;
        right: 5px;
        max-width: calc(100vw - 10px);
    }

    .modal-content {
        width: 98vw;
        padding: 15px;
    }
    
    #gameCanvas {
        width: 98vw;
        max-width: 800px;
    }
}

/* 極小画面（320px以下） */
@media (max-width: 320px) {
    #ui {
        background: rgba(0, 0, 0, 0.9) url('logo.png') no-repeat center top 5px;
        background-size: auto 50px;
        min-height: 85px;
        padding: 8px 5px;
        gap: 8px;
    }
    
    #uiContent {
        gap: 8px;
    }
    
    /* ステータスを2行に分割 */
    #stats {
        gap: 4px;
        justify-content: space-between;
    }
    
    .stat-item {
        min-width: 45px;
        padding: 4px 5px;
        font-size: 9px;
        max-width: 60px;
        flex: 1;
    }

    .stat-label {
        font-size: 8px;
        margin-bottom: 1px;
    }
    
    .stat-item span:last-child {
        font-size: 11px;
    }
    
    /* コントロールも小さく */
    button {
        padding: 5px 6px;
        font-size: 9px;
        min-width: 45px;
        max-width: 80px;
    }
    
    #twitterShareBtn {
        padding: 5px 6px;
        font-size: 9px;
        min-width: 45px;
        max-width: 80px;
    }
    
    #seedInput {
        min-width: 60px;
        font-size: 9px;
        padding: 5px 6px;
        max-width: 90px;
    }
    
    .info-item {
        font-size: 9px;
    }
    
    #instructions {
        font-size: 10px;
        padding: 5px 6px;
    }
    
    .credits-inline {
        font-size: 8px;
    }
}

/* スマートフォン横画面対応 */
@media (max-width: 768px) and (orientation: landscape) {
    #ui {
        background: rgba(0, 0, 0, 0.9) url('logo.png') no-repeat left center;
        background-size: auto 50px;
        min-height: 70px;
        padding: 8px 10px;
    }
    
    #uiContent {
        margin-left: 120px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    #stats {
        order: 1;
        flex: 1;
        gap: 6px;
        justify-content: flex-start;
    }
    
    .stat-item {
        min-width: 50px;
        max-width: 65px;
        font-size: 9px;
    }
    
    #controls {
        order: 2;
        flex: 1;
        justify-content: flex-end;
        gap: 6px;
    }
    
    button, #twitterShareBtn {
        padding: 5px 8px;
        font-size: 9px;
        min-width: 50px;
    }
    
    #seedInput {
        min-width: 60px;
        font-size: 9px;
    }
    
    #gameInfo {
        order: 3;
        flex-basis: 100%;
        margin-top: 4px;
        text-align: center;
    }
    
    .info-item {
        font-size: 9px;
    }
}

/* 特殊エフェクト */
.upgrade-notification {
    position: absolute;
    color: #4af;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 10px #4af;
    animation: float-up 2s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.2);
    }
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    border: 2px solid #4a90e2;
    box-shadow: 0 0 50px rgba(74, 144, 226, 0.3);
    animation: modal-appear 0.5s ease-out;
}

@keyframes modal-appear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.clear-text {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
}

.clear-stats {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.clear-stats p {
    font-size: 18px;
    margin: 10px 0;
    color: #4af;
}

.thank-you {
    margin: 30px 0;
}

.thank-you p {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    margin: 10px 0;
}

.clear-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.clear-button {
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.tweet-button {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    color: white;
    border: 2px solid #ffffff;
    position: relative;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 3px #000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tweet-button:hover {
    background: linear-gradient(45deg, #1a1a1a, #333333);
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.tweet-button::before {
    content: "𝕏";
    font-family: "Times New Roman", serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 2px #000;
}

/* サウンド設定ダイアログ */
.settings-content {
    max-width: 500px;
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 100%);
}

.settings-content h2 {
    font-size: 28px;
    color: #4af;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(68, 170, 255, 0.3);
}

.settings-content p {
    color: #ccc;
    margin-bottom: 25px;
}

.settings-group {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.setting-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 28px;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(74, 144, 226, 0.3);
    border-radius: 3px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90e2;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #357abd;
}

.volume-value {
    color: #4af;
    min-width: 45px;
    text-align: right;
}

.settings-button {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* モバイル用仮想コントロール */
.mobile-controls {
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.mobile-control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-control-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.mobile-control-btn .btn-label {
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.9;
}

.mobile-control-center {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.mobile-instruction {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* レスポンシブ対応: タブレット以下でモバイルコントロールを表示 */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
}

/* 更新履歴モーダルのスタイル */
.update-history-content {
    max-width: 600px;
    max-height: 80vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(53, 122, 189, 0.2));
}

.modal-header h2 {
    margin: 0;
    color: #4af;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.update-history-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: 60vh;
}

.update-history-list {
    padding: 20px 25px;
}

.update-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.update-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 175, 255, 0.3);
}

.update-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4af, #357abd, #4af);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.update-version {
    font-size: 18px;
    font-weight: bold;
    color: #4af;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.update-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.update-changes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-changes li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.update-changes li:last-child {
    border-bottom: none;
}

.update-changes li:hover {
    color: #4af;
    padding-left: 10px;
}

.modal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    text-align: center;
}

.update-history-close-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.update-history-close-btn:hover {
    background: linear-gradient(45deg, #357abd, #2c5d9a);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.3);
}

/* スクロールバーのスタイリング */
.update-history-container::-webkit-scrollbar {
    width: 8px;
}

.update-history-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.update-history-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4af, #357abd);
    border-radius: 4px;
}

.update-history-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #357abd, #2c5d9a);
}