body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.container {
    position: relative;
    width: 600px;
    height: 400px;
}

.meme-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.base-image,
.overlay-image {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.base-image {
    top: 0%; /* 上に少し配置 */
    left: 40%;
    width: 120%; /* エビの画像サイズを120%に設定 */
    height: auto; /* 高さは自動で調整 */
    transform: translate(-50%, 5%) rotate(340deg); /* 回転と中央下配置 */
}

.overlay-image {
    top: 15%; /* 上に近づけて配置 */
    left: 20%;
    width: 70%; /* momuteの画像サイズを70%に設定 */
    height: auto; /* 高さは自動で調整 */
    transform: translateX(-50%);
}

input[type="file"] {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

/* ドラッグ＆ドロップ機能を追加 */
.draggable {
    position: absolute;
    cursor: move;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

#momute {
    animation: bounce 1s infinite;
}

/* フッターのスタイリング */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #000000;
    text-align: center;
    padding: 10px 0;
    z-index: 4;
}

.footer-content {
    margin: 0 auto;
    max-width: 600px; /* コンテナの幅に合わせる */
}
