/* ============================================
   SNSモーダル + 管理者向けヘッダーSNS調整
   既存CSSと干渉しないよう、専用クラス名で記述
   ============================================ */


/* === 管理者用ロゴ配下SNS(PC) === */
.header-social-admin {
    position: absolute;        /* ← relative → absolute に変更 */
    top: 30px;                 /* ← 元の.header-social-itemsと同じ */
    left: 30px;                /* ← 元の.header-social-itemsと同じ */
    z-index: 1;
}

.header-social-admin .hlogo-admin {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.header-sns-admin {
    position: absolute;
    top: 102px;
    left: 50%;
    transform: translateX(-50%);  /* ロゴ基準で中央配置 */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: max-content;
    z-index: 0;
}

.header-sns-admin li {
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.header-sns-admin li img {
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}


/* スマホでは管理者ヘッダーSNSも非表示 */
@media only screen and (max-width: 1000px) {
    .header-social-admin {
        display: none !important;
    }
}


/* === ハンバーガーメニュー内SNS:TikTokサイズ調整(管理者で4つになる用) === */

.header-navi-inner ul.snsBox {
    gap: 0.5rem;
}


/* === トップページcheck_it_out:TikTokサイズ調整 === */
.snsBox-2 .sns-icon-tiktok img {
    height: auto;
    display: block;
}


/* === モーダル本体 === */
.sns-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: 游ゴシック体, YuGothic, 'Yu Gothic', "游ゴシック Medium", "Yu Gothic Medium", 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}
.sns-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.sns-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.sns-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 2.5rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.sns-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0.25rem 0.5rem;
}
.sns-modal-close:hover {
    color: #000;
}
.sns-modal-title {
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 1.15rem;
    font-weight: bold;
}
.sns-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sns-modal-list li {
    margin-bottom: 0.75rem;
}
.sns-modal-list li:last-child {
    margin-bottom: 0;
}
.sns-modal-list a {
    display: block;
    padding: 0.9rem 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: background 0.2s;
}
.sns-modal-list a:hover {
    background: #e8e8e8;
}


/* モーダル表示中はフローティングバナーを非表示 */
body.is-modal-open .floating-banner_sp {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}