/* モーダルと背景の指定 */
.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 10px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
  z-index: 2;
}

/* モーダルの擬似要素の指定 */
.modal:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin-left: -0.2em;
}

/* クラスが追加された時の指定 */
.modal.is-active{
  opacity: 1;
  visibility: visible;
}

/* モーダル内側の指定 */
.modal-container{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 600px;
  width: 94%;
  z-index: 3;
}

/* モーダルを閉じるボタンの指定 */
.modal-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
}
/*なんかよく分かんないけど、クローズボタンにホバーしたらズレたので、
でも、↓を書いたら防げた*/
.close_link .modal-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
}

/* モーダルのコンテンツ部分の指定 */
.modal-content{
  background: #fff;
  text-align: left;
  padding: 16px;
  border-radius: 4px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}


/* ここから上は参考サイトのコピペ */

/* ここから下は記述内容のスタイル */
.modal_item_name{
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  padding: 0;
}
.item_name__img{
  margin: 0px 20px;
}

.ec_link{
  display: block;
  margin: 10px 0px;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight:bold;
}
.amazon{
  background-color: rgb(255, 220, 116);
  color: rgb(53, 53, 53);
}
.rakuten_ichiba{
  background-color: rgb(214, 0, 0);
  color: rgb(255, 255, 255);
}
.yahoo{
  background-color: rgb(247, 128, 0);
  color: rgb(255, 255, 255);
}
.green_beans{
  background-color: rgb(204, 243, 114);
  color: rgb(47, 123, 2);
}


.balloon1-top {
  position: relative;
  display: inline-block;
  margin: 4px 0;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: #555;
  font-size: 16px;
  background: #e0edff;
  border-radius: 10px;
}

.balloon1-top:before {
  content: "";
  position: absolute;
  top: -28px;
  left: 30%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-bottom: 15px solid #e0edff;
}

.balloon1-top p {
  margin: 0;
  padding: 0;
}



/* モダールを呼び出す「購入」ボタン */
a.purchase{
  text-decoration: none;
  color: #fff;
}
a.purchase div{
  border-radius: 12px;
  background-color: #5bc0e4;
  padding: 2px 30px;
  width: fit-content;
  margin: auto;
  font-weight: bold;
}
/* モダールを呼び出す「購入」ボタン（終わり） */