@charset "utf-8";

.p-detail {
  margin-top: 60px;
  margin-bottom: 150px;

  @media (width < 768px) {
    margin-bottom: 100px;
  }

  section {
    margin: 116px auto 0;
    max-width: 928px;

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

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

.p-detail__title {
  margin-top: 36px;
  padding: 20px 0 20px 30px;
  font-size: 22px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0em;
  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-blue);
}

.p-detail__content {
  margin: auto;
  border-top: 1px solid #d0d0d0;
  padding-top: 45px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.85;

  h2 {
    font-size: 20px;
    line-height: normal;
    letter-spacing: 0em;
    padding-left: 28px;
    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: 5px;
    background: var(--color-blue);

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

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

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

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

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

  a {
    width: 183px;
    height: 47px;
    background: var(--color-blue);
    border: 1px solid var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-noto-sans-jp);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0em;
    border-radius: 50px;
    margin: auto;
  }

  a:hover {
    color: var(--color-blue);
    background: #fff;
  }
}
