/* Q&Aページ専用スタイル */

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* FAQ内の箇条書きスタイルをリセット */
.faq.list .contents ul {
    list-style: none;
    padding-left: 0;
    box-shadow: none;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.faq.list .contents ul li {
    position: relative;
    padding-left: 1.5em;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    margin-bottom: 0;
    box-shadow: none;
}

.faq.list .contents ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    top: 0.25em;
    color: var(--primary);
    font-weight: bold;
}

.faq.list .contents ol {
    list-style: decimal;
    padding-left: 1.5em;
    box-shadow: none;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.faq.list .contents ol li {
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    margin-bottom: 0;
    box-shadow: none;
}

/* テーブルスタイル */
.faq.list .contents table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.9em;
}

.faq.list .contents table th,
.faq.list .contents table td {
    border: 1px solid #ddd;
    padding: 0.5em 0.75em;
    text-align: left;
}

.faq.list .contents table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* 検索フィルター */
#faq-search-container {
    margin: 40px auto;
    max-width: 700px;
    text-align: center;
    position: relative;
}

#faq-search {
    width: 100%;
    padding: 16px 50px 16px 24px;
    font-size: 1.6rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
}

#faq-search:focus {
    border-color: var(--primary);
}

#faq-search::placeholder {
    font-size: 1.6rem;
}

#clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #ccc;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    transition: background 0.3s;
}

#clear-search:hover {
    background: #999;
}

#clear-search.show {
    display: flex;
}

/* 検索モード時のスタイル */
body.search-mode article.guide {
    display: none;
}

body.search-mode article[id] header {
    display: none;
}

body.search-mode article[id] {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

body.search-mode .faq.list {
    margin-top: 20px;
}

body.search-mode .cta {
    margin-top: 80px;
}

.faq.list li.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.6rem;
    display: none;
}

.no-results.show {
    display: block;
}

/* スマホ対応 */
@media screen and (max-width: 960px) {
    #faq-search-container {
        max-width: 90%;
    }

    #faq-search {
        padding: 14px 45px 14px 20px;
        font-size: 1.6rem;
    }

    #faq-search::placeholder {
        font-size: 1.4rem;
    }

    #clear-search {
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 1.6rem;
    }

    .no-results {
        font-size: 1.4rem;
    }
}
