#wrapper {
  display: grid;
  /* 1列目から順番に230px、1frxの幅 */
  grid-template-columns: 230px 1fr;
  /* 1行目から順番にheader main-img main footer の高さ */
  grid-template-rows: 91px 113px 1fr 280px;
  text-align: center;
}

/*---------------
main
---------------*/
h1 {
  font-size: 1.6rem;
  margin: 20px 0 20px 0;
}
h2 {
  font-size: 1.6rem;
}
#top_contents {
  margin-bottom: 30px;
}
#top_contents img {
  display: block;
  margin: auto;
}

/*  #list  */
#list {
  margin-top: 30px;
  margin-right: auto;
  margin-left: auto;
}
#list .list-item {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
#list .list-item::after {
  content: "";
  display: block;
  width: 220px;
}
#list .list-box {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-image: url(../img/common/list_bg.jpg);
  width: 210px;
  height: 270px;
  margin-bottom: 30px;
  padding: 22px 11px 0;
  position: relative;
}
#list .list-box2 {
  background-image: url(../img/common/list_bg3.jpg);
  box-sizing: border-box;
  width: 210px;
  height: 270px;
  margin-bottom: 30px;
  padding: 22px 11px 0;
  position: relative;
}
#list .img-sam {
  width: 100%;
  margin: 0;
}
#list .img-sam2 {
  width: 144px;
  height: 180px;
  padding-top: 0;
}
#list .img-sam3 {
  width: 100%;
  object-fit: cover;
  margin: 0;
}
#list .img-sam3_h {
  height: 123px;
}
#list .list-text {
  /* 詳細 3行 */
  font-size: 1.3rem;
  margin-top: 18px;
  line-height: 1.5em;
}
#list .list-text:first-line {
  /* 1行目 文字サイズ */
  font-size: 1.6rem;
}
#list .list-text2 {
  /* 詳細 2行 */
  font-size: 1.3rem;
  margin-top: 14px;
  line-height: 2.2em;
}
#list .list-text2:first-line {
  /* 1行目 文字サイズ */
  font-size: 1.6rem;
}
#list .list-text2-1 {
  /* 詳細 2行 */
  font-size: 1.3rem;
  margin-top: 14px;
  line-height: 2.2em;
}
#list .list-text2-1:first-line {
  /* 1行目 文字サイズ */
  font-size: 1.6rem;
}
#list .list-text3 {
  /* 詳細なし 2行 */
  font-size: 1.3rem;
  margin-top: 14px;
  line-height: 2.2em;
}
#list .list-text3:first-line {
  /* 1行目 文字サイズ */
  font-size: 1.6rem;
}
#list .list-text4 {
  /* 詳細なし 3行 */
  font-size: 1.3rem;
  margin-top: 14px;
  line-height: 2.2em;
}
#list .list-text4:first-line {
  /* 1行目 文字サイズ */
  font-size: 1.6rem;
}
#list .list-text5 {
  /* 縦画像 */
  font-size: 1.3rem;
  margin-top: 14px;
  line-height: 2rem;
}
#list .list-text5:first-line {
  /* 1行目 文字サイズ */
  font-size: 1.6rem;
}
#list .list-text6 {
  /* 詳細 3行 2行目まで見出し用*/
  font-size: 1.3rem;
  margin-top: 24px;
  line-height: 1.4em;
}
#list .list-text6:first-line {
  /* 1行目 文字サイズ */
  font-size: 1.6rem;
  line-height: 0.6em;
}
#list .list-text7 {
  /* 詳細なし 1行 */
  font-size: 1.6rem;
  margin-top: 48px;
}
#list .bt {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 20px;
}

/*---------------
footer
---------------*/
#footer {
  /* 列の1本目から3本目のグリッドラインまで */
  grid-column-start: 1;
  grid-column-end: 3;
  /* 行の4本目から5本目のグリッドラインまで */
  grid-row-start: 4;
  grid-row-end: 5;
}

/* -------------------- スマホ 390px以下 -------------------- */
@media screen and (max-width: 390px) {
  #wrapper {
    display: grid;
    /* 1列目から順番に230px、1frxの幅 */
    grid-template-columns: 0 1fr;
    /* 1行目から順番にheader main-img main footer の高さ */
    grid-template-rows: 52px auto 1fr auto;
    text-align: center;
  }

  /*---------------
main
---------------*/
  /*  #list  */
  #list {
    margin-top: 30px;
  }
  #list .list-box {
    background-image: none;
    width: 47%;
    height: initial;
    padding: 0;
    border-bottom: #989898 1px solid;
  }
  #list .list-box2 {
    background-image: none;
    width: 47%;
    height: initial;
    padding: 0;
    border-bottom: #989898 1px solid;
  }
  #list .img-sam2 {
    width: 60%;
    height: auto;
    padding: 0;
  }
  #list .img-sam3 {
    object-fit: contain;
  }
  #list .img-sam3_h {
    height: initial;
  }
  #list p {
    flex-grow: 1;
    padding-bottom: 5px;
  }
  #list .list-text {
    /* 詳細 3行 */
    margin-top: 10px;
  }
  #list .list-text2 {
    /* 詳細 2行 */
    margin-top: 10px;
    line-height: 1.5em;
  }
  #list .list-text2-1 {
    /* 詳細 2行 */
    margin-top: 10px;
    line-height: 1.5em;
  }
  #list .list-text3 {
    /* 詳細なし 2行 */
    margin-top: 10px;
    line-height: 1.5em;
  }
  #list .list-text4 {
    /* 詳細なし 3行 */
    margin-top: 10px;
    line-height: 1.5em;
  }
  #list .list-text6 {
    /* 詳細 3行 2行目まで見出し用*/
    margin-top: 10px;
  }
  #list .list-text6:first-line {
    /* 1行目 文字サイズ */
    line-height: 1.4em;
  }
  #list .list-text7 {
    /* 詳細なし 1行 */
    margin: 15px 0;
  }
  #list .bt {
    position: static;
    margin-bottom: 10px;
  }
}
