/**
 * FAQ Slider - Frontend Styles
 */

/* ========== テーマスタイルリセット ========== */
.wash-choice-navigator h2,
.wash-choice-navigator h3,
.wash-choice-navigator .faq-slider-title,
.wash-choice-navigator .faq-question {
    all: unset;
    display: block;
    box-sizing: border-box;
}

.wash-choice-navigator h2.faq-slider-title,
.wash-choice-navigator h3.faq-slider-title,
.wash-choice-navigator div.faq-slider-title {
    all: unset;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    text-align: center;
}

.wash-choice-navigator h2.faq-question,
.wash-choice-navigator h3.faq-question,
.wash-choice-navigator div.faq-question {
    all: unset;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 15px 0;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
}

/* ========== スワイパー基本 ========== */
.wash-choice-navigator {
    margin: 0 auto;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    max-width: 600px; 
}

.wash-guide-header {
    background: #667eea;
    color: white;
    padding: 20px;
    text-align: center;
}

.wash-guide-header .faq-slider-title {
    margin: 0;
    font-size: 1.3em;
    color: white;
    font-weight: bold;
}

.swipe-deck-container {
    position: relative;
    overflow: hidden;
}

.swipe-deck-container.height500 {
    height: 380px;
}

.wash-info-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}

.wash-info-card.card-prev {
    transform: translateX(-100%);
}

.wash-info-card.card-current {
    transform: translateX(0);
}

.wash-info-card.card-next {
    transform: translateX(100%);
}

/* カード内スクロールエリア */
.faq-card-inner {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px;
}

/* スクロールバー（細め） */
.faq-card-inner::-webkit-scrollbar {
    width: 4px;
}

.faq-card-inner::-webkit-scrollbar-track {
    background: transparent;
}

.faq-card-inner::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* ========== ドットナビゲーション ========== */
.choice-progress-dots {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s;
    cursor: pointer;
}

.progress-dot.dot-active {
    background: #667eea;
}

/* ========== ナビゲーションボタン ========== */
.navigation-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 20px;
}

.nav-control-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background 0.3s;
    margin: 0px !important;
}

.nav-control-btn:hover {
    background: #5a67d8;
}

.nav-control-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== FAQ質問エリア ========== */
.wash-choice-navigator .faq-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.wash-choice-navigator .faq-question-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    padding-top: 2px;
}

/* ========== FAQ回答エリア ========== */
.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.faq-answer-text {
    line-height: 1.8;
    padding-top: 2px;
    font-weight: bold;
}

/* ========== Q/Aラベル ========== */
.faq-label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.faq-label-q {
    background-color: #d55656;
}

.faq-label-a {
    background-color: #376ae1;
}

/* ========== 画像 ========== */
.faq-slider-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 4px;
}

/* ========== 補足 ========== */
.faq-slider-note {
    line-height: 1.8;
    color: #555;
    text-align: left;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
}

/* ========== レスポンシブ ========== */
@media screen and (max-width: 600px) {
    .wash-choice-navigator {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .swipe-deck-container.height500 {
        height: 320px;
    }
    
    .wash-info-card {
        padding: 15px 10px;
    }
    
    .faq-question-text {
        font-size: 15px;
    }
    
    .navigation-controls {
        gap: 10px;
        padding: 0 15px 15px;
    }
    
    .nav-control-btn {
        padding: 8px 15px;
        font-size: 0.75em;
    }
}
