/* カスタマイズ用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;
    }
}
