/* --------------------------------------------------
 全ページ共通の追従アイコン（include/float-notice.php）
 サイズは Figma「追従ボタン」（SP 390px）に合わせた。
 表示は JS が .is-show を付けて右からスライドイン（toast 風）、× で右へ抜けて消える。
--------------------------------------------------- */

.float-notice {
    /* SP メニュー（.header 内のため実質 94）・チャットの背景ブラー（9989）より下。ページ本文（〜7）より上 */
    z-index: 93;
    position: fixed;
    /* SP：ヘッダー 60px の下 */
    top: 71px;
    right: 6px;
    display: flex;
    align-items: center;
    max-width: calc(100vw - 12px);
    height: 25px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .13);
    transform: translateX(calc(100% + 16px));
    opacity: 0;
    visibility: hidden;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .4s ease, visibility 0s linear .6s;
}
.float-notice.is-show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .4s ease, visibility 0s;
}
.float-notice[hidden] {
    display: none;
}
@media screen and (min-width: 1280px) {
    /* PC：ヘッダー 90px の下 */
    .float-notice {
        top: 101px;
        right: 16px;
    }
}
@media screen and (min-width: 1401px) {
    /* 言語切替・SNS の行（top 106px〜）の下 */
    .float-notice {
        top: 146px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .float-notice,
    .float-notice.is-show {
        transition: none;
    }
}

.float-notice__link {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
    padding-left: 6px;
    color: #687475;
    text-decoration: none;
}
.float-notice__icon {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 19px;
    height: 16.5px;
    margin-right: 4px;
    background: #9bb2b2;
    border-radius: 3.5px;
}
.float-notice__icon svg {
    width: 10px;
    height: auto;
}
.float-notice__text {
    overflow: hidden;
    font-family: var(--font-jp);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.27;
    letter-spacing: .12em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.float-notice--cn .float-notice__text {
    font-family: var(--font-cn);
}
.float-notice__close {
    flex: 0 0 auto;
    position: relative;
    width: 24px;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
/* × は 6px 角・線 1px */
.float-notice__close::before,
.float-notice__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8.5px;
    height: 1px;
    background: #687475;
    transform: translate(-50%, -50%) rotate(45deg);
}
.float-notice__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
@media (hover: hover) {
    .float-notice__link:hover .float-notice__text {
        text-decoration: underline;
        text-underline-offset: .2em;
    }
    .float-notice__close:hover::before,
    .float-notice__close:hover::after {
        background: #333;
    }
}
