/* ==========================================================
   site-chrome.css
   サイト全体で共通のヘッダー・フッターのスタイル。
   静的ページ（ルート直下）・shop/ アプリ双方から読み込まれる、
   ヘッダー／フッターに関するCSSの単一の置き場所です。
   （ページ本体のデザイン：css/style.css、shop/css/common.css は
   　それぞれ従来通りページ固有のスタイルとして残しています）
========================================================== */

:root {
    --chrome-tan: #a9824f;
    --chrome-header-bg: #2a1f18;
    --chrome-header-bg-active: #5b4530;
    --chrome-footer-bg: #2a1810;
    --chrome-footer-text: #f5f1ed;
    --chrome-accent: #8b6f47;
    --chrome-transition: all 0.3s ease;
}

/* ==================== ヘッダー ==================== */
.site-header {
    background: var(--chrome-header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}
.site-header .brand img { height: 38px; width: auto; }

.site-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.site-nav a {
    color: #efe9e0;
    font-size: .88rem;
    padding: 10px 16px;
    border-radius: 4px;
    transition: background .15s ease;
}
.site-nav a:hover { background: rgba(255,255,255,.08); }
.site-nav a.active {
    background: var(--chrome-header-bg-active);
    color: #fff;
    font-weight: 700;
}

/* ドロップダウンサブメニュー */
.site-nav .has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.site-nav .dropdown-label {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #efe9e0;
    font-family: inherit;
    font-size: .88rem;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 4px;
    transition: background .15s ease;
}
.site-nav .dropdown-label:hover { background: rgba(255,255,255,.08); }
.site-nav .dropdown-label .caret { font-size: .7rem; opacity: .85; }
.site-nav .has-dropdown.current > .dropdown-label {
    background: var(--chrome-header-bg-active);
    color: #fff;
    font-weight: 700;
}
.site-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--chrome-header-bg);
    min-width: 170px;
    padding: 6px 0;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,.25);
    z-index: 50;
    flex-direction: column;
}
.site-nav .has-dropdown:hover > .dropdown-menu,
.site-nav .has-dropdown.open > .dropdown-menu {
    display: flex;
}
.site-nav .dropdown-menu a {
    padding: 10px 16px;
    white-space: nowrap;
    border-radius: 0;
}
.site-nav a.nav-cta {
    background: var(--chrome-tan);
    color: #fff;
    font-weight: 700;
}

.header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-left: 8px;
}
.header-icons svg {
    width: 19px; height: 19px;
    stroke: #efe9e0;
    fill: none;
    stroke-width: 1.7;
    cursor: pointer;
    transition: stroke .15s ease;
}
.header-icons svg:hover { stroke: var(--chrome-tan); }
.header-icons .cart-badge {
    display: none;
    position: absolute;
    top: -8px; right: -10px;
    background: var(--chrome-tan);
    color: #fff;
    font-size: .65rem;
    line-height: 1;
    border-radius: 50%;
    padding: 3px 5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: #efe9e0; fill: none; stroke-width: 1.7; }

@media (max-width: 760px) {
    .site-header { padding: 14px 20px; }
    .site-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--chrome-header-bg);
        flex-direction: column; padding: 8px 16px 16px;
        z-index: 20;
    }
    .site-nav.is-open { display: flex; }
    .nav-toggle { display: block; }
    .site-nav .has-dropdown { flex-direction: column; align-items: stretch; position: relative; }
    .site-nav .dropdown-label { width: 100%; justify-content: space-between; padding: 10px 16px; }
    .site-nav .dropdown-menu {
        display: none; position: static; box-shadow: none;
        background: rgba(255,255,255,.06); min-width: 0; padding-left: 10px;
    }
    .site-nav .has-dropdown.open > .dropdown-menu { display: flex; }
}

/* ==================== フッター ==================== */
.site-footer-chrome {
    background-color: var(--chrome-footer-bg);
    color: var(--chrome-footer-text);
    padding: 3rem 1.5rem 1rem;
}
.site-footer-chrome .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer-chrome .footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.site-footer-chrome .footer-info p,
.site-footer-chrome .footer-contact p {
    margin: 0.5rem 0;
    opacity: 0.9;
}
.site-footer-chrome .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.site-footer-chrome .footer-links a {
    opacity: 0.9;
    transition: var(--chrome-transition);
}
.site-footer-chrome .footer-links a:hover {
    opacity: 1;
    color: var(--chrome-accent);
}
.site-footer-chrome .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .site-footer-chrome .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .site-footer-chrome .footer-links {
        align-items: center;
    }
}
