/* ==============================
   FAQ チャットボット
============================== */

/* ============================== */
/* よろずや */
/* ============================== */

/* 開くボタン（右下固定） */
.yrz #faq-open-btn {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    z-index: 999;
    background: #3D3C4C;
    color: #D4EEF9;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    /* box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4); */
    transition: transform 0.15s;
}
.yrz #faq-open-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px){
    .yrz #faq-open-btn{
    bottom: 1rem;
    background: #f3ba54;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.8rem;
    right: 0.5rem;
    }
}

/* オーバーレイ */
.yrz #faq-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.yrz #faq-overlay.is-open {
    display: flex;
}

/* モーダル */
.yrz #faq-modal {
    background: #fff;
    width: 100%;
    max-width: 768px;
    height: 100%;
    max-height: 90vh;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.2);
    font-family: "Zen Kaku Gothic Antique", sans-serif;
}
@media (max-width: 768px){
    .yrz #faq-modal{
        margin:1rem;
    }
}

/* ヘッダー */
.yrz #faq-modal-hdr {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #3D3C4C;
}
.yrz #faq-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #D4EEF9;
}
.yrz #faq-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 2px;
}
.yrz #faq-close-btn:hover {
    color: #333;
}

/* 検索エリア */
.yrz #faq-search-wrap {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}
@media (max-width: 768px){
    .yrz #faq-search-wrap{
        padding: 0.5rem;
        gap: 4px;
        flex-flow: column;
        margin-top: 0.5rem;
        padding-bottom: 1rem;
    }
}

.yrz #faq-search-input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
}
.yrz #faq-search-input:focus {
    border-color: #3D3C4C;
}
.yrz #faq-search-btn {
    background: #3D3C4C;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
@media (max-width: 768px){
    .yrz #faq-search-btn{
        width: 40%;
        margin-left: auto;
        margin-top: 4px;
    }
}
.yrz #faq-search-btn:hover {
    background: #3D3C4C;
}

/* コンテンツエリア */
.yrz #faq-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* セクションラベル */
.yrz .faq-section-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #696969;
    padding: 0;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    margin-top: 0;
    border-left: 8px solid #696969;
    padding-left: 1rem;
    margin:1rem 0;
}
.yrz .faq-section-label:first-child {
    padding-top: 2px;
}

/* FAQ項目ボタン */
.yrz .faq-item-btn {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #3D3C4C;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.1s, background 0.1s;
    width: 100%;
    font-weight: 600;
}
.yrz .faq-item-btn:hover {
    border-color:#3D3C4C;
    background: #D4EEF9;
}
.yrz .faq-item-icon {
    color: #bbb;
    font-size: 14px;
    flex-shrink: 0;
}

/* 検索結果ラベル */
.yrz .faq-hit-label {
    font-size: 11px;
    color: #888;
    padding: 4px 2px;
    margin: 0;
}

/* 該当なし */
.yrz .faq-no-hit {
    font-size: 13px;
    color: #888;
    padding: 8px 2px;
    margin: 0;
}

/* エラー */
.yrz .faq-error {
    font-size: 13px;
    color: #b91c1c;
    padding: 8px 2px;
    margin: 0;
}

/* 回答エリア */
.yrz .faq-answer-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.yrz .faq-back-btn {
    background: none;
    border: none;
    color: #D4EEF9;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-family: inherit;
}
.yrz .faq-back-btn:hover {
    opacity: 0.7;
}
.yrz .faq-answer-q {
    font-size: 12px;
    font-weight: 600;
    color: #D4EEF9
    margin: 0;
}
.yrz .faq-answer-a {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: #333;
    line-height: 1.9;
    white-space: pre-wrap;
}
.yrz .faq-answer-a img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 12px;
}
.yrz .faq-divider {
    border: none;
    margin: 4px 0 0 0;
}

/* 解決しましたか？ */
.yrz .faq-solved-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.yrz .faq-solved-label {
    font-size: 13px;
    color: #666;
}
.yrz .faq-yes-btn {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}
.yrz .faq-yes-btn:hover {
    background: #d1fae5;
}
.yrz .faq-no-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.yrz .faq-no-btn:hover {
    background: #eee;
}

/* 解決済みメッセージ */
.yrz .faq-resolved-msg {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: #065f46;
    line-height: 1.7;
    margin: 0.5rem 0 0 0;
}

/* アクションボタン群 */
.yrz .faq-action-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.yrz .faq-action-btn {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    width: 100%;
}
.yrz .faq-action-btn:hover {
    background: #f0f0f0;
}
.yrz .faq-contact-btn {
    display: block;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13px;
    color: #b91c1c;
    text-decoration: none;
    text-align: left;
}
@media (max-width: 768px){
    .yrz .faq-contact-btn{
        font-size: 12.5px;
    }
}
.yrz .faq-contact-btn:hover {
    background: #fee2e2;
}

/* アコーディオン */
.yrz .faq-accordion-body {
    display: none;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #101010;
    line-height: 1.9;
    background: #fafafa;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 10px 10px;
    white-space: pre-wrap;
    overflow: hidden;
}
.yrz .faq-accordion-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 12px;
}
.yrz .faq-accordion-wrap.is-open .faq-accordion-body {
    display: block;
}

.yrz .faq-accordion-wrap.is-open .faq-item-btn {
    border-radius: 10px 10px 0 0;
    border-color: #D4EEF9;
    background: #D4EEF9;
}
.yrz .faq-accordion-wrap.is-open .faq-item-icon {
    transform: rotate(90deg);
    display: inline-block;
}

/* モーダル説明文 */
.yrz #faq-modal-desc {
    font-size: 12px;
    color: #888;
    padding: 8px 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.yrz .faq-not-solved-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    display: block;
    padding: 0;
}
@media (max-width: 768px){
    .yrz .faq-not-solved-btn{
        font-size: 0.7rem;
    }
}
.yrz .faq-not-solved-btn:hover {
    color: #333;
}

/* ============================== */
/* しまじろう */
/* ============================== */

/* 開くボタン（右下固定） */
.smj #faq-open-btn {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    z-index: 999;
    background: #3D3C4C;
    color: #D4EEF9;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    /* box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4); */
    transition: transform 0.15s;
}
.smj #faq-open-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px){
    .smj #faq-open-btn{
        bottom: 1rem;
        background: #FFF8AE;
        color: #6482C0;
        padding: 8px 16px;
        font-size: 0.8rem;
        right: 0.5rem;  
    }
}

/* オーバーレイ */
.smj #faq-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.smj #faq-overlay.is-open {
    display: flex;
}

/* モーダル */
.smj #faq-modal {
    background: #fff;
    width: 100%;
    max-width: 768px;
    height: 100%;
    max-height: 90vh;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.2);
    font-family: "Zen Kaku Gothic Antique", sans-serif;
}
@media (max-width: 768px){
    .smj #faq-modal{
        margin:1rem;
    }
}

/* ヘッダー */
.smj #faq-modal-hdr {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #6482C0;
}
.smj #faq-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.smj #faq-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 2px;
}
.smj #faq-close-btn:hover {
    color: #333;
}

/* 検索エリア */
.smj #faq-search-wrap {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}
@media (max-width: 768px){
    .smj #faq-search-wrap{
        padding: 0.5rem;
        gap: 4px;
        flex-flow: column;
        margin-top: 0.5rem;
        padding-bottom: 1rem;
    }
}

.smj #faq-search-input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
}
.smj #faq-search-input:focus {
    border-color: #3D3C4C;
}
.smj #faq-search-btn {
    background: #3D3C4C;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
@media (max-width: 768px){
    .smj #faq-search-btn{
        width: 40%;
        margin-left: auto;
        margin-top: 4px;
    }
}
.smj #faq-search-btn:hover {
    background: #3D3C4C;
}

/* コンテンツエリア */
.smj #faq-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* セクションラベル */
.smj .faq-section-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #696969;
    padding: 0;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    margin-top: 0;
    border-left: 8px solid #696969;
    padding-left: 1rem;
    margin:1rem 0;
}
.smj .faq-section-label:first-child {
    padding-top: 2px;
}

/* FAQ項目ボタン */
.smj .faq-item-btn {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #3D3C4C;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.1s, background 0.1s;
    width: 100%;
    font-weight: 600;
}
.smj .faq-item-btn:hover {
    border-color:#3D3C4C;
    background: #D4EEF9;
}
.smj .faq-item-icon {
    color: #bbb;
    font-size: 14px;
    flex-shrink: 0;
}

/* 検索結果ラベル */
.smj .faq-hit-label {
    font-size: 11px;
    color: #888;
    padding: 4px 2px;
    margin: 0;
}

/* 該当なし */
.smj .faq-no-hit {
    font-size: 13px;
    color: #888;
    padding: 8px 2px;
    margin: 0;
}

/* エラー */
.smj .faq-error {
    font-size: 13px;
    color: #b91c1c;
    padding: 8px 2px;
    margin: 0;
}

/* 回答エリア */
.smj .faq-answer-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.smj .faq-back-btn {
    background: none;
    border: none;
    color: #101010;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-family: inherit;
}
.smj .faq-back-btn:hover {
    opacity: 0.7;
}
.smj .faq-answer-q {
    font-size: 12px;
    font-weight: 600;
    color: #D4EEF9
    margin: 0;
}
.smj .faq-answer-a {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: #333;
    line-height: 1.9;
    white-space: pre-wrap;
}
.smj .faq-answer-a img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 12px;
}
.smj .faq-divider {
    border: none;
    margin: 4px 0 0 0;
}

/* 解決しましたか？ */
.smj .faq-solved-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.smj .faq-solved-label {
    font-size: 13px;
    color: #666;
}
.smj .faq-yes-btn {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}
.smj .faq-yes-btn:hover {
    background: #d1fae5;
}
.smj .faq-no-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.smj .faq-no-btn:hover {
    background: #eee;
}

/* 解決済みメッセージ */
.smj .faq-resolved-msg {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: #065f46;
    line-height: 1.7;
    margin: 0.5rem 0 0 0;
}

/* アクションボタン群 */
.smj .faq-action-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.smj .faq-action-btn {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    width: 100%;
}
.smj .faq-action-btn:hover {
    background: #f0f0f0;
}
.smj .faq-contact-btn {
    display: block;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13px;
    color: #b91c1c;
    text-decoration: none;
    text-align: left;
}
@media (max-width: 768px){
    .smj .faq-contact-btn{
        font-size: 12.5px;
    }
}
.smj .faq-contact-btn:hover {
    background: #fee2e2;
}

/* アコーディオン */
.smj .faq-accordion-body {
    display: none;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #101010;
    line-height: 1.9;
    background: #fafafa;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 10px 10px;
    white-space: pre-wrap;
    overflow: hidden;
}
.smj .faq-accordion-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 12px;
}
.smj .faq-accordion-wrap.is-open .faq-accordion-body {
    display: block;
}

.smj .faq-accordion-wrap.is-open .faq-item-btn {
    border-radius: 10px 10px 0 0;
    border-color: #D4EEF9;
    background: #D4EEF9;
}
.smj .faq-accordion-wrap.is-open .faq-item-icon {
    transform: rotate(90deg);
    display: inline-block;
}

/* モーダル説明文 */
.smj #faq-modal-desc {
    font-size: 12px;
    color: #888;
    padding: 8px 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.smj .faq-not-solved-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    display: block;
    padding: 0;
}
@media (max-width: 768px){
    .smj .faq-not-solved-btn{
        font-size: 0.7rem;
    }
}
.smj .faq-not-solved-btn:hover {
    color: #333;
}