@charset "utf-8";
/*
Theme Name: BRS
Description: --
*/


html {
  width: 100vw;
}

container {
  width: 80%;
}

/* サイドメニューのスタイル */
.sidebar {
  width: 250px;
  height: 100vh;
  background: linear-gradient(135deg,
      rgba(255, 138, 80, 0.85) 0%,
      rgba(255, 107, 53, 0.9) 50%,
      rgba(229, 90, 43, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 2px 0 20px rgba(229, 90, 43, 0.15);
  z-index: 1000;
  transition: transform 0.3s ease;
  /* 初期状態で非表示 */
  transform: translateX(-100%);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.sidebar-header h2 {
  color: white;
  margin: 0;
  font-size: 1.5em;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.sidebar-menu {
  padding: 20px 0;
  padding-bottom: 140px;
  /* ログアウトボタンとフッターの分のスペースを確保 */
}

.menu-item {
  display: block;
  padding: 15px 25px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-left-color: rgba(255, 255, 255, 0.6);
  transform: translateX(3px);
  backdrop-filter: blur(5px);
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-left-color: #ffffff;
  box-shadow: inset 3px 0 0 #ffffff, 0 2px 8px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.menu-item .icon {
  display: inline-block;
  width: 20px;
  margin-right: 10px;
  font-size: 16px;
}

.menu-item .title {
  font-size: 14px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ログアウトボタン */
.sidebar-logout {
  position: absolute;
  bottom: 70px;
  /* フッターの上に配置 */
  left: 10px;
  right: 10px;
  padding: 0;
  margin: 0;
}

.logout-btn {
  width: 100%;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logout-btn .icon {
  display: inline-block;
  width: 20px;
  margin-right: 10px;
  font-size: 16px;
}

/* トグルボタンのスタイル（常に表示） */
.sidebar-toggle {
  display: block !important;
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 1001 !important;
  background: rgba(255, 138, 80, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 12px 15px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(229, 90, 43, 0.2) !important;
  transition: all 0.3s ease;
  font-size: 16px !important;
  line-height: 1 !important;
  min-width: 44px !important;
  min-height: 44px !important;
  pointer-events: auto !important;
}

.sidebar-toggle:hover {
  background: rgba(255, 107, 53, 0.95) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 90, 43, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* PC版での調整 */
@media (min-width: 769px) {
  .main-content {
    margin-left: 0;
    /* 初期状態ではマージンなし */
    transition: margin-left 0.3s ease;
  }

  .main-content.sidebar-open {
    margin-left: 250px;
    /* サイドバーが開いているときのマージン */
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

/* サイドメニューの下部 */
.sidebar-footer {
  position: absolute;
  bottom: 20px;
  left: 10px;
  right: 10px;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.logout {
  margin: 20px;
}