/* 
 * Problems Solutions Section スタイル
 * 企業の悩みとヒエヒエ食堂の解決策セクション
 */

/* 共通スタイル */
.problems-list,
.solution-list {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
    text-align: center;
}

.problems-solutions {
    padding: 80px 0;
}

/* セクションヘッダー */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    top: -0.8rem;
    left: 31%;
    transform: skew(2deg);
    z-index: -1;
    background: url(../../images/decoration/decoration-line.svg) no-repeat center center / 100% 100%;
    width: 18.75rem;
    height: 7.5rem;
}

.section-title .highlight {
    position: relative;
    z-index: 0;
    font-size: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* お悩みリスト */
.problems-list {
    display: grid;
    grid-template-columns: 7fr 2fr;
    gap: 32px;
}

/* 悩みグリッド */
.problems-grid {
    display: grid;
    gap: 32px;
}

.problem-item {
    background: white;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e9ecef;
    /* box-shadow: 8px 8px 1px 1px rgb(0 0 0 / 30%); */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    position: relative;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.problem-item.animate-in,
.solution-item.animate-in {
    animation-play-state: running;
}

.problem-title {
    font-size: 1.25rem;
}

/* 解決策への導入 */
.solution-intro {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: var(--main-color);
    color: var(--white-color);
    position: relative;
}

/* 下矢印アニメーション */
.solution-intro::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--main-color);
    animation: bounceArrow 2s ease-in-out infinite;
}

/* 矢印の上下に動くアニメーション */
@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.solution-intro-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

/* ヒエヒエ食堂の紹介 */

.solution-list .section-title::after {
    content: none;
    /* 既存の装飾を削除 */
}

.solution-list .section-title {
    font-size: 3rem;
    color: var(--title-color);
    margin: 20px auto 30px auto;
    text-align: center;
}

.solution-list .section-title .small {
    font-size: 1rem;
    color: var(--text-color);
    margin-left: 5px;
}

.solution-list p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 10px 0;
}

.solution-list .solution-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    margin: 0 auto;
}

.underline-before {
    background: linear-gradient(var(--main-color), #333) 0 100%/0 1.3px no-repeat;
    transition: background 3s;
    /*トランジションの設定。下線を引く動きをアニメーションにするのに必要 */
    text-decoration: none;
}

.underline-after {
    background-size: 100% 1.3px;
    /* 変化後のスタイル。横サイズを0から100%に変えることで指定の文字列に下線を引く */
    padding-bottom: 0.3rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section-title::after {
        left: 15%;
    }

    .solution-list .section-title {
        font-size: 1.6rem;
        text-align: left;
    }

    .problems-solutions {
        padding: 60px 3%;
    }

    .section-title {
        font-size: 2rem;
    }

    .problems-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .problems-list {
        grid-template-columns: 1fr;
    }

    .problem-item,
    .solution-item {
        padding: 32px 24px;
    }

    .solution-intro {
        padding: 32px 24px;
        margin: 40px 0;
    }

    .solution-intro-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .solution-title {
        font-size: 1.25rem;
    }

    .solution-intro-title {
        font-size: 1.3rem;
    }

    .problem-item,
    .solution-item {
        padding: 24px 20px;
    }
}