/* カスタムスタイル */
body {
    background-color: #f8f9fa;
}

/* サイトヘッダー */
.site-header {
    background: white;
    color: #333;
    padding: 1rem 0;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.site-title i {
    font-size: 1.8rem;
    color: #666;
    margin-right: 0.75rem;
}

.site-title span {
    color: #333;
}

/* ヒーローセクション */
.hero-section {
    background: white;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: auto;
    border: 2px solid #e0e0e0;
}

.hero-section .display-5 {
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: #333;
}

.hero-buttons {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    border-radius: 12px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 説明カード */
.explanation-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border: none;
}

.explanation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.explanation-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* タイプカード */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.type-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.type-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.type-header::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.type-header > * {
    position: relative;
    z-index: 2;
}

.type-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.type-description {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.type-content {
    padding: 2rem;
}

.type-content h5 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

.type-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.type-examples {
    margin-bottom: 1.5rem;
}

.type-examples h6 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.type-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-examples li {
    padding: 0.25rem 0;
    color: #6c757d;
    position: relative;
    padding-left: 1.5rem;
}

.type-examples li::before {
    content: '📚';
    position: absolute;
    left: 0;
    top: 0.25rem;
}

.appeal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.appeal-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 診断機能 */
.diagnosis-container {
    max-width: 800px;
    margin: 0 auto;
}

.diagnosis-question {
    text-align: center;
    margin-bottom: 2rem;
}

.diagnosis-question h4 {
    color: #495057;
    margin-bottom: 2rem;
    font-weight: 600;
}

.diagnosis-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.diagnosis-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.diagnosis-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.diagnosis-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.diagnosis-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.diagnosis-option span {
    font-weight: 600;
}

.diagnosis-result {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-content {
    margin-top: 1.5rem;
}

.result-type h5 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-type p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.result-recommendations h6 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* おすすめ作品 */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
}

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

.recommendation-image {
    width: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.recommendation-content {
    flex: 1;
    padding: 1.5rem;
}

.recommendation-content h5 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.recommendation-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.recommendation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.recommendation-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

.recommendation-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.rating-text {
    color: #6c757d;
    font-weight: 600;
}

/* グラデーション背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.navbar-brand {
    font-weight: bold;
}

.card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge {
    font-size: 0.8em;
}

.text-warning .fas.fa-star {
    color: #ffc107;
}

.text-warning .far.fa-star {
    color: #dee2e6;
}

.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

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

.alert {
    border-radius: 8px;
    border: none;
}

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

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem !important;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .type-grid {
        grid-template-columns: 1fr;
    }
    
    .diagnosis-options {
        grid-template-columns: 1fr;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation-card {
        flex-direction: column;
    }
    
    .recommendation-image {
        width: 100%;
        height: 80px;
    }
}

/* カスタムアイコン */
.fas.fa-conjure::before {
    content: "\f0d0";
}

.fas.fa-portal-enter::before {
    content: "\f0c1";
}

/* ホバーエフェクト */
.nav-link:hover {
    color: #007bff !important;
}

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

/* 検索結果のスタイル */
.search-result-card {
    border-left: 4px solid #007bff;
}

.search-result-card:hover {
    border-left-color: #0056b3;
}

/* 評価スターのスタイル */
.rating-stars {
    display: inline-block;
}

.rating-stars .fas.fa-star {
    color: #ffc107;
}

.rating-stars .far.fa-star {
    color: #dee2e6;
}

/* タグのスタイル */
.tag-badge {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

/* 統一されたタグスタイル */
.unified-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 3px !important;
    margin-right: 0.15rem !important;
    margin-bottom: 0.15rem !important;
    display: inline-block !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

.unified-badge-primary {
    background-color: #6366f1 !important;
    color: white !important;
    border: 1px solid #6366f1 !important;
}

.unified-badge-secondary {
    background-color: #e9ecef !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

/* 既存のbadgeクラスも統一 */
.badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 3px !important;
    margin-right: 0.15rem !important;
    margin-bottom: 0.15rem !important;
    display: inline-block !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

/* カテゴリカードのスタイル */
.category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card i {
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* セクションタイトルのインタラクティブスタイル */
.section-title {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    position: relative;
}

.section-title:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(10px);
}

.section-title::after {
    content: '▶';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    color: #667eea;
}

.section-title:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* キーワードカテゴリのスタイル */
.keyword-category {
    margin-bottom: 0.75rem;
}

.keyword-category-title {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keyword-category-title i {
    color: #666;
    font-size: 0.8rem;
}

/* サブカテゴリのスタイル */
.sub-categories {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(222, 226, 230, 0.5);
}

.sub-category-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sub-category-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.sub-category-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.sub-category-item span {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
}

.sub-category-item small {
    color: #6c757d;
    font-size: 0.75rem;
}

/* ツールチップのスタイル */
.category-tooltip {
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e9ecef;
    backdrop-filter: blur(10px);
    min-width: 250px;
    max-width: 300px;
}

.tooltip-content {
    padding: 1rem;
}

.tooltip-content h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.tooltip-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tooltip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.5);
}

.tooltip-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.tooltip-item i {
    color: #667eea;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.tooltip-item span {
    color: #495057;
    font-weight: 500;
}

/* モーダルのカスタムスタイル */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

/* 関連作品カードのスタイル */
.related-work-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.related-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.related-work-card .card-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-work-card .card-text {
    color: #6c757d;
    line-height: 1.4;
}

.related-work-card .tags .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* フェードインアニメーション */
.fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ローディングコンテナ */
.loading-container {
    padding: 2rem;
}

.loading-container .loading {
    margin: 0 auto;
}

/* 推薦カードのスタイル */
.recommendation-card {
    border-left: 4px solid #28a745;
}

.recommendation-card:hover {
    border-left-color: #20c997;
}

/* 類似作品カードのスタイル */
.border-primary {
    border-color: #007bff !important;
}

/* 統計情報のスタイル */
.stats-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* niko and ...風メニュー画面 */
.niko-style-menu {
    background: white;
    min-height: 100vh;
    padding: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* メインナビゲーション */
.main-navigation {
    margin-bottom: 1rem;
}

.navigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.navigation-item {
    display: block;
    padding: 0.75rem 0.5rem;
    background: #f8fafc;
    border: 1px solid #374151;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    text-align: center;
}

.navigation-item:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.nav-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.nav-subtitle {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* 検索エリア */
.search-wrapper {
    margin-bottom: 1rem;
    text-align: left;
}

.search {
    max-width: 300px;
    margin: 0;
}

.search .form {
    position: relative;
}

.search .input-text {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
}

.search .input-text:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.search .input-text::placeholder {
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.search .input-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 32px;
    border: none;
    background: #6366f1;
    color: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.search .input-submit:hover {
    background: #5855eb;
    transform: translateY(-50%) scale(1.05);
}

/* サブナビゲーションブロック */
.sub-navigation-block {
    margin-bottom: 1rem;
}

.sub-navigation-block .head {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 0.5rem;
}

.sub-navigation-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
    gap: 0.3rem;
    justify-content: start;
}

.sub-navigation-list li {
    margin: 0;
}

.sub-navigation-list .navigation-item {
    padding: 0.4rem 0.6rem;
    background: #f9fafb;
    border: 2px solid #374151;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    margin: 0;
    position: relative;
    overflow: hidden;
    max-width: 120px;
    min-width: 80px;
}

.sub-navigation-list .navigation-item:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.sub-navigation-list .navigation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sub-navigation-list .navigation-item:hover::before {
    left: 100%;
}

/* 絵文字付きナビゲーション（アイコン削除により余白も調整） */
.navigation-item.emoji {
    position: relative;
    padding-left: 0.75rem;
}

/* キーワードボタンのアイコンを削除 */

/* 円形アイコン付きナビゲーション */
.sub-navigation-list-circle {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sub-navigation-list-circle .navigation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sub-navigation-list-circle .navigation-item:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.sub-navigation-list-circle .icon {
    width: 32px;
    height: 32px;
    background: #6366f1;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* その他のナビゲーション */
.other-navigation {
    margin-bottom: 3rem;
}

.other-navigation .head {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.other-slider {
    margin-bottom: 2rem;
}

.other-slider .banner {
    margin-bottom: 1rem;
}

.other-slider .banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.other-slider .banner:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.other-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-list li {
    margin-bottom: 0.75rem;
}

.other-list a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.other-list a:hover {
    color: #5855eb;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .site-title i {
        font-size: 1.5rem;
    }
    
    .navigation-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .navigation-item {
        padding: 0.75rem 0.5rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .nav-subtitle {
        font-size: 0.6rem;
    }
    
    .sub-navigation-list {
        grid-template-columns: repeat(auto-fit, minmax(90px, 110px));
    }
    
    .sub-navigation-list-circle {
        grid-template-columns: 1fr;
    }
    
    .keyword-category {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .keyword-category-title {
        font-size: 0.8rem;
    }
}

/* 検索フォーム - niko and ...風デザイン */
.search-hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.search-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 1000 1000"><polygon fill="rgba(99,102,241,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.search-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #374151;
    position: relative;
    z-index: 2;
}

.search-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-button:hover {
    background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.search-button:active {
    transform: translateY(0);
}

/* 新しいボタンのスタイル */
.new-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    margin-right: 8px;
}

.new-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.new-button:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.new-button:hover::before {
    left: 100%;
}

.new-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.new-button i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.search-suggestions {
    text-align: center;
}

.search-hint {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ナビゲーションバーの検索フォーム */
.navbar-search-form {
    display: flex;
    align-items: center;
}

.navbar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-search-input {
    width: 200px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    width: 250px;
}

.navbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-search-button {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.navbar-search-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 検索結果表示エリア - niko and ...風デザイン */
.search-results-container {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-results-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.search-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.search-results-count {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.search-results-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    min-height: 200px;
}

.search-result-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #6366f1;
}

.search-result-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.search-result-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.search-result-author {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.search-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.search-result-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.search-result-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-stars {
    color: #fbbf24;
}

.search-result-rating-text {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-results-footer {
    background: #f9fafb;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.search-results-footer .btn {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-results-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* 検索結果がない場合のスタイル */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.no-results-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-results-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.no-results-suggestion {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* 検索ページ用のスタイル */
.search-submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.search-submit-btn:active {
    transform: translateY(0);
}

/* 楽しい検索エリア */
.search-container {
    position: relative;
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: scale(1.02);
}

.search-btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.search-suggestions {
    animation: fadeInUp 0.5s ease-out;
}

/* 発見カード */
.discovery-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discovery-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.discovery-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.discovery-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.discovery-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.discovery-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.discovery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

/* 運命カード */
.fate-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.fate-card:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 8px 20px rgba(252, 182, 159, 0.4);
}

.fate-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.fate-card:hover::before {
    opacity: 1;
    animation: shine 1s ease-out;
}

.fate-icon {
    font-size: 2.5rem;
    color: #e67e22;
    margin-bottom: 1rem;
}

.fate-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
    flex-grow: 1;
}

.fate-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fate-tag {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

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

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ホバーエフェクトの強化 */
.discovery-card:hover .card-icon {
    animation: bounce 0.6s ease-in-out;
}

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

/* マインドマップ風スタイル */
.mindmap-container {
    position: relative;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-node {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.center-node:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.center-node i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.center-node h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.center-node p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.mindmap-branches {
    position: relative;
    width: 100%;
    height: 100%;
}

.branch {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.branch-reincarnation {
    top: 10%;
    left: 10%;
}

.branch-transfer {
    top: 10%;
    right: 10%;
}

.branch-summon {
    bottom: 10%;
    left: 10%;
}

.branch-dungeon {
    bottom: 10%;
    right: 10%;
}

.branch-node {
    background: white;
    border: 3px solid;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

.branch-reincarnation .branch-node {
    border-color: #667eea;
    color: #667eea;
}

.branch-transfer .branch-node {
    border-color: #f093fb;
    color: #f093fb;
}

.branch-summon .branch-node {
    border-color: #4facfe;
    color: #4facfe;
}

.branch-dungeon .branch-node {
    border-color: #43e97b;
    color: #43e97b;
}

.branch-node:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.branch-node i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.branch-node h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.node-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.sub-branches {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.branch:hover .sub-branches {
    opacity: 1;
    transform: translateY(0);
}

.sub-node {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.branch-reincarnation .sub-node {
    border-color: #667eea;
    color: #667eea;
}

.branch-transfer .sub-node {
    border-color: #f093fb;
    color: #f093fb;
}

.branch-summon .sub-node {
    border-color: #4facfe;
    color: #4facfe;
}

.branch-dungeon .sub-node {
    border-color: #43e97b;
    color: #43e97b;
}

.sub-node:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 接続線のアニメーション */
.branch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #ccc, transparent);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .mindmap-container {
        min-height: 400px;
    }
    
    .center-node {
        width: 120px;
        height: 120px;
    }
    
    .branch-node {
        width: 100px;
        height: 100px;
    }
    
    .branch {
        position: relative;
        margin: 1rem 0;
    }
    
    .mindmap-branches {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* モバイル用ツールチップ調整 */
    .category-tooltip {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 300px !important;
    }
}

/* フッターのスタイル */
footer {
    margin-top: auto;
    background-color: #f8f9fa !important;
    color: #333 !important;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* フッターナビゲーション */
.footer-navigation {
    text-align: center;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-nav-links {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-nav-link {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* キーワード選択状態のスタイル */
.keyword-selectable {
    cursor: pointer;
    position: relative;
}

.keyword-selectable:hover {
    color: #4f46e5;
}

.keyword-selectable.selected {
    color: white;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.head-with-search {
    margin-bottom: 1rem;
}

.head-with-search .head {
    margin: 0;
}

.search-button-wrapper {
    margin-top: 1.5rem;
    text-align: center;
}

.search-button {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.search-button i {
    margin-right: 0.5rem;
}

/* 検索画面のスタイル */
.search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-header-content {
    text-align: center;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.search-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.search-filter-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.search-filter-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.search-filter-card .card-body {
    padding: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 漫画関連性グラフ用スタイル */
#manga-graph-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#manga-graph-container svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.node circle {
    transition: all 0.3s ease;
}

.node:hover circle {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.node text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* ノードラベルの文字重なり防止 */
.node-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    text-anchor: middle !important;
    dominant-baseline: middle !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 120px !important;
}

/* モバイル表示用のグラフスタイル */
@media (max-width: 768px) {
    #manga-graph-container {
        padding: 10px;
        min-height: 300px;
    }
    
    #manga-graph-container svg {
        width: 100% !important;
        height: auto !important;
        max-width: 400px;
    }
    
    .node-label {
        font-size: 10px !important;
        max-width: 80px !important;
    }
}

@media (max-width: 480px) {
    #manga-graph-container {
        padding: 5px;
        min-height: 250px;
    }
    
    #manga-graph-container svg {
        max-width: 350px;
    }
    
    .node-label {
        font-size: 9px !important;
        max-width: 60px !important;
    }
}

/* グラフのローディング表示 */
#manga-graph-container .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
}

/* キーワードクリック時のフィードバック */
.keyword-clicked {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 検索条件表示 */
.search-conditions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.search-conditions-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.search-conditions-title i {
    color: #6366f1;
}

.search-conditions-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-condition {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #374151;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.search-condition i {
    color: #6366f1;
    margin-right: 0.25rem;
}

.search-condition .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}


/* 統合検索エリア */
.unified-search-wrapper {
    margin-bottom: 2rem;
    text-align: left;
}

.unified-search {
    max-width: 800px;
    margin: 0;
}

.unified-search-form {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.search-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.unified-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
}

.unified-search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.unified-search-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.unified-search-button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.unified-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.unified-search-button i {
    margin-right: 0.5rem;
}

/* 選択されたタグ表示エリア */
.selected-tags-container {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.selected-tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-right: 0.75rem;
}

.selected-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.4rem !important;
    background: #6366f1 !important;
    color: white !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    margin-right: 0.15rem !important;
    margin-bottom: 0.15rem !important;
    line-height: 1.1 !important;
}

.selected-tag .remove-tag {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.selected-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* クイックタグエリア */
.quick-tags-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.quick-tags-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-tags-title i {
    color: #6366f1;
}

.quick-tags-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-tags-category {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.category-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 80px;
    padding-top: 0.25rem;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-tag {
    padding: 0.2rem 0.4rem !important;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 3px !important;
    color: #374151;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin-right: 0.15rem !important;
    margin-bottom: 0.15rem !important;
    display: inline-block !important;
    line-height: 1.1 !important;
}

.quick-tag:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.quick-tag.selected {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: white !important;
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 3px !important;
    margin-right: 0.15rem !important;
    margin-bottom: 0.15rem !important;
    display: inline-block !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

.quick-tag.selected:hover {
    background: #5855eb;
    border-color: #5855eb;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-input-container {
        flex-direction: column;
    }
    
    .quick-tags-category {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-label {
        min-width: auto;
    }
}

