<style>
/* コンテンツ全体の中央揃え */
#content {
  max-width: 950px;
  margin: 0 auto; 
  padding: 0;
  box-sizing: border-box;
}

/* 上部メイン画像のスタイル */
#top-image-container img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 横並びメニューのスタイル */
.custom-menu {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  box-sizing: border-box;
}

.custom-menu-item {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.custom-menu-item img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* スライドショー全体のスタイル */
/* 画像をさらに小さくするためにmax-widthを300pxに変更 */
.slideshow {
  position: relative;
  max-width: 950px;
  width: 100%;
  margin: 20px auto;
  overflow: hidden;
  box-sizing: border-box;
  background: #f0f0f0;
}

.slides {
  display: flex;
  width: 100%; 
  animation: slide 25s infinite linear;
}

.slides img {
  max-width: 100%; 
  height: auto;
  display: block;
}

/* アニメーション定義 */
@keyframes slide {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }
  100% { transform: translateX(0%); }
}
</style>