.storage-tile.resource-tile {
    background: linear-gradient(135deg, #2a3a5a, #1a2a4a);
    display: flex;
    align-items: center;
    padding: 15px;
    min-height: 80px;
}
.storage-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* レスポンシブ対応の調整 */
@media (max-width: 768px) {
    .storage-container {
        max-height: 75vh;
        padding: 15px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .storage-container {
        max-height: 70vh;
        padding: 10px;
        margin: 5px;
    }
}

/* タイルグリッドシステム */
.tile-storage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(10, 20, 40, 0.8);
    border-radius: 15px;
    border: 2px solid #2a4a7a;
}

/* 基本タイルスタイル */
.storage-tile {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.storage-tile:not(.item-locked):hover {
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.storage-tile.item-locked {
    cursor: not-allowed;
    opacity: 0.7;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.lock-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
}

.item-quantity {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* 鉱石資源タイルのレイアウト */
.resource-tile {
    background: linear-gradient(135deg, #2a3a5a, #1a2a4a);
    display: flex;
    align-items: center;
    padding: 15px;
    min-height: 80px;
}

.resource-icon {
    font-size: 2rem !important; /* 所有アイテムと同じサイズに */
    margin-right: 15px;
    filter: drop-shadow(0 0 10px currentColor);
    flex-shrink: 0;
    width: 40px; /* サイズを固定 */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.resource-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.resource-amount {
    font-size: 1.2rem; /* 少し小さくしてバランス調整 */
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    line-height: 1.2;
    margin-bottom: 4px;
}

.resource-name {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #e0e0e0;
    text-align: left;
    line-height: 1.3;
}

/* アイテムタイル */
.item-tile {
    background: linear-gradient(135deg, #2a1a4a, #1a0d2a);
}

.item-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px currentColor);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.item-name {
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 500;
}

.item-quantity {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* セキュリティ - ロック表示 */
.item-locked {
    position: relative;
    border-color: #ff6b6b !important;
    background: linear-gradient(135deg, #4a1a1a, #2a0d0d) !important;
}

.lock-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.9rem;
    color: #ff6b6b;
    filter: drop-shadow(0 0 5px #ff6b6b);
    z-index: 2;
}

/* ロックされたタイルのオーバーレイ */
.item-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.1);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* カテゴリセクション */
.storage-category {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid;
}

.category-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.category-count {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* カテゴリ色 */
.category-resources { border-left-color: #00aaff; }
.category-equipment { border-left-color: #ffaa00; }
.category-consumables { border-left-color: #00ff88; }
.category-special { border-left-color: #ff6bff; }

/* セキュリティ設定パネル */
.security-panel {
    background: rgba(20, 30, 50, 0.9);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.security-title {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.security-option:hover {
    background: rgba(255, 107, 107, 0.2);
}

.security-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* 一括操作ボタン */
.batch-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.batch-btn {
    padding: 8px 16px;
    border: 1px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

/* 空きスロット */
.empty-tile {
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.02) 10px,
        rgba(255,255,255,0.02) 20px
    );
    border: 2px dashed rgba(255,255,255,0.3);
    opacity: 0.6;
}

.empty-tile:hover {
    border-color: #00ffff;
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .tile-storage {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .storage-tile {
        padding: 10px;
    }
    
    .resource-icon, .item-icon {
        font-size: 2rem;
    }
}

/* storage-system.css に追加 */

/* リソース増加アニメーション */
.resource-increasing {
    animation: resourceIncrease 0.6s ease;
}

@keyframes resourceIncrease {
    0% { 
        transform: scale(1);
        color: white;
    }
    50% { 
        transform: scale(1.3);
        color: #00ff88;
        text-shadow: 0 0 20px #00ff88;
    }
    100% { 
        transform: scale(1);
        color: white;
    }
}

/* フローティングテキスト用スタイル */
.floating-text {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 0 10px currentColor;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

/* 鉱石種類別の色 */
.floating-text.common { color: #888888; }
.floating-text.rare { color: #C0C0C0; }
.floating-text.epic { color: #FFD700; }

/* ストレージアイテムの使用ボタンスタイル */
.use-button {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #00ffff;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.use-button:hover {
    background: #00cccc;
}

/* 鉱石アイコンの装飾強化（オプション） */
.resource-icon {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* 鉱石種類別の色付け（オプション） */
.resource-tile:nth-child(1) .resource-icon {
    color: #888888; /* 鉄 - 灰色 */
    border-color: #666666;
    box-shadow: 
        0 0 15px rgba(136, 136, 136, 0.4),
        inset 0 0 10px rgba(136, 136, 136, 0.1);
}

.resource-tile:nth-child(2) .resource-icon {
    color: #C0C0C0; /* 銀 - 銀色 */
    border-color: #A0A0A0;
    box-shadow: 
        0 0 15px rgba(192, 192, 192, 0.5),
        inset 0 0 10px rgba(192, 192, 192, 0.1);
}

.resource-tile:nth-child(3) .resource-icon {
    color: #FFD700; /* 金 - 金色 */
    border-color: #CC9900;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        inset 0 0 10px rgba(255, 215, 0, 0.1);
}