/* 問題提起セクション用スタイル */
.problem {
    padding: 60px 0;
    background-color: #fff;
}

.problem h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: var(--font-size-xxl);
    color: var(--primary-color);
}

.problem-section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: var(--font-size-xl);
    color: var(--error-color);
    font-weight: bold;
}

/* 問題リスト */
.problem-list {
    max-width: 800px;
    margin: 0 auto;
}

/* 問題項目 */
.problem-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.problem-item:last-child {
    border-bottom: none;
}

.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* ステップ表示 */
.problem-step {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--error-color);
    color: white;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    margin-right: 10px;
}

.problem-toggle {
    cursor: pointer;
}

.icon-minus {
    display: none;
}

.problem-item.active .icon-plus {
    display: none;
}

.problem-item.active .icon-minus {
    display: block;
}

.problem-title {
    font-size: var(--font-size-l);
    margin-bottom: 15px;
}

.problem-highlight {
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 2px solid var(--error-color);
    padding-bottom: 2px;
}

.problem-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.problem-item.active .problem-content {
    max-height: 200px;
    margin-top: 10px;
}

.problem-detail {
    margin-bottom: 15px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* 解決策 */
.problem-solution {
    margin-top: 10px;
}

.solution-path {
    display: flex;
    align-items: center;
}

.path-arrow {
    font-size: 20px;
    margin-right: 10px;
    color: var(--secondary-color);
}

.path-text {
    font-size: var(--font-size-xs);
    color: var(--accent-color);
    font-weight: bold;
}

.problem-question {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid var(--border-color);
}

.problem-question p {
    font-size: var(--font-size-l);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.arrow-down {
    color: var(--secondary-color);
    margin: 0 auto;
    width: 36px;
    animation: floating 1.5s ease-in-out infinite;
}

/* 矢印のアニメーション */
@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* モバイル用スタイル */
@media (max-width: 768px) {
    .problem {
        padding: 40px 0;
    }

    .problem-list {
        padding: 0 15px;
    }

    .problem-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .problem-header {
        flex-wrap: wrap;
    }

    .problem-title {
        font-size: var(--font-size-m);
    }
}

@media (max-width: 480px) {
    .problem h2 {
        font-size: var(--font-size-xl);
    }

    .problem-section-subtitle {
        font-size: var(--font-size-l);
    }
}