/*
Theme Name: lightning-child
Theme URI: http://example.com/lightning-child/
Description: lightningの子テーマ
Author: 高松
Author URI: https://tojii0079.com
Template: lightning
Version: 1.0.0
*/

/*
Theme Name: Twenty Twenty-Four Child
Theme URI: http://example.com/twentytwentyfour-child/
Description: Twenty Twenty-Fourの子テーマ
Author: あなたの名前
Author URI: http://example.com
Template: twentytwentyfour
Version: 1.0.0
*/

/* ★ここから下のコードを追加 */

#fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    /* left: 0;  この行は削除またはコメントアウト */

    width: auto; /* 幅をコンテンツに合わせる */
    max-width: 1000px; /* ここにサイトのコンテンツの最大幅を設定してください */
                      /* Lightningテーマの投稿記事部分の最大幅を確認すると良いです */
    left: 50%;        /* 左端から50%の位置に移動 */
    transform: translateX(-50%); /* 要素自身の幅の半分だけ左にずらして中央揃え */

    background-color: #ffbd59;
    color: #fff;
    text-align: center;
    padding: 15px 20px; /* 左右のパディングも少し増やすと見た目が良いです */
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0; /* 上の角を丸くする (下は0で直角) */
}

#fixed-bottom-bar p {
    margin: 0;
}

/* スマートフォンでの表示調整 */
@media (max-width: 768px) {
    #fixed-bottom-bar {
        /* スマホでは幅を100%に戻す方が良いことが多いです */
        width: 100%;
        max-width: none; /* max-widthを解除 */
        left: 0;         /* 左端に戻す */
        transform: none; /* 中央揃えを解除 */

        font-size: 14px;
        padding: 10px 15px; /* 左右のパディングも調整 */
        border-radius: 0; /* スマホでは角丸をなくす */
    }
    body {
        padding-bottom: 40px !important; /* スマホでのバーの高さに合わせて調整 */
    }
}