.coment1 {
  padding-left: 20px;
  padding-right: 15px;
  padding-bottom: 10px;
  background-image: url(kyoudo/kyoudou_img1.jpg);
  background-repeat: no-repeat;
  background-position: right top;
}
#hpb-wrapper img {
  width: 100%;
  height: auto;
}
#hpb-wrapper header {
  margin: 0 auto;
  width: 627px;

  h1 {
    margin-block-end: 39px;
    padding: 18px 0;
    background-color: #ffef9d;
    font-size: 20px;
    text-align: center;
    line-height: 1.5;
  }
}
#hpb-wrapper header figure {
  margin: 0;
  padding: 0;
}
#hpb-wrapper .content {
  margin: 0 auto;
  width: 627px;
}

#hpb-main {
  p {
    padding-inline: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    &:not(:last-of-type) {
      margin-bottom: 1em;
    }
  }
  .flow {
    margin: 0;
    h2 {
      margin: 0 0 0 0;
      background-color: transparent;
      background-image: none;
      text-align: center;
      font-size: 18px;
      line-height: 1.5;
      color: #000;
      height: auto;
      .sub {
        font-size: 16px;
      }
    }

    h3 {
      padding-inline: 0;
      color: #000;
      font-size: 14px;
    }

    ul {
      margin: 0 0 1em 0;
      font-size: 14px;
      li {
        margin-left: 1.5em;
        list-style-type: disc;
        border-style: none;
      }
    }

    .float-right {
      margin: 0 20px 0 32px;
      float: right;
      width: 240px;
    }

    .author {
      text-align: right;
    }
  }

  .photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 19px;
    margin: 44px 0;
    padding: 0;
    li {
      padding: 0;
      margin: 0;
      border-style: none;
    }
  }

  .messages {
    border: 1px solid #f0d134;
    border-radius: 16px;
    margin: 0 0 40px 0;
    padding: 32px 40px;
    h2 {
      margin: 0 0 36px 0;
      padding: 0;
      background-color: transparent;
      background-image: none;
      text-align: center;
      font-size: 20px;
      line-height: 1.5;
      color: #000;
      height: auto;
      font-family: serif;
    }

    .list-messages {
      margin: 0;
      padding: 0;
      font-family: serif;

      li {
        margin: 0;
        padding: 0;
        border-style: none;
        &:not(:last-of-type) {
          padding-bottom: 20px;
          margin-bottom: 20px;
          border-bottom: 1px solid #ffef9d;
        }
      }
      p {
        margin: 0;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.6;

        &.author {
          margin-top: 8px;
          display: flex;
          align-items: center;
          justify-content: end;
          gap: 8px;
          &::before {
            content: "";
            width: 32px;
            height: 1px;
            background-color: currentColor;
          }
        }
      }
    }
  }
}
