@charset 'UTF-8';
/*
 下部固定グローバルナビ (全ページ共通)
 デザイン: Downloads/images/screen_shot1.png
 - マイカメ農園 / ショップ / ミッション / ガチャ / メニュー
 - common.css の legacy .globalNav ルールより後に読み込んで上書きする
*/

/* フッターを画面下部に固定し、本文がナビに隠れないよう余白を確保 */
#footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
}

#wrapInner {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}

#footer .globalNav .navList {
    display: flex;
    border-top: none;
    border-bottom: none;
    /* デザイン (screen_shot1.png): フラットな緑 1 色 */
    background: #92c349;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

#footer .globalNav .navList > li {
    position: relative;
    flex: 1;
    display: block;
    width: auto;
    /* デザインでは項目間の区切り線なし */
    border-left: none;
    border-right: none;
}

#footer .globalNav .navList > li > a,
#footer .globalNav .navList > li > .gnDisabledLink,
#footer .globalNav .navList > li > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 6px 0;
    box-sizing: border-box;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 1 !important;
    letter-spacing: 0;
    text-decoration: none !important;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* legacy sprite (:before) を無効化 */
#footer .globalNav .navList > li > a:before,
#footer .globalNav .navList > li > button:before {
    content: none !important;
}

/* SVG アイコン (単色なので mask で白に着色) */
.gnIco {
    display: block;
    width: 22px;
    height: 22px;
    background-color: #fff;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.gnIco--kame {
    -webkit-mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_kame.svg');
    mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_kame.svg');
}

.gnIco--shop {
    -webkit-mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_shop.svg');
    mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_shop.svg');
}

.gnIco--flag {
    -webkit-mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_flag.svg');
    mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_flag.svg');
}

/* アイテム (アイテムボックス) */
.gnIco--item {
    -webkit-mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_item.svg');
    mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_item.svg');
}

.gnIco--gacha {
    -webkit-mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_gacha.svg');
    mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_gacha.svg');
}

.gnIco--menu {
    -webkit-mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_menu.svg');
    mask-image: url('https://assets.prd.kamefarm.sonicmoov.com/images/sp/ui/nav_menu.svg');
}

/* NEW バッジ (デザイン: ガチャアイコン左上の赤い角丸ラベル) */
.gnNew {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-28px);
    z-index: 2;
    padding: 2px 4px;
    font-size: 8px;
    font-weight: bold;
    color: #fff;
    background-color: #ef3b3b;
    border-radius: 4px;
    line-height: 1;
}

/* デイリーミッション完了後の非活性 (仕様メモ: screen_shot1.png 右) */
#footer .globalNav .navList > li.is-disabled > a,
#footer .globalNav .navList > li.is-disabled > .gnDisabledLink {
    background-color: rgba(0, 0, 0, 0.3);
    color: #d5e3c2;
    pointer-events: none;
}

#footer .globalNav .navList > li.is-disabled .gnIco {
    background-color: #d5e3c2;
}

/* セール中ショップ (既存互換: 軽い強調のみ) */
#footer .globalNav .navList > li.gnShop.sale > a {
    color: #fff272;
}

/* オーバーレイ対応ページ共通の閉じるボタン (コンテンツ最下部・余白付き) */
.ovPageClose {
    margin: 20px 0 24px;
    text-align: center;
}
