@charset "UTF-8";

.first-view {
  height: calc(100vh - 110px);
  background-image: url(../img/dare.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.first-view-text {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-bottom: 80px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 10px #4b2c14;
}

.first-view-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  line-height: 72px;
}

.first-view-text p {
  font-size: 18px;
  margin-top: 20px;
}

.lead {
  max-width: 1200px;
  margin: 60px auto;
}

.lead h1 {
  text-align: center;
}

.lead h1::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background-color: #000;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.lead p {
  text-align: center;
  margin-top: 20px;
}

.recommended {
  background-color: #f8f8f8;
  padding-top: 45px;
  padding-bottom: 55px;
}

.recommended h2 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

.recommended h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background-color: #000;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.item-list {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 10px;
  padding-left: 60px;
  padding-right: 60px;
  overflow-x: scroll;

  &::-webkit-scrollbar {
    display: none;
  }
}

.item-list p {
  margin: 20px;
  font-weight: bold;
}

.item-list li {
  flex-shrink: 0;
  width: 260px;
  margin-left: 75px;
}

.item-list li:first-child {
  margin-left: 0;
}

.last {
  padding-bottom: 20px;
  font-weight: bold;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  padding-top: 20px;

}

.leadtext p {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  background-color: #eaf7fa;
  color: #164a63;
  accent-color: #3aafc3;
  padding: 20px 0;
}

/* ライン使用 */
/* 右下に固定表示する枠 */
.line-fixed-btn {
  position: fixed;   /* 画面に対して位置を固定 */
  bottom: 20px;      /* 画面下から20px浮かせる（押しやすさ重視） */
  right: 20px;       /* 画面右から20px内側に配置 */
  z-index: 9999;     /* 他の要素より一番手前に表示 */
}

/* 画像のサイズと見た目の調整 */
.line-fixed-btn img {
  width: 70px;      /* 画像の横幅（スマホ画面に合わせて120px〜180px程度で調整） */
  height: auto;      /* 高さは自動調整 */
  display: block;
  
  /* オプション：少し影をつけると画面になじみやすく、ボタンだと分かりやすくなります */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px; /* 角を少し丸くする場合 */
}/* ライン終わり */

@media (max-width: 800px) {
  .first-view {
    height: calc(100vh - 50px);
    background-image: url(../img/dare-moba.png);

  }

  .first-view-text {
    padding-top: 60px;
    padding-left: 20px;
  }

  .first-view-text h1 {
    font-size: 36px;
    line-height: 48px;
  }

  .first-view-text p {
    font-size: 14px;
    margin-top: 15px;
  }

  .lead {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lead p {
    text-align: left;
  }


  /* --- 親コンテナの設定 --- */
  .item-list {
    display: flex;
    /* スマホのときは左寄せスタートにして見切れを防ぐ */
    justify-content: flex-start;

    /* スマホのときは左右のpaddingを小さくする (重要！) */
    padding: 20px 10px;

    /* 横スクロールの設定 */
    overflow-x: scroll;
    /* 惯性スクロール（スマホで指を離してもスーッと動く） */
    -webkit-overflow-scrolling: touch;

    /* リストの点やデフォルトの余白を消す */
    list-style: none;
    margin: 0;
  }

  /* --- スクロールバーを消す設定（お好みで） --- */
  .item-list::-webkit-scrollbar {
    display: none;
  }

  /* --- 各アイテム（li）の設定 --- */
  .item-list li {
    /* 重要：ここを flex-shrink: 0; にしないと、
     スマホで無理やり縮められて画像が潰れたり見切れたりします */
    flex: 0 0 auto;

    /* 各アイテムの幅（スマホで1画面に1.5〜2個くらい入るイメージ） */
    width: 150px;

    /* アイテム間の隙間 */
    margin-right: 15px;

    text-align: center;
  }

  /* 最後のアイテムの右マージンを調整 */
  .item-list li:last-child {
    margin-right: 10px;
  }

  /* --- 画像（img）の設定（最重要！） --- */
  .item-list li img {
    /* 画像をブロック要素にして隙間を防ぐ */
    display: block;

    /* 親（li）の幅いっぱいに広げる */
    width: 100%;

    /* 高さは自動調整して比率を保つ */
    height: auto;

    /* 角丸などはお好みで */
    border-radius: 10px;
    object-fit: cover;
    /* 画像が縦長/横長でも枠に合わせる */
  }

  /* --- テキスト（p）の設定 --- */
  .item-list li p {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #333;
  }
}