/*
 * fk-Info 基本スタイル（最小限）。
 * サイト側で装飾する場合は設定タブでオフにできる。
 */

.fkinfo-top .info-list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5em 1em;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fkinfo-top .info-date {
    white-space: nowrap;
    font-size: 0.9em;
    opacity: 0.75;
}

.fkinfo-top .info-link {
    text-decoration: underline;
}

.fkinfo-top .info-content {
    width: 100%;
    line-height: 1.8;
}

.fkinfo-footer-notice {
    text-align: center;
    padding: 0.6em 1em;
}

.fkinfo-footer-notice a {
    text-decoration: underline;
}

/* 固定フッターリンク: スマホのみ・1画面スクロール後に下からスライド表示
   （表示切替クラス fkinfo-is-visible は front.js が付与） */
.fkinfo-fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--fkinfo-fl-bg, #ffffff);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(110%);
    transition: transform 0.3s ease;
    padding-bottom: env(safe-area-inset-bottom);
}

.fkinfo-fixed-footer.fkinfo-is-visible {
    transform: translateY(0);
}

/* PC(768px以上)では出さない */
@media (min-width: 768px) {
    .fkinfo-fixed-footer {
        display: none;
    }
}

/* 上段: フッターお知らせのメッセージバブル（三宅方式 fixed-msg） */
.fkinfo-fixed-footer .fixed-msg {
    padding: 10px 12px 4px;
}

.fkinfo-fixed-footer .fixed-msg-link {
    display: block;
    position: relative;
    background: #ffffff;
    color: #333333;
    border-radius: 999px;
    padding: 8px 34px 8px 18px;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* 電光掲示板風の横流れテキスト（右から左へループ） */
.fkinfo-fixed-footer .fkinfo-marquee {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: fkinfo-marquee 14s linear infinite;
    will-change: transform;
}

@keyframes fkinfo-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* 動きを減らす設定のユーザーには流さず静止表示 */
@media (prefers-reduced-motion: reduce) {
    .fkinfo-fixed-footer .fkinfo-marquee {
        animation: none;
        padding-left: 0;
    }

    .fkinfo-fixed-footer .fixed-msg-link {
        text-align: center;
        text-overflow: ellipsis;
    }
}

.fkinfo-fixed-footer a.fixed-msg-link::after {
    content: "▶";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--fkinfo-fl-color, #333333);
}

.fkinfo-fixed-footer span.fixed-msg-text {
    padding-right: 18px;
}

.fkinfo-footer-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fkinfo-footer-links .fixed-footer-li {
    flex: 1 1 0;
    margin: 0;
}

.fkinfo-footer-links .fixed-footer-li + .fixed-footer-li {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.fkinfo-footer-links .fixed-footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    color: var(--fkinfo-fl-color, #333333);
}

.fkinfo-footer-links .fkinfo-icon {
    width: 22px;
    height: 22px;
}

.fkinfo-footer-links .fkinfo-menu-toggle {
    cursor: pointer;
}

/* 全画面メニュー（日進方式: 黒半透明・白文字・下線区切り・どこかタップで閉じる） */
.fkinfo-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.84);
    z-index: 100000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fkinfo-menu-overlay.fkinfo-menu-open {
    display: block;
}

.fkinfo-menu-nav {
    margin: 30px auto;
    width: 80%;
    padding-top: 10px;
}

.fkinfo-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fkinfo-menu-link {
    color: #ffffff;
    font-size: 20px;
    display: block;
    padding: 18px 0;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
}
