@charset "UTF-8";

.modal-wrapper {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 10px;
  text-align: center;
}

.modal-wrapper:not(:target) {
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s ease;
}

.modal-wrapper:target {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s, visibility .5s ease;
}

.modal-wrapper::after {
  display: inline-block;
  height: 100%;
  margin-left: -.05em;
  vertical-align: middle;
  content: ""
}

.modal-wrapper .modal-window {
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  width: 90%;
  max-width: 500px;
  padding: 30px 40px 15px;
  border-radius: 2px;
  background: #e8e6e2;
  box-shadow: 0 0 30px rgba(0, 0, 0, .6);
  vertical-align: middle
}
@media screen and (max-width:559px){
  .modal-wrapper .modal-window {padding:40px 20px 15px;}
}

.modal-wrapper .modal-window .modal-content {
  padding-bottom: 4em;
  max-height: 80vh;
  overflow-y: auto;
  background-color: transparent;
  border: none;
}

.modal-overlay {
  z-index: 10;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .8)
}

.modal-wrapper .modal-close {
  z-index: 20;
  position: absolute;
  top: 5px;
  right: 0;
  width: 35px;
  color: #95979c !important;
  font-size: 30px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  text-decoration: none!important;
  text-indent: 0
}

.modal-wrapper .modal-close:hover {
  color: #2b2e38 !important
}

.modal-link {
  text-decoration: none!important;
}

.modal-link:hover {
  font-weight: normal!important;
  color: darkslategray;
}

.modal-content h4 {
  margin:10px auto;
  font-size:1.4em;
  font-weight:600;
  letter-spacing: 2px;
  font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN",HGS明朝E,メイリオ,Meiryo,serif;
  text-decoration: none;
}

.modal-content h4 span {
  display: inline-block;
}

.modal-content img {
  margin: 30px auto!important;
}

.modal-content .modal-img {
  width:auto!important;
}

.modal-content .description {
  text-align: left;
  text-decoration: none;
}

.modal-content .modal-tagbox {
  margin-bottom: 30px;
}

.modal-content .modal-hashtag {
  margin-right: 5px;
  margin-bottom: 10px;;
  padding: 6px 6px;
  display: inline-block;
  border-radius: 20px;
  background: lightgray;
  font-size: 0.9em;
  text-decoration: none!important;
}

.modal-content .back-link {text-decoration:none;}

.modal-content .back-box {
  float: right;
  margin-right: 10px;
  padding-top: 5px;
  border: 1px solid gray;
  width: 140px;
  height:35px;
  background:white;
  text-align: center;
}

@media screen and (max-width:559px){
  .modal-content .back-box {
    margin-bottom: 60px;
  }
}

.modal-content .form-link {text-decoration:none;}

.modal-content .form-box {
  float: right;
  margin-right: 10px;
  padding-top: 5px;
  border: 1px solid gray;
  width: 140px;
  height:35px;
  background:white;
  text-align: center;
}

/* モーダル｜価格 */
.modal-price {
  margin: -1em 0 2em;
  text-align: right;
}

@media screen and (max-width:559px) {

  .modal-price {
    margin-top: 1em;
  }
}

/* モーダル｜ボタン */

.modal-btn-flex {
  display: flex;
  justify-content: right;
  gap: 1em;
}

#togo .articleBody .modal-btn {
  display: inline-block;
  cursor: pointer;
  float: right;
  margin: 0;
  padding: 5px 20px;
  border: 1px solid gray;
  background: white;
  text-align: center;
  text-decoration: none;
  width: 140px;
  min-width: fit-content;
  height: 35px;
  line-height: 35px;
  transition: all .4s ease;
}

#togo .articleBody .modal-btn:hover,
#togo .articleBody .modal-btn:active {
  background-color: #f5f3f1;
  font-weight: bold;
  color:#2b2e38;
}

@media screen and (max-width:559px){
  .modal-content .form-box {
    margin-bottom: 1em;
  }

  #togo .articleBody .modal-btn-flex {
    flex-wrap: wrap;
  }

  #togo .articleBody .modal-btn {
    margin: 0;
    padding: 5px 10px;
    width: 100px;
    font-size: 0.85em;
  }
}

/* モーダル｜スクロールバーの非表示 */
.modal-content {
  -ms-overflow-style: none;    /* IE, Edge 対応 */
  scrollbar-width: none;       /* Firefox 対応 */
}
.modal-content::-webkit-scrollbar {
display:none;/* Chrome, Safari 対応 */
}
