* {
  box-sizing: border-box;
}

body {
  max-width: 768px;
  margin: 0 auto;
  font-family: Quicksand, 游ゴシック体, "Yu Gothic", YuGothic, "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

h2 {
  margin: 0;
  text-align: center;
}

h3 {
  margin: 0 20px 45px;
  text-align: center;
}

img {
  width: 100%;
  height: auto;
}

.logo {
  width: 80%;
  margin: 10px auto 0;
}

.mainvisual {
  margin-bottom: 30px;
}

.yesno {
  position: relative;
  max-width: 768px;
  height: 320px;
  margin: 0 20px 30px;
  border: 2px solid #0ca3ff;
  border-radius: 5px;
}

.yesno h2 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 8px 15px;
  color: #fff;
  background: linear-gradient(180deg, #0ca3ff, #49baff);
  border-bottom: 2px dashed #fff;
  box-shadow: 0px 3px 0px 0px #49baff;
  white-space: nowrap;
}

.yesno ul {
  overflow: hidden;
  display: flex;
  padding: 0;
}

.yesno ul li {
  list-style: none;
  text-align: center;
  flex: 1 0 auto;
  line-height: 3;
  font-size: 100%;
  width: 35%;
  margin: 0 5%;
}

.positionFit {
  position: absolute;
  left: 0px;
  top: 50px;
  width: 100%;
}

#q_01.positionFit, #q_02.positionFit, #q_03.positionFit, #q_04.positionFit, #q_05.positionFit, #q_06.positionFit, #q_07.positionFit, #q_08.positionFit {
  padding-top: 45px;
}

.yesno ul li a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  font-weight: bold;
  background-color: #a5a5a5;
  text-decoration: none;
  border-radius: 5px;
}

.yesno ul li.even a {
  color: #ff6a6a;
  background-color: #ffe9e9;
  border: 2px solid #ffa2a2;
}

.yesno ul li.odd a {
  color: #0ca3ff;
  background-color: #c9eaff;
  border: 2px solid #7ccdff;
}

.yesno ul li.back a {
  width: 50%;
  margin: 0 auto;
}

.center {
  text-align: center;
}

.bold {
  font-size: 125%;
  font-weight: bold;
}

.red {
  color: #f00;
}

.big {
  font-size: 150%;
}

.soudan {
  margin-bottom: 10px;
  line-height: 1.5;
}

.link_btn {
  display:flex;
  margin-bottom: 30px;
  justify-content: space-evenly;
}

.link_btn a {
  position: relative;
  display: block;
  padding: 10px 25px;
  color: #fff;
  font-size: 150%;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 35px;
  overflow: hidden;
  z-index: 1;
}

.mail {
  background: linear-gradient(180deg, #3972dd, #58aaff 35%, #3972dd);
  border: 2px solid #ffffff;
  box-shadow: 0px 0px 2px 1px #3972dd;
}
.online {
  background: linear-gradient(180deg, #2bb54c, #4de26d 35%, #2bb54c);
  border: 2px solid #ffffff;
  box-shadow: 0 0 2px 1px #51a71d;
}
.mail::after, .online::after {
  content: '>>';
  display: inline-block;
  padding-left: 10px;
  font-size: 65%;
  vertical-align: middle;
  animation: moveArrow infinite 1.5s ease;
}
.mail::before, .online::before {
  content: "";
  display: block;
  position: absolute;
  left: -30%;
  top: -50%;
  width: 60px;
  height: 140px;
  transform: rotate(30deg);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shiny 3s infinite linear;
  z-index: -1;
}
footer {
  padding: 20px 10px;
  background-color: #0ca3ff;
}

.footer_link {
  display: flex;
  justify-content: center;
}

.footer_link a {
  margin: 0 10px;
  color: #fff;
  font-size: 75%;
  text-decoration: none;
}

@keyframes moveArrow {
  0% {
    opacity: 0;
    transform: translateX(-50%);
  }

  100% {
    opacity: 1;
    transform: translateX(10%);
  }
}

@keyframes shiny {
  0% {
    left: -30%;
  }

  15% {
    left: 120%;
  }

  100% {
    left: 120%;
  }
}

@media screen and (max-width: 480px) {
  .link_btn {
    display: block;
    margin: 0 20px 30px;
  }

  .link_btn a {
    position: relative;
    margin-bottom: 10px;
  }

  .mail::after, .online::after {
    position: absolute;
    top: 33%;
    right: 40px;
  }
}

@media screen and (max-width: 360px) {
  .yesno h2 {
    font-size: 135%;
  }

  #q_01.positionFit, #q_02.positionFit, #q_03.positionFit, #q_04.positionFit, #q_05.positionFit, #q_06.positionFit, #q_07.positionFit, #q_08.positionFit {
    padding-top: 25px;
  }

  .mail::after, .online::after {
    right: 30px;
  }
}

