/* ==========================================================
   Lnote 下部追従バナー（TLIV-1938） 2026/11/20
   ========================================================== */
.lnt-fbnr {
    --fbnr-blue: #6f8aa6;
    --fbnr-gold: #b8964a;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
    /* header(#header) は 99 */
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    font-family: "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
}

.lnt-fbnr.is-show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.lnt-fbnr__inner {
    display: flex;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
}

.lnt-fbnr__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 上のキャッチ文 */
.lnt-fbnr__lead {
    display: block;
    color: #626e77;
    font-family: "Noto Sans JP", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 14px;
    white-space: nowrap;
}

.lnt-fbnr__ul {
    padding-bottom: 1px;
    border-bottom: 2px solid var(--fbnr-blue);
}

.lnt-fbnr__item--ai .lnt-fbnr__ul {
    border-bottom-color: var(--fbnr-gold);
}

/* ボタン（a タグ） */
.lnt-fbnr .lnt-fbnr__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 30px 0 12px;
    border: 2px solid var(--fbnr-blue);
    border-radius: 6px;
    background: var(--fbnr-blue);
    color: #fff;
    text-decoration: none !important;
    transition: opacity 0.2s;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.lnt-fbnr .lnt-fbnr__item--ai .lnt-fbnr__btn {
    border-color: var(--fbnr-gold);
    background: var(--fbnr-gold);
}

.lnt-fbnr__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lnt-fbnr__icon .is-fill {
    fill: currentColor;
    stroke: none;
}

.lnt-fbnr__txt {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}

/* ボタン内のキャッチ文（PCのみ表示） */
.lnt-fbnr__sub {
    display: none;
}

/* 右の「>」 */
.lnt-fbnr__arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

/* hover・タップ時：色は変えずに少し薄くする（サイト内の他ボタンと同じ挙動） */
.lnt-fbnr .lnt-fbnr__btn:hover,
.lnt-fbnr .lnt-fbnr__btn:focus,
.lnt-fbnr .lnt-fbnr__btn:active,
.lnt-fbnr .lnt-fbnr__btn:visited {
    color: #fff;
    text-decoration: none !important;
}

@media (hover: hover) {
    .lnt-fbnr .lnt-fbnr__btn:hover {
        opacity: 0.7;
    }
}

.lnt-fbnr .lnt-fbnr__btn:active {
    opacity: 0.7;
}

/* バナー表示中はフッター下部が隠れないよう余白を確保 */
body.has-lnt-fbnr {
    padding-bottom: var(--lnt-fbnr-h, 0px);
}

/* 小さい端末（iPhone SE など） */
@media (max-width: 360px) {
    .lnt-fbnr__icon {
        width: 21px;
        height: 21px;
        margin-right: 6px;
    }

    .lnt-fbnr .lnt-fbnr__btn {
        padding-right: 24px;
    }

    .lnt-fbnr__arrow {
        right: 10px;
    }
}

/* PC：キャッチ文をボタン内に表示 */
@media (min-width: 769px) {
    .lnt-fbnr__inner {
        justify-content: center;
        gap: 8px;
        max-width: none;
    }

    .lnt-fbnr__item {
        flex: 0 0 248px;
    }

    .lnt-fbnr__lead {
        display: none;
    }

    .lnt-fbnr .lnt-fbnr__btn {
        height: 54px;
        padding: 0 30px 0 72px;
    }

    .lnt-fbnr__icon {
        position: absolute;
        top: 50%;
        left: 18px;
        width: 42px;
        height: 42px;
        margin: 0;
        stroke-width: 1.5;
        transform: translateY(-50%);
    }

    .lnt-fbnr__body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lnt-fbnr__sub {
        display: block;
        margin-bottom: 4px;
        font-family: "Noto Sans JP", sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .lnt-fbnr__txt {
        font-family: "Noto Sans JP", sans-serif;
        font-size: 22px;
    }

    .lnt-fbnr__arrow {
        right: 16px;
        width: 8px;
        height: 8px;
    }
}