/* 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;
}

#cakebox img {
  max-width: 100%;
}

#cakebox ul,
#cakebox ol {
  list-style: none;
  padding-left: 0;
}

#cakebox p {
  margin-bottom: auto;
}

#cakebox a {
  color: var(--color-black);
  text-decoration: none;
}

#cakebox *:last-child {
  margin-bottom: 0;
}

/* Common
----------------------------------------------------*/
#cakebox .item-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 15px;
}

@media (max-width: 768px) {
  #cakebox .item-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

#cakebox .item-box .item {
  display: flex;
  flex-direction: column;
  counter-increment: number 1;
}

#cakebox .item-box .photo {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  background: #fff;
  margin-bottom: 10px;
}

#cakebox .item-box .photo img {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#cakebox .item-box .name {
  line-height: 1.4;
  font-size: 14px;
  font-weight: bold;
  flex-grow: 1;
  margin-bottom: 8px;
}

#cakebox .item-box .price {
  color: #4f4f4f;
  font-size: 14px;
  margin-bottom: 1em;
}

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

  #cakebox .item-box .name,
  #cakebox .item-box .price {
    font-size: 12px;
  }

  #cakebox .item-box--ranking .price,
  #cakebox .item-box--recommend .price {
    font-size: 14px;
  }
}

#cakebox .item-box .btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

#cakebox .item-box label {
  height: 40px;
  width: 56px;
  display: inline-block;
  flex: 1 0 56px;
}

@media screen and (max-width: 400px) {
  #cakebox .item-box label {
    width: 44px;
    flex: 1 0 44px;
  }
}

#cakebox .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/cakebox/select-arrow.svg);
  background-origin: content-box;
  background-position: right -1rem center;
  background-repeat: no-repeat;
  background-size: 9px 6px;
  padding-right: 1.5rem;
}

#cakebox .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) {
  #cakebox .item-box .cart {
    font-size: 3vw;
  }
}

#cakebox .item-box .icon {
  background-image: url(../../contents/cakebox/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) {
  #cakebox .item-box .icon {
    display: none;
  }
}

/* Conponent
----------------------------------------------------*/
#cakebox .mv {
  display: flex;
  max-width: 1100px;
  width: 100%;
  background-color: var(--color-bg);
  padding: 20px 0;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  #cakebox .mv {
    padding: 0;
  }
}

@media (min-width: 769px) {
  #cakebox .mv {
    margin-bottom: 40px;
  }
}

#cakebox .mv img {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

#cakebox .intro {
  padding: 0 10px;
  margin-bottom: 40px;
}

@media (min-width: 769px) {
  #cakebox .intro {
    margin-bottom: 60px;
  }
}

#cakebox .intro__lead {
  font-size: 18px;
  line-height: 1.4444444444;
  margin-bottom: 10px;
  text-align: center;
}

@media (min-width: 769px) {
  #cakebox .intro__lead {
    font-size: 30px;
    margin-bottom: 20px;
  }
}

#cakebox .intro__txt {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.8571428571;
  margin-bottom: 15px;
}

@media (min-width: 769px) {
  #cakebox .intro__txt {
    text-align: center;
    font-size: 18px;
    line-height: 2;
    margin-bottom: 20px;
  }
}

#cakebox .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (min-width: 769px) {
  #cakebox .menu {
    gap: 10px;
    justify-content: center;
  }
}

#cakebox .menu--col2 {
  gap: 10px;
}

#cakebox .menu--col2 .menu__item {
  flex: 0 0 calc((100% - 10px) / 2);
}

#cakebox .menu--catalog {
  gap: 6px;
}

@media (min-width: 769px) {
  #cakebox .menu--catalog {
    gap: 10px;
  }
}

#cakebox .menu--catalog .menu__item {
  flex: 0 0 calc((100% - 6px) / 2);
}

@media (min-width: 769px) {
  #cakebox .menu--catalog .menu__item {
    flex: 0 0 calc((100% - 20px) / 3);
  }
}

#cakebox .menu__item {
  text-align: center;
  font-weight: 700;
}

@media (max-width: 768px) {
  #cakebox .menu__item {
    font-size: 13px;
    line-height: 1.2;
    flex: 0 0 calc((100% - 12px) / 3);
  }
}

@media (min-width: 769px) {
  #cakebox .menu__item {
    flex: 0 0 calc((100% - 20px) / 3);
  }
}

#cakebox .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) {
  #cakebox .menu__link {
    padding: 12px 2px 25px;
    line-height: 1.4;
  }
}

#cakebox .menu__link:hover {
  opacity: 0.7;
}

#cakebox .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) {
  #cakebox .menu__link::after {
    border-width: 6px;
    border-top-width: 5px;
    bottom: 5px;
  }
}

#cakebox .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) {
  #cakebox .button {
    font-size: 15px;
    max-width: 450px;
    margin-inline: auto;
    margin-top: 25px;
  }
}

#cakebox .button::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left: 6px solid var(--color-orange);
}

#cakebox .section {
  background-color: var(--color-bg);
}

#cakebox .section:not(:last-child) {
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  #cakebox .section:not(:last-child) {
    margin-bottom: 40px;
  }
}

#cakebox .section__inner {
  padding: 40px 14px;
}

@media (min-width: 769px) {
  #cakebox .section__inner {
    padding: 80px 30px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  #cakebox .section__inner--ranking {
    padding-inline: 30px;
  }
}

#cakebox .section__inner>*:last-child {
  margin-bottom: 0;
}

#cakebox .section__item {
  margin-top: 40px;
}

@media (min-width: 769px) {
  #cakebox .section__item {
    margin-top: 80px;
  }
}

#cakebox .section__content {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 6%;
}

#cakebox .section__content+.section__content {
  margin-top: 20px;
}

@media (min-width: 769px) {
  #cakebox .section__content {
    border-radius: 16px;
    padding: 5%;
  }
}

#cakebox .section__content>*:last-child {
  margin-bottom: 0;
}

#cakebox .section__title {
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  #cakebox .section__title {
    font-size: 32px;
    margin-bottom: 30px;
  }
}

#cakebox .section__title span {
  display: inline-block;
  border-bottom: 2px solid var(--color-black);
  padding: 0 10px 5px 10px;
}

@media (min-width: 769px) {
  #cakebox .section__title span {
    padding: 0 15px 10px;
    border-width: 3px;
  }
}

#cakebox .section__heading {
  text-align: center;
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.3;
}

@media (min-width: 769px) {
  #cakebox .section__heading {
    font-size: 26px;
    margin-bottom: 25px;
  }
}

#cakebox .section__txt {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

@media (min-width: 769px) {
  #cakebox .section__txt {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 6px;
  }
}

#cakebox .section__txt+.section__img-wrapper {
  margin-top: 20px;
}

#cakebox .section__img-wrapper {
  margin-bottom: 20px;
  text-align: center;
}

@media (min-width: 769px) {
  #cakebox .section__img-wrapper {
    margin-bottom: 25px;
  }
}

@media (min-width: 769px) {
  #cakebox .section__box {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 30px;
  }
}

#cakebox .section__box .item {
  display: block;
}

@media (min-width: 769px) {
  #cakebox .section__box .section__img-wrapper {
    margin-bottom: 0;
  }
}

#cakebox .section__box .name {
  font-size: 15px;
}

@media (min-width: 769px) {
  #cakebox .section__box .name {
    font-size: 18px;
    margin-bottom: 15px;
  }
}

#cakebox .section__box .txt {
  font-size: 15px;
}

@media (min-width: 769px) {
  #cakebox .section__box .txt {
    font-size: 16px;
  }
}

#cakebox .section__box .txt+.txt {
  margin-top: 7px;
}

@media (min-width: 769px) {
  #cakebox .section__box .txt+.txt {
    margin-top: 10px;
  }
}

#cakebox .section__box .price {
  margin-top: 15px;
}

@media (min-width: 769px) {
  #cakebox .section__box .price {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  #cakebox .section__box .item-box .icon {
    display: inline;
    background-size: 15px;
  }
}

#cakebox .section__body>*:last-child {
  margin-bottom: 0;
}

/* Page
----------------------------------------------------*/
#cakebox .best-seller .item-box {
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 769px) {
  #cakebox .best-seller .item-box {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #cakebox .best-seller .item-box .icon {
    display: inline;
    background-size: 15px;
  }
}

#cakebox .best-seller .item {
  background-color: var(--color-white);
  width: 100%;
  border-radius: 10px;
  padding: 25px;
}

#cakebox .best-seller .name {
  font-size: 14px;
  text-align: center;
}

@media (min-width: 769px) {
  #cakebox .best-seller .name {
    font-size: 15px;
  }
}

#cakebox .best-seller__category {
  font-weight: bold;
  color: var(--color-gold);
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
}

@media (min-width: 769px) {
  #cakebox .best-seller__category {
    font-size: 14px;
  }
}

#cakebox .best-seller__category span {
  display: inline-block;
  border: 1px solid var(--color-gold);
  padding: 1px 15px;
}

@media (min-width: 769px) {
  #cakebox .best-seller__category span {
    padding: 3px 15px;
  }
}

/* Utility
----------------------------------------------------*/
@media (max-width: 768px) {
  #cakebox .u-pc-only {
    display: none;
  }
}

@media (min-width: 769px) {
  #cakebox .u-sp-only {
    display: none;
  }
}

#cakebox .u-center {
  text-align: center;
}

@media (min-width: 769px) {
  #cakebox .u-pc-center {
    text-align: center;
  }
}

#cakebox .u-font-bold {
  font-weight: bold;
}

#cakebox .u-mt-S {
  margin-top: 10px;
}

@media (min-width: 769px) {
  #cakebox .u-mt-S {
    margin-top: 20px;
  }
}

#cakebox .u-mt-M {
  margin-top: 20px;
}

@media (min-width: 769px) {
  #cakebox .u-mt-M {
    margin-top: 40px;
  }
}

#cakebox .u-mt-L {
  margin-top: 30px;
}

@media (min-width: 769px) {
  #cakebox .u-mt-L {
    margin-top: 60px;
  }
}

#cakebox .u-marker {
  font-weight: 700;
  padding-bottom: 0.1em;
  background: linear-gradient(transparent 60%, var(--color-yellow) 60%, var(--color-yellow) 100%, transparent 100%);
}