body,
html {
  padding: 0;
  margin: 0;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', 'sans-serif';
}

* {
  margin: 0;
  padding: 0;
}

p {
  margin: 10px 0;
}

a {
  text-decoration: none;
}

a:link {
  color: #000;
}

a:visited {
  color: #000;
}

a:hover {
  color: #f00;
}

/* パソコン用 768px 以上 */
@media (min-width:768px) {
  header {
    background: url(./img/bk02.jpg) repeat-x;
  }

  .header_img {
    position: relative;
    width: 1100px;
    height: 350px;
    margin: 0 auto;
  }

  .header_img h1 {
    position: absolute;
    top: 30px;
    left: 20px;
    color: #000;
    letter-spacing: 10px;
  }

  .top_memo {
    position: absolute;
    top: 150px;
    left: 20px;
    display: flex;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    letter-spacing: 3px;
  }

  .top_gif {
    margin-top: -40px;
    margin-left: 350px;
  }

  nav {
    position: absolute;
    top: 293px;
    left: 0px;
    width: 1100px;
    margin: 10px auto;
    display: flex;
    justify-content: space-around;
    align-content: space-between;
    font-weight: bold;
  }

  nav div {
    width: 160px;
    text-align: center;
    padding: 7px;
  }

  main {
    width: 980px;
    margin: 20px auto;
  }

  h2 {
    background: url(./img/icon01.gif) no-repeat left center;
    padding-left: 30px;
  }

  article {
    margin: 40px 0;
  }

.flex_box {
	display:flex;
	justify-content: space-around;
}

  .flex_box2 {
    width: 980px;
    display: flex;
    justify-content: space-around;
  }


  .frame {
    width: 600px;
    margin: 15px auto;
  }

  .top_dx {
    margin-left: 30px;
  }
  .top_dx_li {
    margin-top:17px;
    list-style: none;
  }

  .dx_list {
    margin:20px 0 20px;
  }

  .dx_list li{
    margin-left:45px;
  }
  .top_dx_img {
    margin-bottom: 40px;
  }


  footer {
    background: url(./img/footer.png) repeat-x;
    margin: 20px auto 0;
    padding-top: 30px;
    height: 170px;
    text-align: center;
    font-size: 14px;
  }
}

.copyright {
  text-align: center;
}

/* スマホ用 */
@media (max-width: 767px) {

  /* スマホ用 */
  header {
    background: url(./img/bk02.jpg) repeat-x;
  }

  .header_img {
    position: relative;
    width: 375px;
    height: 350px;
    margin: 0 auto;
  }

  .header_img h1 {
    position: absolute;
    top: 30px;
    left: 20px;
    color: #000;
    letter-spacing: 10px;
  }

  .top_memo {
    position: absolute;
    top: 110px;
    left: 12px;

    font-size: 10px;
    color: #fff;
    letter-spacing: 3px;
  }

  .top_gif {
    margin-top: 0px;
    margin-left: 80px;
  }

  nav {
    position: absolute;
    top: 295px;
    left: 0px;
    width: 375px;
    margin: 7px auto;
    display: flex;
    justify-content: space-around;
    align-content: space-between;
  }

  nav div {
    width: 60px;
    text-align: center;
    padding: 2px;
    font-size: 12px;
    border-right: 1px solid #fff;
  }

  main {
    width: 375px;
    margin: 20px auto;
  }
  .small {
    font-size: small;
  }

  .top_dx {
    margin-left: 30px;
  }
  .top_dx_li {
    margin-top:17px;
    list-style: none;
  }
  .dx_list {
    margin:20px 0 40px;
  }

  .dx_list li{
    margin-left:20px;
  }
  .top_dx_img {
    margin-bottom: 40px;
  }
  .dx_img {
    margin-bottom: 50px;
  }

  h2 {
    background: url(./img/icon01.gif) no-repeat left center;
    padding-left: 30px;
  }

  article {
    margin: 40px 5px;
  }

  .dx_img {
    margin:15px auto;
  }

  .dx_img img {
    width:350px;
  }

  .flex_box {
	display:flex;
	flex-direction:column;
}

	.flex_box div {
	width:320px;
	margin:0 auto;
}

  .flex_box2 {
	display:flex;
	flex-direction:column;
}

	.flex_box2 div {
	width:152px;
	margin:0 auto 20px;
}


  .img_box2 {
    width: 375px;
    display: flex;
    flex-direction: column;
  }

  iframe {
    width: 375px;
  }

  .img_box3 {
    width: 375px;
    margin: 10px auto;
    text-align: centr;
  }

  .img_box3 img {
    width: 375px;
    margin: 10px auto;
  }


  footer {
    background: url(./img/footer.png) repeat-x;
    margin: 20px auto 0;
    padding-top: 30px;
    height: 170px;
    text-align: center;
    font-size: 14px;
  }




}