/* ==============================================
   Page Hero
=============================================== */
.fip-hero {
    position: relative;
    height: 480px;
    background: linear-gradient(135deg, #07141e 0%, #0a2535 45%, #0f4c75 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fip-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 75% 50%, rgba(15,76,117,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 65%, rgba(0,104,56,0.2) 0%, transparent 65%);
}

.fip-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
}

.fip-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}

.fip-hero-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(86,175,255,0.55);
    color: #7ec8f7;
    padding: 5px 18px;
    border-radius: 2px;
    margin-bottom: 22px;
}

.fip-hero-inner h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.fip-hero-inner p {
    font-size: clamp(14px, 2vw, 17px);
    color: rgba(255,255,255,0.75);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.85;
}

.fip-breadcrumb {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.fip-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.fip-breadcrumb a:hover { color: #7ec8f7; }
.fip-breadcrumb span   { color: rgba(255,255,255,0.28); }

/* ==============================================
   共通 セクションヘッダー
=============================================== */
.fip-section-header {
    margin-bottom: 52px;
}

.fip-section-header.center {
    text-align: center;
}

.fip-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #0f4c75;
    font-weight: 600;
    margin-bottom: 10px;
}

.fip-label--green  { color: #006838; }
.fip-label--light  { color: rgba(126,200,247,0.85); }

.fip-section-header h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: #0d1a26;
    line-height: 1.4;
    margin-bottom: 14px;
    border-left: none;
    padding-left: 0;
}

.fip-section-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* ==============================================
   スクロールアニメーション
=============================================== */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==============================================
   What is FIP Section
=============================================== */
.fip-intro {
    padding: 96px 0;
    background: #fff;
}

.intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    color: #0d1a26;
    line-height: 1.5;
    margin: 12px 0 24px;
    border-left: none;
    padding-left: 0;
}

.intro-text p {
    font-size: 15px;
    color: #444;
    line-height: 1.95;
    margin-bottom: 16px;
}

.intro-text p:last-child { margin-bottom: 0; }

/* FIT vs FIP 比較ボックス */
.fit-fip-compare {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compare-card {
    border-radius: 12px;
    padding: 24px 26px;
    position: relative;
    overflow: hidden;
}

.compare-card.fit {
    background: #f5f7fa;
    border: 1px solid #dde4ec;
}

.compare-card.fip {
    background: linear-gradient(135deg, #e8f5ee, #d4eddf);
    border: 1px solid #b8ddc8;
}

.compare-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.compare-card.fit  .compare-badge { background: #dde4ec; color: #556; }
.compare-card.fip  .compare-badge { background: rgba(0,104,56,0.15); color: #006838; }

.compare-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0d1a26;
}

.compare-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.compare-arrow {
    text-align: center;
    font-size: 22px;
    color: #006838;
    line-height: 1;
}

/* ==============================================
   Revenue Mechanism Section
=============================================== */
.fip-mechanism {
    padding: 96px 0;
    background: #f4f7fb;
}

.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mechanism-card {
    background: #fff;
    border-radius: 14px;
    padding: 38px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.mechanism-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.1);
}

.mechanism-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0f4c75, #1a7cbf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.mechanism-card:nth-child(2)::after {
    background: linear-gradient(90deg, #006838, #1a8a5a);
}

.mechanism-card:nth-child(3)::after {
    background: linear-gradient(90deg, #1a6b4a, #86BD41);
}

.mechanism-card:hover::after {
    transform: scaleX(1);
}

.mechanism-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0f4c75;
    margin-bottom: 16px;
}

.mechanism-card:nth-child(2) .mechanism-num { color: #006838; }
.mechanism-card:nth-child(3) .mechanism-num { color: #1a6b4a; }

.mechanism-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f0f8, #d4e4f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f4c75;
    margin-bottom: 20px;
}

.mechanism-card:nth-child(2) .mechanism-icon {
    background: linear-gradient(135deg, #e8f5ee, #d4eddf);
    color: #006838;
}

.mechanism-card:nth-child(3) .mechanism-icon {
    background: linear-gradient(135deg, #eef7e8, #ddf0cc);
    color: #1a6b4a;
}

.mechanism-icon svg { width: 28px; height: 28px; }

.mechanism-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d1a26;
    margin-bottom: 12px;
}

.mechanism-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.85;
    margin: 0;
}

/* ==============================================
   Flow Section
=============================================== */
.fip-flow {
    padding: 96px 0;
    background: #fff;
}

.fip-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.fip-flow-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    height: 2px;
    background: linear-gradient(90deg, #dde4ec, #0f4c75, #006838, #86BD41);
}

.fip-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.fip-flow-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0f4c75;
    background: #fff;
    color: #0f4c75;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s;
}

.fip-flow-step:hover .fip-flow-num {
    background: #0f4c75;
    color: #fff;
}

.fip-flow-step h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0d1a26;
    margin-bottom: 10px;
}

.fip-flow-step p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ==============================================
   Parameters / Table Section
=============================================== */
.fip-params {
    padding: 96px 0;
    background: #f4f7fb;
}

.params-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.params-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.params-table thead {
    background: linear-gradient(135deg, #0a2535, #0f4c75);
    color: #fff;
}

.params-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.params-table tbody tr {
    border-bottom: 1px solid #eef1f6;
    transition: background 0.2s;
}

.params-table tbody tr:last-child {
    border-bottom: none;
}

.params-table tbody tr:hover {
    background: #f4f7fb;
}

.params-table tbody td {
    padding: 14px 20px;
    color: #444;
    line-height: 1.5;
}

.params-table tbody td:first-child {
    font-weight: 600;
    color: #0d1a26;
}

.params-table tbody td:last-child {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #0f4c75;
    font-weight: 600;
}

/* 指標カード */
.metric-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid #0f4c75;
    transition: transform 0.3s, box-shadow 0.3s;
}

.metric-card:nth-child(2) {
    border-left-color: #006838;
}

.metric-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.metric-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0f4c75;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.metric-card:nth-child(2) .metric-label {
    color: #006838;
}

.metric-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0d1a26;
    margin-bottom: 10px;
}

.metric-formula {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #f4f7fb;
    border-radius: 6px;
    padding: 10px 14px;
    color: #0f4c75;
    margin-bottom: 10px;
    border: 1px solid #dde4ec;
    word-break: break-all;
}

.metric-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ==============================================
   Subsidy Section
=============================================== */
.fip-subsidy {
    padding: 96px 0;
    background: linear-gradient(135deg, #07141e 0%, #0a2535 50%, #0f4c75 100%);
}

.subsidy-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.subsidy-text .fip-section-header h2 {
    color: #fff;
}

.subsidy-text .fip-section-header p {
    color: rgba(255,255,255,0.65);
}

.subsidy-text > p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    margin-bottom: 16px;
}

.subsidy-highlight {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(126,200,247,0.25);
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
}

.subsidy-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(126,200,247,0.15);
    color: #7ec8f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subsidy-highlight-icon svg { width: 20px; height: 20px; }

.subsidy-highlight-text strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.subsidy-highlight-text span {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* 補助金メリットリスト */
.subsidy-merits {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.subsidy-merit {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: background 0.3s, border-color 0.3s;
}

.subsidy-merit:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(126,200,247,0.35);
}

.subsidy-merit-num {
    font-size: 28px;
    font-weight: 800;
    color: #7ec8f7;
    line-height: 1;
    flex-shrink: 0;
    min-width: 44px;
}

.subsidy-merit-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.subsidy-merit-body p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
}

/* ==============================================
   CTA Section
=============================================== */
.fip-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #061018 0%, #0a2030 50%, #0f4c75 100%);
}

.fip-cta-inner {
    text-align: center;
    color: #fff;
}

.fip-cta-inner h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
    border-left: none;
    padding-left: 0;
    color: #fff;
}

.fip-cta-inner p {
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    line-height: 1.9;
    margin-bottom: 38px;
}

.fip-cta-btn {
    display: inline-block;
    padding: 18px 52px;
    background: linear-gradient(135deg, #006838, #1a8a5a);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 28px rgba(0,104,56,0.4);
    transition: filter 0.3s, transform 0.2s, box-shadow 0.3s;
}

.fip-cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,104,56,0.5);
}

/* ==============================================
   Responsive
=============================================== */
@media (max-width: 960px) {
    .intro-inner,
    .params-inner,
    .subsidy-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mechanism-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .fip-flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .fip-flow-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .fip-hero {
        height: 380px;
    }

    .fip-intro,
    .fip-mechanism,
    .fip-flow,
    .fip-params,
    .fip-subsidy,
    .fip-cta {
        padding: 70px 0;
    }

    .fip-flow-steps {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .fip-flow-step h3 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .fip-hero {
        height: 320px;
    }

    .compare-card {
        padding: 18px 20px;
    }
}
