@import url(https://fonts.googleapis.com/css?family=Lato:300);
* {
  margin: 0;
  padding: 0;
}
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}


#main-nav, #main-nav ul, #main-nav li  {
  height:400px;
  font-size:1.0em;
  font-weight:100;
  cursor:pointer;
}

@media screen and (max-width: 768px) {
#main-nav, #main-nav ul, #main-nav li  {
  height:200px;
}}





#main-nav ul {
  list-style: none;
  display: -webkit-flex;
  display: flex;
  background: #eee;
}
#main-nav li {
 
 background: #ccc;
 background: url(../rooms/machiya.jpg) no-repeat center center;
 background-size:cover;
  width: 100%;
  -webkit-transition: width 0.3s ease-out;
  transition: width 0.3s ease-out;
  /* center */
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
#main-nav li:hover {
  width: 150%;
}
#main-nav li:nth-child(2) {
  background: #ccc;
 background: url(../images/umi.jpg) no-repeat center center;
 background-size:cover;
}
#main-nav li:nth-child(3) {
  background: url(../rooms/ys1.jpg) no-repeat center center;
 background-size:cover;
}


#main-nav li:nth-child(4) {
  background: #7771b9;
}

#main-nav a {
  font-weight: normal;
  text-decoration: none;
  text-align: center;
  color: #fff;
  width:100%;
  padding-top:300px;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
#main-nav a:hover {
  background: rgba(255,255,255,.2);
}