@charset "utf-8";

.first-view {
  height: calc(100vh - 110px);
  /* 背景画像の設定 */
  background-image: url(../images/index/bg-main.jpg);
  /* 画像の挿入 → background-image: url(挿入したい画像のパス); */
  background-repeat: no-repeat;
  /* 画像の繰り返しを定義 デフォルトは繰り返す（repeat）no-repeatは繰り返さない設定 */
  background-position: center center;
  /* 背景画像の位置の設定 background-position: X Y; */
  background-size: cover;
  /* 背景画像の大きさの設定 coverは縦横比を保持したまま領域を覆いかぶさるサイズに拡大または縮小 */
  display: flex;
  align-items: center;
}

.first-view-text {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 80px 40px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 10px #4b2c14;
  /* text-shadow: 左右の影 上下の影 ボケ具合 影の色; */
}

.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 p {
  line-height: 2;
  text-align: center;
}

.link-button-area {
  text-align: center;
  margin-top: 40px;
}

.link-button {
  background-color: #f4dd64;
  display: inline-block;
  min-width: 180px;
  line-height: 48px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.link-button:hover {
  background-color: #d8b500;
}

/* E:hover → 要素Eにマウスポインターを置いた状態の時 */

.recommended {
  background-color: #e3e3e3;
  padding: 45px 0 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: 20px auto 0;
}

.item-list {
  display: flex;
  padding: 40px 60px 10px;
  overflow: scroll;
}

.item-list li {
  flex-shrink: 0;
  width: 260px;
  margin-left: 75px;
}

.item-list li:first-child {
  margin-left: 0;
}

.item-list dl {
  margin-top: 20px;
}

.item-list dt {
  font-weight: bold;
}

.item-list dd {
  font-size: 13px;
  line-height: 20px;
  margin-top: 10px;
}

.item-list .price {
  font-weight: bold;
  margin-top: 15px;
}

/* ここから800px以下のデバイスに適用 */
@media (max-width: 800px) {
  .first-view {
    height: calc(100vh - 50px);
    background-image: url(../images/index/bg-main-sp.jpg);
    align-items: flex-start;
  }

  .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: 0 20px;
  }

  .lead p {
    text-align: left;
  }

  .item-list {
    padding: 40px 20px 10px;
  }

  .item-list li {
    width: 220px;
    margin-left: 30px;
  }
}

/* ここからオープニング画面の設定 */

.opening {
  background-color: #fff;
  /* openingの箱の位置と大きさの設定。画面いっぱい */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* ロゴを上下左右中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  /* アニメーションの設定 */
  animation: open 1s 2s both;
  /* ↑の意味2秒後に１秒かけて開始 */
}

@keyframes open {
  100% {
    opacity: 0;
    z-index: -1;
  }
}

/* openingのロゴの設定 */
.opening img {
  animation: openlogo 3s both;
}

@keyframes openlogo {
  0% {
    opacity: 0;
    transform: scale(0.5);

  }

  33%,
  66% {
    opacity: 1;
    transform: scale(1);

  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.wrap {
  height: 100vh;
  overflow: hidden;
  /* overflow: hidden;→はみ出した部分を非表示にする */
  animation: scroll 0s 3s both;
}

@keyframes scroll {
  100% {
    overflow: visible;
    /* overflow: hidden;の解除 */

    height: auto;
    /* height: 100vh;の解除 */
  }

}

body {
  overflow-y: scroll;
  /* スクロールバー領域を表示 */
}