/* カスタムスタイルシート */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* グローバルスタイル */
body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #212529;
}

/* 文字のコントラスト改善 */
.text-muted {
    color: #495057 !important;
}

section .text-muted {
    color: #6c757d !important;
}

.feature-card .text-muted,
.target-card .text-muted,
.current-feature-card .text-muted {
    color: #495057 !important;
}

h2, h3, h4, h5 {
    color: #212529 !important;
}

p {
    color: #495057;
}

/* ヒーローセクション - 背景はそのまま、テキストのコントラストだけ改善 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* テキストの読みやすさを向上 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-section .lead {
    color: #f8f9fa !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-section .text-warning {
    color: #ffd43b !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-illustration {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 特徴カード */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* 現在の機能カード */
.current-feature-card {
    transition: transform 0.3s ease;
}

.current-feature-card:hover {
    transform: translateY(-3px);
}

/* 将来機能カード */
.future-feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.future-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.text-purple {
    color: #6f42c1 !important;
}

/* 対象者カード */
.target-card {
    transition: all 0.3s ease;
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* ダッシュボードスタイル */
.quick-action-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.event-card {
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* バッジスタイル */
.badge {
    font-weight: 500;
}

/* ナビゲーション */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* フッター */
footer {
    margin-top: auto;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

/* ローディングアニメーション */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* カスタムボタン */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-lg {
    border-radius: 10px;
}

/* モーダルスタイル */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* フォームスタイル */
.form-control {
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* アラートスタイル */
.alert {
    border-radius: 10px;
    border: none;
}

/* ヒーローセクション専用アニメーション - 自動開始 */
.hero-section .fade-in {
    animation: fadeIn 0.8s ease-in forwards;
}

.hero-section .slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-section .scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* ヒーローセクション以外のスクロールアニメーション */
section:not(.hero-section) .fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

section:not(.hero-section) .fade-in.animate {
    opacity: 1;
}

section:not(.hero-section) .slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section:not(.hero-section) .slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

section:not(.hero-section) .scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section:not(.hero-section) .scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* 順次アニメーション用の遅延 */
.hero-section .delay-1 { animation-delay: 0.1s; }
.hero-section .delay-2 { animation-delay: 0.2s; }
.hero-section .delay-3 { animation-delay: 0.3s; }
.hero-section .delay-4 { animation-delay: 0.4s; }
.hero-section .delay-5 { animation-delay: 0.5s; }
.hero-section .delay-6 { animation-delay: 0.6s; }

section:not(.hero-section) .delay-1 { transition-delay: 0.1s; }
section:not(.hero-section) .delay-2 { transition-delay: 0.2s; }
section:not(.hero-section) .delay-3 { transition-delay: 0.3s; }
section:not(.hero-section) .delay-4 { transition-delay: 0.4s; }
section:not(.hero-section) .delay-5 { transition-delay: 0.5s; }
section:not(.hero-section) .delay-6 { transition-delay: 0.6s; }

/* アイコンアニメーション */
.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* パルスエフェクト */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* タイピングエフェクト */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #ffd43b; }
}

/* ダークモード対応（将来的に） */
@media (prefers-color-scheme: dark) {
    /* ダークモードスタイルはここに追加 */
}

/* アクセシビリティ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカススタイル */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* プリント用スタイル */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}