@charset "UTF-8";

#main div:before,
#main div:after,
ul:before,
ul:after,
ol:before,
ol:after,
dl:before,
dl:after {
  display: none;
}

.flexbox p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.flexbox figure img {
  width: 100%;
  height: auto;
}


@media print,
screen and (min-width: 769px) {
  .flexbox {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-bottom: 30px;
    gap: 2%;
  }

  #box1 .flexbox figure {
    width: 28%;
  }

  .flexbox p {
    width: 70%;
  }

  #box2 .flexbox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row
  }

  #box2 .flexbox figure {
    width: 48%;
    height: auto;
    margin-bottom: 15px;
  }

  #box2 .flexbox figure img {
    width: 100%;
  }

  #box2 .flexbox figure figcaption {
    margin-top: 10px;
  }

}

@media screen and (max-width: 768px) {
  #box1 img {
    display: block;
    width: 100%;
    margin: 15px auto;
  }

  #box1 .inner {
    margin-top: 20px;
  }

  #box2 .flexbox {
    display: block;
  }

  #box2 .flexbox figure {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  #box2 .flexbox figure img {
    width: 100%;
  }

  #box2 .flexbox figure figcaption {
    margin-top: 10px;
  }
}