/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* MGFactory Design System Variables */
:root {
    /* ブランドカラー */
    --brand-primary: #2563eb;
    --brand-secondary: #1e40af;
    --brand-accent: #ea580c;
    
    /* グレースケール - 明確な階層 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #475569;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #0f172a;
    
    /* セマンティックカラー */
    --white: #ffffff;
    --black: #000000;
    
    /* 背景カテゴリ */
    --bg-light: var(--gray-50);
    --bg-white: var(--white);
    --bg-alt: var(--gray-100);
    
    /* テキストカラー - 背景に応じた最適化（WCAG AA準拠） */
    --text-on-light-primary: var(--gray-950); /* コントラスト比 21:1 */
    --text-on-light-secondary: var(--gray-700); /* コントラスト比 8.87:1 */
    --text-on-light-tertiary: var(--gray-600); /* コントラスト比 5.74:1 */
    
    --text-on-dark-primary: var(--white); /* コントラスト比 21:1 */
    --text-on-dark-secondary: rgba(255, 255, 255, 0.9); /* より高いコントラスト */
    --text-on-dark-tertiary: rgba(255, 255, 255, 0.75); /* WCAG準拠の最低値 */
    
    /* 互換性のための旧変数 */
    --primary-color: var(--brand-primary);
    --secondary-color: var(--brand-secondary);
    --accent-color: var(--brand-accent);
    --text-primary: var(--text-on-light-primary);
    --text-secondary: var(--text-on-light-secondary);
    --text-light: var(--text-on-light-tertiary);
    --text-white: var(--white);
    --bg-section-alt: var(--bg-alt);
    --border-color: var(--gray-300);
    
    /* 影とトランジション */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ==========================================================================
   背景別テキスト色自動適用システム
   ========================================================================== */

/* 明るい背景セクション */
.about-section,
.business-section,
.achievements-section,
.company-section,
.contact-section {
    color: var(--text-on-light-primary);
}

.about-section *:not(.value-item):not(.value-item *),
.business-section *,
.achievements-section *,
.company-section *,
.contact-section * {
    color: inherit;
}

/* セカンダリテキスト */
.about-section .text-secondary,
.business-section .text-secondary,
.achievements-section .text-secondary,
.company-section .text-secondary,
.contact-section .text-secondary {
    color: var(--text-on-light-secondary) !important;
}

/* 暗い背景セクション */
.hero,
.future-vision-section,
.support-messages-section {
    color: var(--text-on-dark-primary);
}

/* セクションタイトル - 背景に応じた適切な色設定 */
.about-section .section-title,
.business-section .section-title,
.qolms-platform-section .section-title,
.achievements-section .section-title,
.integration-systems-section .section-title,
.company-section .section-title {
    color: var(--primary-color) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

/* 暗い背景のセクションタイトルは白文字 */
.future-vision-section .section-title,
.support-messages-section .section-title {
    color: #ffffff !important;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6);
    font-weight: 800;
}

.hero *,
.future-vision-section *,
.support-messages-section * {
    color: inherit;
}

/* セカンダリテキスト（暗い背景） */
.hero .text-secondary,
.future-vision-section .text-secondary,
.support-messages-section .text-secondary {
    color: var(--text-on-dark-secondary) !important;
}

/* カード内のテキスト */
.card,
.hospital-item,
.model-item,
.value-item,
.stat-item,
.achievement-item,
.integration-item,
.oem-feature,
.client-achievements {
    background: var(--bg-white);
    color: var(--text-on-light-primary);
}

.card *,
.hospital-item *,
.model-item *,
.value-item *,
.stat-item *,
.achievement-item *,
.integration-item *,
.oem-feature *,
.client-achievements * {
    color: inherit;
}

/* カード内セカンダリテキスト */
.card .text-secondary,
.hospital-item .text-secondary,
.model-item .text-secondary,
.value-item .text-secondary,
.stat-item .text-secondary,
.achievement-item .text-secondary,
.integration-item .text-secondary,
.oem-feature .text-secondary,
.client-achievements .text-secondary {
    color: var(--text-on-light-secondary) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);  /* 初期は半透明の黒 */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* スクロール時のナビゲーションリンクの色を明確に設定 */
.navbar.scrolled .nav-link {
    color: #1f2937;
    font-weight: 700;
    text-shadow: none;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

/* スクロール時のロゴテキスト色 */
.navbar.scrolled .logo-text {
    color: var(--primary-color);
    text-shadow: none;
}

.navbar.scrolled .logo-text:hover {
    color: var(--secondary-color);
}

/* 初期状態は白文字 */
.navbar .nav-link {
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 初期状態のホバー時は明るい青 */
.navbar .nav-link:hover {
    color: #60a5fa;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-text {
    font-size: 1.2rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-text:hover {
    color: #60a5fa;
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}



/* ヒーローセクション - クリーンで読みやすいデザイン */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 50px;
    overflow: hidden;
}

/* 背景動画スタイル - Vimeo iframe用 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero .bgmv {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* 動画の上にオーバーレイ効果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(30, 64, 175, 0.15) 100%
    );
    z-index: 2;
}

/* モバイルでの動画最適化 - iframe用 */
@media (max-width: 768px) {
    .video-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .hero .bgmv {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    
    .hero {
        /* フォールバック背景（動画読み込み前用） */
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }
}



.hero-content {
    text-align: center;
    color: var(--text-white);
    z-index: 3;
    position: relative;
    max-width: 900px;
    padding: 4rem 2rem;
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%, 
            rgba(255, 255, 255, 0.08) 100%
        ),
        rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-white);
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6);
}

.title-main {
    display: block;
    font-size: 4rem;
    color: var(--text-white);
    font-weight: 800;
}

.title-sub {
    display: block;
    font-size: 3rem;
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border-color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* セクション共通 */
section {
    padding: 100px 0;
    position: relative;
}

/* セクションの背景バリエーション - 明確な色分け */
section:nth-child(even) {
    background: var(--bg-white);
    color: var(--text-on-light-primary);
}

section:nth-child(odd) {
    background: var(--bg-light);
    color: var(--text-on-light-primary);
}

/* 明度とコントラストの改善 */
section .section-title {
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section .section-subtitle {
    color: #6b7280 !important; /* value-itemと同じ明るいグレー */
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary-color) !important;
}

/* PHRページ専用のタイトルスタイル - 一般設定を上書き */
.phr-explanation-section .section-title {
    color: #60a5fa !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* セクションサブタイトルは明るいグレーで統一 */
.section-subtitle {
    color: #6b7280 !important; /* value-itemと同じ明るいグレー */
}

/* 暗い背景でのセクションサブタイトル */
.hero .section-subtitle,
.future-vision-section .section-subtitle,
.support-messages-section .section-subtitle {
    color: var(--text-on-dark-secondary);
}

/* 企業理念セクション */
.about-section {
    background: var(--bg-light);
    position: relative;
    color: var(--text-on-light-primary);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(245, 101, 0, 0.02) 0%, rgba(43, 119, 201, 0.02) 100%);
    pointer-events: none;
}

.about-message {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    z-index: 2;
}

.about-message h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
    color: #2d3748 !important; /* より明るい文字色で視認性向上 */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-item {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: 2px solid #ffffff;
    color: #ffffff !important;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.value-item h4 {
    font-size: 1.3rem;
    color: #ffffff !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-item p {
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff !important; /* 白文字で明確に表示 */
}

/* 価値観アイテムテキストの色統一保証 - 最優先適用 */
.about-section .value-item p,
.about-section .values-grid .value-item p,
.value-item p,
.values-grid .value-item p {
    color: #ffffff !important; /* 白文字で明確に表示 */
    font-weight: 500 !important;
}

/* Value-item全体とその子要素を強制的に白文字に */
.value-item,
.value-item * {
    color: #ffffff !important;
}

/* 事業内容セクション - クリーンデザイン */
.business-section {
    background: var(--bg-alt);
    position: relative;
    color: var(--text-on-light-primary);
}













/* 事業内容セクションのテキストスタイル */
.business-section .section-title {
    color: var(--text-primary);
    font-weight: 800;
}

.business-section .section-subtitle {
    color: #6b7280 !important; /* value-itemと同じ明るいグレー */
    font-weight: 600;
}

.business-content {
    max-width: 1000px;
    margin: 0 auto;
}

.business-main {
    margin-bottom: 3rem;
}

.business-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: var(--transition);
    color: #0f172a;  /* より濃い黒色に変更 */
    box-shadow: var(--shadow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.business-item.featured {
    background: linear-gradient(135deg, rgba(245, 101, 0, 0.9), rgba(43, 119, 201, 0.9));
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(245, 101, 0, 0.3);
}

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    border-color: var(--primary-color);
}

.business-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--text-white);
}

.business-item.featured .business-icon {
    background: var(--accent-color);
    color: var(--text-white);
}

.business-item:not(.featured) .business-icon {
    background: var(--secondary-color);
    color: var(--text-white);
}

.business-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* featuredアイテムのみ白文字を保持 */
.business-item.featured .business-info h3,
.business-item.featured h3 {
    color: #ffffff !important;
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
}

.business-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* featuredアイテムのみ白文字を保持 */
.business-item.featured .business-description,
.business-item.featured p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.business-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.business-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* featuredアイテムのリストは白文字を保持 */
.business-item.featured .business-features li {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* featuredアイテム内すべてのテキストを白色に統一 */
.business-item.featured * {
    color: #ffffff !important;
}

.business-item.featured .business-features i {
    color: #fbbf24 !important; /* アイコンは金色 */
}

.business-features i {
    color: var(--accent-color);
}

.business-sub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* 実績セクション */
.achievements-section {
    background: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: 2px solid #e2e8f0;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important; /* 明るい白色で視認性向上 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.achievements-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    flex: 1;
    margin: 0 2rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #ffffff !important; /* デスクトップでも白色 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* 企業の将来性セクション */
.future-vision-section {
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.future-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            135deg,
            #1a365d 0%,
            #2c5282 25%,
            #2b77c9 50%,
            #1a365d 75%,
            #2c5282 100%
        ),
        radial-gradient(
            circle at 25% 25%,
            rgba(245, 101, 0, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(43, 119, 201, 0.3) 0%,
            transparent 50%
        );
    background-size: 100% 100%, 600px 600px, 400px 400px;
    animation: futureGradientMove 25s ease-in-out infinite;
    z-index: -1;
}

@keyframes futureGradientMove {
    0%, 100% {
        background-position: 0% 0%, 25% 25%, 75% 75%;
    }
    50% {
        background-position: 100% 100%, 75% 75%, 25% 25%;
    }
}

.future-vision-section .section-title {
    color: #ffffff !important;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6);
    font-weight: 800;
}

.future-vision-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.7),
        0 0 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.vision-message {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vision-message h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.vision-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.vision-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.market-outlook {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.market-outlook h3 {
    text-align: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.outlook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.outlook-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.outlook-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.outlook-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #f6ad55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.outlook-content h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
}

.outlook-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
}

.highlight-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    transition: var(--transition);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.highlight-item h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
}

.highlight-item i {
    color: var(--accent-color);
    filter: brightness(1.2);
}

/* 会社概要セクション */
.company-section {
    background: var(--bg-light);
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.company-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    width: 30%;
    text-align: left;
}

.company-table td {
    background: white;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.certifications {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.certification-logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.certification-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* お問い合わせセクション */
.contact-section {
    background: var(--bg-light);
}

.contact-section .section-subtitle {
    color: #6b7280 !important; /* value-itemと同じ明るいグレー */
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* お問い合わせの注意事項を黒色で強制表示 */
.notice-content h5,
.notice-content p {
    color: #1a202c !important; /* PC・モバイル統一で黒色 */
}

/* お問い合わせ外部リンクスタイル */
.contact-external {
    display: flex;
    justify-content: center;
    align-items: center;
}

.external-contact-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.external-contact-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.external-contact-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* 単一項目用の中央配置 */
.contact-features .feature-item:only-child {
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-notice {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff8f0 0%, #fef6f0 100%);
    border-radius: 12px;
    border: 1px solid #f0e6d6;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.notice-item i {
    color: #e67e22;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.notice-content h5 {
    color: #1a202c !important; /* 黒色で明確な視認性 */
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.notice-content p {
    color: #1a202c !important; /* 黒色で明確な視認性 */
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 15px 30px;
    margin: 1.5rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(44, 82, 130, 0.3);
}

.external-note {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.external-note i {
    color: var(--primary-color);
}

/* フッター */
.footer {
    background: 
        linear-gradient(
            135deg,
            var(--text-primary) 0%,
            #2c5282 50%,
            var(--text-primary) 100%
        );
    color: #ffffff;
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-logo-text:hover {
    color: #fbbf24;
    transform: scale(1.02);
}

.footer-info {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* ユーティリティクラス */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* コンセプトムービーセクション */
.concept-movie-section {
    background: var(--bg-white);
}

.concept-movie-content {
    max-width: 1000px;
    margin: 0 auto;
}

.movie-message {
    text-align: center;
    margin-bottom: 3rem;
}

.movie-message h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.movie-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.movie-container {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper iframe.video-frame {
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.video-wrapper iframe.video-frame:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper iframe.lazy-video + ::before {
    opacity: 1;
}

.movie-description h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movie-description i {
    color: var(--accent-color);
}

.movie-description p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 応援メッセージセクション - 暗い背景で統一 */
.support-messages-section {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: var(--text-on-dark-primary);
}

.support-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.support-intro h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.support-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff !important; /* 白色で明確な視認性 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.message-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.message-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.message-item .video-wrapper {
    margin-bottom: 1.5rem;
}

.message-description h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-description i {
    color: #e53e3e;
}

.message-description p {
    color: var(--text-on-light-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.support-cta {
    text-align: center;
    margin-top: 3rem;
}

.support-note {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    display: inline-block;
    max-width: 600px;
    font-size: 0.95rem;
    color: var(--text-on-light-primary);
    line-height: 1.6;
}

.support-note i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* QOLMSプラットフォーム詳細セクション */
.qolms-platform-section {
    background: var(--bg-white);
    position: relative;
}

.qolms-platform-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 119, 201, 0.02) 0%, rgba(245, 101, 0, 0.02) 100%);
    pointer-events: none;
}

.qolms-concept {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.qolms-concept h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.qolms-concept p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748 !important; /* より明るい文字色で視認性向上 */
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    color: var(--text-on-light-primary);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0; /* サイズ維持 */
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color) !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #4a5568 !important;
    line-height: 1.6;
    font-weight: 500;
}

/* QOLMS説明セクション専用スタイル */
.qolms-features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.qolms-features .feature-item {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-on-light-primary);
}

.qolms-features .feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.qolms-features .feature-item h4 {
    color: var(--primary-color) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.qolms-features .feature-item p {
    color: #4a5568 !important;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 500;
}

/* QOLMS導入実績セクション */
.qolms-achievements-section {
    background: var(--bg-light);
    position: relative;
}

.qolms-achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 119, 201, 0.02) 0%, rgba(245, 101, 0, 0.02) 100%);
    pointer-events: none;
}

.service-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    color: #ffffff !important; /* 明るい白色で視認性向上 */
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.category-title i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* 病院実績 */
.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hospital-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.hospital-item.featured {
    border: 3px solid var(--accent-color);
    background: linear-gradient(135deg, #fef7f0 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(245, 101, 0, 0.2);
    transform: scale(1.02);
}

.hospital-item.featured::before {
    content: '注目事例';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hospital-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.hospital-item.featured:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(245, 101, 0, 0.25);
}

.hospital-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hospital-location {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-on-light-secondary);
}

.hospital-location::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
}

.case-study-badge {
    background: linear-gradient(135deg, #4299e1, #2c5282);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.case-study-badge:hover {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    color: white;
}

.case-study-badge i {
    margin-right: 0.5rem;
}

.case-study-badge small {
    display: block;
    margin-top: 0.3rem;
    opacity: 0.9;
    font-size: 0.75rem;
}

.hospital-description {
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 500;
}

/* 医療ナビ事業モデル */
.service-model {
    background: #ffffff !important;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    color: var(--text-on-light-primary);
}

.model-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 280px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.model-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.model-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.model-icon.patient {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.model-icon.hospital {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.model-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-on-light-primary) !important;
}

/* 医療ナビセクションの見出し配色 */
.service-category .model-item:has(.model-icon.patient) .model-content h4 {
    color: #059669;
    font-weight: 700;
}

.service-category .model-item:has(.model-icon.hospital) .model-content h4 {
    color: #dc2626;
    font-weight: 700;
}

/* モデルコンテンツの説明文 */
.model-content p {
    font-weight: 500;
    line-height: 1.6;
    color: #4a5568 !important;
    font-size: 0.95rem;
}

/* 詳細導入実績セクション */
.detailed-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-achievements {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.client-achievements:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.client-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-section-alt);
}

.client-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.client-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.client-location {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ca3af !important; /* 明るいグレー色 */
}

.achievement-list {
    display: grid;
    gap: 0.8rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.achievement-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0faff 100%);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.achievement-item:hover span {
    color: #1f2937 !important; /* ホバー時はより濃い色 */
}

.achievement-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.achievement-item span {
    font-weight: 600;
    font-size: 1rem;
    color: #9ca3af !important; /* 明るいグレー色 */
}

.achievement-link {
    margin-left: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.achievement-link:hover {
    color: var(--secondary-color);
    transform: translateX(2px);
}

.achievement-link i {
    font-size: 0.8rem;
}

.achievement-detail {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280 !important;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* QOLMS Viewer セクション */
.viewer-description {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.viewer-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.viewer-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-on-light-primary);
}

.viewer-implementations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.implementation-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.implementation-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.implementation-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.implementation-content p {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
}

.implementation-detail {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

/* 連携システムセクション */
.integration-systems-section {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: var(--text-on-dark-primary);
}

.integration-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.integration-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff !important; /* 白色で明確な視認性 */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.integration-intro p {
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ffffff !important; /* 純白で最高のコントラスト */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.integration-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.integration-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.integration-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.integration-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff !important; /* 純白で暗い背景に対応 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 影を追加して視認性向上 */
}

.integration-info p {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff !important; /* 白色で暗い背景に対応 */
}


/* 参加団体スタイル */
.organization-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.organization-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--bg-section-alt);
}

.organization-item:last-child {
    border-bottom: none;
}

.organization-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.organization-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* PHR説明ページのスタイル */
/* PHRページ - ダークテーマ */
.phr-explanation-section {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-on-dark-primary);
    min-height: 100vh;
}

/* PHRページ - ダークテーマ用スタイル */

/* メインタイトル - PHR定義と同じ色（最優先設定） */
.phr-explanation-section .section-title,
.phr-explanation-section h1,
.phr-explanation-section h1.section-title,
section.phr-explanation-section h1.section-title {
    color: #60a5fa !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-weight: 700 !important;
}

/* セクションタイトル - 単一データソース型と同じ色 */
.phr-explanation-section .phr-section-title,
.phr-explanation-section h2:not(.phr-definition h2) {
    color: #60a5fa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* セクションサブタイトル */
.phr-explanation-section .section-subtitle {
    color: var(--text-on-dark-secondary);
}

/* セクションヘッダー */
.phr-explanation-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}



/* ダークテーマ用テキスト色設定 */

/* 分類体系のヘッダー - 単一データソース型と同じ色 */
.classification-header h3 {
    color: #60a5fa !important;
    font-weight: 600 !important;
}
.classification-item h4 {
    color: #60a5fa;
}
.classification-item p,
.classification-item li {
    color: var(--text-on-dark-secondary);
}
.classification-header i {
    color: #60a5fa;
}

/* ユーザータイプリスト - 健診データと同じ色 */
.user-types li {
    color: var(--text-on-dark-secondary);
}

/* 機能項目のタイトル - 単一データソース型と同じ色 */
.function-item h3 {
    color: #60a5fa;
}
.function-item p {
    color: var(--text-on-dark-secondary);
}

/* 事業パターンのコンテンツ */
.pattern-content > div {
    background: rgba(96, 165, 250, 0.1);
    border-left: 3px solid #60a5fa;
    color: var(--text-on-dark-secondary);
}
.pattern-content strong {
    color: #60a5fa;
}

/* 成熟度モデル */
.level-content h3 {
    color: var(--text-on-dark-primary);
}
.level-content p {
    color: var(--text-on-dark-secondary);
}

/* KPI体系 */
.kpi-category h3 {
    color: #60a5fa;
}
.kpi-category li {
    color: var(--text-on-dark-secondary);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* 発展方向性 */
.direction-item h3 {
    color: #60a5fa;
}
.direction-item p,
.direction-item li {
    color: var(--text-on-dark-secondary);
}

/* 特別な要素は白文字を維持 */
.pattern-header,
.pattern-header * {
    color: white !important;
}
.level-number {
    color: white !important;
}
.function-icon,
.function-icon * {
    color: white !important;
}

.phr-intro {
    margin-bottom: 4rem;
}

.phr-definition {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid #60a5fa;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phr-definition h2 {
    color: #60a5fa;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.definition-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-on-dark-primary);
    font-weight: 500;
}

.phr-section-title {
    font-size: 2.2rem;
    color: #111827;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.phr-section-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* 分類体系 */
.phr-classification {
    margin-bottom: 4rem;
}

.classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.classification-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.classification-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.classification-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-section-alt);
}

.classification-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.classification-header h3 {
    color: #60a5fa !important;
    font-size: 1.3rem;
    font-weight: 600;
}

.classification-type {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #60a5fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.classification-type h4 {
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.classification-type p {
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-on-dark-secondary);
}

.user-types {
    list-style: none;
    padding: 0;
}

.user-types li {
    padding: 0.5rem 0;
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-on-dark-secondary);
}

.user-types li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 主要機能領域 */
.phr-functions {
    margin-bottom: 4rem;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.function-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.function-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.function-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-white);
    font-size: 2rem;
}

.function-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #60a5fa !important;
}

.function-item p {
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-on-dark-secondary) !important;
    font-size: 1rem;
}

/* 事業パターン */
.business-patterns {
    margin-bottom: 4rem;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pattern-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.pattern-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pattern-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pattern-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.pattern-content > div {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
    border-left: 3px solid #60a5fa;
    font-weight: 600;
    color: var(--text-on-dark-secondary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pattern-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 成熟度モデル */
.interoperability-model {
    margin-bottom: 4rem;
}

.maturity-levels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.level-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.level-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.level-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #60a5fa !important;
}

.level-content p {
    font-weight: 600;
    margin: 0;
    color: var(--text-on-dark-secondary) !important;
}

/* KPI体系 */
.kpi-system {
    margin-bottom: 4rem;
}

.kpi-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.kpi-category {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.kpi-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.kpi-category h3 {
    color: #60a5fa !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kpi-category ul {
    list-style: none;
    padding: 0;
}

.kpi-category li {
    padding: 0.5rem 0;
    font-weight: 600;
    color: var(--text-on-dark-secondary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-category li:last-child {
    border-bottom: none;
}

/* 発展方向性 */
.future-direction {
    margin-bottom: 4rem;
}

.direction-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.direction-item {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.direction-item h3 {
    color: #60a5fa !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.direction-item p {
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-on-dark-secondary) !important;
}

.direction-item ul {
    font-weight: 500;
    padding-left: 1.5rem;
}

.direction-item li {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-on-dark-secondary) !important;
}

/* 結論 */
.phr-conclusion {
    margin-bottom: 4rem;
}

.conclusion-content {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid #f59e0b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conclusion-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-on-dark-primary);
}

.conclusion-content p:last-child {
    margin-bottom: 0;
}

/* 戻るボタン */
.back-to-site {
    text-align: center;
    margin-top: 3rem;
}

.price-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.8rem;
}

/* 医療ナビセクション専用の価格タグ配色 */
.service-category .model-item:has(.model-icon.patient) .price-tag {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.service-category .model-item:has(.model-icon.hospital) .price-tag {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.model-arrow {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 0 1rem;
}

.business-benefits {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.business-benefits h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.business-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.business-benefits li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-on-light-primary) !important;
}

.business-benefits i {
    color: #38a169;
    font-size: 1.1rem;
}

/* OEM事業 */
.oem-description {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.oem-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.oem-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-on-light-primary);
}

.oem-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.oem-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.oem-feature i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.3rem;
}

.oem-feature h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.oem-feature p {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    color: #ffffff !important; /* 白色で暗い背景に対応 */
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* スクロール時のアニメーション */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* PHRインサイトセクション */
.phr-insight-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem 2rem; /* 上下と左右にパディングを追加 */
    margin: 4rem 2rem; /* 左右にマージンを追加してセクション間の余白確保 */
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.phr-insight-header {
    text-align: center;
    margin-bottom: 3rem;
}

.phr-insight-header h3 {
    font-size: 2rem;
    color: #1f2937 !important; /* 濃い色でタイトルを強調 */
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.phr-insight-header h3 i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.phr-insight-subtitle {
    font-size: 1.1rem;
    color: #1f2937 !important; /* 濃い色で明るい背景に対応 */
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.phr-insight-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 2rem; /* 外側に左右の余白を追加 */
}

.phr-insight-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.phr-insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-text h4 {
    color: #1f2937 !important; /* 濃い色で明るい背景に対応 */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.insight-text p {
    color: #4b5563 !important; /* 中間グレーで明るい背景に適した視認性 */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.phr-detail-link {
    text-align: center;
}

.phr-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #d97706);
    color: var(--text-white);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(245, 101, 0, 0.3);
    transition: var(--transition);
    border: 3px solid transparent;
}

.phr-detail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 101, 0, 0.4);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #d97706, var(--accent-color));
}

.phr-detail-btn i {
    font-size: 1rem;
    transition: var(--transition);
}

.phr-detail-btn:hover i {
    transform: translateX(5px);
}

.detail-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-on-light-secondary);
    font-style: italic;
    max-width: 500px;
    margin: 1rem auto 0;
}

/* ==========================================================================
   プライバシーポリシーページ固有スタイル
   ========================================================================== */

.privacy-policy-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    min-height: 100vh;
    color: var(--text-on-dark-primary);
}

.privacy-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.privacy-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.privacy-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.privacy-updated {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #60a5fa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0 1rem 0;
}

.privacy-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.privacy-subsection {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ea580c;
}

.privacy-subsection h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.privacy-list {
    margin: 1rem 0 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.privacy-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-list.numbered {
    list-style-type: decimal;
}

/* プライバシーポリシー専用テーブル */
.privacy-table-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-table th,
.privacy-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-table th {
    background: rgba(37, 99, 235, 0.8);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.privacy-table td {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-table tr:last-child td {
    border-bottom: none;
}

.contact-info {
    margin: 2rem 0;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-table th,
.contact-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-table th {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    font-weight: 600;
    width: 120px;
}

.contact-table td {
    color: rgba(255, 255, 255, 0.85);
}

.contact-table tr:last-child th,
.contact-table tr:last-child td {
    border-bottom: none;
}

.signature {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #60a5fa;
    text-align: right;
}

.company-signature {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ea580c;
    text-align: center;
}

/* プライバシーポリシーのリンク */
.privacy-section a {
    color: #60a5fa;
    text-decoration: underline;
}

.privacy-section a:hover {
    color: #93c5fd;
}

/* ==========================================================================
   iOS Safari と Facebook In-App Browser 修正
   ========================================================================== */

/* iOS Safari のビューポート問題修正 */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* iOS Safari の100vh問題修正 */
.hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

/* Facebook In-App Browser 修正 */
@media screen and (max-width: 768px) {
    /* Facebook アプリ内ブラウザでのフォント問題 */
    body, html {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif !important;
    }
    
    /* Facebook アプリ内でのレイアウト崩れ防止 */
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* iOS Safari のバウンススクロール問題 */
    body {
        position: relative;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* iOS のセーフエリア対応 */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Facebook In-App Browser でのビデオ問題修正 */
.bgmv {
    -webkit-playsinline: true;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* iOS でのクリック遅延問題修正 */
button, 
.btn, 
.nav-link, 
.logo-text,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* iOS でのスクロールパフォーマンス向上 */
.hero-content,
.section,
.privacy-section {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}
/* ===============================
   PHRページ専用スタイル
   =============================== */

/* 目次スタイル */
.table-of-contents {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0 3rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.table-of-contents h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents nav ol {
    list-style: none;
    counter-reset: item;
    padding: 0;
}

.table-of-contents nav ol li {
    counter-increment: item;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.table-of-contents nav ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.table-of-contents nav ol li a {
    color: var(--text-on-light-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 0.3rem 0;
}

.table-of-contents nav ol li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* パンくずリスト */
.breadcrumb {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-on-light-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 定義ハイライト */
.definition-highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.definition-highlight .definition-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-on-light-primary);
}

/* キーポイント */
.key-points {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* 緑の背景に変更 */
    border: 2px solid #059669;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    color: #ffffff; /* 白文字を明示 */
}

.key-points h3 {
    color: #ffffff; /* 白文字 */
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.key-points ul {
    list-style: none;
    padding: 0;
}

.key-points ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: #ffffff; /* 白文字 */
    font-weight: 500;
}

.key-points ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffffff; /* 白いチェックマーク */
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 比較グリッド */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-item {
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.comparison-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.comparison-item.phr-item {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid var(--primary-color);
}

.comparison-item.emr-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.comparison-item.ehr-item {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.comparison-item h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.comparison-item h3 small {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.comparison-content p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.comparison-content strong {
    color: var(--primary-color);
}

/* 実装ガイド */
.implementation-steps {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%); /* 青い背景 */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    border-left: 4px solid #1e3a8a;
    color: #ffffff; /* 白文字を明示 */
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #ffffff; /* 白文字 */
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    color: #ffffff; /* 白文字 */
    font-weight: 400;
}

.step-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ffffff; /* 白い矢印 */
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 実装のコツ */
.implementation-tips {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.implementation-tips h3 {
    color: #10b981;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.tip-item h4 {
    color: #10b981;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.tip-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-on-light-secondary);
}

/* トレンドリスト */
.trend-2024 {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 2px solid #8b5cf6;
    border-radius: 15px;
    padding: 2rem;
}

.trend-2024 h3 {
    color: #8b5cf6;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trend-list {
    list-style: none;
    padding: 0;
}

.trend-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: #111827; /* 黒文字 */
    font-weight: 500;
}

.trend-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* 未来のビジョン */
.future-vision {
    background: linear-gradient(135deg, #fef7cd 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.future-vision h3 {
    color: #f59e0b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.future-benefits {
    list-style: none;
    padding: 0;
}

.future-benefits li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.future-benefits li::before {
    content: '🚀';
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* 企業コミットメント */
.company-commitment {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.company-commitment h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

/* PHRページのレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .table-of-contents {
        padding: 1.5rem;
        margin: 1.5rem 0 2rem;
    }
    
    .table-of-contents h2 {
        font-size: 1.3rem;
    }
    
    .table-of-contents nav ol li {
        padding-left: 2.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-item {
        padding: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
        color: #ffffff !important; /* モバイルでも白文字維持 */
    }
    
    .step-content h3,
    .step-content ul li {
        color: #ffffff !important;
    }
    
    .step-number {
        align-self: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tip-item {
        padding: 1rem;
    }
    
    .implementation-tips {
        padding: 1.5rem;
    }
    
    .definition-highlight {
        padding: 1.5rem;
    }
    
    .key-points {
        padding: 1.5rem;
        color: #ffffff !important; /* モバイルでも白文字維持 */
    }
    
    .key-points h3,
    .key-points ul li {
        color: #ffffff !important;
    }
    
    .future-vision {
        padding: 1.5rem;
    }
    
    .company-commitment {
        padding: 1.5rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}
