/* ===== Header Styles (PC & Mobile) ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to right, #1e1e2f, #2e3a59);
  color: #fff;
  padding: 15px 20px;
  margin: 0 0 0px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-link {
  font-size: 28px;
  font-weight: bold;
  color: #00d8ff;
  letter-spacing: 1px;
  transition: font-size 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.header-logo {
  display: block;
  margin: 0 auto;
}
.nav-tabs {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-tabs li a {
  text-decoration: none;
  color: #ffffffb3;
  transition: color 0.3s;
  font-weight: 500;
}
.nav-tabs li a.active,
.nav-tabs li a:hover {
  color: #00d8ff;
}
.mobile-menu-btn {
  display: none;
  font-size: 2.1rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  left: 0;
  z-index: 2;
  padding: 2px 8px 2px 0;
}

.drawer-header-strip {
  width: 100%;
  background: linear-gradient(to right, #1e1e2f, #2e3a59);    
  color: #20ADD6;
  font-size: 1.40rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 20px;
  height: 84px;
  box-sizing: border-box;
  position: relative;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.drawer-header-strip span {
  line-height: 1.5;
  padding-top: 2px;
  font-family: inherit;
  font-weight: 600;
}

.drawer-header-strip .close-btn {
  position: static;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 14px;
  opacity: 0.92;
  transition: color 0.17s, transform 0.17s;
  z-index: 1;
}
.drawer-header-strip .close-btn:hover {
  color: #ffea00;
  transform: scale(1.13) rotate(90deg);
}

/* ===== Drawer for Mobile ===== */
.drawer-menu {
  position: fixed;
  top: 0;
  left: calc(-1 * 82vw);
  width: 82vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  color: #1e293b;
  box-shadow: 8px 0 18px -6px rgba(30,40,90,0.17);
  z-index: 1201;
  transition: left 0.33s cubic-bezier(.6,.01,.47,1.3);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer-menu.open { left: 0; }

.drawer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-menu li {
  border-bottom: 1px solid #f3f4f7;
}
.drawer-menu a {
  color: #1e293b;
  text-decoration: none;
  font-size: 1.0em;
  display: block;
  padding: 12px 20px;
  border-radius: 0;
  font-weight: 350;
  margin: 0;
  background: none;
  transition: background 0.14s, color 0.17s;
}
.drawer-menu a.active,
.drawer-menu a:hover {
  background: #e5fbf8;
  color: #000000;
  font-weight: 600;
}
.close-btn {
  background: none;
  border: none;
  color: #099a58;
  font-size: 2.3rem;
  position: absolute;
  right: 8px;
  top: 14px;
  cursor: pointer;
  z-index: 1203;
  padding: 0 8px;
  opacity: 0.93;
  transition: color 0.18s, transform 0.18s;
}
.close-btn:hover {
  color: #00d8ff;
  transform: scale(1.10) rotate(90deg);
}
.drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 40, 90, 0.12);
  -webkit-backdrop-filter: blur(1.2px);
  backdrop-filter: blur(1.2px);
  z-index: 1200;
  display: none;
  transition: background 0.22s;
}
.drawer-backdrop.open { display: block; }

/* ===== Mobile Optimization (Header + Drawer) ===== */
@media (max-width: 900px) {
  .header-container {
    justify-content: center;
    flex-wrap: nowrap;
    min-height: 54px;
    padding-left: 0;
    padding-right: 0;
  }
  .mobile-menu-btn {
    display: block;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #ffffff;
    font-size: 2.15rem;
    padding: 3px 10px 3px 0;
    border-radius: 8px;
  }
  .logo-link {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
    font-size: 22px;
    color: #00d8ff;
    background: transparent;
    padding: 0;
  }
  .header-logo {
    margin: 0 auto;
    display: block;
  }
  .nav-tabs {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .drawer-menu {
    left: calc(-1 * 96vw);
    width: 96vw;
    max-width: 65vw;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
  }
  .logo-link {
    font-size: 17px;
  }
}
