@media (min-width: 767px) {
#sp-menu {
  display: none;
}
}

/* PCメニュー */
#menu-toggle {
  position: fixed;
  top: 20px;
  right: 50px;
  width: 50px;
  height: 50px;
  padding-top: 20px;
  cursor: pointer;
  background: transparent;
  z-index: 1000;
}
.menu-toggle.hidden {
  display: none;
}
.line {
  height: 2px;
  background: white;
  margin: 8px 0;
  transition: 0.3s;
}
.top {
  width: 50px;
  margin-left: 0;
}
.middle {
  width: 40px;
  margin-left: 10px;
}
.bottom {
  width: 30px;
  margin-left: 20px;
}
.ellipse {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: 70%;
  border: 2px solid white;
  border-radius: 50% / 80%;
  box-sizing: border-box;
}
#menu {
  position: fixed;
  top: 0;
  right: -50%;
  width: 20%;
  height: 100%;
  background: #fff;
  padding: 60px 20px;
  text-align: center;
  transition: 0.5s;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-logo {
  width: 150px;
}
#menu.active {
  right: 0;
}
#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#menu li {
  margin: 40px 0;
}
#menu a {
  color: #EC5835;
  font-size: 36px;
  font-family: "Times", "Times New Roman", serif;
  font-style: italic;
  font-weight: bold;
  background: #fff;
  text-decoration: none;
  display: inline-block;
}
#close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 50px;
  color: #EC5835;
  cursor: pointer;
}
.menu-button {
  display: none;
}

@media (max-width: 768px) {
main {
  margin-top: 60px;
}
#menu-toggle,
#menu {
  display: none;
}

.sp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.menu-button {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.MenuBtn-BarFrame {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  top: 1px;
}
.MenuBtn-BarFrame-FirstBar,
.MenuBtn-BarFrame-SecondBar {
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transition: all 0.3s linear;
}
.MenuBtn-BarFrame-SecondBar {
  transform: translateY(-4px);
}
.MenuBtn-BarFrame-FirstBar {
  transform: translateY(4px);
}
.MenuBtn-BarFrame.isClosed .MenuBtn-BarFrame-FirstBar {
  transform: translateY(0) rotate(45deg);
}
.MenuBtn-BarFrame.isClosed .MenuBtn-BarFrame-SecondBar {
  transform: translateY(0) rotate(-45deg);
}

.menu-text {
  font-size: 16px;
  display: flex;
  align-items: center;
  color: #fff;
}
.sp-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  background: #555;
  color: #fff;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: top 0.5s ease;
}
.sp-menu.active {
  top: 60px;
}
.sp-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  margin: 16px 0;
  font-family: "Times", "Times New Roman", serif;
  font-style: italic;
  font-weight: bold;
}
.sp-menu-logo {
  margin-top: 32px;
  width: 120px;
  height: auto;
}

.sp-link-sns {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}
.sp-sns-button {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-family: "Times", "Times New Roman", serif;
  font-style: italic;
  font-weight: bold;
  background: transparent;
  border: 1px solid #fff;
  padding: 8px 12px;
}
}