/*
 * Shared storefront chrome for fashion01.
 *
 * Block/header.twig and Block/footer.twig are the only visual header/footer
 * components. Keep their geometry here so page styles cannot fork TOP, LIST
 * and DETAIL at route-specific breakpoints.
 */

/* Keep every storefront route, including Bootstrap-based legacy screens, on the
 * same Japanese sans-serif stack. Icon and code fonts are explicitly excluded. */
:root {
    --fashion-font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

body.fashion01-theme {
    --sans: var(--fashion-font-family);
    --serif: var(--fashion-font-family);
    --bs-font-sans-serif: var(--fashion-font-family);
    --bs-body-font-family: var(--fashion-font-family);
    font-family: var(--fashion-font-family);
}

body.fashion01-theme *:not(.material-symbols-outlined):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.bi):not(code):not(kbd):not(samp):not(pre) {
    font-family: var(--fashion-font-family) !important;
}

body.fashion01-theme .site-header {
    position: relative;
    z-index: 30;
    width: 100%;
    height: 92px;
    background: rgba(250, 248, 242, 0.97);
    line-height: 1.5;
}

body.fashion01-theme .site-header .header-inner {
    width: min(1280px, calc(100% - 64px));
    height: 100%;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 154px;
    align-items: center;
    gap: 30px;
    margin-inline: auto;
}

body.fashion01-theme .brand {
    width: max-content;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

body.fashion01-theme .brand-kanji {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}

body.fashion01-theme .brand-latin {
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 0.14em;
}

body.fashion01-theme .desktop-nav {
    display: flex;
    justify-content: center;
    gap: clamp(22px, 3vw, 52px);
    white-space: nowrap;
}

body.fashion01-theme .desktop-nav > a,
body.fashion01-theme .new-nav-trigger {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

body.fashion01-theme .desktop-nav > a::after,
body.fashion01-theme .new-nav-trigger::after {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

body.fashion01-theme .desktop-nav > a:hover::after,
body.fashion01-theme .desktop-nav > a:focus-visible::after,
body.fashion01-theme .desktop-nav > a[aria-current="page"]::after,
body.fashion01-theme .new-nav-trigger:hover::after,
body.fashion01-theme .new-nav-trigger:focus-visible::after,
body.fashion01-theme .new-nav-trigger[aria-expanded="true"]::after {
    transform: scaleX(1);
}

body.fashion01-theme .new-nav-wrap {
    position: relative;
}

body.fashion01-theme .new-nav-trigger {
    gap: 7px;
    padding: 0;
}

body.fashion01-theme .new-nav-trigger svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform 0.22s ease;
}

body.fashion01-theme .new-nav-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

body.fashion01-theme .mega-menu {
    position: fixed;
    z-index: 70;
    top: 92px;
    left: 50%;
    width: min(920px, calc(100vw - 64px));
    max-height: min(640px, calc(100vh - 124px));
    padding: 28px 34px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid var(--line);
    background: rgba(251, 249, 244, 0.99);
    box-shadow: 0 24px 55px rgba(25, 24, 20, 0.14);
    white-space: normal;
    transform: translateX(-50%);
}

body.fashion01-theme .mega-menu::before {
    position: absolute;
    top: -9px;
    left: var(--mega-arrow-x, 176px);
    width: 17px;
    height: 17px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    content: "";
    background: var(--paper-soft);
    transform: rotate(45deg);
}

body.fashion01-theme .mega-menu-title {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

body.fashion01-theme .mega-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

body.fashion01-theme .menu-category {
    border-top: 1px solid var(--line);
}

body.fashion01-theme .menu-category-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

body.fashion01-theme .menu-category-children {
    padding: 3px 0 8px 18px;
    margin: 0;
    list-style: none;
}

body.fashion01-theme .menu-category-children a {
    min-height: 38px;
    display: flex;
    align-items: center;
    color: #57564f;
    font-size: 13px;
    transition: color 0.2s ease, transform 0.2s ease;
}

body.fashion01-theme .menu-category-children a:hover,
body.fashion01-theme .menu-category-children a:focus-visible {
    color: var(--ink);
    transform: translateX(4px);
}

body.fashion01-theme .header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
}

body.fashion01-theme .icon-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    transition: background-color 0.22s ease;
}

body.fashion01-theme .icon-button:hover {
    background: rgba(25, 25, 21, 0.05);
}

body.fashion01-theme .icon-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

body.fashion01-theme .menu-button {
    display: none;
}

body.fashion01-theme .cart-wrap {
    position: relative;
}

body.fashion01-theme .cart-count {
    position: absolute;
    z-index: 2;
    top: 1px;
    right: 0;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    border: 2px solid var(--paper-soft);
    border-radius: 20px;
    background: #d84435;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: 0;
}

body.fashion01-theme .cart-popover {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    width: 420px;
    max-height: min(720px, calc(100vh - 100px));
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-soft);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    font-size: 13px;
}

body.fashion01-theme .cart-popover::before {
    position: absolute;
    top: -8px;
    right: 18px;
    width: 15px;
    height: 15px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    content: "";
    background: var(--paper-soft);
    transform: rotate(45deg);
}

body.fashion01-theme .cart-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
}

body.fashion01-theme .cart-popover-head h2 {
    margin: 0;
    font-size: inherit;
}

body.fashion01-theme .cart-items {
    min-height: 0;
    max-height: min(420px, calc(100vh - 300px));
    flex: 1 1 auto;
    padding: 6px 0;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #aaa59b transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    list-style: none;
}

body.fashion01-theme .cart-items:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 3px;
}

body.fashion01-theme .cart-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e8e3da;
}

body.fashion01-theme .cart-item img {
    width: 86px;
    height: 104px;
    object-fit: cover;
    object-position: center 18%;
    background: #e9e6df;
}

body.fashion01-theme .cart-item-name {
    margin: 0 0 9px;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

body.fashion01-theme .cart-item-option {
    margin: 2px 0 0;
    color: #68665f;
    font-size: 12px;
}

body.fashion01-theme .cart-item-price {
    align-self: center;
    margin: 0;
    font: 600 13px/1.7 Arial, sans-serif;
    text-align: right;
    white-space: nowrap;
}

body.fashion01-theme .cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 14px;
    font-size: 15px;
    font-weight: 600;
}

body.fashion01-theme .cart-total strong {
    font: 600 20px/1 Arial, sans-serif;
}

body.fashion01-theme .cart-view,
body.fashion01-theme .cart-checkout {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #292a25;
    font-weight: 600;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

body.fashion01-theme .cart-view:hover,
body.fashion01-theme .cart-view:focus-visible,
body.fashion01-theme .cart-checkout:hover,
body.fashion01-theme .cart-checkout:focus-visible {
    background: #474840;
    transform: translateY(-2px);
}

body.fashion01-theme .search-panel {
    position: fixed;
    z-index: 80;
    top: 92px;
    right: 0;
    left: 0;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-soft);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
}

body.fashion01-theme .search-form {
    width: min(720px, calc(100% - 48px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: auto;
}

body.fashion01-theme .search-form input {
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #bcb8ad;
    background: #fff;
}

body.fashion01-theme .search-form input:focus {
    border-color: #3b3c36;
    outline: none;
    box-shadow: inset 0 0 0 1px #3b3c36;
}

body.fashion01-theme .search-submit {
    min-width: 92px;
    height: 50px;
    color: #fff;
    background: #292a25;
    transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

body.fashion01-theme .search-submit:hover,
body.fashion01-theme .search-submit:focus-visible {
    background: #4b4b43;
    box-shadow: 0 8px 18px rgba(24, 24, 20, 0.15);
    transform: translateY(-2px);
}

body.fashion01-theme .drawer-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(20, 20, 17, 0.46);
}

body.fashion01-theme .mobile-drawer {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 390px);
    padding: 24px 24px 38px;
    overflow-y: auto;
    background: var(--paper-soft);
    box-shadow: -20px 0 54px rgba(0, 0, 0, 0.2);
}

body.fashion01-theme .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

body.fashion01-theme .drawer-nav > a,
body.fashion01-theme .drawer-category-row > a {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 17px;
}

body.fashion01-theme .drawer-category {
    border-bottom: 1px solid #e4e0d7;
}

body.fashion01-theme .drawer-category:last-child {
    border-bottom: 0;
}

body.fashion01-theme .drawer-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
}

body.fashion01-theme .drawer-category-row > a {
    border-bottom: 0;
}

body.fashion01-theme .drawer-category-toggle {
    width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
}

body.fashion01-theme .drawer-category-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform 0.2s ease;
}

body.fashion01-theme .drawer-category-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

body.fashion01-theme .drawer-category-children {
    padding: 0 0 8px 22px;
    margin: 0;
    list-style: none;
}

body.fashion01-theme .drawer-category-children a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: #64625b;
    font-size: 14px;
}

body.fashion01-theme .site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #efede7;
    line-height: 1.5;
}

body.fashion01-theme .footer-main {
    position: relative;
    padding: 104px 0 70px;
    overflow: hidden;
    background: #efede7;
}

body.fashion01-theme .footer-main::before,
body.fashion01-theme .footer-main::after {
    position: absolute;
    z-index: 0;
    top: -155px;
    width: 88%;
    height: 220px;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body.fashion01-theme .footer-main::before {
    left: -28%;
    background: rgba(255, 255, 255, 0.52);
    transform: rotate(2deg);
}

body.fashion01-theme .footer-main::after {
    right: -28%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(-2deg);
}

body.fashion01-theme .footer-grid {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 64px));
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 76px;
    margin-inline: auto;
}

body.fashion01-theme .footer-brand .brand {
    margin-bottom: 28px;
}

body.fashion01-theme .footer-brand p {
    margin: 0 0 26px;
    font-family: var(--serif);
    font-size: 14px;
    line-height: 2;
}

body.fashion01-theme .socials {
    display: flex;
    gap: 8px;
}

body.fashion01-theme .socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #c5c2b9;
    border-radius: 50%;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

body.fashion01-theme .socials a:hover,
body.fashion01-theme .socials a:focus-visible {
    color: #f6f2ea;
    background: #30312c;
    transform: translateY(-2px);
}

body.fashion01-theme .socials svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

body.fashion01-theme .socials .social-icon-dot,
body.fashion01-theme .socials .social-icon-fill {
    fill: currentColor;
    stroke: none;
}

body.fashion01-theme .footer-column h2,
body.fashion01-theme .footer-column h3 {
    margin: 4px 0 22px;
    font-size: 14px;
    font-weight: 600;
}

body.fashion01-theme .footer-column a {
    width: fit-content;
    min-height: 31px;
    display: block;
    font-size: 13px;
    transition: transform 0.22s ease;
}

body.fashion01-theme .footer-column a:hover,
body.fashion01-theme .footer-column a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
    transform: translateX(4px);
}

body.fashion01-theme .copyright {
    min-height: 44px;
    display: grid;
    place-items: center;
    color: #ddd9cf;
    background: #25251f;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

@media (max-width: 1050px) {
    body.fashion01-theme .site-header {
        height: 76px;
    }

    body.fashion01-theme .site-header .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.fashion01-theme .desktop-nav,
    body.fashion01-theme .mega-menu {
        display: none !important;
    }

    body.fashion01-theme .menu-button {
        display: inline-grid;
    }

    body.fashion01-theme .account-button {
        display: none;
    }

    body.fashion01-theme .search-panel {
        top: 76px;
    }

    body.fashion01-theme .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 40px;
    }

    body.fashion01-theme .footer-column:last-child {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    body.fashion01-theme .site-header {
        height: 68px;
    }

    body.fashion01-theme .site-header .header-inner,
    body.fashion01-theme .footer-grid {
        width: calc(100% - 36px);
    }

    body.fashion01-theme .header-actions {
        gap: 0;
    }

    body.fashion01-theme .icon-button {
        width: 44px;
        height: 44px;
    }

    body.fashion01-theme .cart-button {
        display: inline-grid;
    }

    body.fashion01-theme .brand-kanji {
        font-size: 32px;
    }

    body.fashion01-theme .brand-latin {
        font-size: 9px;
    }

    body.fashion01-theme .search-panel {
        top: 68px;
    }

    body.fashion01-theme .cart-popover {
        position: fixed;
        top: 67px;
        right: 12px;
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100vh - 78px);
        max-height: calc(100dvh - 78px);
        overflow: hidden;
    }

    body.fashion01-theme .cart-popover::before {
        right: 56px;
    }

    body.fashion01-theme .footer-main {
        padding: 72px 0 48px;
    }

    body.fashion01-theme .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    body.fashion01-theme .footer-brand,
    body.fashion01-theme .footer-column:last-child {
        grid-column: auto;
    }
}

@media (max-width: 360px) {
    body.fashion01-theme .site-header .header-inner,
    body.fashion01-theme .footer-grid {
        width: calc(100% - 24px);
    }

    body.fashion01-theme .brand-latin {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.fashion01-theme .site-header *,
    body.fashion01-theme .site-footer * {
        transition-duration: 0.01ms !important;
    }
}
