/**
 * カスタムCSS
 * Tailwind CSSと併用
 */

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* フォント設定 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", Meiryo, sans-serif;
    line-height: 1.6;
}

/* ヘッダーのグラデーション */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* カード要素のトランジション */
.disclosure-item {
    transition: all 0.3s ease;
}

.disclosure-item:hover {
    transform: translateY(-2px);
}

/* ソートボタンのアニメーション */
.sort-btn {
    transition: all 0.2s ease;
}

.sort-btn:hover {
    transform: scale(1.05);
}

.sort-btn.active {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* カテゴリータグ */
.category-tag {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* 検索ボックスのフォーカス効果 */
input[type="text"]:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

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

.disclosure-item {
    animation: fadeIn 0.3s ease;
}

/* リンクホバー効果 */
a {
    transition: all 0.2s ease;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .disclosure-item {
        padding: 1rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .category-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* プリント用スタイル */
@media print {
    header,
    footer,
    .sort-btn,
    input,
    select {
        display: none;
    }

    .disclosure-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* アクセシビリティ: フォーカス表示 */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    /* 将来的にダークモードを実装する場合はここに追加 */
}

/* アニメーション用ユーティリティ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* カスタムシャドウ */
.shadow-custom {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* ツールチップスタイル（将来の拡張用） */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
