/* グローバルナビゲーション（PC専用） - global-nav.css */

/* PC専用グローバルナビゲーション（600px以上の画面幅で表示） */
@media screen and (min-width: 501px) {
  
  .global-nav-container {
      background: linear-gradient(135deg, #50AF4C 0%, #3b8e38 100%);
      border-radius: 8px;
      margin: 0 0 20px 0;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      position: relative;
      overflow: hidden;
      position: relative !important;
      z-index: 900 !important;
      overflow: visible !important;
  }
    
  /* 背景の装飾的なエフェクト */
  .global-nav-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.05)" d="M0 0 L50 50 L100 0 L50 100 Z"/></svg>');
      background-size: 100px 100px;
      opacity: 0.3;
      pointer-events: none;
  }

  .global-nav {
      max-width: 800px;
      margin: 0 auto;
      padding: 0;
      overflow: visible !important;
  }
  .nav-list {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      position: relative;
      overflow: visible !important;
  }

  .nav-item {
      position: relative;
      flex: 1;
      text-align: center;
      transition: all 0.3s ease;
  }

  /* 区切り線 */
  .nav-item:not(:last-child)::after {
      content: '';
      position: absolute;
      right: 0;
      top: 25%;
      height: 50%;
      width: 1px;
      background: rgba(255, 255, 255, 0.2);
  }

  .nav-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: white;
      padding: 15px 12px;
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      transition: all 0.3s ease;
      height: 100%;
  }

  .nav-icon {
      font-size: 18px;
      margin-bottom: 5px;
      transition: transform 0.3s ease;
  }

  .nav-text {
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-size: 11px;
      transition: color 0.3s ease;
  }

  .nav-arrow {
      font-size: 10px;
      margin-left: 5px;
      transition: transform 0.3s ease;
  }

  /* ホバー効果 */
  .nav-item:hover .nav-link {
      background-color: rgba(255, 255, 255, 0.15);
  }

  .nav-item:hover .nav-icon {
      transform: translateY(-2px);
  }

  .nav-item:hover .nav-arrow {
      transform: rotate(180deg);
  }

  /* アクティブ状態 */
  .nav-item.active {
      background-color: rgba(255, 255, 255, 0.15);
  }

  .nav-item.active .nav-link {
      position: relative;
  }
  
  .nav-item.active .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 25%;
      width: 50%;
      height: 3px;
      background-color: #fff;
      border-radius: 3px 3px 0 0;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-toggle {
      cursor: pointer;
  }

  /* ドロップダウンメニューの基本スタイル */
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    list-style: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    z-index: 9999 !important;
    width: 220px !important;
  }
 
  /* ドロップダウン内の項目のスタイル */
  .dropdown-menu li {
    margin: 0;
    padding: 0;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    padding: 10px 15px !important;
  }
  
  .dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #2196F3;
  }
  
  .dropdown-menu li a i {
    margin-right: 10px;
    color: #2196F3;
    width: 16px;
    text-align: center;
    display: inline-block !important;
    width: 20px !important;
    margin-right: 8px !important;
    text-align: center !important;
  }
  
  /* ドロップダウンメニューが表示される位置調整 */
  .nav-item.dropdown {
    position: relative !important;
  }
}

/* スマホビューではグローバルナビを非表示 */
@media screen and (max-width: 500px) {
  .global-nav-container {
      display: none;
  }
}