/* ---  ASP  --- */
/* ---  横長３ストアボックス  --- */
.asp_wrap {
  width: 80%;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  border-radius: 3pt;
  border: 3px solid #ffa000;
  height: 182px;
  max-width: 800px;
}

.asp_image {
  display: inline-flex;
  width: 20%;
  height: 180px;
  flex: 0 0 180px;
  text-align: center;
  align-items: center;
}

.asp_image a img {
  width: 170px;
  max-height: 170px;
  margin: 4px 4px 4px 4px;
  object-fit: contain;
}

.asp_right {
  width: 80%;
  height: 180px;
}

.asp_title {
  height: 24px;
  padding: 0px 0px 2px 0px;
}

.asp_title a {
  text-decoration: none;
}

.asp_text {
  height: 105px;
  max-height: 93px;
  overflow: hidden;
  font-size: 0.8em;
  padding: 5px 3px 05px 5px;
  margin-bottom: 3px;
}

.asp_btn {
  display: flex;
  color: #fff;
  height: 35px;
}

.asp_btn a {
  text-decoration: none;
  color: #fff;

}

.asp_btn_all {
  padding: 3px 0px 0px 0px;
  color: #fff;
}

.btn {
  width: 33%;

}

.asp_btn_amazon {
  background-color: #FF9901;
  box-shadow: 0 5px 0 #cc7a01;
  border-radius: 3px;
  text-align: center;
  margin: 0px 3px 5px 3px;
}

.asp_btn_amazon:hover {
  background-color: #cc7a01;
}

.asp_btn_rakuten {
  background-color: #c20004;
  box-shadow: 0 5px 0 #9b0003;
  border-radius: 3px;
  text-align: center;
  margin: 0px 3px 5px 3px;
}

.asp_btn_rakuten:hover {
  background-color: #9b0003;
}

.asp_btn_yahoo {
  background-color: #0BBD80;
  box-shadow: 0 5px 0 #099766;
  border-radius: 3px;
  text-align: center;
  margin: 0px 3px 5px 3px;
}

.asp_btn_yahoo:hover {
  background-color: #099766;
}

/* ---  ここまで　横長３ストアボックス  --- */


/* ---  単ASP用ボックス  --- */

/* ---  flex親  --- */
.single_asp_wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  border-radius: 3pt;
  width: 100%;
  max-width: 1200px;
  border: 3px solid #fff;
}

/* ---  flexアイテム  --- */
.wrap_item {
  width: 30%;
  max-width: 230px;
  height: 300px;
  margin: 20px 3px 20px 3px;
  border: 3px solid #ffa000;
}

/* ---  画像  --- */
.image_zone {
  display: inline-block;
  width: 100%;
  height: 60%;
  text-align: center;
}

/* ---  上下中央　<a>タグをdisplay: inline-flexにしてheightを指定しalign-items: center; もしくは　<img>タグでalign-self: center; --- */
.image_zone a {
  display: inline-flex;
  height: 180px;
  align-items: center;
}

/* ---  <img>タグでalign-self:center;でも上下中央表示可能。画像のはみ出し抑止のためmax-width:max-height:を指定。object-fit: contain;はダメ  --- */
.image_zone a img {
  display: inline-block;
  max-width: 100%;
  max-height: 170px;
  margin: 4px 4px 4px 4px;
  margin-left: auto;
  margin-right: auto;
}


.title_zone {
  width: 100%;
  height: 20%;
}

.title_zone a {
  height: 30px;
  padding: 8px 4px 4px 4px;
  color: #000;
  text-decoration: none;
}


.btn_zone {
  display: inline-flex;
  width: 100%;
  height: 20%;
  align-items: center;
  justify-content: center;
}

.btn {
  display: block;
  width: 90%;
  height: 30px;
  border-radius: 3px;
  text-align: center;
  padding: 6px 0px 0px 0px;
  margin: 0px 3px 5px 3px;
}

.btn a {
  display: block;
  text-decoration: none;
  color: #fff;
}


.btn_amazon {
  background-color: #FF9901;
  box-shadow: 0 5px 0 #cc7a01;
}

.btn_amazon:hover {
  background-color: #cc7a01;
}

.btn_rakuten {
  background-color: #c20004;
  box-shadow: 0 5px 0 #9b0003;
}

.btn_rakuten:hover {
  background-color: #9b0003;
}

.btn_yahoo {
  background-color: #0BBD80;
  box-shadow: 0 5px 0 #099766;
}

.btn_yahoo:hover {
  background-color: #099766;
}

/* ---  ここまで　単ASP用ボックス  --- */
/* ---  ASP  --- */

/*-------------レスポンシブWeb　max-width: 767------------*/
@media screen and (max-width:767px) {

  /* 関連記事 */
  .kanren_p {
    margin-top: 10px;
    margin-left: 50px;
    font-size: 120%;
    font-weight: bold;
  }

  .kanren_waku {
    display: flex;
    flex-direction: column;
    font-size: 80%;
    margin: 10px 20px 50px 20px;
  }

  .kanren_waku img {
    width: 50px;
    height: auto;
  }

  .kanren_eyecatch {
    width: 60px;
  }

  .kanren {
    display: flex;
    padding-bottom: 5px;
    padding-left: 0px;
  }

  .kanren_posts {
    padding-right: 0px;
    padding-left: 0px;
    width: 80%;
  }

  .kanren_posts h3 {
    margin-bottom: 0px;
    font-size: 100%;
  }

  .kanren_posts p {
    margin-bottom: 0px;
    margin-top: 0px;
    font-size: 100%;
  }

  .yokonarabi {
    display: flex;
    flex-direction: row;
    max-width: 100% !important;
    height: auto;
  }

  /* Amazon広告 */
  .amazon_box01 {
    display: flex;
    justify-content: space-between;
    width: 95%;
    margin-top: 20px;
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
  }

  .amazon_title01 {
    margin-left: auto;
    margin-right: auto;
    font-size: 130%;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    background-color: #70e5ff;
    border: 3px solid #70c2ff;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .amazon_box_row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
  }

  .amazon_box_row img {
    margin: 0;
    padding: 0;
    width: initial !important;
  }

  .amazon_box_row a {
    margin: 0;
    padding: 0;
  }


}


/*----------------- @media screen and (min-width:768px) ---------------*/
@media screen and (min-width:769px) {

  .yokonarabi {
    display: flex;
    flex-direction: row;
    max-width: 100% !important;
    height: auto;
  }

  /* 関連記事 */
  .kanren_p {
    margin-top: 30px;
    margin-left: 50px;
    font-size: 140%;
    font-weight: bold;
  }

  .kanren_waku {
    display: flex;
    flex-direction: column;
    margin: 10px 20px 50px 20px;
  }

  .kanren_waku img {
    width: 100px;
    height: auto;
  }

  .kanren_eyecatch {
    width: 120px;
  }

  .kanren {
    display: flex;
    padding-bottom: 30px;
    padding-left: 20px;
  }

  .kanren_posts {
    padding-right: 10px;
    padding-left: 10px;
    width: 80%;
  }

  .kanren_posts h3 {
    margin-bottom: 0px;
    font-size: 120%;
  }

  .kanren_posts p {
    margin-bottom: 0px;
    margin-top: 0px;
    font-size: 100%;
  }

  /* Amazon広告 */
  .amazon_box01 {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin-top: 20px;
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
  }

  .amazon_title01 {
    margin-left: auto;
    margin-right: auto;
    font-size: 130%;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    background-color: #70e5ff;
    border: 3px solid #70c2ff;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .amazon_box_row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
  }

  .amazon_box_row img {
    margin: 0;
    padding: 0;
    width: initial !important;
  }

  .amazon_box_row a {
    margin: 0;
    padding: 0;
  }


}