@charset "UTF-8";

/* products.css（XD: 03-PRODUCTS） */
.p-products {
  padding-block: 4rem 6.25rem;
}

@media (min-width: 768px) {
  .p-products {
    padding-block: 7.5625rem 10.0625rem;
  }
}

.p-products__inner {
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .p-products__inner {
    padding-inline: max(2.5rem, 6.25%, (100% - 96rem) / 2);
  }
}

@media (min-width: 1024px) {
  .p-products__inner {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    column-gap: min(7.5625rem, 8%);
    align-items: start;
  }
}

.p-products__side,
.p-products__main {
  margin-inline: 1.1875rem;
}

@media (min-width: 768px) {

  .p-products__side,
  .p-products__main {
    margin-inline: 0;
  }
}

/*----------------------------------
  カテゴリ（サイドバー）
-----------------------------------*/
@media (min-width: 768px) {
  .p-products__side {
    width: min(100%, 22.5rem);
  }
}

@media (min-width: 1024px) {
  .p-products__side {
    width: auto;
    position: sticky;
    top: 7.375rem;
  }
}

.p-products__side-title {
  position: relative;
  padding-inline-start: 0.5rem;
  padding-block-end: 0.375rem;
  border-bottom: 1px solid #0a5da7;
  color: #0a5da7;
  font-family: "Montserrat", sans-serif;
  font-size: max(0.75rem, 9.6px);
}

@media (min-width: 0px) {
  .p-products__side-title {
    font-size: 0.75rem;
  }
}

.p-products__side-title {
  font-weight: 600;
  line-height: 1.25;
}

.p-products__side-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.1875rem;
  height: 0.9375rem;
  background-color: #0a5da7;
  pointer-events: none;
}

.p-products__side-group {
  margin-block-start: 1.0625rem;
}

.p-products__side-group+.p-products__side-group {
  margin-block-start: 1.5rem;
}

.p-products__side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 0.625rem;
  cursor: pointer;
}

.p-products__side-head p {
  color: #0a5da7;
  font-size: max(1rem, 12.8px);
}

@media (min-width: 0px) {
  .p-products__side-head p {
    font-size: 1rem;
  }
}

.p-products__side-head p {
  font-weight: 400;
  line-height: 1.5;
}

.p-products__side-head::after {
  content: "";
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  margin-inline-end: 0.1875rem;
  margin-block-start: 0.25rem;
  border-top: 2px solid #0a5da7;
  border-left: 2px solid #0a5da7;
  rotate: 45deg;
  transition: rotate 0.3s ease, margin 0.3s ease;
  pointer-events: none;
}

.is-closed>.p-products__side-head::after {
  margin-block-start: -0.25rem;
  rotate: 225deg;
}

.p-products__side-links {
  display: flex;
  flex-direction: column;
  margin-block-start: 0.5rem;
  padding-inline-start: 0.625rem;
}

.is-closed>.p-products__side-links {
  display: none;
}

.p-products__side-links a p {
  color: #0a5da7;
  white-space: nowrap;
  font-size: max(0.75rem, 9.6px);
}

@media (min-width: 0px) {
  .p-products__side-links a p {
    font-size: 0.75rem;
  }
}

.p-products__side-links a p {
  font-weight: 600;
  line-height: 2.75;
}

/*----------------------------------
  カテゴリ別一覧
-----------------------------------*/
.p-products__main {
  margin-block-start: 4.75rem;
}

@media (min-width: 1024px) {
  .p-products__main {
    margin-block-start: 0;
  }
}

.p-products__category+.p-products__category {
  margin-block-start: 5rem;
}

@media (min-width: 768px) {
  .p-products__category+.p-products__category {
    margin-block-start: 7.5rem;
  }
}

.p-products__category-title {
  color: #0a5da7;
}

.p-products__category-title .c-section-title__ja {
  font-weight: 500;
}

@media (min-width: 768px) {
  .p-products__category-title .c-section-title__ja {
    margin-block-start: 0.875rem;
    font-size: max(1.25rem, 16px);
    font-weight: 500;
    line-height: 1.4;
  }
}

@media (min-width: 768px) and (min-width: 0px) {
  .p-products__category-title .c-section-title__ja {
    font-size: 1.25rem;
  }
}

.p-products__category-text {
  margin-block-start: 1.5rem;
  color: #606060;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .p-products__category-text {
    font-size: 0.875rem;
  }
}

.p-products__category-text {
  font-weight: 400;
  line-height: 1.4285714286;
}

@media (min-width: 768px) {
  .p-products__category-text {
    margin-block-start: 1.25rem;
    font-size: max(1rem, 12.8px);
    font-weight: 400;
    line-height: 1.5625;
  }
}

@media (min-width: 768px) and (min-width: 0px) {
  .p-products__category-text {
    font-size: 1rem;
  }
}

.p-products__list {
  display: flex;
  flex-direction: column;
  row-gap: 3.625rem;
  margin-block-start: 2.5625rem;
}

@media (min-width: 768px) {
  .p-products__list {
    row-gap: 3.5625rem;
    margin-block-start: 2.375rem;
  }
}

@media (min-width: 768px) {
  .p-products__item {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    column-gap: min(2.5rem, 5%);
    align-items: start;
  }
}

.p-products__img {
  overflow: hidden;
  width: 13.625rem;
  margin-inline: auto;
  aspect-ratio: 1/1;
  border: 0.1875rem solid #0a5da7;
  border-radius: 0.625rem;
}

@media (min-width: 768px) {
  .p-products__img {
    width: min(100%, 18rem);
    margin-inline: 0;
    border-width: 0.1875rem;
    border-radius: 0.625rem;
  }
}

.p-products__body {
  margin-block-start: 1.25rem;
}

@media (min-width: 768px) {
  .p-products__body {
    margin-block-start: 0.125rem;
  }
}

.p-products__name {
  padding-block-end: 0.125rem;
  border-bottom: 1px solid #0a5da7;
  color: #0a5da7;
  font-size: max(1rem, 12.8px);
}

@media (min-width: 0px) {
  .p-products__name {
    font-size: 1rem;
  }
}

.p-products__name {
  font-weight: 500;
  line-height: 2;
}

@media (min-width: 768px) {
  .p-products__name {
    padding-block-end: 0.8125rem;
    font-size: max(1.25rem, 16px);
    font-weight: 500;
    line-height: 1.4;
  }
}

@media (min-width: 768px) and (min-width: 0px) {
  .p-products__name {
    font-size: 1.25rem;
  }
}

.p-products__text {
  margin-block-start: 1.0625rem;
  color: #606060;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .p-products__text {
    font-size: 0.875rem;
  }
}

.p-products__text {
  font-weight: 400;
  line-height: 1.4285714286;
}

@media (min-width: 768px) {
  .p-products__text {
    margin-block-start: 1rem;
    font-size: max(1rem, 12.8px);
    font-weight: 400;
    line-height: 1.5;
  }
}

@media (min-width: 768px) and (min-width: 0px) {
  .p-products__text {
    font-size: 1rem;
  }
}

.p-products__spec {
  display: flex;
  flex-direction: column;
  row-gap: 0.9375rem;
  margin-block-start: 1.25rem;
}

@media (min-width: 768px) {
  .p-products__spec {
    row-gap: 1.6875rem;
    margin-block-start: 2.0625rem;
  }
}

@media (min-width: 768px) {
  .p-products__spec-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    column-gap: 1.25rem;
    align-items: start;
  }
}

.p-products__spec-label {
  display: grid;
  place-items: center;
  width: 3.875rem;
  min-height: 1.375rem;
  background-color: #0a5da7;
  border-radius: 100vmax;
  color: #ffffff;
  font-size: max(0.6875rem, 8.8px);
}

@media (min-width: 0px) {
  .p-products__spec-label {
    font-size: 0.6875rem;
  }
}

.p-products__spec-label {
  font-weight: 700;
  line-height: 1.4545454545;
}

@media (min-width: 768px) {
  .p-products__spec-label {
    width: auto;
    min-height: 1.875rem;
    font-size: max(0.875rem, 11.2px);
    font-weight: 700;
    line-height: 1.4285714286;
  }
}

@media (min-width: 768px) and (min-width: 0px) {
  .p-products__spec-label {
    font-size: 0.875rem;
  }
}

.p-products__spec-value {
  margin-block-start: 0.375rem;
  color: #606060;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .p-products__spec-value {
    font-size: 0.875rem;
  }
}

.p-products__spec-value {
  font-weight: 400;
  line-height: 1.4285714286;
}

@media (min-width: 768px) {
  .p-products__spec-value {
    margin-block-start: 0;
    padding-block-start: 0.1875rem;
    font-size: max(1rem, 12.8px);
    font-weight: 400;
    line-height: 1.5;
  }
}

@media (min-width: 768px) and (min-width: 0px) {
  .p-products__spec-value {
    font-size: 1rem;
  }
}

/*----------------------------------
  縦横比を固定した画像枠（reset の img{height:auto} を上書き）
-----------------------------------*/
.p-products__img img {
  height: 100%;
  object-fit: cover;
}

/*----------------------------------
  改行（br）
  CMS では br にクラスを指定できないため、親要素から入れ子で指定する
  PC のみ改行（SP では自然に折り返す）
-----------------------------------*/
.p-products__text br {
  display: none;
}

@media (min-width: 768px) {
  .p-products__text br {
    display: inline;
  }
}

/*----------------------------------
  レイアウトシフト（CLS）対策：公開サイト（html.is-js）
  SP は2つ目以降のカテゴリを閉じた状態で表示する（main.js で .is-closed を付与）。
  JS の実行前に一度開いた状態で表示されて、閉じるときに下の内容がずれないよう、
  JS の準備ができる（html.is-side-ready）までは CSS で同じ「閉じた状態」にしておく
-----------------------------------*/
html.is-js:not(.is-side-ready) .p-products__side-group~.p-products__side-group .p-products__side-links {
  display: none;
}

@media (min-width: 768px) {
  html.is-js:not(.is-side-ready) .p-products__side-group~.p-products__side-group .p-products__side-links {
    display: flex;
  }
}

html.is-js:not(.is-side-ready) .p-products__side-group~.p-products__side-group .p-products__side-head::after {
  margin-block-start: -0.25rem;
  rotate: 225deg;
}

@media (min-width: 768px) {
  html.is-js:not(.is-side-ready) .p-products__side-group~.p-products__side-group .p-products__side-head::after {
    margin-block-start: 0.25rem;
    rotate: 45deg;
  }
}