@charset "utf-8";

.modal_open{
  display: inline-block;
  position: relative;
}
.modal_box {
  position: fixed;
  display: none;
  width: 80%;
  height: 80%;
  max-width: 840px;
  margin: 0;
  padding: 60px 2vw 80px;
  border: 2px solid #aaa;
  text-align: center;
  background: #fff;
  box-sizing: border-box;
  z-index: 7777;
}
.modal_box img {
  width: 50%;
  height: auto;
  margin-bottom: 20px;
  border: 1px solid #aaa;
}
.modal_box .modal__wrapper {
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0 8%;
}
.modal_box h4 {
  padding: 20px 0;
}
.modal_box p {
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.6rem;
  letter-spacing: 0.12rem;
  word-break: break-all;
}
.modal_box .link {
  display: inline-block;
  width: 200px;
  padding-top: 10px;
  font-size: 0.9rem;
  color: #bf6256;
  position: relative;
}
.modal_box .link::after {
  display: inline-block;
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #aaa;
  transition: 0.8s;
  transform: scale(0,1);
  transform-origin: center top;
}
.modal_box .link:hover::after {
  transform: scale(1,1);
}
.modal_bg {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  z-index: 6666;
}
.link_area {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  overflow: hidden;
  max-width: 410px;
  margin: 60px auto 0;
  text-align: center;
}
.link_area .modal_link {
  display: inline;
}
.link_area .modal_link a,
.modal_close span {
  display: inline-block;
  width: 120px;
  color: #000;
  line-height: 2.5;
  text-decoration: none;
  border-radius: 3px;
  margin: 0 10px;
  background: #e6e6e6;
  cursor: pointer;
}
.link-area ul li.modal_link:first-child a {
  display: flex;
  justify-content: left;
}
.link-area ul li.modal_link:last-child a,
.modal_close {
  display: flex;
  justify-content: right;
}

@media screen and (max-width: 769px) {

  /* ウィンドウサイズ769px以下の時のスタイル */
  .modal_box {
    padding: 50px 2vw 40px;
    height: 76vh;
  }
  .modal_box p {
    font-size: 0.8rem;
  }
  .link_area {
    margin: 25px auto 0;
  }
  .link_area .modal_link a,
  .modal_close {
    margin: 15px auto 0;
  }
  .link_area ul li.modal_link:first-child a {
    margin-top: 0;
  }
}
@media screen and (max-width: 375px) {

  /* ウィンドウサイズ375px以下の時のスタイル */
  .modal_box p {
    font-size: 0.68rem;
    line-height: 0.9rem;
  }
}