/* ============================================================
   CTI解説ページ（/function/cti）専用スタイル
   方針：白地・部品を減らす。囲みは「比較表」「早見表」「画像枠」だけ。
   見出しは番号＋太字＋下罫線のみ。本文は左揃え。
   prefix: .fnc-（本文） / .fncd-（構成図）
   ============================================================ */

.fnc-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 20px 24px;
}
.fnc-section { margin-bottom: 64px; }
.fnc-section:last-child { margin-bottom: 32px; }

/* 見出し */
.fnc-h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3e9ef;
    font-size: clamp(21px, 1.4vw + 14px, 27px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
}
.fnc-h2-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--main-color);
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}
.fnc-h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 30px 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
}
.fnc-h3-ico { color: var(--main-color); font-size: 15px; }
.fnc-h3-ico-warn { color: #f59e0b; }

/* 本文 */
.fnc-lead,
.fnc-def {
    font-size: 16px;
    line-height: 2;
    color: var(--text-color);
    margin: 0;
}
.fnc-def {
    background: #f2f9fb;
    border-radius: 10px;
    padding: 22px 26px;
}
.fnc-note-text {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: #78909c;
}
.fnc-note-text a { color: var(--main-color-dark); font-weight: 700; }

/* 図版（実画像） */
.fnc-figure { margin: 24px 0 0; }
.fnc-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e3e9ef;
}
.fnc-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #78909c;
    text-align: center;
    line-height: 1.7;
}

/* 目次 */
.fnc-toc {
    margin: -24px 0 64px;
    padding: 20px 24px;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    background: #fff;
}
.fnc-toc-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--main-color-dark);
    letter-spacing: 0.06em;
}
.fnc-toc-list {
    margin: 0;
    padding-left: 22px;
    columns: 2;
    column-gap: 32px;
    font-size: 14.5px;
    line-height: 2;
}
.fnc-toc-list li { break-inside: avoid; }
.fnc-toc-list a { color: var(--navy); text-decoration: none; }
.fnc-toc-list a:hover { color: var(--main-color-dark); text-decoration: underline; }

/* できること：モック＋3項目 */
.fnc-can {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}
.fnc-mock {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 42, 68, 0.16);
    border: 1px solid #e3e9ef;
}
.fnc-mock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--main-color);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
.fnc-mock-live {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 8px;
    border-radius: 999px;
}
.fnc-mock-body { padding: 18px 18px 16px; text-align: center; }
.fnc-mock-phone { font-size: 15px; color: #607d8b; letter-spacing: 0.02em; }
.fnc-mock-name { font-size: 24px; font-weight: 800; color: #212121; margin: 4px 0 10px; }
.fnc-mock-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #fff3e0;
    color: #e65100;
    margin-bottom: 14px;
}
.fnc-mock-info {
    text-align: left;
    background: #f5f7f8;
    border-radius: 8px;
    padding: 12px 14px;
}
.fnc-mock-info div { font-size: 13px; color: #455a64; line-height: 1.9; }
.fnc-mock-info i { width: 16px; color: #90a4ae; margin-right: 4px; }
.fnc-mock-cap {
    margin: 0;
    padding: 0 12px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}
.fnc-can-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fnc-can-list li { padding: 4px 0 18px; }
.fnc-can-list li + li { border-top: 1px solid #e3e9ef; padding-top: 18px; }
.fnc-can-list h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
}
.fnc-can-list h3 i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.fnc-can-list p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-color);
}

/* 比較表（横スクロール容器つき） */
.fnc-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 6px;
}
.fnc-table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.7;
}
.fnc-table th,
.fnc-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e3e9ef;
}
.fnc-table tr:last-child th,
.fnc-table tr:last-child td { border-bottom: none; }
.fnc-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
}
.fnc-table thead th.fnc-table-rowhead { background: var(--navy); }
.fnc-table-tag {
    display: block;
    margin: 0 auto 4px;
    width: max-content;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #7fe3ef;
}
.fnc-table tbody .fnc-table-rowhead {
    width: 24%;
    background: #f2f9fb;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
}
.fnc-table td { width: 25.3%; color: var(--text-color); }
.fnc-table td strong { color: var(--main-color-dark); }

/* 早見表（3択カード） */
.fnc-choose {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}
.fnc-choose-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 18px 20px;
    border: 2px solid #e3e9ef;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.fnc-choose-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 6px 18px rgba(0, 188, 212, 0.16);
    transform: translateY(-2px);
}
.fnc-choose-q {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 76px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--navy);
}
.fnc-choose-q i { font-size: 24px; color: var(--navy); }
.fnc-choose-q strong { color: var(--main-color-dark); }
.fnc-choose-arrow { color: #b0bec5; font-size: 14px; }
.fnc-choose-a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}
.fnc-choose-tag,
.fnc-way-tag {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.fnc-choose-note { font-size: 12.5px; line-height: 1.6; color: #78909c; }

/* 方式の詳細 */
.fnc-way .fnc-h2 { align-items: center; }
.fnc-way-tag { font-size: 12px; padding: 5px 13px; }
.fnc-catch {
    margin: -6px 0 12px;
    font-size: clamp(16px, 0.9vw + 12px, 19px);
    font-weight: 800;
    color: var(--main-color-dark);
    line-height: 1.6;
}
.fnc-way-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.fnc-need,
.fnc-caution {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fnc-need li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-color);
}
.fnc-need li + li { border-top: 1px solid #e3e9ef; }
.fnc-need li i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.fnc-need li i.fa-ban { background: #cfd8dc; }
.fnc-caution li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-color);
}
.fnc-caution li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.95em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
}

/* 私たちはこう使っています：時系列 */
.fnc-timeline { margin-top: 20px; }
.fnc-timeline-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
}
.fnc-timeline-item + .fnc-timeline-item { border-top: 1px solid #e3e9ef; }
.fnc-timeline-when {
    flex-shrink: 0;
    min-width: 92px;
    text-align: center;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.fnc-timeline-item h3 {
    margin: 2px 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
}
.fnc-timeline-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-color);
}

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

/* まとめ */
.fnc-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.fnc-summary-list li {
    position: relative;
    padding: 8px 0 8px 30px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text-color);
}
.fnc-summary-list li::before {
    content: "\f058";
    position: absolute;
    left: 0;
    top: 0.75em;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    color: var(--main-color);
}
.fnc-cta-case { text-align: center; margin-top: 26px; }
.fnc-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;
}
.fnc-cta-case a:hover { background: var(--main-color-dark); }

/* ============================================================
   3方式の構成図（landing_parts/_cti_ways_diagram.html）
   ============================================================ */
.fncd { margin-top: 26px; }
.fncd-route + .fncd-route {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #cfd8dc;
}
.fncd-route-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
}
.fncd-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;
}
.fncd-chain {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}
.fncd-node {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px 4px;
}
.fncd-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;
}
.fncd-node-accent .fncd-icon { background: var(--main-color); }
.fncd-node-name { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.45; }
.fncd-node-sub { font-size: 11px; color: #78909c; line-height: 1.45; }
.fncd-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 46px;
    color: #b0bec5;
    font-size: 15px;
}
.fncd-merge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 18px 0 14px;
    color: var(--main-color);
    font-size: 18px;
}
.fncd-merge-line { width: 2px; height: 20px; background: #cfd8dc; margin-bottom: 2px; }
.fncd-goal {
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 20px 18px;
    text-align: center;
}
.fncd-goal-card {
    width: 190px;
    margin: 0 auto 14px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    overflow: hidden;
}
.fncd-goal-card-head {
    background: var(--main-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    text-align: left;
}
.fncd-goal-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.fncd-goal-bar { display: block; height: 8px; width: 70%; border-radius: 4px; background: #e3e9ef; }
.fncd-goal-bar-lg { width: 88%; height: 12px; background: #cfd8dc; }
.fncd-goal-bar-sm { width: 52%; }
.fncd-goal-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.5; }
.fncd-goal-note { margin: 6px 0 0; font-size: 13px; color: var(--main-color-dark); font-weight: 700; line-height: 1.6; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 760px) {
    .fnc-can { grid-template-columns: 1fr; gap: 24px; }
    .fnc-mock { max-width: 340px; margin: 0 auto; }
    .fnc-choose { grid-template-columns: 1fr; }
    .fnc-choose-q { min-height: 0; }
    .fnc-way-grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
    .fnc-wrap { padding-top: 36px; }
    .fnc-section { margin-bottom: 52px; }
    .fnc-toc { margin-top: -16px; margin-bottom: 52px; padding: 16px 18px; }
    .fnc-toc-list { columns: 1; }
    .fnc-def { padding: 18px 18px; }
    .fnc-ba { grid-template-columns: 1fr; gap: 10px; }
    .fnc-ba-arrow { transform: rotate(90deg); }
    .fnc-timeline-item { flex-direction: column; gap: 10px; }
    /* 構成図：縦積み。矢印は要素ごと回すと左寄りに見えるので、アイコンだけ回す */
    .fncd-chain { flex-direction: column; gap: 4px; align-items: stretch; }
    .fncd-node { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 8px 2px; }
    .fncd-node-sub { margin-left: auto; text-align: right; }
    .fncd-arrow { height: 20px; }
    .fncd-arrow i { transform: rotate(90deg); }
}
