@charset "utf-8";

.p-detail {
  background: var(--color-l-green);
  padding: 52px 0 140px;

  @media (width < 768px) {
    padding: 52px 0 100px;
  }
}

.p-detail__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #c4d0bd;
  padding-bottom: 2px;
}

.p-detail__header-title {
}

.p-detail__header-category {
  margin-left: auto;
}

.p-detail__container {
  margin: 144px auto 0;
  max-width: 924px;

  @media (width < 768px) {
    margin: 80px auto 0;
  }
}

.p-detail__title {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-noto-serif-jp);
  font-size: 28px;
  font-weight: 500;
  line-height: calc(32 / 28);
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-bottom: 22px;

  @media (width < 768px) {
    font-size: 22px;
    gap: 10px;
  }
}

.p-detail__title::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 33px;
  background: var(--color-green);
}

.p-detail__content {
  border-top: 1px solid #d0d0d0;
  padding-top: 45px;
  line-height: calc(26 / 14);

  h2 {
    font-family: var(--font-noto-serif-jp);
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    display: inline-flex;
    gap: 20px;
    align-items: center;
  }

  h2::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: var(--color-green);
  }

  img {
    display: block;
    margin: 84px auto 0;
    width: 594px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 2px;

    @media (width < 768px) {
      margin: 60px auto 0;
    }
  }
}

.p-detail__content > * + * {
  margin-top: 28px;
}

.p-detail__content > * + h2 {
  margin-top: 66px;
}

.p-detail__btn {
  margin: 82px auto 0;

  @media (width < 768px) {
    margin: 60px auto 0;
  }

  a {
    width: 183px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin: auto;
    background: var(--color-green);
    border: 1px solid var(--color-green);
    color: var(--color-white);
    transition: all 0.3s ease;
  }

  a:hover {
    background: var(--color-l-green);
    color: var(--color-green);
  }
}

.p-product-detail {
  margin-top: 70px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;

  @media (width < 768px) {
    flex-direction: column;
    gap: 60px;
  }
}

.p-product-detail__imgs {
  width: 48.5%;

  @media (width < 768px) {
    width: 100%;
  }
}

.p-product-detail__main-img {
  width: 100%;
  aspect-ratio: 582/442;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-product-detail__imgs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(8px, calc(20vw / 13.66), 20px);
}

.p-product-detail__img {
  cursor: pointer;
  transition: opacity 0.3s;

  @media (any-hover: hover) {
    &:not(.is-active):hover {
      opacity: 0.7;
    }
  }

  &.is-active {
    cursor: default;
  }

  img {
    margin-top: clamp(8px, calc(18vw / 13.66), 18px);
    width: 100%;
    aspect-ratio: 180/137;
    object-fit: cover;
  }
}

.p-product-detail__content {
  width: 45.4%;
  
  @media (width < 1120px) {
    width: 48%;
  }

  @media (width < 768px) {
    width: 100%;
  }
}

.p-product-detail__title {
  font-family: var(--font-noto-serif-jp);
  font-size: 36px;
  font-weight: 600;
  line-height: normal;

  @media (width < 768px) {
    font-size: 30px;
  }
}

.p-product-detail__body {
  margin-top: 40px;

  @media (width < 768px) {
    margin-top: 30px;
  }

  h2 {
    font-family: var(--font-noto-serif-jp);
    font-size: 26px;
    font-weight: 600;
    line-height: normal;
    padding-bottom: 0.3em;

    @media (width < 768px) {
      font-size: 24px;
    }
  }

  h3 {
    border-top: 1px solid #c4d0bd;
    padding-top: 1.3em;
    color: var(--color-green);
    line-height: 2;
  }

  p {
    font-size: 16px;
    line-height: calc(30 / 16);

    @media (width < 768px) {
      font-size: 14px;
    }
  }

  p > a {
    margin-top: 26px;
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 13px;
    height: 49px;
    padding: 0 26px;
    border: 1px solid var(--color-green);
    background: var(--color-green);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1;
    transition: all 0.3s ease;
  }

  p > a:hover {
    background: var(--color-base);
  }

  p > a::after {
    content: '';
    width: 12px;
    height: 10px;
    background: url('https://e-mot-weld.com/system_panel/uploads/images/arrow-white.svg') no-repeat center center / contain;
    transform: rotate(-35deg);
    transition: all 0.3s ease;
  }
}

.p-product-detail__body > * + * {
  margin-top: 15px;
}

.p-product-detail__body > * + h2 {
  margin-top: 40px;
}

.p-product-detail__body > * + h3 {
  margin-top: 30px;
}

.p-product-detail__contact {
  margin-top: clamp(12px, calc(20vw / 13.66), 20px);

  .c-arrow-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0 26px;
  }
}
