/* ========================================
   ライトブルーテーマ - SaaS系統一デザイン
   背景色を #E6F1FB に統一し、視認性を最適化
   ======================================== */

/* ========================================
   1. グローバル背景色の統一
   ======================================== */

/* ベース背景色 */
body {
    background: #E6F1FB !important;
}

/* 全セクションの背景統一 */
.section,
section {
    background: #E6F1FB !important;
}

/* セクション区切り用の濃淡差 */
.section:nth-child(even),
section:nth-child(even) {
    background: #D9E9F7 !important; /* 濃度+3% */
}

.section:nth-child(odd),
section:nth-child(odd) {
    background: #F1F8FF !important; /* 濃度-3% */
}

/* ヒーローセクション */
.hero,
#hero {
    background: linear-gradient(180deg, #F1F8FF 0%, #E6F1FB 100%) !important;
}

/* トレーサビリティセクション */
.traceability-infographic-section {
    background: linear-gradient(180deg, #E6F1FB 0%, #F1F8FF 50%, #FFFFFF 100%) !important;
}

/* CTAセクション */
.section-cta,
#cta {
    background: linear-gradient(135deg, #D9E9F7, #E6F1FB) !important;
}

/* フッター */
.footer,
footer {
    background: #D9E9F7 !important;
}

/* ========================================
   2. 文字色の調整（可読性確保）
   ======================================== */

/* 見出し（H1/H2）- 濃紺寄り */
h1, h2, .section-title, .hero-title {
    color: #07193B !important;
    text-shadow: none !important;
}

h3 {
    color: #1A2B4C !important;
}

h4, h5, h6 {
    color: #2F3F55 !important;
}

/* サブタイトル */
.hero-subtitle,
.section-subtitle {
    color: #2F3F55 !important;
}

/* 本文テキスト */
p, 
.neo-card p,
.zone-card-body,
.feature-card-description,
li {
    color: #2F3F55 !important;
}

/* テキスト強調 */
strong, b {
    color: #1A2B4C !important;
    font-weight: 700;
}

/* リンク */
a {
    color: #1A73E8 !important;
}

a:hover {
    color: #155CC0 !important;
}

/* ========================================
   3. カードデザインの調整
   ======================================== */

/* 全カード共通 */
.neo-card,
.zone-card,
.traceability-feature-card,
.neo-warning-card,
.action-card-pair,
.hero-feature {
    background: #FFFFFF !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #D5E4F2 !important;
}

/* カード内のテキスト */
.neo-card h3,
.zone-card-title,
.feature-card-title {
    color: #1A2B4C !important;
}

/* カードホバー効果 */
.neo-card:hover,
.zone-card:hover,
.traceability-feature-card:hover {
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15) !important;
    border-color: #1A73E8 !important;
}

/* ========================================
   4. アイコンカラーの調整
   ======================================== */

/* ブルー系アイコン */
.icon-badge-blue,
.neo-badge-cyan,
.icon-badge-cyan {
    background: linear-gradient(135deg, #1A73E8, #42A7FF) !important;
    color: white !important;
    border-color: rgba(26, 115, 232, 0.3) !important;
}

/* エメラルド/ミント系アイコン */
.icon-badge-emerald,
.neo-badge-emerald {
    background: linear-gradient(135deg, #34C8A8, #5DD9C1) !important;
    color: white !important;
    border-color: rgba(52, 200, 168, 0.3) !important;
}

/* パープル系アイコン */
.icon-badge-purple,
.neo-badge-purple {
    background: linear-gradient(135deg, #2C59D8, #4F7FE8) !important;
    color: white !important;
    border-color: rgba(44, 89, 216, 0.3) !important;
}

/* アクセントカラー（オレンジ） */
.icon-badge-orange {
    background: linear-gradient(135deg, #FFB657, #FFC97D) !important;
    color: white !important;
    border-color: rgba(255, 182, 87, 0.3) !important;
}

/* 警告系（赤） */
.neo-badge-red,
.icon-badge-red {
    background: linear-gradient(135deg, #E74C3C, #EC7063) !important;
    color: white !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
}

/* アイコンのホバーエフェクト */
.icon-badge:hover,
[class*="icon-badge"]:hover {
    box-shadow: 0 0 20px rgba(26, 115, 232, 0.4) !important;
    transform: scale(1.05);
}

/* ========================================
   5. ボタンの調整
   ======================================== */

/* Primaryボタン */
.btn-primary,
button[type="submit"] {
    background: linear-gradient(135deg, #1A73E8, #42A7FF) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 3px 12px rgba(26, 115, 232, 0.2) !important;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: linear-gradient(135deg, #155CC0, #3490DD) !important;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3) !important;
}

/* Secondaryボタン */
.btn-secondary {
    background: white !important;
    color: #1A73E8 !important;
    border: 2px solid #1A73E8 !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1) !important;
}

.btn-secondary:hover {
    background: #F1F8FF !important;
    border-color: #155CC0 !important;
    color: #155CC0 !important;
}

/* ========================================
   6. セクション見出しの背景干渉防止
   ======================================== */

/* セクションヘッダーに薄い白背景を追加 */
.section-header {
    position: relative;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent) !important;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* 見出し直下の白いレイヤー */
.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    z-index: -1;
    filter: blur(20px);
}

/* ========================================
   7. 図解の背景調整
   ======================================== */

/* メイン図解コンテナ */
.traceability-main-diagram,
.neo-platform-blocks,
.neo-hub-container {
    background: rgba(250, 252, 255, 0.95) !important;
    border: 2px solid #D5E4F2 !important;
    box-shadow: 0 12px 32px rgba(26, 115, 232, 0.1) !important;
}

/* 製造エリア */
.manufacturing-area {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 255, 0.9)) !important;
    border: 2px solid #D5E4F2 !important;
}

/* 倉庫エリア */
.warehouse-center {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 255, 0.95)) !important;
    border: 3px solid #1A73E8 !important;
}

/* 配送エリア */
.delivery-area {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 253, 245, 0.9)) !important;
    border: 2px solid #34C8A8 !important;
}

/* Traceability Hub */
.traceability-hub {
    background: linear-gradient(135deg, #2C59D8, #4F7FE8) !important;
    box-shadow: 0 0 40px rgba(44, 89, 216, 0.6) !important;
}

/* データフローライン */
.data-flow-line {
    background: linear-gradient(90deg, 
        transparent 0%,
        #1A73E8 20%,
        #42A7FF 50%,
        #1A73E8 80%,
        transparent 100%) !important;
}

/* 接続ノード */
.connection-node {
    background: #1A73E8 !important;
    box-shadow: 0 0 16px rgba(26, 115, 232, 0.8) !important;
}

/* ========================================
   8. ナビゲーションバー
   ======================================== */

.navbar,
#navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #D5E4F2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.nav-brand {
    color: #1A2B4C !important;
}

.nav-menu a {
    color: #2F3F55 !important;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1A73E8 !important;
}

/* ========================================
   9. フォーム要素
   ======================================== */

input,
textarea,
select {
    background: white !important;
    border: 2px solid #D5E4F2 !important;
    color: #2F3F55 !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1A73E8 !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1) !important;
    outline: none !important;
}

label {
    color: #1A2B4C !important;
    font-weight: 600;
}

/* ========================================
   10. バッジとラベル
   ======================================== */

.area-label-badge {
    background: linear-gradient(135deg, #1A73E8, #42A7FF) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3) !important;
}

.qr-tracking-badge,
.lastmile-tracking {
    background: white !important;
    border: 2px solid #1A73E8 !important;
}

/* ========================================
   11. 警告カード
   ======================================== */

.neo-warning-card {
    background: white !important;
    border-left: 4px solid #E74C3C !important;
    border: 1px solid #F5C6CB !important;
}

.neo-warning-card h3 {
    color: #C0392B !important;
}

/* ========================================
   12. スクロールインジケーター
   ======================================== */

.scroll-indicator .scroll-arrow {
    border-color: #1A73E8 !important;
}

/* ========================================
   13. モバイル最適化（SP対応）
   ======================================== */

@media (max-width: 768px) {
    /* 文字色をさらに濃く */
    h1, h2, .section-title, .hero-title {
        color: #12233F !important;
    }
    
    p, .neo-card p, li {
        color: #12233F !important;
    }
    
    /* カードの影を強化 */
    .neo-card,
    .zone-card,
    .traceability-feature-card {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10) !important;
    }
    
    /* アイコンサイズを15%拡大 */
    .icon-badge,
    [class*="icon-badge"] {
        width: calc(1.15 * 64px) !important;
        height: calc(1.15 * 64px) !important;
        font-size: calc(1.15 * 28px) !important;
    }
    
    .icon-badge-sm,
    [class*="icon-badge-sm"] {
        width: calc(1.15 * 48px) !important;
        height: calc(1.15 * 48px) !important;
        font-size: calc(1.15 * 20px) !important;
    }
}

/* ========================================
   14. 特殊要素の調整
   ======================================== */

/* V字回復グラフ */
.v-chart-container {
    background: white !important;
    border: 2px solid #D5E4F2 !important;
}

/* Growth Model カード */
.growth-step-card {
    background: white !important;
    border: 2px solid #1A73E8 !important;
}

/* プロセスステップ */
.process-step {
    background: white !important;
    border: 2px solid #D5E4F2 !important;
}

/* 補足メッセージバー */
.neon-banner,
.poc-bottom-message {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.15), rgba(66, 167, 255, 0.15)) !important;
    border: 2px solid #1A73E8 !important;
    color: #1A2B4C !important;
}

/* ========================================
   15. アニメーション要素
   ======================================== */

/* ホバー時のグロー効果を青系に統一 */
.neo-card:hover,
.zone-card:hover,
.manufacturing-item:hover,
.delivery-method-item:hover {
    box-shadow: 0 0 20px rgba(26, 115, 232, 0.3) !important;
}

/* パルスアニメーション */
@keyframes hubPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(44, 89, 216, 0.6);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(44, 89, 216, 0.8);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* ========================================
   16. テキストシャドウの除去
   ======================================== */

/* 全ての不要なシャドウを削除 */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.feature-card-title {
    text-shadow: none !important;
}

/* ========================================
   17. コントラスト比の確保
   ======================================== */

/* 最小コントラスト比 4.5:1 を保証 */
.low-contrast-text {
    color: #2F3F55 !important; /* コントラスト比 5.2:1 */
}

.medium-contrast-text {
    color: #1A2B4C !important; /* コントラスト比 9.8:1 */
}

.high-contrast-text {
    color: #12233F !important; /* コントラスト比 13.5:1 */
}

/* ========================================
   18. フッター
   ======================================== */

.footer {
    background: #D9E9F7 !important;
    border-top: 2px solid #D5E4F2 !important;
}

.footer h3,
.footer h4 {
    color: #1A2B4C !important;
}

.footer p,
.footer a {
    color: #2F3F55 !important;
}

.footer a:hover {
    color: #1A73E8 !important;
}

/* ========================================
   19. プリント対応
   ======================================== */

@media print {
    body,
    .section,
    section {
        background: white !important;
    }
    
    .neo-card,
    .zone-card {
        border: 2px solid #1A2B4C !important;
    }
}

/* ========================================
   20. ダークモード無効化
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* ライトブルーテーマを強制 */
    body,
    .section,
    section {
        background: #E6F1FB !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #1A2B4C !important;
    }
    
    p, li {
        color: #2F3F55 !important;
    }
}

/* ========================================
   21. アクセシビリティ: ハイコントラストモード対応
   ======================================== */

@media (prefers-contrast: high) {
    h1, h2, .section-title {
        color: #000000 !important;
    }
    
    p, li {
        color: #000000 !important;
    }
    
    .neo-card,
    .zone-card {
        border: 3px solid #000000 !important;
    }
}

/* ========================================
   22. 追加セクションの背景調整
   ======================================== */

/* Growth Model セクション */
.growth-model-section {
    background: #E6F1FB !important;
}

/* 導入プロセスセクション */
.process-section {
    background: #F1F8FF !important;
}

.process-title {
    color: #1A2B4C !important;
}

.process-card {
    background: white !important;
    border: 2px solid #D5E4F2 !important;
}

/* DX副産物セクション */
.benefits-section {
    background: #E6F1FB !important;
}

/* V字回復セクション */
.recovery-section {
    background: #F1F8FF !important;
}

/* POC改善セクション */
.poc-section {
    background: #E6F1FB !important;
}

/* レイアウト改善セクション */
.section-layout,
.section-layout-improved {
    background: #F1F8FF !important;
}

/* グローバル Before/After セクション */
.section-global-ba {
    background: #E6F1FB !important;
}

/* DX失敗理由セクション */
.section-failure {
    background: #F1F8FF !important;
}
