/* ========================================
   機能一覧ページ
   ======================================== */

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

.fn-container {
    position: relative;
    z-index: 1;
}

/* 機能カードグリッド 3カラム */
.fn-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fn-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6eaee;
    border-radius: 4px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.fn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.12);
    background: #fafdfe;
}
.fn-card-arrow {
    color: #b0bec5;
    font-size: 0.8em;
    flex-shrink: 0;
}

.fn-card-name {
    font-size: 0.95em;
    font-weight: 700;
    color: #222;
    flex: 1;
}

/* ===== 機能詳細（画像＋説明・交互） ===== */
html { scroll-behavior: smooth; }
.fn-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.fn-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    scroll-margin-top: 90px;   /* 固定ヘッダー分のオフセット */
}
.fn-detail--reverse .fn-detail-media { order: 2; }
.fn-detail--reverse .fn-detail-text { order: 1; }
/* 画像が未用意の機能：1カラムにしてテキストを全幅で見せる
   （グレーの「画像（準備中）」を出すより、意図した構成に見える） */
.fn-detail--noimg { grid-template-columns: 1fr; }
.fn-detail-media { min-width: 0; }
.fn-detail-media img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    box-shadow: 0 6px 20px rgba(26, 42, 68, 0.12);
}
.fn-detail-text { min-width: 0; }
.fn-detail-name {
    font-size: 27px;
    font-weight: 800;
    color: var(--accent, #00838f);
    margin: 0 0 8px;
    line-height: 1.35;
}
/* 見出し横のバッジ（例：有料オプション）。見出しより小さく、主張しすぎない */
.fn-detail-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 4px 10px;
    border: 1px solid var(--accent, #00838f);
    border-radius: 999px;
    background: #fff;
    color: var(--accent, #00838f);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.fn-detail-sub {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
    line-height: 1.7;
}
.fn-detail-desc {
    font-size: 15.5px;
    line-height: 1.95;
    color: #555;
    margin: 0;
}
.fn-detail-link {
    margin: 14px 0 0;
}
.fn-detail-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent, #00838f);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.fn-detail-link a:hover {
    opacity: 0.8;
}
@media (max-width: 768px) {
    .fn-details { gap: 28px; }
    .fn-detail { grid-template-columns: 1fr; gap: 16px; }
    .fn-detail--reverse .fn-detail-media { order: 0; }
    .fn-detail--reverse .fn-detail-text { order: 0; }
    .fn-detail-name { font-size: 19px; }
}

/* レスポンシブ */
@media (max-width: 768px) {

    .fn-card-grid {
        grid-template-columns: 1fr;
    }

    .fn-container {
        position: relative;
        z-index: 1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .fn-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   /function ハブ（4つの目的カード）
   ============================================ */
.fnhub-section {
    padding: 36px 0 24px;
}
.fnhub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
/* 推しカード（データ分析）は1枚で全幅。
   カードが5枚だと2列グリッドで1枚あまるため、先頭を全幅にして残り4枚を2×2に収める */
.fnhub-card--featured { grid-column: 1 / -1; }
/* 画像エリアが幅%指定のままだと、全幅カードでは画像も2倍幅になって縦に伸びてしまう。
   固定幅にして、カードの高さを他カードと揃える（260px = 画像224px + padding 18px×2） */
.fnhub-card--featured .fnhub-media { flex: 0 0 260px; }
.fnhub-card {
    --accent: #00BCD4;
    display: flex;
    flex-direction: row;          /* 画像（左）＋テキスト（右） */
    min-height: 260px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fnhub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
/* 画像エリア（左・カード高さいっぱい）。画像未設定時はプレースホルダー */
.fnhub-media {
    position: relative;
    flex: 0 0 40%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
/* 正方形画像を切らずに全体表示（中央・小さめ） */
.fnhub-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.fnhub-media-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: repeating-linear-gradient(45deg, #eef3f6, #eef3f6 12px, #e7eef2 12px, #e7eef2 24px);
}
.fnhub-media-ph i {
    font-size: 2em;
    color: var(--accent);
    opacity: 0.85;
}
.fnhub-media-ph span {
    font-size: 0.78em;
    color: #90a4ae;
}
.fnhub-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    padding: 40px 32px;
}
.fnhub-name {
    font-size: 1.35em;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.fnhub-desc {
    font-size: 0.92em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}
.fnhub-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--accent);
}
.fnhub-link i {
    transition: transform 0.2s;
}
.fnhub-card:hover .fnhub-link i {
    transform: translateX(4px);
}

/* fugulink循環図（4カードの下・左画像／右テキスト） */
.fn-junkan-section {
    padding: 32px 0 48px;
}
.fn-junkan-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}
.fn-junkan-media {
    flex: 0 0 44%;
}
.fn-junkan-media img {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.fn-junkan-text {
    flex: 1;
}
.fn-junkan-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 18px;
}
.fn-junkan-desc {
    font-size: 0.98em;
    color: #555;
    line-height: 1.9;
}
@media (max-width: 768px) {
    .fn-junkan-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .fn-junkan-media {
        flex: none;
        width: 100%;
    }
    .fn-junkan-title {
        font-size: 1.25em;
    }
}

/* ============================================
   目的別ページ（機能カード＋他目的への導線）
   ============================================ */
.fn-purpose-section {
    padding: 36px 0 64px;
}
.fn-purpose-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 48px;
}
.fn-purpose-nav-item {
    --accent: #00BCD4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid var(--accent);
    border-radius: 30px;
    font-size: 0.92em;
    font-weight: 700;
    color: var(--accent);
    background: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.fn-purpose-nav-item:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .fnhub-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .fnhub-card {
        min-height: 180px;
    }
    .fnhub-media {
        flex: 0 0 38%;
        padding: 12px;
    }
    /* スマホは1カラムなので全幅カードも他と同じ扱いに戻す（固定260pxだと縦に伸びる） */
    .fnhub-card--featured .fnhub-media {
        flex: 0 0 38%;
    }
    .fnhub-body {
        padding: 22px 18px;
    }
    .fnhub-name {
        font-size: 1.12em;
        margin-bottom: 6px;
    }
    .fnhub-desc {
        font-size: 0.84em;
        line-height: 1.6;
        margin-bottom: 12px;
    }
}

/* ============================================
   CTI解説ページ（/function/cti）専用
   ============================================ */
.fn-cti-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 20px 20px;
}
.fn-cti-section { margin-bottom: 52px; }
.fn-cti-h2 {
    font-size: clamp(22px, 1.6vw + 14px, 30px);
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.4;
}
.fn-cti-lead {
    font-size: 16px;
    line-height: 2;
    color: var(--text-color);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
/* 定義ボックス（AI概要が引用しやすい定義文を強調） */
/* 定義ボックス（AI概要が引用しやすい定義文を強調）
   左のアクセント罫線は使わない。面の色と余白だけで見出しと区別する。 */
.fn-cti-def {
    max-width: 720px;
    margin: 20px auto 0;
    background: #f2f9fb;
    border-radius: 12px;
    padding: 26px 28px;
    font-size: 16px;
    line-height: 2;
    color: var(--text-color);
}
/* できること（機能リスト） */
.fn-cti-features {
    list-style: none;
    padding: 0;
    margin: 28px auto 0;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fn-cti-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    padding: 20px 22px;
}
.fn-cti-feature-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.fn-cti-feature-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin: 2px 0 6px;
}
.fn-cti-feature-body p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}
/* 事例への導線 */
.fn-cti-cta-case {
    text-align: center;
    margin-top: 20px;
}
.fn-cti-cta-case a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--main-color);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
}
.fn-cti-cta-case a:hover { background: var(--main-color-dark); }

@media (max-width: 600px) {
    .fn-cti-wrap { padding-top: 40px; }
    .fn-cti-feature { padding: 16px; gap: 12px; }
}

/* CTIポップアップのモックアップ（実データ不使用・見本表示） */
.fn-cti-mock-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.fn-cti-mock {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 42, 68, 0.18);
    border: 1px solid #e3e9ef;
}
.fn-cti-mock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--main-color);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
.fn-cti-mock-head .fn-cti-mock-live {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 8px;
    border-radius: 999px;
}
.fn-cti-mock-body { padding: 18px 18px 20px; text-align: center; }
.fn-cti-mock-phone { font-size: 15px; color: #607d8b; letter-spacing: 0.02em; }
.fn-cti-mock-name { font-size: 24px; font-weight: 800; color: #212121; margin: 4px 0 10px; }
.fn-cti-mock-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #fff3e0;
    color: #e65100;
    margin-bottom: 14px;
}
.fn-cti-mock-info {
    text-align: left;
    background: #f5f7f8;
    border-radius: 8px;
    padding: 12px 14px;
}
.fn-cti-mock-info div {
    font-size: 13px;
    color: #455a64;
    line-height: 1.9;
}
.fn-cti-mock-info i { width: 16px; color: #90a4ae; margin-right: 4px; }
.fn-cti-mock-cap {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
}

/* ============================================
   CTI解説ページ 2方式の説明（/function/cti）
   面の色は 白／薄いティント(#f2f9fb)／ティール／ネイビー の4色に絞る。
   箱の入れ子を作らない（見出しと余白で構造を表す）。
   ============================================ */
/* 図版 */
.fn-cti-figure {
    margin: 28px auto 0;
    max-width: 760px;
}
.fn-cti-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e3e9ef;
}
.fn-cti-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #78909c;
    text-align: center;
    line-height: 1.7;
}

/* 方式の見出しブロック（バッジ→見出し→キャッチを1つの面にまとめる）
   バッジを見出しと同じ行に置くと、中央揃えのときに重心がずれて読みにくいので独立させる。 */
.fn-cti-wayhead {
    max-width: 720px;
    margin: 0 auto;
    padding: 26px 22px 24px;
    background: #f2f9fb;
    border-radius: 14px;
    text-align: center;
}
.fn-cti-wayhead .fn-cti-h2 { margin-bottom: 10px; }
.fn-cti-wayhead .fn-cti-catch { margin-bottom: 0; }
.fn-cti-way-tag {
    display: inline-block;
    margin-bottom: 12px;
    background: var(--main-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 999px;
}

/* 方式セクションの一言キャッチ */
.fn-cti-catch {
    max-width: 720px;
    margin: 0 auto 16px;
    text-align: center;
    font-size: clamp(17px, 1vw + 13px, 21px);
    font-weight: 800;
    color: var(--main-color-dark);
    line-height: 1.6;
}
.fn-cti-br-sp { display: none; }

/* 小見出し（向いている店舗／注意していただきたい点）。罫線は使わずアイコンで区別する */
.fn-cti-h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 720px;
    margin: 34px auto 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e9ef;
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
}
.fn-cti-h3-ico-ok { color: var(--main-color); }
.fn-cti-h3-ico-warn { color: #b0bec5; }

/* 箇条書き（マーカーはFont Awesomeで描く。FA5が読み込み済み） */
.fn-cti-check-list,
.fn-cti-plain-list {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 0;
}
.fn-cti-check-list li,
.fn-cti-plain-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 8px;
}
.fn-cti-check-list li:last-child,
.fn-cti-plain-list li:last-child { margin-bottom: 0; }
.fn-cti-check-list li::before,
.fn-cti-plain-list li::before {
    position: absolute;
    left: 0;
    top: 0.28em;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
}
.fn-cti-check-list li::before {
    content: "\f058";           /* check-circle */
    color: var(--main-color);
}
.fn-cti-plain-list li::before {
    content: "\f069";           /* asterisk（注意点。警告色は使わず控えめに） */
    font-size: 11px;
    top: 0.5em;
    color: #b0bec5;
}

/* Before → After の対比 */
.fn-cti-ba {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 14px;
    max-width: 720px;
    margin: 30px auto 0;
}
.fn-cti-ba-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 22px 16px 20px;
    border-radius: 12px;
}
.fn-cti-ba-before { background: #f5f8fa; }
.fn-cti-ba-after { background: #e9f7fa; }
.fn-cti-ba-tag {
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: #90a4ae;
}
.fn-cti-ba-after .fn-cti-ba-tag { background: var(--main-color); }
.fn-cti-ba-label {
    font-size: 13px;
    color: #607d8b;
    line-height: 1.5;
}
.fn-cti-ba-num {
    font-size: clamp(28px, 3vw + 14px, 40px);
    font-weight: 800;
    color: #78909c;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.fn-cti-ba-after .fn-cti-ba-num { color: var(--main-color-dark); }
.fn-cti-ba-num span {
    font-size: 0.5em;
    font-weight: 700;
    margin-left: 2px;
}
.fn-cti-ba-sub {
    font-size: 12px;
    color: #78909c;
    line-height: 1.7;
}
.fn-cti-ba-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 22px;
}
.fn-cti-ba-total {
    max-width: 720px;
    margin: 16px auto 0;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-size: clamp(15px, 1vw + 12px, 18px);
    font-weight: 700;
    line-height: 1.6;
}
.fn-cti-ba-total strong {
    font-size: 1.35em;
    font-weight: 800;
    color: #7fe3ef;
}

/* 補足ノート（左のアクセント罫線は使わず、見出しラベルで性格を出す） */
.fn-cti-note {
    max-width: 720px;
    margin: 26px auto 0;
    background: #f2f9fb;
    border-radius: 10px;
    padding: 20px 22px 22px;
}
.fn-cti-note-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.fn-cti-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-color);
}

/* 自社店舗での運用（箱をやめて罫線で区切る） */
.fn-cti-ourcase {
    max-width: 720px;
    margin: 28px auto 0;
}
.fn-cti-ourcase-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 0;
}
.fn-cti-ourcase-item + .fn-cti-ourcase-item { border-top: 1px solid #e3e9ef; }
.fn-cti-ourcase-year {
    flex-shrink: 0;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.fn-cti-ourcase-item h3 {
    margin: 2px 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
}
.fn-cti-ourcase-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}
.fn-cti-ourcase-note {
    max-width: 720px;
    margin: 12px auto 0;
    font-size: 13px;
    line-height: 1.7;
    color: #78909c;
}

/* 「この方式で必要なもの」リスト（唯一の囲み。ティント1色のみ・枠線なし） */
.ctineed {
    max-width: 720px;
    margin: 28px auto 0;
    background: #f2f9fb;
    border-radius: 10px;
    padding: 20px 22px;
}
.ctineed-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
}
/* 横並びのアイコン列（縦積みの箇条書きより図版として読める） */
.ctineed-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
}
.ctineed-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 8px 16px;
    background: #fff;
    border-radius: 10px;
}
.ctineed-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 21px;
}
.ctineed-cell-accent .ctineed-ico { background: var(--main-color); }
.ctineed-cell-none .ctineed-ico { background: #cfd8dc; }
.ctineed-nm {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.45;
}
.ctineed-cell-none .ctineed-nm { color: #607d8b; }
.ctineed-sb {
    font-size: 11px;
    color: #90a4ae;
    line-height: 1.5;
}
.ctineed-foot {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.8;
    color: #78909c;
}

/* ============================================
   2方式の構成図（枠線を持たせず、余白と罫線だけで構造を出す）
   ============================================ */
.ctidiag {
    max-width: 720px;
    margin: 30px auto 0;
}
.ctidiag-route + .ctidiag-route {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cfd8dc;
}
.ctidiag-route-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
}
.ctidiag-badge {
    flex-shrink: 0;
    background: var(--main-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 11px;
    border-radius: 999px;
}
.ctidiag-chain {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}
.ctidiag-node {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px 4px;
}
.ctidiag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 18px;
}
.ctidiag-node-accent .ctidiag-icon { background: var(--main-color); }
.ctidiag-node-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.45;
}
.ctidiag-node-sub {
    font-size: 11px;
    color: #78909c;
    line-height: 1.45;
}
.ctidiag-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 46px;
    color: #b0bec5;
    font-size: 15px;
}
.ctidiag-merge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 18px 0 14px;
    color: var(--main-color);
    font-size: 18px;
}
.ctidiag-merge-line {
    width: 2px;
    height: 20px;
    background: #cfd8dc;
    margin-bottom: 2px;
}
.ctidiag-goal {
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 20px 18px;
    text-align: center;
}
.ctidiag-goal-card {
    width: 190px;
    margin: 0 auto 14px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    overflow: hidden;
}
.ctidiag-goal-card-head {
    background: var(--main-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    text-align: left;
}
.ctidiag-goal-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.ctidiag-goal-bar {
    display: block;
    height: 8px;
    width: 70%;
    border-radius: 4px;
    background: #e3e9ef;
}
.ctidiag-goal-bar-lg { width: 88%; height: 12px; background: #cfd8dc; }
.ctidiag-goal-bar-sm { width: 52%; }
.ctidiag-goal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
}
.ctidiag-goal-note {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--main-color-dark);
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .fn-cti-br-sp { display: inline; }
    .fn-cti-ba { grid-template-columns: 1fr; gap: 10px; }
    .fn-cti-ba-arrow { transform: rotate(90deg); }
    .fn-cti-wayhead { padding: 22px 16px 20px; }
    .fn-cti-h3 { margin-top: 28px; font-size: 16px; }
    .ctineed { padding: 16px 12px; }
    .ctineed-strip { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
    .ctineed-ico { width: 46px; height: 46px; font-size: 18px; }
    .fn-cti-ourcase-item { flex-direction: column; gap: 10px; }
    /* 縦積み時：ノードは横幅いっぱい、矢印は中央。
       矢印は要素ごと回すと幅を持ったまま倒れて左寄りに見えるので、アイコンだけ回す。 */
    .ctidiag-chain { flex-direction: column; gap: 4px; align-items: stretch; }
    .ctidiag-node { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 8px 2px; }
    .ctidiag-node-sub { margin-left: auto; text-align: right; }
    .ctidiag-arrow { height: 20px; }
    .ctidiag-arrow i { transform: rotate(90deg); }
}
