@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
}

img {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  font-family: 'object-fit: contain;';
  /*IE対策*/
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
  /*button要素初期化*/
}

p,
a,
h1,
h2,
h3 {
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 24px;
  background: #fffaf4;
  border-left: solid 5px #ffaf58;
  margin-bottom: 0.5em;
  padding: 0.5em;
}

h2 {
  font-size: 20px;
  margin-bottom: 0.5em;
  border-bottom: double 5px #FFC778;
}

h3 {
  font-size: 16px;
  margin-bottom: 0.5em;
  border-bottom: solid 1px #707070;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 20px;
  padding: 10px;
  background: #eeeeee;
}

header a.header_title {
  display: inline-block;
  line-height: 70px;
  padding: 0 15px;
  font-size: 24px;
}

header nav {
  display: block;
  width: 75%;
}

header nav ul {
  display: flex;
  justify-content: flex-end;
}

header nav ul li a {
  display: block;
  padding: 20px;
}

header button.menu_button {
  display: none;
}



header button .fa-times {
  display: none;
}


main {
  margin: 0 20px;
}

section p {
  margin-bottom: 2.5vh;
}

section p:last-of-type {
  margin-bottom: 5vh;
}

section a {
  color: #1111cc;
}

footer {
  margin: 0 20px;
  padding: 10px;
  background: #eeeeee;
}

footer p.copyright {
  text-align: center;
}

/*デフォルトは897px以上1024px未満PCファースト*/

@media screen and (min-width:1024px) {

  /*1024pxから上はここを読み込む*/
  body {
    width: 1024px;
    margin: 0 auto;
  }
}

@media screen and (max-width:896px) {

  /*896pxまで*/

  header {
    position: relative;
  }

  header nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: #fff;
  }

  header nav ul {
    flex-wrap: wrap;
  }

  header nav ul li {
    width: 100%;
    border-bottom: solid 1px #707070;
  }

  header nav ul li:last-of-type {
    border: none;
  }

  header button.menu_button {
    display: block;
    width: 70px;
    height: 70px;
  }
}

@media screen and (min-width:481px) and (max-width:896px) {
  /*　画面サイズが481pxから896pxまではここを読み込む　*/
}

@media screen and (max-width: 480px) {
  /*480pxまで*/
}
