@charset "UTF-8";

/* =======================================
   PRODUCTS HEADER
======================================= */
.c-products-header {
  background-color: #fff;
}

.c-products-header__inner {
  align-items: center;
  display: flex;
  min-height: 135px;
}

.c-products-header__title {
  align-items: center;
  background-image: url("../img/products/products-title-bg.webp");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  flex: 0 0 clamp(190px, 20vw, 310px);
  font-size: 3.2rem;
  font-weight: 500;
  height: 110px;
  margin-left: 36px;
  min-height: 110px;
  padding-left: 30px;
}

.c-products-header__nav {
  flex: 1;
  min-width: 0;
}

.c-products-header__list {
  align-items: center;
  display: flex;
}

.c-products-header__item {
  border-left: 1px solid #000;
}

.c-products-header__item:last-child {
  border-right: 1px solid #777;
}

.c-products-header__link {
  align-items: center;
  display: flex;
  font-size: 2.4rem;
  font-weight: 500;
  justify-content: center;
  line-height: 1;
  padding-inline: 40px;
  white-space: nowrap;
}

.c-products-header__link:hover,
.c-products-header__link:focus-visible {
  opacity: 0.65;
}

/* =======================================
   PRODUCTS CATEGORY LIST
======================================= */
.p-products-list {
  background-image: url("../img/common/bg-page.webp");
  background-position: center top;
  background-repeat: repeat;
  background-size: 250px auto;
  border-bottom: 10px solid #fff;
  padding: 78px 0 66px;
}

.p-products-list__grid {
  column-gap: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 95px;
}

.p-products-card {
  display: block;
}

.p-products-card__body {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 8px 29px;
}

.p-products-card--tofu .p-products-card__body {
  background-color: #c3e0fd;
  color: #005ddb;
}

.p-products-card--other-tofu .p-products-card__body {
  background-color: #bcefce;
  color: #01742e;
}

.p-products-card--konjac .p-products-card__body {
  background-color: #ffdbe2;
  color: #e84188;
}

.p-products-card--bean-sprouts .p-products-card__body {
  background-color: #fff5a7;
  color: #e69700;
}

.p-products-card__title {
  font-family: var(--font-mincho);
  font-size: 3.2rem;
  font-weight: 400;
  grid-column: 2;
  line-height: 1.3;
  text-align: center;
}

.p-products-card__note {
  font-size: 2.6rem;
}

.p-products-card__arrow {
  grid-column: 3;
  height: auto;
  justify-self: end;
  width: 46px;
}

/* =======================================
   PRODUCTS CATALOG
======================================= */
.c-products-catalog {
  background-image: url("../img/common/bg-page.webp");
  background-position: center top;
  background-repeat: repeat;
  background-size: 250px auto;
  border-bottom: 10px solid #fff;
  padding: 36px 0 78px;
}

.c-products-catalog__title {
  font-size: 3.2rem;
  font-weight: 500;
  margin-bottom: 34px;
}

.c-products-catalog__group + .c-products-catalog__group {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  margin-top: 72px;
  padding-top: 72px;
}

.c-products-catalog__grid {
  column-gap: 140px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 100px;
}

.c-products-catalog__note {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.9;
  margin-bottom: 46px;
}

.c-product-card {
  min-width: 0;
}

.c-product-card--wide {
  grid-column: 1 / -1;
}

.c-product-card__images {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.c-product-card__images--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c-product-card--wide .c-product-card__images {
  gap: 140px;
}

.c-product-card__image {
  aspect-ratio: 585 / 445;
  background-color: #fff;
  border: 3px solid #fff;
  overflow: hidden;
}

.c-product-card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.c-product-card__caption {
  display: none;
}

.c-product-card--wide .c-product-card__content {
  width: calc((100% - 140px) / 2);
}

.c-product-card__title {
  border-bottom: 1px solid #707070;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 10px 8px;
}

.c-product-card__description {
  border-bottom: 1px solid #707070;
  font-size: 1.8rem;
  line-height: 1.8;
  padding: 18px 10px 16px;
}

.c-product-card__details {
  font-size: 1.6rem;
  line-height: 1.7;
  padding: 10px;
}

.c-product-card__detail {
  display: flex;
}

.c-product-card__detail dt {
  flex: 0 0 auto;
}

.c-product-card__detail dt::after {
  content: "／";
}

.c-product-card__detail dd {
  min-width: 0;
}

/* =======================================
   SP
======================================= */
@media (max-width: 767px) {
  .c-products-header__inner {
    min-height: 87px;
    padding-inline: 20px;
  }

  .c-products-header__title {
    background-size: 60px auto;
    flex-basis: auto;
    font-size: 2.6rem;
    margin-left: 0;
    min-height: 87px;
    padding-left: 25px;
  }

  .c-products-header__nav {
    display: none;
  }

  .c-products-header--detail .c-products-header__inner {
    column-gap: 12px;
  }

  .c-products-header--detail .c-products-header__title {
    flex: 0 0 auto;
  }

  .c-products-header--detail .c-products-header__nav {
    display: block;
    margin-left: 15px;
  }

  .c-products-header--detail .c-products-header__list {
    display: flex;
  }

  .c-products-header--detail .c-products-header__item {
    display: none;
  }

  .c-products-header--detail .c-products-header__item.is-current {
    border-left: 1px solid #000;
    border-right: 1px solid #777;
    display: block;
  }

  .c-products-header--detail .c-products-header__link {
    font-size: 2.1rem;
    padding-inline: 18px;
  }

  .p-products-list {
    padding: 30px 0 97px;
  }

  .p-products-list__inner {
    padding-inline: 25px;
  }

  .p-products-list__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 21px;
  }

  .p-products-card__body {
    min-height: 42px;
    padding: 3px 10px;
  }

  .p-products-card__title {
    font-size: 2.6rem;
  }

  .p-products-card__note {
    font-size: 2.6rem;
  }

  .p-products-card__note-detail {
    display: none;
  }

  .p-products-card__arrow {
    width: 35px;
  }

  .c-products-catalog {
    padding: 20px 0 80px;
  }

  .c-products-catalog__inner {
    padding-inline: 18px;
  }

  .c-products-catalog__title {
    display: none;
  }

  .c-products-catalog__group + .c-products-catalog__group {
    margin-top: 48px;
    padding-top: 48px;
  }

  .c-products-catalog__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 52px;
  }

  .c-products-catalog__note {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 32px;
  }

  .c-product-card--wide {
    grid-column: auto;
  }

  .c-product-card__images {
    gap: 8px;
  }

  .c-product-card__images--pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-product-card--wide .c-product-card__images {
    gap: 24px;
  }

  .c-product-card__image {
    position: relative;
  }

  .c-product-card__caption {
    bottom: 5px;
    color: #5064FA;
    display: block;
    font-weight: 700;
    position: absolute;
    right: 15px;
    text-align: center;
  }

  .c-product-card--wide .c-product-card__content {
    width: 100%;
  }

  .c-product-card__title {
    font-size: 2.1rem;
    padding: 8px 2px 5px;
  }

  .c-product-card__description {
    font-size: 1.4rem;
    line-height: 1.8;
    padding: 12px 2px 10px;
  }

  .c-product-card__details {
    font-size: 1.4rem;
    line-height: 1.7;
    padding: 8px 2px 0;
  }
}