@charset 'utf-8';

/*--------------------
touchイベントとモーダル
--------------------*/
/*---------- reset.css ----------*/
div *,
h1,
article,
section,
figure,
ul {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  vertical-align: top;
}

ul {
  list-style: none;
  padding-left: 0;
}

a {
  text-decoration: none;
}

/*---------- ページ全体 ----------*/
body {
  color: #3E0102;
  font-family: 'Kiwi Maru', serif;
  margin: 0;
}

h1 {
  margin: 50px auto 20px auto;
  text-align: center;
  font-size: 36px;
  width: 440px;
  position: relative;
}

h1::before,
h1::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: url(../image/act_icon.svg) left bottom no-repeat;
  background-size: 20px;
  position: absolute;
}

h1::before {
  left: -30px;
  bottom: 10px;
  transform: rotate(-20deg);
}

h1::after {
  right: -30px;
  bottom: 10px;
  transform: rotate(20deg);
}

.center {
  margin-bottom: 50px;
  font-size: 16px;
  text-align: center;
}

/*---------- slideスタイル ----------*/

.slideBox {
  margin: 0 auto 150px auto;
}

.slideBox h2 {
  text-align: center;
}

#overlay {
  width: 100%;
  height: 100vh;
  position: fixed;
  background: rgba(0, 0, 0, 0.4);
  top: 0;
  bottom: 0;
  overflow-y: scroll;
  z-index: 50;
  display: none;
}

#slidePanel {
  position: absolute;
  width: 680px;
  padding: 40px;
  height: fit-content;
  background: #fffacd;
  top: calc((100% - 560px) / 2);
  left: calc((100% - 680px) / 2);
  z-index: 51;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

#prev,
#next {
  position: absolute;
  top: calc((100% - 300px) /2);
  cursor: pointer;
  transition: 0.5s;
}

#prev:hover,
#next:hover {
  opacity: 0.8;
}

#prev {
  left: 0px;
}

#next {
  right: 0px;
}

#close_modal {
  width: 50px;
  line-height: 42px;
  font-size: 40px;
  background: #3E0102;
  color: #f5a818;
  text-align: center;
  padding-bottom: 8px;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

#thumb {
  width: min(100%, 1000px);
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbLi {
  margin: 16px;
  width: 182px;
  height: auto;
  cursor: pointer;
  overflow: hidden;
}

.thumbLi img {
  transition: 0.5s;
}

.thumbLi img:hover {
  transform: scale(1.2);
}

.modal_contents {
  margin-top: 20px;
}

#thumb .modal_contents {
  display: none;
}

.link {
  width: min(100%, 1000px);
  margin: 0 auto 70px auto;
  display: flex;
  justify-content: center;
  border-top: solid 1px #ccc;
  padding-top: 30px;
}

.link li {
  margin: 0 10px;
}

.link a {
  display: block;
  width: 180px;
  line-height: 30px;
  background: #f5a818;
  text-align: center;
  color: #fff;
  border-radius: 6px;
  transition: 0.5s;
}

.link a:hover {
  background: #3E0102;
}

@media screen and (max-width: 768px) {
  h1 {
    margin: 30px auto 20px auto;
    font-size: 24px;
    width: calc(100% - 60px);
  }

  h1::before {
    left: -15px;
    bottom: 6px;
  }

  h1::after {
    right: -15px;
    bottom: 6px;
  }

  .center {
    font-size: 14px;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  #slidePanel {
    min-height: auto;
    width: 90%;
    left: 5%;
    top: 70px;
    bottom: 70px;
    padding: 20px 10px;
  }

  .modal_contents {
    padding: 0 20px;
  }

  .thumbLi {
    margin: 10px;
    width: 100px;
  }

  #prev,
  #next {
    height: 200px;
    top: calc((100% - 200px) / 2);
  }

  #prev img,
  #next img {
    height: 200px;
  }

  .link {
    flex-wrap: wrap;
    padding: 20px 10px 0 10px;
    margin: 0 0 70px 0;
  }

  .link li {
    margin: 10px;
  }

  .link a {
    font-size: 14px;
    width: 150px;
  }

}