/* 基本のリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*ヘッダーの共通CSS*/
header {
  background: rgba(128, 128, 128, 0.826);
  color: #fff;
  padding: 1em 2em;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headerLogo img {
  height: 2.5em;
  width: auto;
  margin-top: 0.5em;
}

.menu-toggle {
  display: none;
}

nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #f0a500;
  border-bottom: 2px solid #f0a500;
}

@media (max-width: 768px) {
  header {
    position: relative;
    height: 65px;
    padding: 2em 0.5em;
  }

  header.visible {
    position: fixed;
  }

  .headerLogo img {
    height: 35px;
    width: auto;
    margin-top: 11px;
  }

  .menu-toggle {
    display: block;
    font-size: 6vw;
    color: #fff;
    background: none;
    border: none;
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
  }

  nav ul.active {
    display: flex;
  }
}
/*フッターの共通CSS*/
footer {
  background-color: #313030;
  color: #fff;
  padding: 0.5em 1em;
  text-align: center;
  font-size: 0.9em;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 1em;
  font-family: "Lobster", sans-serif;
}

.footer-section {
  flex: 1 1 30%;
  margin: 0.5em;
}

.footer-section:first-child {
  text-align: left;
  margin-left: 20px;
}

.footer-section h4 {
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 0.3em 0;
  padding-right: 85px;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: underline;
}

.footer-section ul li a:hover {
  color: #efce88;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1em;
  font-size: 0.8em;
  text-align: left;
}

@media (max-width: 768px) {
  .footer-section:first-child {
    margin-left: 0.5em;
  }

  .footer-container {
    flex-direction: column;
    text-align: left;
  }
}
