/*========================================================
ファイル名    ：problem.css
管理番号      ：No.019
内容          ：Problemセクション専用CSS
バージョン    ：Ver5
作成日        ：2026-07-17
更新日        ：2026-07-27

【変更履歴】
Ver0 初期登録
Ver1 Ver7.0用にstyle.cssからProblem部分を分離
Ver2 「お悩み → 原因 → 解決」のストーリー型レイアウトへ刷新
Ver3 Heroセクションと同じ1200px幅へ統一
Ver4 改行位置、文字サイズ、アイコン比率、カード内余白を全面調整
Ver5 タイトル下線を完全削除
========================================================*/

.problem {
    padding: 72px 0;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 42%, #f8fcfa 100%);
}

.problem .container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.problem-stage {
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(26, 73, 120, 0.09);
}

.problem-stage--worry {
    padding: 30px 32px 34px;
}

.problem-stage--cause {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 205px;
    text-align: center;
}

.problem-stage--solution {
    padding: 30px 32px 34px;
    background: linear-gradient(180deg, #fbfffd 0%, #f4fbf7 100%);
    border-color: #d5eadf;
}

.problem-stage-title {
    margin: 0 0 26px;
    text-align: center;
    font-size: clamp(26px, 2.05vw, 36px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.problem-stage-title--blue {
    color: #073b91;
}

.problem-stage-title--green {
    color: #148a4b;
}


.problem-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.problem-card {
    min-width: 0;
    min-height: 190px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    background: #ffffff;
    border: 1px solid #d9e6f3;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(31, 74, 120, 0.05);
}

.problem-card-icon {
    width: 104px;
    aspect-ratio: 1;
    color: #16884a;
}

.problem-card-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.problem-card-body {
    min-width: 0;
}

.problem-card-body h3 {
    margin: 0 0 12px;
    color: #073b91;
    font-size: clamp(19px, 1.28vw, 23px);
    line-height: 1.42;
    font-weight: 800;
    overflow-wrap: normal;
    word-break: keep-all;
}

.problem-card-body h3 span,
.problem-card-body p span,
.problem-cause-title span,
.problem-cause-content p span,
.problem-solution-item h3 span,
.problem-solution-item p span {
    display: block;
}

.problem-card-body p {
    margin: 0;
    color: #27384b;
    font-size: clamp(14px, 0.96vw, 17px);
    line-height: 1.75;
    word-break: keep-all;
}

.problem-flow-arrow {
    position: relative;
    z-index: 2;
    width: 0;
    height: 0;
    margin: -1px auto;
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
}

.problem-flow-arrow--blue {
    border-top: 24px solid #3e83d7;
}

.problem-flow-arrow--green {
    border-top: 24px solid #2a9a67;
}

.problem-cause-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
}

.problem-stage--cause .problem-stage-title {
    margin-bottom: 18px;
}


.problem-cause-title span:first-child {
    display: inline;
    margin-right: 0.22em;
}

.problem-cause-title span:last-child {
    display: inline;
}

.problem-stage--cause p {
    margin: 0;
    color: #202f3f;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.8;
}

.problem-cause-icon {
    position: absolute;
    top: 50%;
    width: 160px;
    transform: translateY(-50%);
    opacity: 0.96;
}

.problem-cause-icon--left {
    left: 40px;
}

.problem-cause-icon--right {
    right: 40px;
}

.problem-cause-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-solution-item {
    min-width: 0;
    min-height: 170px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
}

.problem-solution-item:not(:last-child) {
    border-right: 1px solid #d8e8e0;
}

.problem-solution-icon {
    width: 92px;
    color: #148a61;
}

.problem-solution-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.problem-solution-copy {
    min-width: 0;
}

.problem-solution-item h3 {
    margin: 0 0 10px;
    color: #087843;
    font-size: clamp(18px, 1.18vw, 22px);
    line-height: 1.4;
    font-weight: 800;
    word-break: keep-all;
}

.problem-solution-item p {
    margin: 0;
    color: #27384b;
    font-size: clamp(14px, 0.94vw, 17px);
    line-height: 1.75;
    word-break: keep-all;
}

@media (max-width: 1199px) {
    .problem-stage--cause {
        padding-right: 165px;
        padding-left: 165px;
    }

    .problem-cause-icon {
        width: 138px;
    }

    .problem-cause-icon--left {
        left: 22px;
    }

    .problem-cause-icon--right {
        right: 22px;
    }

    .problem-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 16px;
    }

    .problem-card-icon {
        width: 84px;
    }

    .problem-solution-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 18px;
    }

    .problem-solution-icon {
        width: 74px;
    }
}

@media (max-width: 991px) {
    .problem {
        padding: 56px 0;
    }

    .problem-stage--worry,
    .problem-stage--solution {
        padding: 26px;
    }

    .problem-card-grid,
    .problem-solution-grid {
        grid-template-columns: 1fr;
    }

    .problem-card {
        min-height: 0;
        grid-template-columns: 100px minmax(0, 1fr);
        padding: 20px;
    }

    .problem-card-icon {
        width: 96px;
    }

    .problem-card-body h3,
    .problem-card-body p {
        word-break: normal;
    }

    .problem-stage--cause {
        min-height: 0;
        padding: 34px 28px;
    }

    .problem-cause-icon {
        display: none;
    }

    .problem-cause-title span:first-child,
    .problem-cause-title span:last-child {
        display: block;
        margin-right: 0;
    }

    .problem-solution-item {
        grid-template-columns: 88px minmax(0, 1fr);
        min-height: 0;
        padding: 22px 10px;
    }

    .problem-solution-item:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid #d8e8e0;
    }

    .problem-solution-icon {
        width: 82px;
    }
}

@media (max-width: 576px) {
    .problem {
        padding: 42px 0;
    }

    .problem .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .problem-stage {
        border-radius: 14px;
    }

    .problem-stage--worry,
    .problem-stage--solution {
        padding: 24px 15px;
    }

    .problem-stage-title {
        margin-bottom: 20px;
        font-size: 23px;
    }

    .problem-card {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 13px;
    }

    .problem-card-icon {
        width: 70px;
    }

    .problem-card-body h3 {
        margin-bottom: 7px;
        font-size: 17px;
        line-height: 1.4;
    }

    .problem-card-body p {
        font-size: 14px;
        line-height: 1.62;
    }

    .problem-pc-line {
        display: inline !important;
    }

    .problem-flow-arrow {
        border-left-width: 24px;
        border-right-width: 24px;
    }

    .problem-flow-arrow--blue,
    .problem-flow-arrow--green {
        border-top-width: 18px;
    }

    .problem-stage--cause {
        padding: 28px 16px;
    }

    .problem-stage--cause .problem-stage-title {
        font-size: 20px;
        line-height: 1.5;
    }

    .problem-stage--cause p {
        font-size: 14px;
        line-height: 1.72;
    }

    .problem-cause-content p span {
        display: inline;
    }

    .problem-cause-content p span:not(:last-child)::after {
        content: " ";
    }

    .problem-solution-item {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 4px;
    }

    .problem-solution-icon {
        width: 62px;
    }

    .problem-solution-item h3 {
        margin-bottom: 6px;
        font-size: 17px;
        line-height: 1.4;
    }

    .problem-solution-item p {
        font-size: 14px;
        line-height: 1.62;
    }
}
