@media only screen and (min-width: 300px) and (max-width: 767px) {
  #contents {
    margin: 0 auto;
    padding: 0 10px;
  }
  #contents-img {
    text-align: center;
  }
    #contents-img img {
      width: 100%;
    }
  #white-area {
    margin: 50px 0;
  }
  #green-bg {
    background-color: #00a999;
    padding: 50px 0;
  }
/********************************************top**************************************************************/
  #topBG {
    margin: 0;
    padding: 0;
    position: relative;
  }
    .top_img {
      text-align: center;
      position: relative;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
      z-index: 2;
    }
      .top_img img {
        width: 100%;
      }
    .top-color {
      position: absolute;
      bottom: 0;
      z-index: 1;
    }
      .top-color img {
        width: 100%;
        height: 150px;
      }
    .top-cloud {
      position: absolute;
      bottom: 0;
      z-index: 999;
    }
      .top-cloud img {
        width: 100%;
      }
/********************************************contents******************************************************/
#cont-title {
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 999;
}
  #cont-title img {
    width: 100%;
  }
#coution-text {
  text-align: center;
  line-height: 2em;
  margin: 20px 0;
}
  #coution-text p {
    font-size: .8rem;
  }

#triangle-area {
  margin-bottom: 30px;
}
.tri-text {
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 15px; 
}
.triangle {
  text-align: center;
  margin: 0 auto;
  background-color: #00a999;
  width: 25px;
  height: 20px;
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
}

#cont-text {
  text-align: left;
  font-size: 1rem;
  line-height: 1.65em;
  margin: 30px 0;
}
#cont-text br {
  display: none;
}

#hot-box {
  background-color: #FFFFFF;
  border:5px solid #fee303;
  margin: 25px 0;
  padding: 20px 10px;
  text-align: left;
}
  #hot-box p {
    text-align: justify;
    line-height: 2em;
  }
  #hot-box p br {
    display: none;
  }
#hot-text {
  margin: 25px 0;
  text-align: left;
}
  #hot-text p {
    color: #FFFFFF;
    text-align: justify;
    line-height: 2em;
  }
  #hot-text p br {
    display: none;
  }

#things-text {
  margin-top: 30px;
}
  #things-text p {
    text-align: right;
    font-size: .8rem;
  }

#voice-bg {
  padding: 20px 10px;
  border-top: dashed 3px #FFFFFF;
  border-bottom: dashed 3px #FFFFFF;
}

#method-text {
  position: relative;
  margin: 50px 0;
  text-align: left;
}
  #method-text p {
    text-align: justify;
    line-height: 2em;
  }
  #method-text p br {
    display: none;
  }
  .method-img1 {
    text-align: left;
    position: absolute;
    top: -30px;
    left: 0;
  }
  .method-img2 {
    text-align: right;
    position: absolute;
    bottom: -30px;
    right: 0;
  }
  .method-img1 img,
  .method-img2 img {
    width: 40%;
  }
/********************FLEX始まり************************/
  #flex-container {
    height: auto;
    margin: 25px 0;
  }
  #flexItem,
  #flexItem3,
  #flexItem4 {
    margin: 0 auto;
  }
  #flexItem2 {
    margin: 25px auto 0;
  }
  #flexItem5 {
    margin: 0 auto 50px;
  }
  #flexItem4 {
    margin-top: 50px!important;
  }
    .between {
      -webkit-box-pack:justify;
      -ms-flex-pack:justify;
      justify-content:space-between;
    }
    .around {
      -webkit-box-pack:justify;
      -ms-flex-pack:justify;
      justify-content:space-around;      
    }
    #flexItem .flex_child,
    #flexItem2 .flex_child,
    #flexItem5 .flex_child {
      text-align: justify;
    }
    #flexItem3 .flex_child {
      padding-top: 30px;
      text-align: justify;
    }
    #flexItem4 .flex_child {
      margin-bottom: 20px;
      text-align: justify;
    }
      #flexItem .flex_child .flex-img,
      #flexItem2 .flex_child .flex-img,
      #flexItem3 .flex_child .flex-img,
      #flexItem4 .flex_child .flex-img,
      #flexItem5 .flex_child .flex-img {
        text-align: center;
      }
      #flexItem5 .flex_child .flex-img img {
        width: 100%;
      }
      .flex-title {
        text-align: center;
        color: #00a999;
        font-size: 2rem;
        font-weight: bolder;
      }
      .flex-title2 {
        text-align: center;
        font-size: 1.25rem;
        font-weight: bolder;
      }
      .flex-text {
        margin-top: 10px;
        text-align: left;
        font-size: 1rem;
      }
        .text-postion {
          margin-bottom: 25px;
          padding-top: 0;
        }
          .text-postion2 {
            margin-bottom: 25px;
            padding-top: 0;
          }
          .text-postion p,
          .text-postion2 p {
            font-size: 1rem;
            line-height: 1.45em;
          }
            .text-postion p.white,
            .text-postion2 p.white {
              text-align: justify!important;
              color: #FFFFFF!important;
              font-size: 1rem!important;
            }
        .postion-title {
          font-size: 1.25rem;
          font-weight: bold;
          margin-bottom: 20px;
        }
        .voice-title {
          text-align: center;
          font-size: 2rem;
          font-weight: bold;
          margin-top: 10px;
          margin-bottom: 10px;
          color: #FFFFFF;
        }
          .voice-title i {
            margin-right: 15px;
          }

/********************************************ボタン************************************************************/
#btn {
  text-align: center;
  margin: 20px 0;
}
#btn2 {
  text-align: center;
  margin: 0 auto 10px;
}
#btn a img,
#btn2 a img {
  width: 80%;
}
#btn a:hover img,
#btn2 a:hover img {
    filter:alpha(opacity=70);
    opacity:0.7;
}

#contact-btn {
  text-align: center;
  margin: 0 auto;
}
.btn {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}
a.btn-yellow {
  color: #000000;
  background-color: #FFFF00;
}

a.btn-yellow:hover {
  color: #ffffff;
  background: #FFD700;
}

a.btn-yellow.btn-cubic {
  border-bottom: 5px solid #FFD700;
}

a.btn-yellow.btn-cubic:hover {
  margin-top: 3px;
  border-bottom: 2px solid #FFD700;
}

a.btn-y {
  font-size: 1.2rem;
  position: relative;
  border-radius: 100vh;
}

a.btn-y i.fa {
  margin-right: 1rem;
}

a.btn-y:before {
  font-family: 'Font Awesome 5 Free';
  font-size: 1.2rem;
  line-height: 1;
  position: absolute;
  top: calc(50% - .8rem);
  right: 1rem;
  margin: 0;
  padding: 0;
  content: '\f054';
}
#contact-box {
  width: 100%;
  margin: 20px auto 0;
  text-align: center;
}
.contact {
    position: relative;
    margin: 2em 0;
    padding: 1em 2em;
    border: solid 3px #FFFFFF;
}
.contact p {
    margin: 0; 
    padding: 0;
    color: #FFFFFF;
    line-height: 2em;
}
  .contact p a {
      color: #FFFFFF;
  }
  .contact p a:hover {
      color: #FFFF00;
  }
/********************規約************************/
  #kiyaku_contents {
    margin: 0 auto 100px;
    padding: 0 10px;
    overflow: hidden
  }
  #kiyaku_header {
    background-color: #032F04;
    color: #FFFFFF;
    font-size: 1rem;
    text-align: center;
    padding: 5px 0;
  }
  .kiyaku_title {
    color: #032F04;
    text-align: left;
    font-size: 1.2rem;
    line-height: 2em;
    margin: 20px 0;
  }
  #kiyaku_contents p {
    text-align: justify;
    font-size: .8rem;
    line-height: 2em;
    margin-bottom: 20px;
  }
  #kiyaku_contents p span {
    font-weight: bold;
  }

  #fkiyaku {
    text-align: center;
    margin: 0 auto
  }
  .footer_link {
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 0.8rem;
  }
    .footer_link a {
      color: #FFFFFF;
      font-weight: 300;
    }
      .footer_link a:hover {
        color: #FFFF00;
        font-weight: 300;
      }
  #fkiyaku ul {
    width: 100%;
    font-size: 0;
    padding-bottom: 10px;
  }

  #fkiyaku ul li {
  font-size: .8rem;
  line-height: 1em;
  padding:0 ;
  font-weight: 400;
  color: #FFFFFF
  }
}