/* ヘッダー*/
header {
  font-family: Arial, sans-serif;
  width: 100%;
  height: 90px;
  display: flex;
  padding-top: 20px;
  padding-right: 10px;
  padding-left: 30px;
  z-index: 2;
}
.back-btn {
  margin: 0;
  padding: 0;
  text-decoration: none;
}
.header {
  display: flex;
  position: fixed;
  right: 0;
  margin: 0;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  height: auto;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
}

.header-links {
  display: flex;
  gap: 20px;
  padding: 10px 30px;
}
.header-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 20px;
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.header-links a:hover {
  color: rgb(2, 218, 218);
  ;
}
.he-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: none;
  flex-direction: column;
  width: 200px;
  z-index: 2;
}
.he-dropdown a {
  padding: 10px;
  white-space: nowrap;
}
.header-item {
  position: relative;
}
.header-item:hover .he-dropdown {
  display: flex;
}
.co-btn {
  background: linear-gradient(to right, rgb(2, 218, 218) 50%, rgb(51, 51, 51)50%);
  background-size: 200% 100%;
  background-position: 0 0;
  color: white;
  padding: 11px 22px;
  margin: 10px 0px;
  top: 50%;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-position 0.3s ease, color 0.3s ease;
  border: 3px solid rgb(2, 218, 218);
}
.co-btn:hover {
  background-position: -100% 0;
  color: rgb(2, 218, 218);
}
/* モバイル用メニュー */
.menu-toggle {
  display: none;
  background:  rgb(2, 218, 218);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 10px;
}
.menu-toggle img{
  color: white;
  width: 30px;
  height: auto;
  padding: 10px 0;
  top: 50%;
}
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}
.sidebar a:hover {
  background: #f0f0f0;
}
.cl-btn {
  background: rgb(2, 218, 218);;
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  align-self: flex-end;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 0;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  align-items: center;
  padding: 0 15px;
  margin: 13px;
  text-decoration: none;
  color: rgb(2, 218, 218);
  mix-blend-mode: difference;
}

.logo img {
  width: 50px;
  height: auto;
  border-radius: 50%;
  pointer-events: none;
}

@media screen and (max-width: 1248px) {
  .header-links {
    display: none;
  }
  .menu-toggle {
    display: block;
    align-items: flex-start;
    right: 0;
    margin-right: 10px;
}
  .header {
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: none;
    width: 30%;
  }
  .header-links {
    display: none;
  }
  .co-btn {
    display: none;
  }

  .he-dropdown {
    display: none;
  }

  .logo {
    font-size: 1.2rem;
  }
  .logo-text {
    font-size: 1.3rem;
  }

  .logo img {
    width: 35px;
    height: auto;
    border-radius: 50%;
  }
}

/* モバイル用スタイル */
@media screen and (max-width: 600px) {
  .header-links {
    display: none;
  }
  .menu-toggle {
    display: block;
    align-items: flex-start;
    right: 0;
    margin-right: 10px;
  }
  .header {
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: none;
    width: 30%;
  }
  .header-links {
    display: none;
  }
  .co-btn {
    display: none;
  }

  .he-dropdown {
    display: none;
  }

  .logo {
    font-size: 1.2rem;
  }
  .logo-text {
    font-size: 1.3rem;
  }

  .logo img {
    width: 35px;
    height: auto;
    border-radius: 50%;
  }
}