/* =====================================================
   Fish On - 言語切替 / 言語検出ポップアップ
   assets/css/lang.css
   ===================================================== */

/* ---------- 言語切替ボタン（右下固定） ---------- */
.fo-lang-switcher {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 9999;
    display: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.fo-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
}

.fo-lang-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.fo-lang-btn--active {
    box-shadow: 0 0 0 3px var(--fo-primary, #f97316), 0 2px 10px rgba(0,0,0,0.18);
}

/* ---------- ポップアップ ---------- */
.fo-lang-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;        /* スマホは下から */
    justify-content: center;
    padding: 0 0 24px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.fo-lang-popup.fo-lang-popup--show {
    opacity: 1;
    pointer-events: auto;
}

.fo-lang-popup__box {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 20px 20px;
    padding: 32px 28px 24px;
    max-width: 360px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    animation: fo-popup-up 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes fo-popup-up {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.fo-lang-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.fo-lang-popup__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.fo-lang-popup__msg {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.fo-lang-popup__btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fo-lang-popup__yes {
    display: block;
    padding: 13px;
    border-radius: 12px;
    background: var(--fo-primary, #f97316);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.fo-lang-popup__yes:hover {
    background: #ea6c0a;
    transform: translateY(-1px);
}

.fo-lang-popup__no {
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    padding: 11px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: background 0.15s;
}

.fo-lang-popup__no:hover {
    background: #f5f5f5;
}

/* PC では中央に */
@media (min-width: 640px) {
    .fo-lang-popup {
        align-items: center;
        padding: 0;
    }
    .fo-lang-popup__box {
        border-radius: 20px;
    }
}

/* デフォルト非表示、JSで日本語以外に表示 */
.fo-lang-switcher {
    display: none; /* 既存のdisplay:flexより前に書く or !importantで上書き */
}