@charset "UTF-8";

/* ===================================================================
   multilevel-nav.css - Multi-level Navigation Styles
   株式会社シグナス 複数階層ナビゲーション専用スタイルシート
   =================================================================== */

/* ===================================================================
   PC Version (1025px以上) - Dropdown Navigation
   =================================================================== */
@media screen and (min-width: 1025px) {
  
  /* Basic Navigation Structure - TOP LEVEL ONLY */
  #global-nav > ul {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 30px;
    font-size: 14px;
    list-style: none;
  }
  
  #global-nav > ul > li {
    float: left;
    letter-spacing: 0.3em;
    position: relative;
  }
  
  #global-nav > ul > li > a {
    padding: 0 20px;
    display: block;
    transition: all 0.3s ease;
  }
  
  /* Dropdown Arrow Indicator */
  #global-nav li.has-dropdown > a::after {
    content: "\25BC";  /* ▼ */
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
  }
  
  #global-nav li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
  }
  
  /* Dropdown Menus - Level 2 */
  #global-nav .dropdown-menu,
  #global-nav ul.dropdown-menu,
  #global-nav > ul > li > ul.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    max-width: 220px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000 !important;
    list-style: none !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    /* これらの設定を上書きされないようにする */
    right: auto !important;
    bottom: auto !important;
    font-size: 14px !important;
  }
  
  #global-nav li.has-dropdown:hover > .dropdown-menu,
  #global-nav > ul > li.has-dropdown:hover > ul.dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  /* Dropdown Items */
  #global-nav .dropdown-menu li,
  #global-nav ul.dropdown-menu > li {
    float: none !important;
    letter-spacing: 0.1em !important;
    position: relative;
    background: #ffffff !important;
  }
  
  #global-nav .dropdown-menu li a,
  #global-nav ul.dropdown-menu > li > a {
    display: block !important;
    padding: 10px 16px !important;
    color: var(--color-gray-500) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.6 !important;
    background: #ffffff !important;
  }
  
  #global-nav .dropdown-menu li a:hover,
  #global-nav ul.dropdown-menu > li > a:hover {
    background: #f5f5f5 !important;
    color: var(--color-brand) !important;
    padding-left: 20px !important;
  }
  
  /* Dropdown Arrow for Level 3 */
  #global-nav .dropdown-menu li.has-dropdown > a::after {
    content: "\25B6";  /* ▶ */
    position: absolute;
    right: 12px;
    font-size: 10px;
  }
  
  /* Dropdown Menus - Level 3 */
  #global-nav .dropdown-menu .dropdown-menu,
  #global-nav ul.dropdown-menu ul.dropdown-menu,
  #global-nav > ul > li > ul.dropdown-menu > li > ul.dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    margin-left: 4px !important;
    min-width: 200px !important;
    max-width: 220px !important;
    background: #ffffff !important;
    /* style_pc_themed.cssの設定を上書き */
    right: auto !important;
    bottom: auto !important;
    font-size: 14px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    list-style: none !important;
  }
  
  /* Level 3 - Right-side parent: show on left */
  #global-nav > ul > li:last-child .dropdown-menu .dropdown-menu {
    left: auto !important;
    right: 100% !important;
    margin-left: 0 !important;
    margin-right: 4px !important;
  }
  
  /* Level 3 Items */
  #global-nav .dropdown-menu .dropdown-menu li,
  #global-nav ul.dropdown-menu ul.dropdown-menu > li {
    background: #ffffff !important;
    float: none !important;
  }
  
  #global-nav .dropdown-menu .dropdown-menu li a,
  #global-nav ul.dropdown-menu ul.dropdown-menu > li > a {
    background: #ffffff !important;
    padding: 10px 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.6 !important;
  }
  
  #global-nav .dropdown-menu .dropdown-menu li a:hover,
  #global-nav ul.dropdown-menu ul.dropdown-menu > li > a:hover {
    background: #f5f5f5 !important;
  }
  
  /* Prevent dropdown from disappearing when moving mouse */
  #global-nav li.has-dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }
  
  /* Fixed Header Adjustments */
  #top-head.fixed #global-nav > ul {
    top: 30px;
    font-size: 14px;
  }
  
  #top-head.fixed #global-nav > ul > li > a {
    color: var(--color-gray-500);
    padding: 0 20px;
  }
  
}

/* ===================================================================
   Tablet & Mobile Version (〜1024px) - Accordion Navigation
   =================================================================== */
@media screen and (max-width: 1024.98px) {
  
  /* Navigation Container */
  #global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  #top-head.open #global-nav {
    display: block;
  }
  
  /* Navigation List */
  #global-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  #global-nav > ul {
    padding: 8px 0;
  }
  
  /* Top Level Items */
  #global-nav > ul > li {
    border-bottom: 1px solid #f0f0f0;
  }
  
  #global-nav > ul > li:last-child {
    border-bottom: none;
  }
  
  #global-nav > ul > li > a {
    display: block;
    padding: 14px 20px;
    color: var(--color-gray-500);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.1em;
    position: relative;
  }
  
  /* Dropdown Toggle Button */
  #global-nav li.has-dropdown > a::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.3s ease;
  }
  
  #global-nav li.has-dropdown.open > a::after {
    content: "-";
  }
  
  /* Dropdown Menus - Level 2 */
  #global-nav .dropdown-menu {
    display: none;
    background: #d6e4ff;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  #global-nav li.has-dropdown.open > .dropdown-menu {
    display: block;
  }
  
  /* Level 2 Items */
  #global-nav .dropdown-menu > li > a {
    display: block;
    padding: 12px 20px 12px 36px;
    color: var(--color-gray-500);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    border-top: 1px solid #ececec;
  }
  
  #global-nav .dropdown-menu > li:first-child > a {
    border-top: none;
  }
  
  /* Level 3 Dropdown Toggle */
  #global-nav .dropdown-menu li.has-dropdown > a::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 16px;
    font-weight: 300;
  }
  
  #global-nav .dropdown-menu li.has-dropdown.open > a::after {
    content: "-";
  }
  
  /* Level 3 Items */
  #global-nav .dropdown-menu .dropdown-menu {
    background: #e8f0ff;
  }
  
  #global-nav .dropdown-menu .dropdown-menu > li > a {
    padding: 10px 20px 10px 52px;
    font-size: 13px;
    border-top: 1px solid #e0e0e0;
  }
  
  #global-nav .dropdown-menu .dropdown-menu > li:first-child > a {
    border-top: none;
  }
  
  /* Active/Hover States */
  #global-nav a:active,
  #global-nav a:focus {
    background: rgba(28, 55, 184, 0.08);
    color: var(--color-brand);
  }
  
}
