/* ==================================================
   Products History
================================================== */

.products-history {
  position: relative;
  width: 100%;

  padding: 3rem 0;

  background-color: #FFFFFF;
}

/* ==================================================
   History Layout
================================================== */

.products-history__layout {
  display: grid;

  grid-template-columns: 240px minmax(0, 1fr);

  gap: clamp(1rem, 9vw, 3rem);

  width: 100%;

  margin: 70px auto 0;
}


/* ==================================================
   History Navigation
================================================== */

.products-history__nav {
  position: sticky;

  top: 120px;

  align-self: start;

  width: 100%;
}

.products-history__nav-label {
  margin: 0 0 28px;

  color: #000000;

  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 400;

  line-height: 1.7;
}


/* ==================================================
   History Nav Link
================================================== */

.products-history__nav-link {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  width: 100%;

  padding: 8px 0;

  color: #777777;

  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 400;

  line-height: 1.7;

  text-decoration: none;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.products-history__nav-line {
  display: block;
  flex: 0 0 16px;

  width: 16px;
  height: 1px;

  margin-top: 0.8em;

  background-color: #B7B7B7;

  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}


/* Active */

.products-history__nav-link.is-active {
  color: #000000;
  font-size: 16px;
}

.products-history__nav-link.is-active
.products-history__nav-line {
  width: 30px;
  flex-basis: 30px;

  background-color: #20460C;
}


/* Hover */

.products-history__nav-link:hover {
  color: #000000;
}


/* ==================================================
   History Contents
================================================== */

.products-history__contents {
  width: 100%;
}


/* ==================================================
   History Item
================================================== */

.products-history__item {
  display: grid;

  grid-template-columns:
    minmax(180px, 0.9fr)
    minmax(0, 1.1fr);

  align-items: center;

  gap: clamp(1rem, 7vw, 2rem);

  min-height: 320px;

  padding: 1.5rem 0 2rem;

  scroll-margin-top: 110px;
}

.products-history__item:first-child {
  padding-top: 0;
}


/* ==================================================
   History Image
================================================== */

.products-history__image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
}

.products-history__image img {
  display: block;

  width: auto;
  max-width: 100%;
  max-height: 330px;

  object-fit: contain;
}


/* ==================================================
   History Text
================================================== */

.products-history__period {
  margin: 0 0 18px;

  font-family: var(--font-base);
  font-size: 14px;

  line-height: 1.6;
}

.products-history__title {
  margin: 0;

  color: #000000;

  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;

  line-height: 1.65;
  letter-spacing: 0.04em;
}

.products-history__text {
  margin-top: 22px;

  color: #000000;

  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;

  line-height: 2;
  letter-spacing: 0.03em;
}


/* ==================================================
   Products Category
================================================== */

.products-category {
  padding: 3rem 0;

  background-color: #FFFFFF;
}

.common-section-head--center {
  text-align: center;
  border-top: 0;
}

.common-section-head__en {
  margin-bottom: 8px;

  font-family: var(--font-en);
  font-size: 10px;
}


/* ==================================================
   Product Grid
================================================== */

.products-category__grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 55px 40px;

  width: min(100%, 800px);

  margin: 55px auto 0;
}

.products-category__image {
  width: 100%;

  aspect-ratio: 1.35 / 1;

  overflow: hidden;

  background-color: #F5F2E9;
}

.products-category__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* ==================================================
   Products Category Title
================================================== */

.products-category__title {
  position: relative;

  margin: 22px 0 0;
  padding-left: 22px;

  color: #000000;

  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;

  line-height: 1.5;
  letter-spacing: 0.04em;
}

.products-category__title::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 0;

  width: 10px;
  height: 10px;

  background-color: #A5925D;

  border-radius: 50%;

  transform: translateY(-50%);
}

.products-category__text {
  margin-top: 9px;

  font-size: 11px;
  line-height: 1.9;
}

.products-category__button {
  margin: 3rem auto 1rem;
}


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

  .products-category {
    padding: 90px 0 100px;
  }

  .products-category__grid {
    grid-template-columns: 1fr;

    gap: 45px;

    margin-top: 45px;
  }

}

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

  .products-history__layout {
    display: block;

    margin-top: 45px;
  }

  .products-history__nav {
    position: static;
    top: auto;

    width: 100%;

    margin-bottom: 40px;
  }
  .products-history__title{
    font-size: 16px;
  }

  .products-history__item {
    grid-template-columns: 1fr;

    gap: 24px;

    min-height: 0;

    padding: 40px 0;

    scroll-margin-top: 80px;
  }

  .products-history__item:first-child {
    padding-top: 0;
  }

}