/* カスタマイズ用CSS */

/* デバッグ・メンテナンスアラート レイアウト修正 */
.ec-debugModeAlert,
.ec-maintenanceAlert {
    display: flex;
    justify-content: center;
}
.ec-debugModeAlert > div,
.ec-maintenanceAlert > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ec-debugModeAlert__icon,
.ec-maintenanceAlert__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ec-debugModeAlert__icon img,
.ec-maintenanceAlert__icon img {
    width: 20px;
    height: 20px;
}

/* ようこそ〜様 上マージン直接上書き */
.ec-headerNaviRole {
    padding-top: 10px !important;
}

/* ADD 2026/04/17 Y.Aoki スティッキーフッター（コンテンツが少ない時もフッターを最下部に） */
html, body {
    height: 100%;
}
.ec-layoutRole {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.ky_contents {
    flex: 1 0 auto;
}

/* ADD 2026/04/17 Y.Aoki スマホ時ヘッダー追従 */
@media only screen and (max-width: 768px) {
    header.ec-layoutRole__header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
    }
    /* headerSub（検索・カート・ログイン）はstickyの外 */
    .ec-layoutRole__headerSub {
        background: #fff;
    }
}

/* ADD 2026/04/17 Y.Aoki デバッグ/メンテアラートを画面下部に固定 */
.ec-debugModeAlert,
.ec-maintenanceAlert {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    height: 50px;
}
.ec-debugModeAlert {
    background-color: #dc3545;
    color: #fff;
    font-weight: bold;
}
/* 両方有効時: ラッパーを下部固定し、メンテをデバッグバーの直上に密着表示 */
.ec-twoModeAlert {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
}
.ec-twoModeAlert .ec-maintenanceAlert,
.ec-twoModeAlert .ec-debugModeAlert {
    position: static;
    width: 100%;
    margin-top: 0 !important; /* style.css の .ec-maintenanceAlert + * を無効化 */
}

/* ADD 2026/06/16 Y.Aoki 商品詳細 SNS共有ボタン（CDN非依存・SP対応） */
.ec-productRole__share {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    margin-bottom: 12px;
}
.ec-productRole__shareLabel {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}
.ec-productRole__shareBtns {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
}
.ec-productRole__shareBtns .ec-shareBtn {
    margin: 0 6px 6px 0;
}
@supports (gap: 6px) {
    .ec-productRole__shareBtns .ec-shareBtn {
        margin: 0;
    }
}
button.ec-shareBtn {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 0 8px;
    border: none;
    border-radius: 4px;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
button.ec-shareBtn:hover,
button.ec-shareBtn:focus,
button.ec-shareBtn:active {
    opacity: 0.85;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
.ec-shareBtn__icon {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}
.ec-shareBtn__icon svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    display: block;
}
.ec-shareBtn__icon--hatena {
    font-size: 12px;
    font-weight: bold;
}
.ec-shareBtn__label {
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}
button.ec-shareBtn--x       { background-color: #000 !important; }
button.ec-shareBtn--facebook { background-color: #1877F2 !important; }
button.ec-shareBtn--line    { background-color: #06C755 !important; }
button.ec-shareBtn--hatena  { background-color: #00A4DE !important; }
button.ec-shareBtn--native  { background-color: #555 !important; }

/* SP: 商品画像スライダーのはみ出しでシェアボタンが隠れるのを防止 */
@media (max-width: 767px) {
    .ec-sliderItemRole,
    .ec-sliderItemRole .item_visual,
    .ec-sliderItemRole .slide-item {
        overflow: hidden;
    }
    .ec-productRole__profile {
        position: relative;
        z-index: 2;
    }
}

/* ADD 2026/07/01 Y.Aoki 恵比須丸黒部 ヘッダー・フッター（テキストロゴ・配色） */
:root {
    --ebisu-brand-bg: #000000;
    --ebisu-brand-accent: #c9a227;
    --ebisu-brand-text: #ffffff;
    --ebisu-sidebar-active-bg: #ffc857;
    --ebisu-sidebar-active-hover: #ffe08f;
}

.tophead {
    background: var(--ebisu-brand-bg) !important;
}

header h1 {
    color: var(--ebisu-brand-text) !important;
    font-size: 85% !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
}

.tophead .inner {
    width: 100% !important;
    max-width: 1060px !important;
}

.ebisu-header__logo,
header .ky_logo.ebisu-header__logo {
    float: left !important;
    width: auto !important;
    text-align: left;
    padding: 0 !important;
    margin: 0 !important;
}

.ebisu-header__logo a {
    display: block;
    text-decoration: none;
    line-height: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.ebisu-header__logo img,
.ky_logo.ebisu-header__logo img {
    display: block;
    width: 380px !important;
    height: 52.3px !important;
    max-width: 100% !important;
    object-fit: contain;
    object-position: left center;
    margin: 0 !important;
    padding: 0 !important;
}

.ebisu-header__logo a:hover {
    opacity: 0.9;
}

#menu-box {
    background: #fff !important;
    border-bottom: 1px solid #ccc !important;
}

#menubar {
    width: 100%;
    max-width: 1080px;
    border-left: none !important;
}

#menubar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

#menubar li {
    float: none !important;
    width: auto !important;
    flex: 1 1 25%;
    min-width: 140px;
    border-right: 1px solid #ddd !important;
    line-height: 1.4 !important;
}

#menubar li:last-child {
    border-right: none !important;
}

#menubar a {
    display: block;
    padding: 14px 10px;
    color: #333 !important;
    font-weight: bold;
    text-decoration: none;
}

#menubar li:hover,
#menubar li.current {
    background: #f5f0e6 !important;
}

#menubar li:hover a,
#menubar li.current a {
    color: var(--ebisu-brand-bg) !important;
    border-bottom: 2px solid var(--ebisu-brand-accent);
}

#menubar .menuimg a {
    width: auto !important;
    height: auto !important;
    background: none !important;
}

.ec-footerRole.ebisu-footer {
    background: var(--ebisu-brand-bg) !important;
    border-top: 3px solid var(--ebisu-brand-accent) !important;
    margin-top: 30px;
}

.ebisu-footer .ec-footerNavi a {
    color: var(--ebisu-brand-text) !important;
}

.ebisu-footer .ec-footerNavi a:hover {
    color: var(--ebisu-brand-accent) !important;
}

.ebisu-footer__logo a {
    font-size: 22px !important;
    font-weight: bold !important;
    letter-spacing: 0.1em !important;
    color: var(--ebisu-brand-text) !important;
    text-decoration: none !important;
}

.ebisu-footer__logo a:hover {
    color: var(--ebisu-brand-accent) !important;
}

.ebisu-footer .ec-footerTitle__info,
.ebisu-footer .ec-footerTitle__copyright {
    color: #e8e8e8 !important;
}

.ebisu-footer__email {
    margin-top: 4px;
}

.ebisu-footer .ec-footerNavi {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

/* サイドバー 商品一覧 */
.ebisu-sidebar.ky_sub .ebisu-sidebar__category {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-top: 3px solid var(--ebisu-brand-accent) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    overflow: hidden;
}

.ebisu-sidebar.ky_sub h2 {
    background: var(--ebisu-brand-bg) !important;
    color: var(--ebisu-brand-text) !important;
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    letter-spacing: 0.08em;
}

.ebisu-sidebar ul.ky_submenu {
    margin: 0 !important;
    padding: 4px 0 8px !important;
    line-height: 1.6 !important;
    list-style: none;
}

.ebisu-sidebar ul.ky_submenu li {
    list-style: none;
}

.ebisu-sidebar ul.ky_submenu li a {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    border-left: 3px solid transparent !important;
    color: #333 !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    font-size: 13px;
    text-decoration: none;
    display: block;
}

.ebisu-sidebar ul.ky_submenu li a:hover {
    background: #f5f0e6 !important;
    border-left-color: var(--ebisu-brand-accent) !important;
    color: var(--ebisu-brand-bg) !important;
}

.ebisu-sidebar ul.ky_submenu li a.ebisu-sidebar__link--active {
    background: var(--ebisu-sidebar-active-bg) !important;
    border-left-color: var(--ebisu-brand-bg) !important;
    color: var(--ebisu-brand-bg) !important;
    font-weight: bold;
}

.ebisu-sidebar ul.ky_submenu li.ebisu-sidebar__item--active a.ebisu-sidebar__link--active:hover {
    background: var(--ebisu-sidebar-active-hover) !important;
    color: var(--ebisu-brand-bg) !important;
    opacity: 1;
}

.ebisu-sidebar ul.ky_submenu li a.ebisu-sidebar__link--ancestor {
    background: #eef2f6 !important;
    border-left-color: var(--ebisu-brand-accent) !important;
    color: var(--ebisu-brand-bg) !important;
    font-weight: bold;
}

.ebisu-sidebar ul.ky_child1 li a.ebisu-sidebar__link--active {
    background: var(--ebisu-sidebar-active-bg) !important;
    color: var(--ebisu-brand-bg) !important;
    border-left-color: var(--ebisu-brand-bg) !important;
}

.ebisu-sidebar ul.ky_child1 li a.ebisu-sidebar__link--ancestor {
    background: #eef2f6 !important;
    color: var(--ebisu-brand-bg) !important;
}

.ebisu-sidebar ul.ky_child1 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ebisu-sidebar ul.ky_child1 li {
    padding-left: 0 !important;
}

.ebisu-sidebar ul.ky_child1 li a {
    padding-left: 24px !important;
    font-size: 12px;
    color: #555 !important;
    background: #fafafa !important;
}

.ebisu-sidebar ul.ky_child1 li a:hover {
    background: #f5f0e6 !important;
    color: var(--ebisu-brand-bg) !important;
}

.ebisu-sidebar__contact img,
.ebisu-sidebar__nosi img {
    display: block;
    width: 100%;
    max-width: 255px;
    height: auto;
}

.ebisu-sidebar__contact a:hover {
    opacity: 0.9;
}

/* ドロワーメニュー（SP）見出し */
.ec-drawerRole .ec-headerCategoryArea .ec-headerCategoryArea__heading {
    background: var(--ebisu-brand-bg) !important;
    color: var(--ebisu-brand-text) !important;
}

/* ドロワーメニュー（SP）選択中カテゴリ */
.ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav a.ebisu-sidebar__link--active {
    background: var(--ebisu-sidebar-active-bg) !important;
    border-left: 5px solid var(--ebisu-brand-bg) !important;
    color: var(--ebisu-brand-bg) !important;
    font-weight: bold;
}

.ec-drawerRole .ec-headerCategoryArea .ec-itemNav__nav a.ebisu-sidebar__link--ancestor {
    background: #eef2f6 !important;
    border-left: 5px solid var(--ebisu-brand-accent) !important;
    color: var(--ebisu-brand-bg) !important;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    header.ec-layoutRole__header {
        background: var(--ebisu-brand-bg) !important;
    }

    /* ハンバーガー（右）と重ならないようロゴエリアを右寄せ */
    .tophead .inner {
        position: relative;
        box-sizing: border-box;
        padding-left: 56px !important;
        padding-right: 48px !important;
    }

    .ebisu-header__logo,
    header .ky_logo.ebisu-header__logo {
        float: none !important;
        text-align: left;
        padding: 0 !important;
        margin: 0 !important;
    }

    .ebisu-header__logo img,
    .ky_logo.ebisu-header__logo img {
        width: auto !important;
        max-width: 100% !important;
        height: 52.3px !important;
        object-fit: contain;
        object-position: left center;
        margin: 0 !important;
        padding: 0 !important;
    }

    header h1 {
        font-size: 75% !important;
    }

    #menubar li {
        flex: 1 1 50%;
        min-width: 0;
    }
}
/* END ebisu header/footer */
