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

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

/* ヒーロー */
.fn-hero {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    padding: 72px 24px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.fn-hero-title {
    font-size: clamp(28px, 2.5vw + 16px, 42px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.fn-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.88);
    line-height: 1.9;
}

/* ===== 差別化機能セクション ===== */
.fn-highlight-section {
    padding: 64px 0;
}

.fn-section-label {
    display: inline-block;
    padding: 6px 16px;
    background: #00BCD4;
    color: #fff;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.fn-section-title {
    font-size: clamp(22px, 2vw + 10px, 30px);
    font-weight: 800;
    color: #222;
    margin-bottom: 40px;
}

/* 差別化機能カード 2カラム */
.fn-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fn-highlight-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.fn-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.fn-highlight-icon {
    width: 48px;
    height: 48px;
    background: #E0F7FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: #00838F;
    margin-bottom: 16px;
}

.fn-highlight-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.fn-highlight-desc {
    font-size: 0.88em;
    color: #555;
    line-height: 1.8;
    flex: 1;
}

.fn-highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 0.85em;
    font-weight: 600;
    color: #00BCD4;
    text-decoration: none;
}

.fn-highlight-link:hover {
    text-decoration: underline;
}

/* ===== その他の機能セクション ===== */
.fn-other-section {
    padding: 0 0 80px;
}

/* タブナビゲーション */
.fn-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
    position: sticky;
    top: 60px;
    background: #fff;
    z-index: 10;
    padding-top: 8px;
}

.fn-tab {
    padding: 14px 20px;
    font-size: 0.88em;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.fn-tab:hover {
    color: #00BCD4;
}

.fn-tab.active {
    color: #00BCD4;
    border-bottom-color: #00BCD4;
}

/* カテゴリセクション */
.fn-category {
    margin-bottom: 48px;
    scroll-margin-top: 120px;
}

.fn-category-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 4px solid #00BCD4;
}

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

.fn-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.fn-card-icon {
    width: 40px;
    height: 40px;
    background: #E0F7FA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #00838F;
    margin-bottom: 12px;
}

.fn-card-name {
    font-size: 0.95em;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.fn-card-desc {
    font-size: 0.82em;
    color: #666;
    line-height: 1.7;
}

.fn-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 0.8em;
    font-weight: 600;
    color: #00BCD4;
    text-decoration: none;
}

.fn-card-link:hover {
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .fn-hero {
        padding: 48px 20px 56px;
    }

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

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

    .fn-tabs {
        position: static;
        z-index: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .fn-tab {
        padding: 12px 14px;
        font-size: 0.82em;
    }
}

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