/* =========================================================================
   お悩み解決の事例ページ（/function/case/<slug>）
   色のリズム：白(ヒーロー) → ネイビー(課題→解決) → 白(施策) → 薄ティール(結果)
   ========================================================================= */

.fcase-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- ヒーロー（白・左画像/右テキスト・CTAなし） ---------- */
.fcase-hero {
    background: #fff;
    padding: 48px 24px 52px;
}
.fcase-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}
.fcase-hero-media { min-width: 0; }
.fcase-hero-media img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    box-shadow: 0 10px 30px rgba(26, 42, 68, 0.12);
}
.fcase-hero-ph {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9bb0c4;
    font-size: 14px;
    font-weight: 600;
}
.fcase-hero-text { min-width: 0; }
.fcase-hero-title {
    color: var(--navy);
    font-size: clamp(24px, 2.4vw + 14px, 38px);
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 16px;
}
.fcase-hero-sub {
    color: var(--text-color);
    font-size: clamp(15px, 0.6vw + 13px, 18px);
    line-height: 1.9;
    margin: 0;
}

/* セクション小見出し（eyebrow） */
.fcase-eyebrow {
    display: block;
    text-align: center;
    color: var(--main-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.fcase-eyebrow::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--main-color);
    margin: 12px auto 0;
}
.fcase-eyebrow-dark { color: var(--main-color-dark); }

/* ---------- 課題 → 解決（ネイビー帯） ---------- */
.fcase-goal {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 52px 0 56px;   /* 左右は .fcase-container に一本化（二重padding解消） */
}
.fcase-goal-cards {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: stretch;
}
.fcase-goal-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
}
.fcase-goal-label {
    display: inline-block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid;
}
/* 課題：紺ラベル＋赤下線 / 解決：赤ラベル＋紺下線 */
.fcase-goal-label-problem { color: var(--navy); border-color: #e2574c; }
.fcase-goal-label-solution { color: #c0392b; border-color: var(--navy); }
.fcase-goal-card p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--navy);
    margin: 0;
}
.fcase-goal-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
}

/* ---------- fugulinkの施策（白） ---------- */
.fcase-measure {
    background: #fff;
    padding: 56px 0;
}
.fcase-h2 {
    text-align: center;
    font-size: clamp(22px, 2vw + 10px, 30px);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 32px;
}
.fcase-measure-list {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
/* 1施策 = [テキスト | 画像] の2カラム */
.fcase-measure-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    background: #f6f8fa;
    border-radius: 16px;
    padding: 28px 30px;
}
.fcase-measure-text { min-width: 0; }
.fcase-measure-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}
.fcase-measure-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.fcase-measure-card p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
    margin: 0;
}
/* 右：実画面/グラフ */
.fcase-measure-media { min-width: 0; }
.fcase-measure-media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 6px 20px rgba(26, 42, 68, 0.12);
}
.fcase-measure-ph {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    background: #e3e9ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9bb0c4;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- 結果（薄いティール） ---------- */
.fcase-result {
    background: #e0f7fa;
    padding: 56px 0 60px;
    text-align: center;
}
.fcase-result-metric {
    font-size: clamp(22px, 2.2vw + 12px, 34px);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    line-height: 1.5;
}
.fcase-result-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- 他のお悩み（誘導） ---------- */
.fcase-related {
    background: #fff;
    padding: 56px 0 64px;
    text-align: center;
}
.fcase-related-lead {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.9;
    margin: 0 0 28px;
}
.fcase-related-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    background: var(--navy);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fcase-related-btn:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 42, 68, 0.2);
}

/* fugulink活用方法：同カテゴリのお悩みカード（landing.css の lp-worry-card を流用） */
.fcase-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto 36px;
    text-align: left;
}
@media (max-width: 900px) {
    .fcase-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .fcase-related-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- 事例一覧ページ（/function/cases） ---------- */
.fcaselist-section {
    padding: 8px 0 0;
}
.fcaselist-label {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin: 44px 0 24px;
}
.fcaselist-label::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--main-color);
    border-radius: 2px;
    margin: 12px auto 0;
}
.fcaselist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .fcaselist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .fcaselist-grid { grid-template-columns: 1fr; gap: 16px; }
    .fcaselist-label { font-size: 19px; margin: 32px 0 18px; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
    .fcase-hero { padding: 40px 20px 44px; }
    .fcase-hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .fcase-hero-media { order: -1; }

    /* 横余白は container に一本化（16pxに詰めてカードを広く）、縦だけ詰める */
    .fcase-container { padding: 0 16px; }
    .fcase-goal { padding: 32px 0 36px; }
    .fcase-measure { padding: 32px 0; }
    .fcase-result { padding: 36px 0 40px; }
    .fcase-related { padding: 36px 0 42px; }
    .fcase-h2 { margin-bottom: 20px; }
    .fcase-eyebrow { margin-bottom: 18px; }

    /* 施策カード：縦積み・画像を上・文章を下。余白を詰めて画像を大きく */
    .fcase-measure-list { gap: 16px; }
    .fcase-measure-card { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
    .fcase-measure-media { order: -1; }
}
@media (max-width: 600px) {
    /* 課題→解決 を縦積み・矢印を下向きに */
    .fcase-goal-cards { grid-template-columns: 1fr; }
    .fcase-goal-arrow { transform: rotate(90deg); padding: 4px 0; }
}
