﻿

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal_container{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal_container.active{
  opacity: 1;
  visibility: visible;
}
/*モーダル枠の指定*/
.modal_body{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 640px;
  width: 100%;
}
/*モーダルを閉じるボタンの指定*/
.modal_close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -50px;
  right: -6px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
/*モーダル内のコンテンツの指定*/
.modal_content{
  background: #fff;
  text-align: left;
  padding: 60px 30px;
  border-radius: 20px;
  text-align: center;
}
#header .modal_body .modal_content .button_link {
  display: inline-block;
  position: relative;
  border-radius: 47px;
  margin-top: 3px;
  padding: 29px 60px;
  box-sizing: border-box;
  font-size: 34px;
  font-weight: bold;
  max-width: 440px;
  width: 100%;
  line-height: 41px;
}
#header .modal_text{
  font-family:"Noto Sans JP", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro";
}
#header .modal_text.mgt50{
  margin-top: 50px;
}
#header .modal_text span{
  font-weight: bold;
}
@media screen and (min-width: 801px), print{

#header .modal_content .button_link::after {
  width: 51px;
  height: 51px;
}
.modal_container:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

}
@media screen and (max-width: 800px) {
  #header .modal_body .modal_content .button_link {
    padding: 3vw 7vw;
    font-size: 5.5vw;
    max-width: 440px;
  }
  #header .modal_body .modal_content .button_link::after {
    width: 51px;
    height: 51px;
}
#header .modal_body .modal_content .button_link::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  width: 37px;
  height: 37px;
  background: url(../image/icn_arrow_bg_w.svg) no-repeat center center/contain;
}
.modal_container {
  padding: 150px 20px 30px;
  display: none;
  transition: .3s;
}
.modal_container.active{
  display: block;
  z-index: 9999;
}
.modal_container.active + .menu_btn {
  background: rgba(0,0,0,50%);
}


/* #header .entry_area .modal_open .button_link {
  margin: auto;
} */
}