/* 改善されたフッターデザイン */

/* メインフッター */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
/*    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);*/
    padding: 0 0 25px 0;
    z-index: 9999;
    transition: all 0.3s ease;
    height: 100px;
}

/* Safari専用の高さ調整 */
@supports (-webkit-touch-callout: none) {
    @media not all and (display-mode: standalone) {
        footer {
            height: 75px !important;
        }
    }
}

.footer-menu-wrap {
    max-width: 1000px; /* 元の幅を維持 */
    margin: 0 auto;
    padding: 0;
}

/* フッターメニュー */
.footer-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 10px 0; /* 元の高さを維持 */
    margin: 0 10px; /* 元のマージンを維持 */
    border-radius: 40px; /* 元の角丸を維持 */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.footer-menu-item {
    margin: 0 10px; /* 元のマージンを維持 */
    position: relative;
}

/* メニューリンク */
.footer-menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #374151;
    font-weight: bold;
    font-size: 7px; /* 元のフォントサイズを維持 */
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    background: none !important;
}

/* ホバー/タップ効果 */
.footer-menu-item a:hover,
.footer-menu-item a:active {
    color: #e3276a;
    transform: scale(0.95);
    background: none !important;
}

/* アイコンスタイル */
.footer-menu-item img {
    width: 30px; /* 元のサイズを維持 */
    height: 30px;
    margin-bottom: 2px; /* 元のマージンを維持 */
    transition: all 0.3s ease;
}

.footer-menu-item a:hover img,
.footer-menu-item a:active img {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* アクティブ状態 */
.footer-menu-item.active a {
    color: #e3276a;
    font-weight: 600;
}

/* アクティブ状態のアイコンスタイル */
.footer-menu-item.active img {
    transform: translateY(-2px);
}

/* お知らせバッジ */
.info-alert {
    position: absolute;
    top: 6px;
    right: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff4458, #e3276a);
    color: white;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(227, 39, 106, 0.3);
    animation: pulse 2s infinite;
    z-index: 10;
}


@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(227, 39, 106, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(227, 39, 106, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(227, 39, 106, 0.3);
    }
}

/* タブレット対応 */
@media (min-width: 768px) {
    .footer-menu-wrap {
        max-width: 1000px;
    }

    .footer-menu-item a {
        font-size: 8px;
    }

    .footer-menu-item img {
        width: 32px;
        height: 32px;
    }
}

/* 大画面対応 */
@media (min-width: 1024px) {
    footer {
        background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(248, 249, 250, 0.98));
    }

    .footer-menu-wrap {
        max-width: 800px;
    }

    .footer-menu-item a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

/* ダークモード対応（オプション） - PWA問題のため無効化 2024/08/16 */
/*
@media (prefers-color-scheme: dark) {
    footer {
        background: linear-gradient(to top, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.95));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-menu-item a {
        color: #9CA3AF;
        background: none !important;
    }

    .footer-menu-item a:hover,
    .footer-menu-item.active a {
        color: #ff6b9d;
        background: none !important;
    }
}
*/

/* セーフエリア対応（iPhone X以降） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(25px + env(safe-area-inset-bottom));
    }
}

/* my-body.phpページ専用の調整 */
.app-wrapper .footer-wrapper {
    flex: 0 0 100px; /* 元の高さを維持 */
    min-height: 100px;
    position: relative;
    z-index: 100;
}

.app-wrapper footer {
    position: relative;
    height: 100px; /* 元の高さを維持 */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}