@charset "utf-8";
/* CSS Document */
 
header {
	text-align: center;
	max-width:1000px;
	margin-left:auto;
	margin-right:auto;
}
 
/* :::::: contents :::::: */
 
#wrapper {
  overflow: hidden;
  min-width: 320px;
  height: auto;
  padding: 0;
}
 
.contents {
	-webkit-transition: -webkit-transform .6s;
	transition: transform .6s;
}
 
#navTgl:checked ~ .contents {
	-webkit-transform: translateX(250px);
	transform: translateX(250px);
	padding-top: 0px;
}
 
/* :::::: toggle button :::::: */
 
#navTgl {
  display: none;
  overflow: hidden;
}
 
label {
  cursor: pointer;
  position: fixed;
  top: 0;
  left: 0;
}
 
.open {
  z-index: 2;
  width: 50px;
  height: 50px;
  color: white;
  background-color: #336699;
  font-size: 2em;
  line-height: 50px;
  text-align: center;
  -webkit-transition: background-color .6s, -webkit-transform .6s;
  transition: background-color .6s, transform .6s;
}
 
#navTgl:checked + .open {
  background-color: indianRed;
  -webkit-transform: translateX(250px);
  transform: translateX(250px);
}
 
.close {
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: background-color .6s;
}
 
#navTgl:checked ~ .close {
  pointer-events: auto;
  background-color: rgba(0,0,0,.3);
}
 
/* :::::: drawer menu :::::: */
 
.menu {
  z-index:3;
  position: fixed;
  overflow: auto;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  padding: 0px;
  background-color: rgba(0,0,0,.6);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-transition: -webkit-transform .6s;
  transition: transform .6s;
}
 
#navTgl:checked ~ .menu {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
 
.menu h2,
.menu li a {
  color: white;
}
 
.menu h2 {
  text-align: center;
}
 
.menu ul,
header nav ul {
  padding: 0;
}
 
.menu li {
  border-bottom: 1px solid rgba(255,255,255,.6);
  font-size: .8em;
  line-height: 1.4;
}
 
.menu li:first-child {
  border-top: 1px solid rgba(255,255,255,.6);
}
 
.menu li a,
header nav li a {
  display: block;
  padding: 1em 2em;
  text-decoration: none;
  transition: background-color .6s;
}
 
.menu li a:hover {
  background-color:#000;
}
 

 
/* :::::: navigation :::::: */
 
navigation {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  max-width: 647px;
  margin: 0 auto 100px;
  padding: 0 10px;
}
 
navigation h1 {
  width: 7em;
  height: 7em;
  margin: 0 auto;
  font-size: 1em;
  line-height: 7em;
  font-weight: normal;
  text-align: center;
  background-color: rgba(0,0,0,.05);
  border-radius: 50%;
}
 
section {
  margin: 50px 0;
}
 
section h2,
figure img,
figcaption {
  margin-bottom: 1em;
}
 
section h2 {
  margin: 0 0 20px;
  text-align: center;
}
 
figure {
  position: relative;
  padding-bottom: 50px;
}
 
figure img {
  max-width: calc(100% - 10px);
}
 
figure img {
  height: auto;
  padding: 5px;
  background-color: rgba(255,255,255,.6);
}
 
figcaption {
  font-size: .8em;
  line-height: 1.6;
}
 
figcaption a {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1em 2em;
  color: white;
  background: #336699;
  text-align: center;
  text-decoration: none;
  transition: background-color .3s;
}
 
figcaption a:hover {

  background: indianRed;
}

/* :::::: nav :::::: */
 

header nav {
	max-width: 1000px;
	margin-top:10px;
}
 
header nav ul {
  display: table;
  width: 100%;
  margin: 0;
}
 
header nav li {
  display: table-cell;
  width: 12%;
  font-size: 0.8em;
  text-align: center;
  white-space: nowrap;
}
 
header nav li:not(:last-child) {
  border-right: 0px solid rgba(0,0,0,.1);
}
 
header nav li a {
  padding: 10px;
  color: white;
  background: #336699;
  transition: background-color .3s;
}
 
header nav li a:hover {
	background: indianRed;
	color: rgba(255,255,255,1.00);
}

header nav li a:visited{
	color: #FFF;
}
 
/* :::::: responsive :::::: */
 
 
.open {
  -webkit-transform: translate(0, -100%);
  transform: translate(0, -100%);
}
 
#navTgl:checked + .open {
  -webkit-transform: translate(250px, 0);
  transform: translate(250px, 0);
}
 
header nav {
  overflow: hidden;
  height: 2em;
  transition: height .6s, opacity .6s .4s;
}

.logo img{
	top:0px;
	margin-top: 0px;
}
#contents figure {
	margin-top: 0px;
}

/* smart phone */
@media screen and (max-width: 480px) {
	header {
  margin: 0;
  text-align: center;
  }
  .open {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
  header nav {
    height: 0;
    opacity: 0;
    transition-delay: .4s, 0s;
  }

.logo img{
	width: 70%;
	top:0px;
	margin-top: 0px;
	
}
.top{
	display:none;
}

}
