/* 基本スタイル */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #333;
    color: white;
}

.menu-btn {
    cursor: pointer;
    font-weight: bold;
}

/* メニューのオーバーレイ設定 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 背景を少し透過 */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* 初期状態は隠す */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* メニューが開いている時のクラス */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 閉じるボタン（×） */
.close-btn {
    position: absolute;
    top: 5px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* メニュー項目 */
.menu-items {
    list-style: none;
    padding: 0;
    text-align: left;
}

.menu-items li {
    margin: 5px 0;
}

.menu-items a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.menu-items a:hover {
    color: #ff9900;
}

.loop-container {
  overflow: hidden;
  width: 100%;
}

.loop-track {
  display: flex;
  width: 200%; /* 画像2枚分なので200% */
  animation: loop-animation 20s linear infinite;
}

.loop-track img {
  width: 50%; /* 親要素（200%）の半分、つまり画面幅いっぱい */
}

@keyframes loop-animation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 半分動いたらリセットしてループ */
}