/**
 * Additional styles for AkiraCosme1 theme
 * 
 * @package AkiraCosme1
 */

/* フォーカスリング */
.focus-visible {
    outline: 2px solid #FF5330;
    outline-offset: 2px;
}

/* エラー状態 */
.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ローディング状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* アニメーション用のユーティリティクラス */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ボタンのホバーエフェクト */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::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;
}

.btn-hover-effect:hover::before {
    left: 100%;
}

/* カードのホバーエフェクト */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* テキストのグラデーション */
.text-gradient {
    background: linear-gradient(135deg, #FF5330, #E64A2B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 背景のグラデーション */
.bg-gradient-primary {
    background: linear-gradient(135deg, #FF5330, #E64A2B);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f8f8f8, #e5e5e5);
}

/* レスポンシブ対応の改善 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-text-line {
        font-size: 2rem;
    }
    
    .slider-track {
        width: calc(280px * 12);
    }
    
    .slide {
        width: 280px;
        padding: 0 10px;
    }
    
    .mobile-menu {
        width: 100vw;
    }
}

@media (max-width: 480px) {
    .hero-text-line {
        font-size: 1.5rem;
    }
    
    .slider-track {
        width: calc(240px * 12);
    }
    
    .slide {
        width: 240px;
        padding: 0 5px;
    }
}

/* プリント用スタイル */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gray-900,
    .bg-[#FF5330] {
        background: white !important;
        color: black !important;
    }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .auto-dark .bg-white {
        background-color: #2a2a2a;
    }
    
    .auto-dark .text-gray-600 {
        color: #a0a0a0;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .high-contrast {
        border: 2px solid currentColor;
    }
    
    .high-contrast .btn {
        border: 2px solid currentColor;
    }
}

/* モーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slider-track {
        animation: none !important;
    }
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF5330;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E64A2B;
}

/* セレクション色 */
::selection {
    background-color: #FF5330;
    color: white;
}

::-moz-selection {
    background-color: #FF5330;
    color: white;
}
