/* ============================================
   2026年最新デザイン - コンサルティング企業向け
   ============================================ */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #00aaff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ナビゲーション */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.25rem;
}

.navbar-brand img {
    height: 32px;
    max-height: 32px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 28px;
        max-height: 28px;
    }
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* ヒーローセクション */
.hero-section {
    min-height: 100vh;
    padding-top: 76px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* 実績セクション */
#achievements {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.achievement-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
}

/* サービスカード */
.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.card-img-wrapper {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-overlay {
    opacity: 0.6;
}

.card-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: translate(-50%, -50%) scale(1.2);
}

/* セクション間隔 */
section {
    padding: 5rem 0;
}

/* ボタン */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* スクロールインジケーター */
.scroll-indicator {
    animation: bounce 2s infinite;
}

/* 会社概要 */
.about-info dt {
    font-weight: 600;
    color: var(--text-muted);
}

.about-info dd {
    margin-bottom: 1rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* アクセシビリティ */
:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* 読み込み最適化 */
img {
    max-width: 100%;
    height: auto;
}

/* パフォーマンス */
.service-card,
.achievement-item {
    will-change: transform;
}

/* 画像の最適化 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* スキップリンク（アクセシビリティ） */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* プリロード（重要なリソース） */
.hero-section {
    content-visibility: auto;
}

/* セキュリティアイコン */
.security-icon-wrapper {
    padding: 2rem;
}

/* フォームスタイル */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

