/**
 * 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;
    text-align: left;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* ========== イントロスライド ========== */
.intro-slide {
    text-align: left;
}

.intro-text {
    line-height: 1.8;
    color: #333;
}

.intro-text1 {
    margin-bottom: 15px;
}

.intro-text2 {
    margin-top: 15px;
}

.intro-slide-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.intro-slide-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.intro-slide-list li:last-child {
    border-bottom: none;
}

.intro-list-label,
.intro-list-num {
    display: inline-block;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.intro-list-num {
    min-width: 24px;
    text-align: center;
}

/* ========== 関連記事リンク ========== */
.faq-slider-related {
    margin-top: 15px;
    text-align: left;
}

.faq-slider-related .related {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 6px;
    color: #fff;
    white-space: nowrap;
    background: #047973;
    font-size: .9em;
    font-weight: 700;
    vertical-align: middle;
}

.faq-slider-related a {
    font-weight: 500;
    vertical-align: middle;
    word-break: break-all;
}

.faq-slider-related a:hover {
    text-decoration: underline;
}

/* ========== 通常スライダー専用スタイル ========== */
.wash-choice-navigator.slider-type-normal h2.normal-slide-title,
.wash-choice-navigator.slider-type-normal h3.normal-slide-title,
.wash-choice-navigator.slider-type-normal div.normal-slide-title {
    all: unset;
    display: block;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
}

/* 通常スライダーの番号 */
.wash-choice-navigator.slider-type-normal .slide-number {
    display: inline-block;
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
}

.wash-choice-navigator.slider-type-normal .normal-slide-content {
    line-height: 1.8;
    color: #444;
    text-align: left;
}

/* 通常スライダーでの画像表示（中央寄せ強調） */
.wash-choice-navigator.slider-type-normal .faq-slider-img {
    margin: 10px auto 20px;
}

/* ========== レスポンシブ ========== */
@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;
    }
    
    /* 通常スライダー レスポンシブ */
    .wash-choice-navigator.slider-type-normal h2.normal-slide-title,
    .wash-choice-navigator.slider-type-normal h3.normal-slide-title,
    .wash-choice-navigator.slider-type-normal div.normal-slide-title {
        font-size: 16px;
    }
}
