/* ============================================
   06 - Problems Section
   白 × 水色 × 蒼ベース / 課題感デザイン
   ============================================ */

.problems {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;

    /* 白ベース + 左上から蒼・右下から水色が滲む */
    background:
        radial-gradient(ellipse 60% 50% at 0%   10%,  rgba(0, 102, 255, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 100% 90%,  rgba(0, 212, 255, 0.09) 0%, transparent 70%),
        #FFFFFF;
}

/* 斜線テクスチャ（課題感の重さ表現） */
.problems::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 28px,
        rgba(0, 102, 255, 0.022) 28px,
        rgba(0, 102, 255, 0.022) 29px
    );
    pointer-events: none;
}

/* --- カードグリッド --- */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* --- セクション eyebrow --- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--accent-cyan);
    flex-shrink: 0;
}

/* --- 課題カード --- */
.problem-card {
    position: relative;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 102, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 20px 40px rgba(0, 102, 255, 0.13);
}

/* 上部カラーバー（蒼→水色） */
.problem-card-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
}

.problem-card-inner {
    padding: 36px 40px 40px;
}

/* 番号 + ヘッダー */
.problem-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.problem-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.18;
    user-select: none;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.problem-label-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.07);
    border: 1px solid rgba(0, 102, 255, 0.18);
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 7px;
}

.problem-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

/* --- リスト --- */
.problem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.problem-item {
    display: flex;
    align-items: flex-start;
}

.problem-item + .problem-item {
    border-top: 1px solid rgba(0, 102, 255, 0.07);
}

.problem-item-icon {
    padding: 17px 14px 16px 0;
    flex-shrink: 0;
}

.icon-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(0, 102, 255, 0.10) 0%,
        rgba(0, 212, 255, 0.10) 100%);
    border: 1.5px solid rgba(0, 102, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.problem-item-text {
    padding: 15px 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-gray);
}

/* ============================================
   ソリューションバナー — 蒼×水色グラデ
   ============================================ */
.problems-solution {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    padding: 52px 60px;
    background: linear-gradient(110deg,
        #003DB3                  0%,
        var(--primary-blue)      40%,
        #0099E6                  72%,
        var(--accent-cyan)       100%
    );
    box-shadow: 0 16px 48px rgba(0, 102, 255, 0.28);
}

/* 右側の光の滲み */
.problems-solution::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.13) 0%, transparent 60%);
    pointer-events: none;
}

/* 斜線テクスチャ */
.problems-solution::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.022) 20px,
        rgba(255,255,255,0.022) 21px
    );
    pointer-events: none;
}

.solution-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* 矢印アイコン（パルス） */
.solution-icon-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(255,255,255,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: solutionPulse 2.5s ease-in-out infinite;
}

@keyframes solutionPulse {
    0%, 100% { box-shadow: 0 0 0   0 rgba(255,255,255,0.2); }
    50%       { box-shadow: 0 0 0 16px rgba(255,255,255,0.0); }
}

.solution-text-block { flex: 1; }

.solution-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    margin-bottom: 10px;
}

.solution-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.solution-text em {
    font-style: italic;
    color: rgba(180, 240, 255, 0.95);
}

.solution-sub {
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.60);
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-sub::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .problems-grid      { grid-template-columns: 1fr; gap: 16px; }
    .problem-card-inner { padding: 28px 24px 32px; }
    .problems-solution  { padding: 36px 28px; }

    .solution-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .solution-sub { justify-content: center; }
    .solution-sub::before { display: none; }
}
