body{
  background-color: #eee;
  margin: 0;
  padding:0;
}

:root {
  --primary-color: #003b83;
}

.header{
  width: 100%;
  margin: 0;
  background-color:#fff;
  border-bottom: 1px solid #003b83;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.main {
  width:100%;
  max-width: 1300px;
  margin: 2px auto;
  padding: 0 0.1em;
  background-color: #eee;
  display: flex;
  box-sizing: border-box;
  flex-direction: column; 
  /* border: #003b83 1px solid; */
}
@media screen and (min-width: 900px) {
  .main{
    flex-direction: row;
    padding: 0;
  }
}
.footer{
  padding: 5px;
	background-color: #003b83;
	color: #fff;
  margin:0;
  padding-bottom: 80px;
}

/* ヘッダー */
.logo a img{
  height: 50px;
}
.logo{
  height: 50px;
  margin: 3px;
  text-align: center;
}

.header__link{
  margin-top: 0.5em;
}
.header__btn{
  text-align: center;
  padding:0.5em;
}

.header__link ul {
  padding-left:0;
  text-align: center;
  margin:0 auto;
  vertical-align: middle;
}  
.header__link ul li {
  display: inline-block;
  margin-right: 0.5em;

}
.header__link ul li a{
  display: inline-block;
  color: #666;
  font-size: 0.8em;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.header__link ul li a i {
  margin-right: 0.1em;
}
.header__btn{
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 900px) {
  .header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header__menu{
    display: flex;
    align-items: center;
  }
  .header__btn{
    display: flex;
    justify-content: flex-end;
  }
}
.login-btn{
  width:7em;
  height:2em;
  margin: 0.2em;
  background: linear-gradient(to top,#003b83 , #3366bb);
  color: #fff;
  border:0;
  border-radius: 2px;
}
.signup-btn{
  width:7em;
  height:2em;
  margin: 0.2em;
  background: linear-gradient(to top,#e59a22 , #ffaa33);
  color: #fff;
  border:0;
  border-radius: 2px;
}
.logout-btn{
  width:7em;
  height:2em;
  margin: 0.2em;
  background: #fff;
  color: #3366bb;
  border:1px solid #3366bb;
  border-radius: 2px;
}
/* 左サイドメニュー*/
.menu {
  position: fixed;
  background-color: #ffffff;
  width: 250px;
  top: 0;
  left: -300px;
  bottom: 0;
  transition: all 0.5s;
  z-index: 3;
  opacity: 1;
}
.menu nav{
  position: sticky;
  top:0;
}
.menu__title{
  display: flex;
  justify-content:space-between;
  padding:0.8em;
	background-color: #003b83;
	color: #fff;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}

.menu__title span.plus:before{
  content: '＋'; 
}
.menu__title span.none:before{
  content: none; 
}

.menu__title span{
  display: block;
}
.menu__list{
  display:none;
}
.menu__list ul {
  list-style: none;
  padding:0;
  margin:0;
}
.menu__list ul li{
  border-bottom: 1px solid #ccc;
}
.menu__list ul li:last-child{
  border-bottom: none;
}
.menu__list:last-child ul li:last-child{
  border-bottom:  1px solid #ccc;
}
.menu__list ul li a{
  display:block;
  color:#3C4D58;
  text-decoration:none;
  padding: 0.7em; 
  display:block;
}
.open.menu {
  left: 0;
  opacity: 1;
  background-color: #fff;
  z-index:3;
}

@media screen and (min-width: 900px) {  
  .menu {
    position: static;
    width:29%;
    max-width: 250px;
    background-color: #eee;
  }
  .menu__box{
    background-color: #fff;
    margin:10px;
  }
  .menu__title{
    justify-content: center;
    padding: 0.5em;
    text-align: center;
    pointer-events: none;
  }
  .menu__title span.plus:before{
    content: none; 
  }
  .menu__list{
    display:block;
  }
}

/* ハンバーガーメニュー */
.toggle-btn {
  display: block;
  position: fixed;
  z-index: 3;
  cursor: pointer;  
  display: block;
  bottom: 12px;
  right: 12px;
  height: 55px;
  width: 50px;
  border-radius: 5px;
  border: #336699 solid 3px;
  background-color: #fff;
}
@media screen and (min-width: 900px) {
  .toggle-btn {
    display: none;
  }
} 
.toggle-bar {
  display: block;
  position: relative;
  width:40px;
  height:40px;
  margin: 0 auto;
  z-index: 3;
  cursor: pointer;
}
.toggle-btn span {
  position: absolute;
  display: block;
  left: 5px;
  width: 30px;
  height: 4px;
  background-color: #555;
  transition: all 0.5s;
  border-radius: 5px;
}
.toggle-menu{
  text-align: center;
  margin-top: 0px;
  padding: 0;
  font-size: 10px;
  z-index: 3;
  color:#555;
  font-weight: bold;
}
.toggle-btn span:nth-child(1) {
  top: 6px;
}
.toggle-btn span:nth-child(2) {
  top: 18px;
}
.toggle-btn span:nth-child(3) {
  top: 30px;
}
.open.toggle-btn span:nth-child(1) {
  transform: translateY(12px) rotate(-315deg);
}
.open.toggle-btn span:nth-child(2) {
  opacity: 0;
}
.open.toggle-btn span:nth-child(3) {
  transform: translateY(-12px) rotate(315deg);
}
#mask {
  display: none;
  transition: all 0.5s;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
}
.open#mask {
  display: block;
}

/* フッター */
.footer__container{
	background-color: #003b83;
	color: #eee;
  display: flex;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5em;
}
.footer h1{
  font-size: 1.2em;
  padding: 0.5em;
  margin: 0;
  border-bottom: 1px solid #888;
}
.footer h1 span{
  font-size: 0.6em;
  padding-left: 1em;
}
.footer h3{
  font-size: 0.9em;
  padding: 0.5em;
  margin: 0;
}
.footer__column{
  max-width: 230px;
  width: 33%;
}
.footer__container ul {
  list-style-type: none; 
  font-size: 0.7em;
  margin: 0;
  padding: 0em 0.5em;
}
.footer__container li {
  padding: 0;
}
.footer__container li a {
  text-decoration: none;
  color: #ddd;
}
.footer__container li a:hover {
  color: #ccc;
  text-decoration: underline; 
}
@media screen and (min-width: 900px) {
  .footer__container{
    padding: 0 3em;
  }
  .footer h1{
    padding: 0.5em 2.5em;
  }
}