@charset "utf-8";

.p-detail {
  padding: 0 0 100px;

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

  section {
    background: var(--color-white);
    border-radius: 20px;
    padding: 114px 20px 100px;

    @media (width < 768px) {
      padding: 80px 20px;
    }
  }

  article {
    margin: 0 auto;
    max-width: 924px;
  }
}

.p-detail__header-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p-detail__title {
  margin-top: 50px;
  padding: 20px 0 20px 30px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  position: relative;

  @media (width < 768px) {
    margin-top: 0;
    font-size: 20px;
  }
}

.p-detail__title::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 8px;
  height: 34px;
  background: var(--color-yellow);
}

.p-detail__content {
  border-top: 1px solid #d0d0d0;
  padding-top: 48px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0;

  h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    padding-left: 32px;
    position: relative;

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

  h2::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    left: 0;
    top: 2px;
    background: var(--color-yellow);

    @media (width < 768px) {
      top: 0;
    }
  }

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

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

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

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

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

  a {
    width: 183px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 15px;
    border-radius: 50px;
    margin: auto;
    border: 1px solid var(--color-base);
    background: var(--color-base);
    color: var(--color-white);
  }

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