/* CEATEC 2025 Header Styles - デザインテンプレート準拠 */
.header-2025 {
  background: rgb(12, 26, 73, 0.9);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 75px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* ロゴセクション */
.header-logo {
  display: flex;
  align-items: center;
  flex: 1;
}

.header-logo a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.header-logo .logo-key {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 45px;
  width: auto;
}

.header-logo .logo-main {
  grid-column: 2;
  grid-row: 1;
  height: 40px;
  width: auto;
}

.header-logo .date {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  color: #ffffff;
  font-weight: 400;
  opacity: 0.9;
  padding-left: 12px;
  font-weight: 700;
}

/* メインナビゲーション（縦積み） */
.header-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 15px;
}

/* サブナビメニュー（上段） */
.sub-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  justify-content: flex-end;
  order: 1;
}

/* メインナビメニュー（下段） */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  margin-left: auto;
  padding: 0;
  gap: 15px;
  justify-content: center;
  order: 2;
}

.nav-item {
  position: relative;
}

.nav-menu li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0 8px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: block;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  box-sizing: border-box;
}

.nav-menu li span {
  color: #ffffff;
  opacity: .5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0 8px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: block;
  border-bottom: 3px solid transparent;
  box-sizing: border-box;
  cursor: default;
}

.nav-item:hover > a {
  color: #ffdd00;
  border-bottom: 3px solid #ffdd00;
}

/* サブナビメニューのスタイル */
.sub-nav-menu li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 5px 4px;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: block;
}

.sub-nav-menu li:not(:has(a)) {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 5px 4px;
  white-space: nowrap;
  display: block;
  cursor: default;
  opacity: .5;
}

.sub-nav-menu li a:hover {
  color: #ffdd00;
}

/* 言語切り替えボタン */
#header .lang-btn {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 0;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn .material-icons {
  font-size: 14px;
}


/* ドロップダウンメニュー */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -15px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.dropdown-menu > ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #0066cc;
}

.dropdown-menu li > ul li a {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.dropdown-menu li > ul li:not(:has(a)) {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(51, 51, 51, 0.6);
  cursor: default;
  white-space: nowrap;
}

.dropdown-menu li:not(:has(a)) {
  display: block;
  padding: 8px 12px;
  color: rgba(51, 51, 51, 0.6);
  font-size: 14px;
  border-radius: 4px;
  cursor: default;
  white-space: nowrap;
}

.dropdown-menu li > ul li a {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.dropdown-menu li > ul li:not(:has(a)) {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(51, 51, 51, 0.6);
  cursor: default;
  white-space: nowrap;
}

/* Newsドロップダウンメニューのみ1列レイアウト */
.nav-item:nth-child(1) .dropdown-menu,
.nav-item:nth-child(3) .dropdown-menu,
.nav-item:nth-child(5) .dropdown-menu,
.nav-item:nth-child(6) .dropdown-menu {
  grid-template-columns: 1fr;
  gap: 5px;
}
.nav-item:nth-child(1) .dropdown-menu > ul,
.nav-item:nth-child(3) .dropdown-menu > ul,
.nav-item:nth-child(5) .dropdown-menu > ul,
.nav-item:nth-child(6) .dropdown-menu > ul {
  grid-template-columns: 1fr;
  gap: 5px;
}

/* 右側ボタンセクション */
.header-btns {
  display: flex;
  align-items: center;
  gap: 0;
}

/* マイページボタン */
.mypage-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 20px 6px 10px;
  height: 45px;
  background: #2d5aa0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px 0 0 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-weight: 700;
  z-index: 1;
}
.mypage-btn a{
  color: #ffffff;
  font-weight: 700;
}
.mypage-btn .material-icons-round {
  font-size: 18px;
}

.mypage-btn:hover {
  background: #1e3d6f;
}

/* 来場事前登録ボタン */
.header-2025 .btn_registration {
  display: flex;
  align-items: center;
  margin-left: -15px;
  gap: 6px;
  padding: 8px 16px;
  height: 45px;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.header-2025 .register-btn .material-icons-round {
  font-size: 18px;
}

/* ログアウトボタン */
.header-2025 .header-btns .logout {
  display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 65px;
      height: 45px;
      background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
      color: #ffffff;
      text-decoration: none;
      border-radius: 20px;
      margin-left: -15px;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      position: relative;
      overflow: hidden;
      font-size: 8px;
      line-height: 1;
      flex-shrink: 0;
      min-width: 45px;
      min-height: 45px;
      gap: 1px;
      font-weight: 700;
      z-index: 3;
}
.header-2025 .header-btns .logout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.header-2025 .header-btns .logout:hover {
  background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.header-2025 .header-btns .logout:hover::before {
  opacity: 1;
}
.header-2025 .header-btns .logout .material-icons {
  font-size: 20px;
  transition: transform 0.3s ease;
  display: block;
}
.header-2025 .header-btns .logout:hover .material-icons {
  transform: scale(1.1);
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
  display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0 5px 10px;
    flex-direction: column;
    gap: 3px;
    width: 38px;
    height: 32px;
    justify-content: center;
    align-items: flex-start;
    margin-left: 5px;
    position: relative;
}

.hamburger-line {
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
  position: relative;
}

.hamburger-line:nth-child(1) {
  width: 100%;
}

.hamburger-line:nth-child(2) {
  width: 66%;
}

.hamburger-line:nth-child(3) {
  width: 33%;
}

.hamburger-menu:hover .hamburger-line {
  background: #ffdd00;
}

.hamburger-menu.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 28px;
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 28px;
}

/* ドロワーメニューオーバーレイ */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.drawer-overlay.open {
  display: block;
}

/* ドロワーメニュー */
.drawer-menu {
  position: fixed;
  top: 75px;
  right: -80%;
  width: 80%;
  height: calc(100vh - 70px);
  background-color: rgb(12, 26, 73);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

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

/* ドロワーサブナビ */
.drawer-sub-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 20px;
}

.drawer-sub-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.drawer-sub-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffdd00;
}

/* ドロワーメインナビ */
.drawer-main-nav {
  margin-bottom: 30px;
}

.drawer-nav-item {
  margin-bottom: 20px;
}

.drawer-nav-title {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.drawer-nav-title:hover {
  color: #ffdd00;
}

.drawer-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 15px;
}

.drawer-dropdown li a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  line-height: 1.4;
  font-weight: 700;
}

.drawer-dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffdd00;
}

.drawer-dropdown li > ul li a {
  font-size: 12px;
  padding: 4px 10px 4px 25px;
  font-weight: 700;
}

/* ドロワーメニュー内の非リンクアイテムのスタイリング */
.drawer-dropdown ul li:not(:has(a)) {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.4;
  cursor: default;
  padding: 4px 10px 4px 25px;
  font-weight: 400;
}

.drawer-dropdown li:not(:has(a)) {
  display: block;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  border-radius: 4px;
  cursor: default;
}

/* ドロワーボタン */
.drawer-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.drawer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  transition: all 0.3s ease;
  border-radius: 50px;
  color: #ffffff;
  font-weight: 700;
  padding: 15px 20px;
  text-decoration: none;
 }

.drawer-btn:first-of-type{
  background: rgb(45, 90, 160);
  color: #fff;
}
.drawer-btn:first-of-type:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #079ce1;
  transform: translateY(-1px);
}
/* ドロワーメニュー内のログアウトボタン */
.drawer-buttons .logout {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.drawer-buttons .logout:hover {
  background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
  transform: translateY(-1px);
}

.drawer-buttons .logout .material-icons {
  font-size: 18px;
}


/* パンくずリスト */
.nav_breadcrumb {
  background: linear-gradient(to right, #06289c, #7f5eaf);
  padding: 12px 20px;
  font-size: 13px;
}

.nav_breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav_breadcrumb li {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
}

.nav_breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: #999999;
  font-weight: normal;
}

.nav_breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav_breadcrumb a:hover {
  color: #004499;
  text-decoration: underline;
}

.nav_breadcrumb span[aria-current="page"] {
  color: #ddd;
  font-weight: 700;
}

/* レスポンシブ対応 */
@media (max-width: 1400px) {

  .nav-menu li a {
    font-size: 12px;
  }
  
}

@media (max-width: 1300px) {
  .header-nav {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .header-2025 {
    padding: 0 20px;
  }
  .drawer-dropdown {
  grid-template-columns: 1fr 1fr;
}

}

/* モバイル対応 */
@media (max-width: 768px) {
  .header-2025 {
    padding: 0 20px;
    height: auto;
    min-height: 75px;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .header-nav {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .nav-menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-menu li a {
    font-size: 13px;
    padding: 6px 0;
  }
  
  .register-btn {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
  }
  
  .nav-item:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  .dropdown-menu ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
  }
  
  .dropdown-menu li a {
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
  }
  
  .dropdown-menu li a:hover {
    background-color: #f0f0f0;
  }
  
  .nav_breadcrumb {
    padding: 10px 15px;
    font-size: 12px;
  }
  
  .nav_breadcrumb ol {
    gap: 6px;
  }
  
  .nav_breadcrumb li:not(:last-child)::after {
    margin-left: 6px;
  }
}

@media (max-width: 580px) {

  .drawer-dropdown {
  grid-template-columns: 1fr;
}

.drawer-buttons {
  flex-direction: column;
}

.header-btns .mypage-btn,
.header-btns .register-btn {
}

}

@media (max-width: 560px) {
  .header-logo .logo-main {
    height: 32px;
  }
  
  .header-logo .logo-key {
    height: 36px;
  }
  
  .header-logo .date {
    font-size: 11px;
  }
}


@media (max-width: 499px) {
  .header-2025 .btn_registration {
    padding: 8px 12px;
    min-width: 45px;
    justify-content: center;
  }
  
  .header-2025 .btn_registration .material-icons-round {
    margin: 0;
  }
  
  .header-2025 .btn_registration {
    font-size: 0;
  }
  
  .header-2025 .btn_registration .material-icons-round {
    font-size: 18px;
  }
}


@media (max-width: 393px) {
  .header-logo .logo-key {
    height: 28px;
  }
  
  .header-logo .logo-main {
    height: 24px;
  }
  
  .header-logo .date {
    font-size: 10px;
    padding-left: 8px;
  }
  
  .header-2025 {
    height: 65px;
    min-height: 65px;
  }
  
  .drawer-menu {
    top: 65px;
    height: calc(100vh - 65px);
  }
  .mypage-btn{
    font-size: 10px;
  }

}