@charset "UTF-8";

.product__container {
  --grid-columns: var(--grid-columns-mobile, 2);
  --grid-gap: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
}
@media screen and (min-width: 768px) {
  .product__container {
    --grid-columns: var(--grid-columns-desktop, 4);
    --grid-gap: 3rem 2rem;
  }
}
.product__container a:not(.c-button) {
  color: inherit;
  text-decoration: none;
}
.product__container .c-button {
  min-width: 0;
  width: 100%;
  padding-inline: 0;
}

.product__item {
  width: 100%;
}
.product__item--image {
  width: 100%;
  position: relative;
}
.product__item--soldout {
/*  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: grid;
  place-content: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;*/
}
.product__item--soldout-text {
/*  color: var(--color-white);
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;*/
  display: grid;
  place-content: center;
  width: fit-content;
  margin-top: .9rem;
  padding: .25rem .4rem;
  background-color: var(--color-project-soldout);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  letter-spacing: .025em;
  line-height: 1;
}
@media (min-width: 768px) {
  .c-ranking__product-list-item .product__item--soldout-text {
    padding: .45rem .6rem;
    font-size: 1.3rem;
  }
}
.product__item--icon {
  display: flex;
  flex-wrap: wrap;
/*  column-gap: 0.1rem;
  position: absolute;
  bottom: 0;
  z-index: 2;*/
  margin-top: 0.2rem;
  gap: 0.2rem 0.3rem;
}
@media screen and (min-width: 768px) {
  .product__item--icon {
    margin-top: 0.4rem;
     gap: 0.4rem 0.5rem;
  }
}
.product__item--id {
  color: var(--color-gray-500);
  display: block;
  margin: 1rem 0 0.5rem;
}
.product__item--variationname {
  margin-top: 1rem;
}
.product__item--name {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}
@media screen and (min-width: 768px) {
  .product__item--name {
    margin-top: 0.7rem;
  }
}
.product__item--description {
  margin-top: 1rem;
}
.product__item--description:has(.product__item-text--description:empty) {
  display: none;
}
.product__item--price {
  margin-top: 1rem;
}
.product__item--text {
  margin-top: 0.8rem;
  font-size: 1.3rem;
}
.product__item--text dt {
  display: inline-block;
  margin-right: 0.6rem;
  color: var(--color-gray-500);
}
.product__item--text dd {
  display: inline-block;
}
.product__item--actions {
  display: grid;
  row-gap: 1rem;
  margin-top: 1.5rem;
}
.product__item--actions__inner {
  display: contents;
}
.product__item--actions .c-button {
  padding-block: 0.65rem;
}
.product__item-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 1rem;
  height: 100%;
}
.product__item-text--name {
  font-size: 1.4rem;
}
.product__item-text--description {
  color: var(--color-gray-500);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.product__icon {
  background-color: var(--color-gray-500);
  color: var(--color-white);
  display: block;
  font-size: 1rem;
  line-height: 1;
  padding: 0.3rem 0.4rem;
}

/* ===============================================
  * 価格表示のスタイル *
=============================================== */
.product__price:nth-of-type(n+2) {
  margin-top: 0.75rem;
}
.product__price--item {
  width: fit-content;
  display: flex;
  align-items: baseline;
  column-gap: 0.5rem;
  font-weight: var(--fw-semibold);
}
.product__item--price:has(.product__price--fixedpurchase) .product__price--normal {
  display: none !important;
}
.product__price--icon {
  align-self: center;
  border: 1px solid var(--color-black);
  border-radius: 0.4rem;
  font-size: 1rem;
  line-height: 1;
  padding: 0.3rem 0.4rem;
}
.product__price--numeric {
  display: block;
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  font-family: var(--font-en);
}
@media screen and (max-width: 767px) {
  /* .product__price--item {
    flex-wrap: wrap;
  } */
}
@media screen and (min-width: 768px) {
  .product__price--numeric {
    font-size: 1.6rem;
  }
}
.product__price--tax {
  display: block;
  font-size: 1rem;
}
.product__price--discountrate:not(:empty) {
  align-self: center;
  background-color: var(--color-emphasis);
  color: var(--color-white);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.3rem 0.4rem;
}
.product__price--proper {
  color: var(--color-gray-400);
  position: relative;
}
.product__price--proper::after {
  width: 100%;
  height: 1px;
  background-color: var(--color-black);
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  z-index: 2;
}
.product__price--discount {
  color: var(--color-emphasis);
}
.product__price--fixedpurchase {
  display: grid;
  grid-gap: .2rem;
}
.product__price--fixedpurchase .product__price--icon {
  color: var(--color-project-green);
  border-color: var(--color-project-green);
}
.product__price--fixedpurchase .product__price--icon-normal {
  color: var(--color-text-default);
  border-color: var(--color-text-default);
}


/* ===============================================
  * ProductVariation.aspx のスタイル *
=============================================== */
@media screen and (min-width: 768px) {
  .product__closed-market-wrapper {
    width: min(80%, 50rem);
    margin: auto;
  }
}
.product__closed-market-content {
  display: grid;
  row-gap: 2rem;
}
.product__closed-market-input-content {
  display: grid;
  row-gap: 0.5rem;
}


/* ===============================================
  * cicon  *
=============================================== */

.product__icon {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
@media screen and (min-width: 768px) {
  .product__icon {
    font-size: 1.2rem 
  }
}
.product__icon--1,
.product__icon--2 {
  background-color: var(--color-project-text-red);
}
.product__icon--3,
.product__icon--8 {
  background-color: var(--color-project-blue);
  font-family: var(--font-ja);
}
.product__icon--4,
.product__icon--5 {
  background-color: var(--color-project-yellow);
}
.product__icon--6,
.product__icon--7 {
  background-color: var(--color-project-green);
}

.product__icon--1,
.product__icon--2,
.product__icon--3 {
  font-family: var(--font-en);
  font-weight: var(--fw-semibold);
}

.product__icon--4,
.product__icon--5,
.product__icon--6,
.product__icon--7,
.product__icon--8 {
  font-family: var(--font-ja);
  font-weight: var(--fw-medium);
}