/* Setting
----------------------------------------------------*/
:root {
  --color-red: #FF6B00;
  --color-orange: #FD9333;
  --color-yellow: #FFE76F;
  --color-brown: #683F26;
  --color-black: #000000;
  --color-variant: #4F4F4F;
  --color-white: #FFFFFF;
  --color-gray: #cecece;
  --color-bg: #F5F4F1;
  --color-gold: #B29A17;
}

/* Base
----------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

#giftbox img {
  max-width: 100%;
}
#giftbox ul,
#giftbox ol {
  list-style: none;
  padding-left: 0;
}
#giftbox p {
  margin-bottom: auto;
}
#giftbox a {
  color: var(--color-black);
  text-decoration: none;
}
#giftbox *:last-child {
  margin-bottom: 0;
}

/* Common
----------------------------------------------------*/
#giftbox .item-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 15px;
}
@media (max-width: 768px) {
  #giftbox .item-box {
    grid-template-columns: repeat(2, 1fr);
  }
}
#giftbox .item-box--recommend {
  grid-template-columns: 1fr;
  gap: 20px;
}
#giftbox .item-box .item {
  display: flex;
  flex-direction: column;
  counter-increment: number 1;
}
#giftbox .item-box .photo {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  background: #fff;
  margin-bottom: 10px;
}
#giftbox .item-box .photo img {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#giftbox .item-box .name {
  line-height: 1.4;
  font-size: 14px;
  font-weight: bold;
  flex-grow: 1;
  margin-bottom: 8px;
}
#giftbox .item-box .price {
  color: #4f4f4f;
  font-size: 14px;
  margin-bottom: 1em;
}
@media screen and (max-width: 375px) {
  #giftbox .item-box .name,
  #giftbox .item-box .price {
    font-size: 12px;
  }
  #giftbox .item-box--ranking .price,
  #giftbox .item-box--recommend .price {
    font-size: 14px;
  }
}
#giftbox .item-box .btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
#giftbox .item-box label {
  height: 40px;
  width: 56px;
  display: inline-block;
  flex: 1 0 56px;
}
@media screen and (max-width: 400px) {
  #giftbox .item-box label {
    width: 44px;
    flex: 1 0 44px;
  }
}
#giftbox .item-box select {
  color: #000;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #fff;
  border: 1px solid #cecece;
  padding: 0 10px;
  background-image: url(../../contents/giftbox/select-arrow.svg);
  background-origin: content-box;
  background-position: right -1rem center;
  background-repeat: no-repeat;
  background-size: 9px 6px;
  padding-right: 1.5rem;
}
#giftbox .item-box .cart {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
  background: #fd9333;
  height: 40px;
  width: 100%;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
@media screen and (max-width: 480px) {
  #giftbox .item-box .cart {
    font-size: 3vw;
  }
}
#giftbox .item-box .icon {
  background-image: url(../../contents/giftbox/icon-cart-white.svg);
  background-repeat: no-repeat;
  background-position: top 50% left 0%;
  background-size: 20px;
  padding: 10px 24px 10px 0;
  margin: 0;
  display: inline;
}
@media screen and (max-width: 480px) {
  #giftbox .item-box .icon {
    display: none;
  }
}

/* Conponent
----------------------------------------------------*/
#giftbox .mv {
  display: flex;
  max-width: 1100px;
  width: 100%;
  background-color: var(--color-bg);
  padding: 20px 0;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  #giftbox .mv {
    padding: 0;
  }
}
@media (min-width: 769px) {
  #giftbox .mv {
    margin-bottom: 40px;
  }
}
#giftbox .mv img {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
#giftbox .intro {
  padding: 0 10px;
  margin-bottom: 40px;
}
@media (min-width: 769px) {
  #giftbox .intro {
    margin-bottom: 60px;
  }
}
#giftbox .intro__lead {
  font-size: 18px;
  line-height: 1.6666666667;
  margin-bottom: 10px;
  text-align: center;
}
@media (min-width: 769px) {
  #giftbox .intro__lead {
    font-size: 30px;
    margin-bottom: 20px;
  }
}
#giftbox .intro__txt {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.8571428571;
  margin-bottom: 15px;
}
@media (min-width: 769px) {
  #giftbox .intro__txt {
    text-align: center;
    font-size: 18px;
    line-height: 2;
    margin-bottom: 25px;
  }
}
#giftbox .menu {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 769px) {
  #giftbox .menu {
    gap: 10px;
  }
}
#giftbox .menu__item {
  text-align: center;
  font-weight: 700;
}
@media (max-width: 768px) {
  #giftbox .menu__item {
    font-size: 13px;
    line-height: 1.2;
  }
}
#giftbox .menu__link {
  background-color: var(--color-brown);
  text-decoration: none;
  position: relative;
  display: block;
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  padding: 10px 2px 18px;
  transition: opacity 0.35s;
}
@media (min-width: 769px) {
  #giftbox .menu__link {
    padding: 17px 2px 25px;
  }
}
#giftbox .menu__link:hover {
  opacity: 0.7;
}
#giftbox .menu__link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  border: 5px solid transparent;
  border-top: 4px solid var(--color-white);
}
@media (min-width: 769px) {
  #giftbox .menu__link::after {
    border-width: 6px;
    border-top-width: 5px;
    bottom: 5px;
  }
}
#giftbox .button {
  position: relative;
  display: block;
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--color-orange);
  border-radius: 8px;
  padding: 15px;
  color: var(--color-black);
  text-decoration: none;
  background-color: var(--color-white);
  margin-top: 15px;
}
@media (min-width: 769px) {
  #giftbox .button {
    font-size: 15px;
    max-width: 450px;
    margin-inline: auto;
    margin-top: 25px;
  }
}
#giftbox .button::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left: 6px solid var(--color-orange);
}
#giftbox .section {
  background-color: var(--color-bg);
}
#giftbox .section:not(:last-child) {
  margin-bottom: 20px;
}
@media (min-width: 769px) {
  #giftbox .section:not(:last-child) {
    margin-bottom: 40px;
  }
}
#giftbox .section__inner {
  padding: 40px 14px;
}
@media (min-width: 769px) {
  #giftbox .section__inner {
    padding: 80px 30px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 768px) {
  #giftbox .section__inner--ranking {
    padding-inline: 30px;
  }
}
#giftbox .section__inner > *:last-child {
  margin-bottom: 0;
}
#giftbox .section__item {
  margin-top: 40px;
}
@media (min-width: 769px) {
  #giftbox .section__item {
    margin-top: 80px;
  }
}
#giftbox .section__content {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 6%;
}
@media (min-width: 769px) {
  #giftbox .section__content {
    border-radius: 16px;
    padding: 5%;
  }
}
#giftbox .section__content > *:last-child {
  margin-bottom: 0;
}
#giftbox .section__title {
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 20px;
}
@media (min-width: 769px) {
  #giftbox .section__title {
    font-size: 32px;
    margin-bottom: 30px;
  }
}
#giftbox .section__title span {
  display: inline-block;
  border-bottom: 2px solid var(--color-black);
  padding: 0 10px 5px 10px;
}
@media (min-width: 769px) {
  #giftbox .section__title span {
    padding: 0 15px 10px;
    border-width: 3px;
  }
}
#giftbox .section__heading {
  text-align: center;
  font-size: 19px;
  margin-bottom: 15px;
}
@media (min-width: 769px) {
  #giftbox .section__heading {
    font-size: 26px;
    margin-bottom: 25px;
  }
}
#giftbox .section__txt {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}
@media (min-width: 769px) {
  #giftbox .section__txt {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 6px;
  }
}
#giftbox .section__img-wrapper {
  margin-bottom: 20px;
  text-align: center;
}
@media (min-width: 769px) {
  #giftbox .section__img-wrapper {
    margin-bottom: 25px;
  }
}
#giftbox .section__cv {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (min-width: 769px) {
  #giftbox .section__cv {
    gap: 30px;
    margin-bottom: 15px;
  }
}
#giftbox .section__staff {
  text-align: center;
}
#giftbox .section__staff figcaption {
  text-align: center;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.3;
  font-size: 14px;
}
@media (min-width: 769px) {
  #giftbox .section__staff figcaption {
    font-size: 15px;
  }
}
@media (min-width: 769px) {
  #giftbox .section__recommend {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 30px;
  }
}
#giftbox .section__body > *:last-child {
  margin-bottom: 0;
}

/* Page
----------------------------------------------------*/
#giftbox .best-seller .item-box {
  grid-template-columns: 1fr;
  gap: 15px;
}
@media (min-width: 769px) {
  #giftbox .best-seller .item-box {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
#giftbox .best-seller .item {
  background-color: var(--color-white);
  width: 100%;
  border-radius: 10px;
  padding: 25px;
}
#giftbox .best-seller .name {
  font-size: 14px;
  text-align: center;
}
@media (min-width: 769px) {
  #giftbox .best-seller .name {
    font-size: 15px;
  }
}
#giftbox .best-seller__category {
  font-weight: bold;
  color: var(--color-gold);
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
}
@media (min-width: 769px) {
  #giftbox .best-seller__category {
    font-size: 14px;
  }
}
#giftbox .best-seller__category span {
  display: inline-block;
  border: 1px solid var(--color-gold);
  padding: 1px 15px;
}
@media (min-width: 769px) {
  #giftbox .best-seller__category span {
    padding: 3px 15px;
  }
}

/* Utility
----------------------------------------------------*/
@media (max-width: 768px) {
  #giftbox .u-pc-only {
    display: none;
  }
}
@media (min-width: 769px) {
  #giftbox .u-sp-only {
    display: none;
  }
}
#giftbox .u-center {
  text-align: center;
}
#giftbox .u-font-bold {
  font-weight: bold;
}
#giftbox .u-mt-S {
  margin-top: 20px;
}
@media (min-width: 769px) {
  #giftbox .u-mt-S {
    margin-top: 10px;
  }
}
#giftbox .u-mt-M {
  margin-top: 20px;
}
@media (min-width: 769px) {
  #giftbox .u-mt-M {
    margin-top: 40px;
  }
}
#giftbox .u-mt-L {
  margin-top: 30px;
}
@media (min-width: 769px) {
  #giftbox .u-mt-L {
    margin-top: 60px;
  }
}
