@charset "utf-8";

/* PC用スライド式コンタクト */
#line-contact-pc {
    display: none; /* スマホでは非表示 */
    position: fixed;
    top: 200px;
    right: -200px; /* パネル部分を隠す */
    z-index: 10000; /* ページトップボタンより手前に */
    display: flex;
    align-items: flex-start;
    transition: right 0.4s ease, top 0.3s ease;
}
#line-contact-pc.active {
    right: 0; /* アクティブ時に全体を表示 */
}

#line-contact-pc .line-btn {
    writing-mode: vertical-rl;
    padding: 20px 13px;
    background-color: #00B900;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    flex-shrink: 0; /* ボタンが縮まないように */
}

#line-contact-pc .panel-container {
    width: 200px;
    background-color: #fff;
    border-radius: 0 0 0 5px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}
#line-contact-pc.active .panel-container {
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}
#line-contact-pc .panel-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
#line-contact-pc .qr-codes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 10px; /* タイトルを消したのでマージン調整 */
}
#line-contact-pc .qr-code-item img {
    width: 135px; /* 少し小さく調整 */
    height: 135px;
}
#line-contact-pc .qr-code-item p {
    margin-top: 5px;
    font-weight: bold;
    font-size: 1.6rem;
}


/* スマホ用追従バナー */
#line-banner-sp {
    display: none; /* PCでは非表示 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
#line-banner-sp .line-btn {
    display: inline-block;
    padding: 15px 25px;
    background-color: #00B900;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px; /* pill型 */
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* スマホ用モーダル */
.line-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.line-modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 85%;
    max-width: 340px;
    position: relative;
}
.line-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}
#line-modal-sp h4 {
    margin-bottom: 25px;
    font-size: 110%;
    font-weight: bold;
}
#line-modal-sp .line-links a {
    display: block;
    margin-top: 15px;
    padding: 15px;
    background-color: #00B900;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}
#line-modal-sp .line-links a:first-child {
    margin-top: 0;
}


/* メディアクエリ */
@media (min-width: 1000px) {
    #line-contact-pc {
        display: flex;
    }
    #line-banner-sp {
        display: none !important;
    }
}

@media (max-width: 999px) {
    #line-banner-sp {
        display: block;
    }
    #line-contact-pc {
        display: none !important;
    }
    /* 既存のページトップボタンを非表示 */
    #page-top {
        display: none !important;
    }
}
