/* 株分析ツール カスタムスタイル */

/* 全体的なスタイル */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* ナビゲーションバー */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* ドロップダウンメニューの位置制御 */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0 !important;
    z-index: 1000;
}

/* モバイルでのドロップダウンメニュー位置調整 */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: auto !important;
        right: 0 !important;
        margin-top: 0 !important;
        min-width: 200px;
    }
    
    .navbar-nav .dropdown {
        position: static;
    }
}

/* カードのスタイル */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* レンジスライダーのスタイル */
.buy-sell-range-container {
    max-width: 600px;
    margin: 0 auto;
}

.range-labels {
    font-size: 0.9rem;
}

.range-track {
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    border-radius: 25px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.range-fill {
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    border-radius: 25px;
    transition: width 0.5s ease-in-out;
}

.range-thumb {
    transition: left 0.5s ease-in-out, transform 0.2s ease-in-out;
    z-index: 10;
}

.range-thumb:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* スコア表示 */
.score-display .badge {
    transition: all 0.3s ease-in-out;
}

/* ボタンのスタイル */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* フォーム要素 */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* アラートのスタイル */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* ランディングページ用スタイル */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none; /* クリックを遮らない */
    z-index: 0; /* 背面に固定 */
}

/* ヒーロー内部のコンテンツを前面に */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%) !important;
}

.bg-gradient-light {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 60%, #f4f7ff 100%) !important;
}

/* セクション間の区切り */
section {
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

/* カードのホバーエフェクト強化 */
.card {
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* ボタンのホバーエフェクト強化 */
.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* アイコンのアニメーション */
.fa-2x {
    transition: transform 0.3s ease-in-out;
}

.card:hover .fa-2x {
    transform: scale(1.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
/* アマゾンスタイルのシンプルな検索窓 */
.amazon-style-search {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid #007bff;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.search-input-group .form-control {
    border: none;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    box-shadow: none;
    width: 100%;
}

.search-input-group .form-control:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.search-input-group .btn {
    border: none;
    border-radius: 0;
    border-left: 1px solid #007bff;
    padding: 0.75rem 1rem;
    background: #007bff;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
    min-width: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-group .btn:hover {
    background: #0056b3;
    transform: none;
    box-shadow: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input-group .form-control {
        border-radius: 12px 12px 0 0;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .search-input-group .btn {
        border-radius: 0 0 12px 12px;
        border-left: none;
        border-top: 1px solid #007bff;
        padding: 1rem;
        min-width: 100%;
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .search-input-group {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .search-input-group .form-control {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .search-input-group .btn {
        padding: 1rem 1.5rem;
        min-width: 60px;
        font-size: 1.1rem;
    }
}

/* レスポンシブ対応とモバイル最適化 */
@media (max-width: 576px) {
    .search-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input-wrapper,
    .search-button-wrapper {
        width: 100%;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }
    
    .search-button {
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
        min-width: 100%;
        justify-content: center;
    }
}

/* モバイルでのヒーローセクション調整 */
@media (max-width: 768px) {
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .search-form {
        gap: 1rem;
    }
    
    .search-button {
        min-width: 160px;
    }
}
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* モバイルでのヒーローセクション調整 */
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* プログレスバー */
.progress {
    border-radius: 15px;
    background-color: #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    border-radius: 15px;
    transition: width 0.5s ease-in-out;
}

/* アイコンのスタイル */
.fa-2x {
    transition: transform 0.2s ease-in-out;
}

.card:hover .fa-2x {
    transform: scale(1.1);
}

/* バッジのスタイル */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* テキストのスタイル */
.text-muted {
    color: #6c757d !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
    
    .h6 {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .range-slider-container {
        margin: 0 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .small {
        font-size: 0.8rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* ローディングスピナー */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* グラデーション背景 */
.bg-gradient {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* フォーカス時のアウトライン */
*:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* アクセシビリティ */
.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;
}

/* プリント用スタイル */
@media print {
    .navbar,
    .btn,
    .card-footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* ===== LP Redesign (content unchanged) ===== */
/* Hero: animated glow + flowing gradient overlay */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: conic-gradient(from 0deg, rgba(0,122,255,.08), rgba(0,229,255,.08), rgba(124,44,255,.08), rgba(0,122,255,.08));
    filter: blur(28px);
    animation: heroHue 32s linear infinite;
    pointer-events: none;
}
@keyframes heroHue {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section headings: gradient underline */
section h2 {
    position: relative;
    display: inline-block;
}
/* 見出しのアンダーライン装飾を無効化 */
section h2:after { content: none; }

/* Features: subtle grid background */
#features {
    position: relative;
}
#features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px;
    pointer-events: none;
}

/* Cards: glassy elevation + neon on hover */
.card {
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.88);
}
.bg-gradient-light .card,
.hero-section + section .card {
    background: rgba(255,255,255,0.9);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,123,255,0.12) !important;
    border-color: rgba(0,123,255,0.25);
}

/* Icons pulse slightly on hover */
.card .fa-2x {
    transition: transform .25s ease, filter .25s ease;
}
.card:hover .fa-2x {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(0,123,255,.35));
}

/* CTA buttons: brighter gradient */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
}

/* Soft separators between sections */
section:not(:last-child) {
    scroll-margin-top: 80px;
}

/* ===== Analysis Outcome (neon glass UI) ===== */
.neon-card {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(37,99,235,0.08), transparent 60%),
                radial-gradient(1000px 500px at 110% 10%, rgba(124,58,237,0.08), transparent 60%),
                rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(37,99,235,0.15) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ===== Notifications differentiation ===== */
.notification-item {
    transition: background-color .2s ease, border-color .2s ease;
    border-left: 4px solid transparent;
}
.notification-unread {
    background: linear-gradient(180deg, #eef4ff, #ffffff) !important;
    border-left-color: #2563eb !important; /* vivid blue */
}
.notification-read {
    background: #f9fafb !important;
    border-left-color: #cbd5e1 !important; /* slate */
}

.glass-tile {
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.78));
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.glass-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(37,99,235,0.25);
    box-shadow: 0 18px 38px rgba(37,99,235,0.12);
}

.tile-complete {
    border-color: rgba(16,185,129,0.35) !important;
    box-shadow: 0 16px 36px rgba(16,185,129,0.12) !important;
}

.scenario-tile.active-scenario {
    border-color: rgba(59,130,246,0.6) !important;
    box-shadow: 0 18px 44px rgba(59,130,246,0.20) !important;
}

