@charset "utf-8";
/* 全体 */
#top-main {
    padding-bottom: 40px;
    padding-top: 150px;
    background-image: url(../img/home/bg_03.jpg);
    background-repeat: repeat;
}

/* PCレイアウトのベース幅：1120px */
#top-main .top-main-inner {
  width: 1120px;        /* 固定幅。画面が狭い場合は横にはみ出す */
  margin: 0 auto;       /* 1120px以上の画面では左右に余白が入る（中央寄せ） */
}

/* --- PCレイアウト（通常） --- */

#top-main .main-layout {
  display: flex;
  align-items: flex-start;   /* ★ これを追加 */
}


/* メイン表示枠（左側） */
#top-main .main-slide {
  flex: 0 0 820px;
  width: 820px;
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}

#top-main .slider-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* ▼ メインスライダー（横スクロールアニメーション） */
#top-main .slider-for {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
}

#top-main .slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

#top-main .slide {
  flex: 0 0 100%;
}

#top-main .slide img {
  display: block;
  height: auto;
}

/* 640px 未満だけ画像を枠いっぱいにフィットさせる */
@media (max-width: 639px) {
  #top-main .slide img {
    width: 579px;
    height: auto;
  }
}

/* ▼ サムネイル + 矢印 */
#top-main .slider-nav {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

/* サムネイル部分（横スクロール可能に） */
#top-main .thumbs-inner {
  flex: 1;
  display: flex;
  justify-content: flex-start;  /* ← space-between から変更 */
  margin: 0 10px;
  overflow-x: auto;             /* ★ 横スクロール */
  scroll-behavior: smooth;      /* スクロールをなめらかに */
  scrollbar-width: none;        /* Firefox: スクロールバー非表示 */
}
#top-main .thumbs-inner::-webkit-scrollbar {
  display: none;                /* Chrome等: スクロールバー非表示 */
}

/* サムネイルは4個ぶんの幅を確保（従来どおり） */
#top-main .thumb {
  flex: 0 0 calc((100% - 30px) / 4);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* サムネイル間の余白10px */
#top-main .thumb + .thumb {
  margin-left: 10px;
}


/* 矢印ボタン */
#top-main .thumb-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #00a0e9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  position: relative;
}

#top-main .thumb-arrow::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  position: absolute;
  top: 50%;
  left: 50%;
}

#top-main .thumb-prev::before {
  transform: translate(-40%, -50%) rotate(-135deg); /* ＜ */
}

#top-main .thumb-next::before {
  transform: translate(-60%, -50%) rotate(45deg);   /* ＞ */
}

#top-main .thumb-arrow:hover {
  filter: brightness(1.1);
}

/* サムネイル部分（常に4個並べる） */
#top-main .thumbs-inner {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  margin: 0 10px;
}

#top-main .thumb {
  flex: 0 0 calc((100% - 30px) / 4); /* 余白10px×3 = 30px → 4等分 */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

#top-main .thumb img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* サムネイル間の余白10px */
#top-main .thumb + .thumb {
  margin-left: 10px;
}

/* ホバー時 & 選択中アクションをまとめる */
#top-main .thumb:hover img,
#top-main .thumb.is-active img {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border-color: #fff;
}

/* ▼ 640px 未満でレスポンシブ */
@media (max-width: 639px) {
	#top-main {
    padding-top: 0px;
  }
  #top-main .main-slide {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 35px;
  }

  #top-main .slider-wrapper {
    max-width: 100%;
  }
}


/* バナー列（右側） */
#top-main .banner-list {
  flex: 0 0 280px;        /* 幅 280px */
  margin-left: 20px;      /* mainとの余白20px */
  display: flex;
  flex-direction: column;
}

#top-main .banner-item {
  display: block;
}

/* バナー同士の余白20px */
#top-main .banner-item + .banner-item {
  margin-top: 20px;
}

/* 画像は横280pxで表示される */
#top-main .banner-item img {
  width: 100%;
  height: auto;          /* 280×130の比率保持 */
  display: block;
}

/* ホバー時アクション */
#top-main .banner-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border-color: #fff;
}

/* --- SPレイアウト（640px未満） --- */
@media (max-width: 639px) {

	#top-main {
	  margin-top: 100px;
	}

  /* 画面幅いっぱいに */
  #top-main .top-main-inner {
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
  }

  /* mainを上、バナーを下に縦並び */
  #top-main .main-layout {
    display: block;
  }

  /* バナーは2列グリッドで表示、mainとの間も20px */
  #top-main .banner-list {
    margin: 20px 0 0;           /* mainとの余白20px */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 20px;              /* バナー間の縦横20px */
  }

  /* 縦並び用の margin は不要 */
  #top-main .banner-item + .banner-item {
    margin-top: 0;
  }
}

#home #infoArea .container > .inner {
    padding: 30px 30px;
}
#home #menuArea .container > .inner {
    padding: 0px 30px 30px 30px;
}
#home #otherArea .container > .inner {
    padding: 30px 30px;
}

#home #otherArea #betArea {
    float: left;
}
#home #otherArea #linkArea {
    float: right;
}

@media (max-width: 639px) {
	#home #otherArea #betArea {
	    float: none;
	}
	#home #otherArea #linkArea {
	    float: none;
	}
}

.sns {
    display: flex;
    justify-content: center;  /* 横方向の中央寄せ */
    align-items: center;      /* 縦方向の中央揃え */
    gap: 10px;                /* 画像間のすき間（お好みで調整） */
}

.sns img {
    display: block;
}

#home #blogArea {
    display: block;
        background-image: url(../img/bg_03.jpg);
        background-repeat: repeat;
        clear: both;
}

