/* FAQ-A 公開画面スタイル（シンプル・軽量） */

.faq-a-wrap {
    --faq-a-accent: #2271b1;
    --faq-a-border: #e2e2e2;
    --faq-a-text: #1d2327;
    max-width: 800px;
    margin: 0 auto;
}

/* 検索フィールド */
.faq-a-search {
    position: relative;
    margin-bottom: 1.2em;
}

.faq-a-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7em 2.4em 0.7em 0.9em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-a-search-input:focus {
    outline: none;
    border-color: var(--faq-a-accent);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.faq-a-search-spinner {
    position: absolute;
    top: 50%;
    right: 0.8em;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #ddd;
    border-top-color: var(--faq-a-accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.faq-a-search-spinner.is-active {
    opacity: 1;
    animation: faq-a-spin 0.7s linear infinite;
}

/* 検索アイコン（虫眼鏡）右端 */
.faq-a-search-icon {
    position: absolute;
    top: 50%;
    right: 0.8em;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: #888;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.faq-a-search-icon svg {
    display: block;
}

/* 検索中はアイコンを隠してスピナーを見せる */
.faq-a-search-spinner.is-active ~ .faq-a-search-icon {
    opacity: 0;
}

@keyframes faq-a-spin {
    to {
        transform: rotate(360deg);
    }
}

/* カテゴリー見出し */
.faq-a-group {
    margin-bottom: 1.6em;
}

.faq-a-group-title {
    margin: 0 0 0.7em;
    padding-bottom: 0.3em;
    font-size: 1.15em;
    color: var(--faq-a-text);
    border-bottom: 2px solid var(--faq-a-accent);
}

/* ===== 共通レイアウト ===== */
.faq-a-item {
    margin-bottom: 0.6em;
}

/* タイトルの見出し要素（h2〜h6）はデフォルト装飾を打ち消し、レイアウトを保つ */
.faq-a-question-heading {
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.faq-a-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 1em 1.1em;
    border: none;
    background: transparent;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--faq-a-text);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.faq-a-question-text {
    flex: 1;
    padding-right: 0.8em;
}

/* +/- アイコン */
.faq-a-icon {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    position: relative;
    transition: transform 0.25s ease;
}

.faq-a-icon::before,
.faq-a-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    transition: opacity 0.2s ease;
}

.faq-a-icon::before { /* 縦棒 */
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

.faq-a-icon::after { /* 横棒 */
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.faq-a-item.is-open .faq-a-icon {
    transform: rotate(180deg);
}

.faq-a-item.is-open .faq-a-icon::before {
    opacity: 0;
}

.faq-a-answer-inner {
    padding: 1em 1.1em;
}

.faq-a-answer-inner > :first-child { margin-top: 0; }
.faq-a-answer-inner > :last-child { margin-bottom: 0; }

/* 一覧モード（アコーディオンなし） */
.faq-a-wrap[data-mode="list"] .faq-a-question {
    cursor: default;
}

.faq-a-wrap[data-mode="list"] .faq-a-icon {
    display: none;
}

.faq-a-empty {
    padding: 1em;
    color: #777;
    text-align: center;
}

/* ===== デザイン1: カード ===== */
.faq-a-design-card .faq-a-item {
    border: 1px solid var(--faq-a-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-a-design-card .faq-a-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-a-design-card .faq-a-question:hover {
    background: #f6f7f9;
}

.faq-a-design-card .faq-a-item.is-open {
    border-color: var(--faq-a-accent);
}

.faq-a-design-card .faq-a-answer-inner {
    border-top: 1px solid #f0f0f1;
}

/* ===== デザイン2: ライン（ミニマル） ===== */
.faq-a-design-line .faq-a-item {
    border-bottom: 1px solid var(--faq-a-border);
}

.faq-a-design-line .faq-a-item:first-child {
    border-top: 1px solid var(--faq-a-border);
}

.faq-a-design-line .faq-a-question {
    padding-left: 0;
    padding-right: 0;
}

.faq-a-design-line .faq-a-question:hover {
    color: var(--faq-a-accent);
}

.faq-a-design-line .faq-a-answer-inner {
    padding-left: 0;
    padding-right: 0;
    color: #50575e;
}

/* ===== デザイン3: フィル（アクセント見出し） ===== */
.faq-a-design-filled .faq-a-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.7em;
    border: 1px solid var(--faq-a-border);
}

.faq-a-design-filled .faq-a-question {
    background: #f6f7f9;
}

.faq-a-design-filled .faq-a-item.is-open .faq-a-question {
    background: var(--faq-a-accent);
    color: #fff;
}

.faq-a-design-filled .faq-a-answer-inner {
    background: #fff;
}
