/* /public/assets/css/nav.css */

/* --- トップバー --- */
.top-bar { 
    padding: 0.5rem 0; 
    font-size: 0.8rem; 
}
.top-bar-links .top-link { 
    color: #6c757d; 
    text-decoration: none; 
    margin-left: 1rem; 
}
.top-bar-links .top-link:hover { 
    color: #0d6efd; 
}
.top-bar-links .top-link-cart { 
    color: #6c757d; 
    text-decoration: none; 
}

/* --- ★★★ 3段構成のためのスタイル (ロゴバーの余白を修正) ★★★ --- */
#page-header .logo-bar {
    padding: 2rem 0 !important; /* !importantを追加して強制的に適用 */
}
/* ★ロゴバーのサイトタイトル用スタイル (新設)★ */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}
.logo-bar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

/* PC表示のナビゲーションバー */
.navbar {
    padding-top: 0;
    padding-bottom: 0;
}
.main-nav .nav-link { 
    font-weight: 500;
    padding: 0.75rem 1rem;
}

/* --- メガメニュー用スタイル --- */
.dropdown-mega { 
    position: static; 
}
.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 2rem;
    margin-top: 0;
    border: none;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
}
.mega-menu-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.mega-menu .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: #495057;
    border-radius: 0.25rem;
}
.mega-menu .dropdown-item:hover {
    color: #0d6efd;
    background-color: #f1f<seg_3>f5;
}
.featured-content h5 {
    font-weight: 700;
    margin-top: 0.5rem;
}

/* --- マーケットデータ・ティッカー --- */
.market-ticker-bar { 
    background-color: #f8f9fa; 
}
.ticker-items {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ticker-items::-webkit-scrollbar { 
    display: none; 
}
.ticker-item {
    display: flex;
    align-items: center; /* アイコンとテキストを中央揃え */
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
    padding: 0.5rem;
    flex: 1;
    min-width: 150px; /* 少し幅を広げる */
    border-radius: 0.25rem;
}
.ticker-item:hover { 
    background-color: #e9ecef; 
}
.ticker-item .ticker-icon {
    font-size: 1.75rem;
    margin-right: 0.75rem;
}
.ticker-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* テキストを左揃え */
    text-align: left;
}
.ticker-item .label {
    font-size: 0.7rem;
    color: #6c757d;
}
.ticker-item .value {
    font-weight: 700;
    color: #212529;
    font-size: 0.9rem;
}
.ticker-item .change {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 991px) {
    .ticker-item {
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
    }
}

/* --- オフキャンバス (スマホ) --- */
.offcanvas .nav-link { 
    color: rgba(255, 255, 255, 0.75); 
    font-size: 1.1rem; 
}
.offcanvas .nav-link:hover { 
    color: #fff; 
}

/* --- スマホ用ボトムナビゲーション --- */
body {
    padding-bottom: 70px;
}
@media (min-width: 992px) {
    body {
        padding-bottom: 0; /* PCでは余白をなくす */
    }
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 70px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    border-top: 1px solid #dee2e6;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    position: relative;
    transition: color 0.2s;
}
.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}
.bottom-nav-item.active {
    color: #0d6efd;
    font-weight: 700;
}
.bottom-nav-item .badge {
    font-size: 0.6em;
    padding: 0.25em 0.4em;
}