.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /*background-color: #00BAF0;
  background: linear-gradient(to left, #f46b45, #eea849);*/
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #FFF;
  width: 1200px;
  height: 120px;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
}
.top-nav h1 {
  margin: 0 auto;
}
.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.menu > li {
  margin: 0 20px;
  overflow: hidden;
}
.menu li a {
  color: #FFF;
  text-decoration: none;
  font-size: 14px;
  transition: all .5s;
}
.menu li a:hover {
  text-decoration: none;
  opacity:0.7;
  filter:alpha(opacity=70);
  transition: all .5s;
}
.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#menu-toggle {
  display: none;
}
.menu-button, .menu-button::before, .menu-button::after {
  display: block;
  background-color: #3A050B;
  position: absolute;
  height: 3px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 1px;
}
.menu-button::before {
  content: "";
  margin-top: -8px;
}
.menu-button::after {
  content: "";
  margin-top: 8px;
}
#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}
#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}
#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}
@media (max-width: 768px) {
  .top-nav {
    color: #FFF;
    width: 100%;
    height: 60px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease; /* 色の変化を滑らかにするアニメーション */
  }
  .top-nav.scrolled {
    background-color: rgba(248, 247, 245, 0.9);
	box-shadow: 0 1px 5px 0px rgba(0, 0, 0, 0.1);
  }
  .top-nav h1 {
	opacity: 0;
    margin: 0 auto;
  }
	.top-nav h1 img{ width: 85px;}
	.top-nav.scrolled h1 {
	opacity: 1;
  }
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 60px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border-bottom: 1px solid #3A050B;
    height: 3.5em;
    padding: 2em 0 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: #3A050B;
    background-color: #F3F3F3;
	width: 100%;
  }
  .menu li a {
  color: #3A050B;
  text-decoration: none;
  font-size: 15px;
  width: 100%;
  display: block;
  text-align: center;
}
  .menu > li:not(:last-child) {
    border-bottom: 1px dashed #3A050B;
  }
}