@media only screen and (min-width: 300px) and (max-width: 767px) {
  #contents1,
  #contents2 {
    width: 100%;
    padding: 0 10px;
  }
  #cont-box {
    padding: 50px 20px;
  }
  .pc {
    display: none;
  }
  #img img {
    width: 100%;
  }
  #lineimg img {
    width: 100px;
  }
  .flow img {
    width: 100%;
  }
/********************header/top関連************************/
  #topBG {
    background: url(../images/bg.jpg) center center/cover no-repeat;
    margin: 0;
    padding: 0;
    z-index: 0;
  }
    .top-img {
      text-align: center;
      margin: 0 auto;
    }
      .top-img img {
        width: 100%;
      }

/********************コンテンツ部品始まり************************/
.title {
  text-align: center;
  margin: 0 auto;
}
.title img {
  width: 100%;
}
.cont-text {
  text-align: center;
  margin-top: 20px;
}
.cont-text p {
  font-size: 1rem;
}
.cont-text p span {
  background: linear-gradient(transparent 60%, #ffff66 60%);
}
.orange-box {
  text-align: center;
}
.orange-box p {
  background-color: #fca103;
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1.65em;
  color: #FFFFFF;
  margin: 15px auto;
  padding: 0 50px;
  border-radius: 25px;
}
.nado {
  text-align: right;
  font-size: .8rem;
  margin-bottom: 20px;
}
.ribbone {
  position: absolute;
  top: -15px;
}
.ribbone img {
  width: 60%;
}
.tiangle-box {
  text-align: center;
  margin: 30px 0;
}
.tiangle {
  background-color: #0cb1c3;
  width: 50px;
  height: 30px;
  display: inline-block;
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
}
.remarks {
  font-size: .8rem;
}
#details-contents {
    width: 100%;
    height: 100%;
    margin: 0 auto 20px;
    padding: 0 10px;
    overflow: hidden;
}
#absolute-parent {
    position: relative;
    width: 100%;
    height: 70vh;
    text-align: center;
}
.absolute-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.line_text {
    margin-bottom: 50px;
}
#btn-box,
#btn-box2 {
  text-align: center;
  margin-top: 20px;
}
#btn-box a,
#btn-box2 a {
  display: inline-block;
  position: relative;
  padding: .5em 1em;
  width: 100%;
  max-width: 600px;
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #19a6b7;
  border-radius: 50vh;
  transition: 0.3s;
}
#btn-box2 a {
  background-color: #F93030!important;
}

#btn-box a::before,
#btn-box2 a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #f2f2f2;
  border-radius: 50vh;
}

#btn-box a::after,
#btn-box2 a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  border-top: 3px solid #333333;
  border-right: 3px solid #333333;
}

#btn-box a:hover,
#btn-box2 a:hover {
  text-decoration: none;
  background-color: #cccccc;
}
.link-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: #FF0000;
}
/********************FLEX始まり************************/
  #flexItem {
    display: flex;
    flex-wrap: wrap;
    margin: 50px 0 0;
  }
  #flexItem2 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 50px;
  }
    .flex_parent {
      justify-content: space-between;
    }
    .flex_parent2 {
      justify-content: center;
    }
    #flexItem .flex_child {
      width: 25%;
      text-align: justify;
      position: relative;
    }
    #flexItem2 .flex_child {
      width: auto;
      text-align: justify;
      position: relative;
    }
      .flex-img,
      .flex-img2 {
        text-align: center;
        margin: 0 auto;
      }
      .flex-img img {
        width: 100%;
        max-width: 200px;
        height: 100%;
        max-height: 100px;
      }
      .flex-img2 img {
        width: 100%;
        max-width: 130px;
        height: 100%;
        max-height: 130px;
      }
      .flex-text {
        text-align: center;
        font-size: .85rem;
        font-weight: bold;
      }
      .flex-text2 {
        text-align: center;
        font-size: 3rem;
        font-weight: bold;
        line-height: 3em;
        margin: 0 20px;
      }
      .flex-text3 {
        text-align: center;
        font-size: 2.45rem;
        font-weight: normal;
      }


/********************規約************************/
#s-contents {
    width: 100%;
    height: 100%;
    margin: 0 auto 100px;
    padding: 0 10px;
    overflow: hidden;
}
#category-title {
    margin: 50px auto 20px;
    text-align: left;
    font-size: 1.45rem;
    font-weight: bold;
    color: #00b0c2;
}
h2 {
    margin: 20px 0 10px;
}
ol, ul {
    list-style: none;
}

  #fkiyaku {
    text-align: center;
    margin: 0 auto;
  }

  #fkiyaku ul {
    width: 100%;
    font-size: 0;
    margin-top: 20px;
  }

  #fkiyaku ul li {
  font-size: 0.7rem;
  padding:5px 10px;
  font-weight: 200;
  color: #ffffff;
  }
  #link-text {
    text-align: center;
    margin-left: -10px;
    font-size: 0;
  }
    #link-text ul li {
      display: inline-block;
      margin-left: 10px;
      font-size: .8rem;
    }
    #link-text ul li a {
      color: #000000;
      text-decoration: none;
    }
  #fkiyaku ul li a {
    color: #ffffff;
  }

  #fkiyaku ul li a:hover {
    text-decoration: underline;
  }
}