/* シンプルで統一されたカラーパレット */
:root {
    --primary-color: #1e3a8a;        /* 紺色 */
    --secondary-color: #00b7ff;      /* 水色 */
    --accent-color: #f59e0b;         /* オレンジ */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e3a8a;         /* 紺色 */
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(30, 58, 138, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(30, 58, 138, 0.1), 0 2px 4px -1px rgba(30, 58, 138, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(30, 58, 138, 0.1), 0 4px 6px -2px rgba(30, 58, 138, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 10px 10px -5px rgba(30, 58, 138, 0.04);
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: min(1200px, 90vw);
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 2.5rem);
}

/* プロフェッショナル見出しスタイル */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    position: relative;
    padding-bottom: 1rem;
    margin-top: clamp(3rem, 8vw, 5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-color);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-primary);
    margin-top: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

p {
    margin-top: 10px;
    margin-bottom: 1.25em;
    color: rgb(0, 0, 0);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* モダンセクション */
.section {
    background: var(--surface-color);
    padding: clamp(2rem, 6vw, 4rem);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* プロフェッショナルボタン */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px 24px;
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-container {
    text-align: center;
    margin: clamp(2.5rem, 6vw, 4rem) 0;
}

/* モダンリスト */
.feature-list {
    list-style: none;
    padding: 0;
    margin: clamp(1rem, 3vw, 2rem) 0;
}

.feature-list li {
    position: relative;
    padding: clamp(0.5rem, 2vw, 0.75rem) 0 clamp(0.5rem, 2vw, 0.75rem) clamp(2rem, 5vw, 2.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-radius: var(--border-radius-sm);
}

.feature-list li:hover {
    background-color: var(--border-light);
    padding-left: clamp(2.25rem, 5.5vw, 2.75rem);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: clamp(0.5rem, 2vw, 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 2.5vw, 12px);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.feature-list li::after {
    content: '✓';
    position: absolute;
    left: clamp(0.5rem, 2vw, 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 2.5vw, 12px);
    color: white;
    font-weight: 700;
    z-index: 1;
}

.feature-list.basic li::before {
    background: var(--primary-color);
}
/* --- 料金カードセクションのスタイル --- */

/* カード全体のコンテナ */
.function-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 画面幅に応じてカードの列数を自動調整 */
    gap: clamp(1.5rem, 4vw, 2rem); /* カード間の余白 */
    margin-top: clamp(2rem, 5vw, 3rem); /* セクションタイトルとの余白 */
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* 各料金カードの基本スタイル */
.function-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column; /* カード内の要素を縦に並べる */
    position: relative;
    overflow: hidden;
}

/* カード上部のアクセントライン */
.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* カードのホバーエフェクト */
.function-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

/* カードのタイトル */
.card-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* カードの説明文 */
.card-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* 説明文エリアを可変にして高さを揃える */
}

/* 機能リスト */
.card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.card-feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-secondary);
}

/* 機能リストのチェックマーク */
.card-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* カードの価格表示 */
.card-price {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto; /* 価格をカード下部に配置 */
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    line-height: 1.4;
}

/* 保守・運用カードの価格例 */
.price-example {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* 年間払いオプション */
.price-option {
    margin-top: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent-color);
}

/* 年間払いオプションのラベル */
.price-option .label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* 年間払いオプションの価格 */
.price-option .value {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* 年間払いオプションの特典 */
.price-option .benefit {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-left: 0.5rem;
}

/* サービス一覧へのリンク */
.section > a {
    display: inline-block;
    text-align: center;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-normal);
}

.section > a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .function-card-list {
        grid-template-columns: 1fr; /* モバイルでは1列表示 */
    }
}

/* プロフェッショナルタイムライン */
.timeline-flow {
    position: relative;
    margin: clamp(3rem, 6vw, 5rem) 0;
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.timeline-flow::before {
    content: '';
    position: absolute;
    left: clamp(1.5rem, 4vw, 2rem);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
    border-radius: 2px;
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: clamp(3rem, 6vw, 4rem);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: clamp(3rem, 8vw, 4rem);
    height: clamp(3rem, 8vw, 4rem);
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--surface-color);
    z-index: 2;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--accent-color);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.timeline-item:hover .timeline-icon::before {
    opacity: 1;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.timeline-icon svg {
    width: clamp(1.25rem, 4vw, 1.5rem);
    height: clamp(1.25rem, 4vw, 1.5rem);
    color: white;
}

.timeline-content {
    margin-left: clamp(1.5rem, 4vw, 2rem);
    background: var(--surface-color);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

/* モダンな吹き出し矢印 */
.timeline-content::before {
    content: '';
    position: absolute;
    top: clamp(1.25rem, 4vw, 1.5rem);
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent var(--border-color) transparent transparent;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: clamp(1.375rem, 4.2vw, 1.625rem);
    left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 7px 7px 0;
    border-color: transparent var(--surface-color) transparent transparent;
}

.timeline-content h3 {
    margin: 0 0 clamp(0.75rem, 2vw, 1rem) 0;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-content h3 .step-indicator {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 600;
    margin-right: 0.75rem;
    letter-spacing: 0.025em;
}

.timeline-content p {
    margin: 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* モダンドキュメントエリア */
.documents-info {
    margin: clamp(3rem, 6vw, 5rem) 0;
    padding: clamp(2rem, 5vw, 3rem);
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: var(--border-radius-xl);
    position: relative;
    overflow: hidden;
}

.documents-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-color);
}

.documents-info h3 {
    margin: 0 0 clamp(1rem, 3vw, 1.5rem) 0;
    color: var(--primary-color);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.cta-section {
    margin-top: clamp(4rem, 8vw, 6rem) !important;
    text-align: center;
}

/* 包括的レスポンシブ対応 */
@media (max-width: 1024px) {
    .container {
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .timeline-flow::before {
        left: 1.75rem;
    }

    .timeline-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95vw;
    }

    .section {
        padding: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
    }
    
    .timeline-flow::before {
        left: 1.5rem;
    }

    .timeline-icon {
        width: 3rem;
        height: 3rem;
    }

    .timeline-content {
        margin-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .section {
        padding: 1.25rem;
    }
    
    .timeline-flow::before {
        left: 1.25rem;
    }

    .timeline-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .timeline-content {
        margin-left: 1rem;
        padding: 1.25rem;
    }
    
    .documents-info {
        padding: 1.5rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0.75rem;
    }
    
    .section {
        padding: 1rem;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* 縮小モーション対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

    .section,
    .timeline-content {
        border-width: 2px;
    }
}

/* アクセシビリティの向上 */
.cta-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* ローディング状態 */
.section {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

