html{
  font-size: 14px;
  color: #222222;
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", "Helvetica", serif;
}

body{
  margin: 0;
  padding: 0;
}

/* header */

header{
  position: fixed;
  width: 100%;
  background: #222222;
  height: 81px;
  margin-top: -81px;
  padding-top: 81px;
  top: 0;
  z-index: 100;
}

.headerWrapper{
  max-width: 1000px;
  color: #ffffff;
  margin: auto;
  padding: 0 20px;
}

.headerTitle{
  float: left;
  text-decoration:none;
  color:#ffffff;
}

.headerTitle:link { color:#ffffff; text-decoration:none }
.headerTitle:visited { color:#ffffff; text-decoration:none }
.headerTitle:hover { color:#ffffff; text-decoration:none }
.headerTitle:active { color:#ffffff; text-decoration:none }

.headerTitle h1{
  font-size: 3em;
  margin-top: 0px;
}

.headerTitle p{
  font-size: 0.6em;
  margin-top: -30px;
}

.link{
  float: right;
  list-style-type: none;
}

.link li a{
  text-decoration:none;
  color:#ffffff;
}
.link li a:link { color:#ffffff; text-decoration:none }
.link li a:visited { color:#ffffff; text-decoration:none }
.link li a:hover { color:#ffffff; text-decoration:none }
.link li a:active { color:#ffffff; text-decoration:none }

.headerLang{
  float: right;
  list-style-type: none;
  margin-left: -100px;
}

.headerLang li{
  color: #aaaaaa;
  margin-bottom: 6px;
}

.headerLang li:first-child::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 14px;
  background: url("../img/lang_ja.png") 0 2px no-repeat;
  background-size: 20px 14px;
}

.headerLang li:last-child::before{
  content: "";
  display: inline-block;
  width: 24px;
  height: 14px;
  background: url("../img/lang_en.png") 0 2px no-repeat;
  background-size: 20px 14px;
}

.headerLang a li{
  color: #ffffff;
  text-decoration: none;
}

/* menu */

.menu{
  width: 100%;
  background: #222222;
  border-top: solid 82px #cccccc;
  border-bottom: solid 2px #cccccc;
  -webkit-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

.menu button{
  display: none;
}

.menu ul{
  max-width: 1000px;
  margin: auto;
  padding: 12px 20px;
  list-style-type: none;
  transition: 0.2s;
}

.menu li{
  display: inline-block;
  margin-right: 12px;
  padding-top: 8px;
}

.menu li a{
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.menu li:hover{
  font-size: 1.2em;
  padding-top: 0;
  transition: 0.2s;
}

.menu .curent{
  font-size: 1.4em;
  float: left;
  margin-right: 20px;
  padding-top: 0;
  transition: 0.2s;
}

.menu .curent a{
  padding-bottom: 4px;
  border-bottom: solid 2px #dddddd;
}

/* main contents */

.container{
  width: 1000px;
  min-height: calc(100vh - 340px);
  margin: 40px auto;
  padding-bottom: 20px;
  line-height: 2.6;
  text-align: center;
  animation: fadeIn 1s ease 0s 1 normal;
  -webkit-animation: fadeIn 1s ease 0s 1 normal;
}

.container h1{
  display: inline-block;
  font-size: 2em;
  font-weight: bold;
  border-bottom: solid rgb(0, 58, 189) 4px;
  padding: 4px 8px;
  margin-top: 30px;
  animation: LineFadeIn 1.5s ease 0s 1 normal;
  -webkit-animation: LineFadeIn 1.5s ease 0s 1 normal;
}

.container .bgContainer+h1{
  margin-bottom: 60px;
  border: none;
  font-size: 40px;
  text-shadow: 1px 1px 4px #ffffff;
  display: block;
  text-align: center;
}

.container *{
  text-align: center;
}

.bgContainer{
  text-align: left;
}

.bg {
  max-height: 200px;
  max-width: 100%;
  margin-bottom: 20px;
  background-size: contain;
  margin-bottom: -200px
}

/* footer */

footer{
  background: #eeeeee;
  width: 100%;
  padding: 10px 0;
  left: 0;
  line-height: 1;
  font-size: 0.6em;
  height: 90px;
}

footer>div{
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

footer>div>p:last-child{
  font-weight: bold;
}


/* タブレットサイズ */
@media (max-width: 970px) {
  .container{
    margin: 40px 20px;
    width: auto;
  }
}

/* スマホサイズ */
@media (max-width: 460px) {
  html{
    font-size: 20px;
    line-height: 0.6;
  }

  .headerTitle{
    padding-top: 20px;
  }

  .headerTitle h1{
    font-size: 1.5em;
  }

  .headerTitle p{
    margin: 0;
  }

  .link{
    display: none;
  }

  .headerLang li{
    font-size: 0;
  }

  .headerLang .curent::before{
    width: 30px;
    height: 30px;
    background-size: 30px 20px;
  }

  .headerLang li:not(.current){
    display: none;
  }

  .menu ul:not(.smartMenu){
    height: 24px;
  }

  .menu ul:not(.smartMenu) li{
    display: none;
  }

  .menu ul:not(.smartMenu) .curent{
    display: inline;
    font-size: 1.2em;
  }

  .menu button{
    float: right;
    position: absolute;
    top: 88px;
    right: 20px;
    height: 25px;
    width: 25px;
    display: block;
    border: none;
    background: none;
    padding: 0;
    content: '';
    z-index: 2;
    transition: 0.3s;
  }

  .menu button::before, .menu button::after, .menu button span{
    position: absolute;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #ffffff;
    display: block;
    content: '';
  }

  .menu button::before{
    top: 4px;
    transition: 0.5s;
  }

  .menu button::after{
    bottom: 4px;
    transition: 0.5s;
  }

  .menu button span{
    margin-top: -2px;
    transition: 0.3s;
  }

  .menu .smartMenuButton{
    margin-top: 12px;
    transition: 0.3s;
  }

  .menu .smartMenuButton::before, .menu .smartMenuButton::after{
    opacity: 0;
    transition: 0.3s;
  }

  .menu .smartMenuButton span{
    height: 15px;
    width: 15px;
    border-radius: 13px;
    margin-top: -10px;
    margin-left: 2px;
    transition: 0.5s;
    border: solid #ffffff 3px;
    background: 0;
  }

  .smartMenu{
    display: inherit;
    height: 360px;
    position: relative;
    z-index: 1;
    transition: 1s;
  }

  .smartMenu li{
    width: 100%;
    margin-top: 24px;
  }

  .smartMenu li:not(.curent) a{
    width: 100%;
    display: inline-block;
  }

  .smartMenu li:first-child{
    margin-top: 60px;
  }

  .smartMenu .homeCurent{
    margin-top: 0 !important;
    position: relative !important;
    top: 0 !important;
  }

  .smartMenu .curent{
    position: absolute;
    top: 20px;
    margin: 0;
    font-size: 1.4em;
    transition: 0.2s;
  }

  .bgContainer .bg{
    margin: 0;
  }

  .container .bgContainer+h1{
    margin: 0;
  }
}

/* animation keys */

@keyframes fadeIn {
  0% {opacity: 0; margin-top: 90px;}
  80% {margin-top: 40px;}
  100% {opacity: 1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity: 0; margin-top: 90px;}
  80% {margin-top: 40px;}
  100% {opacity: 1;}
}

@keyframes LineFadeIn {
  0% {padding: 4px 100px;}
  100% {padding: 4px 8px;}
}

@-webkit-keyframes LineFadeIn {
  0% {padding: 4px 100px;}
  100% {padding: 4px 8px;}
}
