@charset "utf-8";

/* ==============================
   MENU
============================== */

.title {
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: #1C2321;
}

.title p {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #1C2321;
}


/* 商品一覧 */

.item-list {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto 170px;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 80px;

  list-style: none;
}


/* 商品1つ分 */

.item-list li {
  opacity: 0;
  position: relative;
  text-align: center;
}

.item-list li.fade-in {
  animation: menuFadeIn 1s ease forwards;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.item-list .item-label-alcohol,
.item-label-juice {
  position: absolute;
  top: 0;
  right: calc(90% + 35px);

  font-size: 12px;
  white-space: nowrap;

  transform-origin: top right;
  transform: rotate(270deg);
}

.item-label-alcohol {
  padding: 10px;
  color: #FFFFFF;
  background-color: #4A5973;
}

.item-label-juice {
  padding: 10px;
  color: #FFFFFF;
  background-color: #D9534F;
}


/* 商品画像 */

.item-list img {
  display: block;
  width: auto;
  height: 240px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}


/* 商品名・価格 */

.item-list dl {
  margin: 25px 0 0;
  text-align: center;
}

.item-list dt {
  font-weight: 700;
  font-size: 17px;
  color: #1C2321;
  line-height: 1.5;
}

.item-list .price {
  width: fit-content;
  margin: 15px auto 0;

  font-size: 14px;
  font-weight: 500;
  color: #1C2321;

  border-bottom: 1px solid #1C2321;
  padding-bottom: 4px;
}

/* ==============================
   TABLET
============================== */

@media screen and (max-width: 1000px) {

  .item-list {
    width: 90%;
    max-width: 700px;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 50px;
    row-gap: 70px;
  }

  .item-list img {
    max-width: 240px;
    height: 260px;
  }

}

/* ==============================
   MOBILE
============================== */

@media screen and (max-width: 600px) {

  .title {
    height: 150px;
  }

  .title h1 {
    font-size: 26px;
  }

  .title p {
    font-size: 11px;
  }

  .item-list {
    width: 85%;
    grid-template-columns: 1fr;
    row-gap: 70px;
    margin-top: 30px;
  }

  .item-list img {
    width: auto;
    height: 220px;
    max-width: 100%;
  }

  .item-list dt {
    font-size: 16px;
  }

  .item-list .price {
    font-size: 13px;
  }

}