/* 白馬村求人サイト カスタムCSS */

/* 全体のレイアウト調整 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* テキスト省略 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ホバーエフェクト */
.hover-scale:hover {
    transform: scale(1.02);
}

/* グラデーション背景のカスタマイズ */
.hero-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
}

/* カスタムボタンスタイル */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors;
}

.btn-secondary {
    @apply bg-gray-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-gray-700 transition-colors;
}

.btn-success {
    @apply bg-green-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-green-700 transition-colors;
}

.btn-warning {
    @apply bg-yellow-500 text-white px-6 py-3 rounded-lg font-semibold hover:bg-yellow-600 transition-colors;
}

/* カードスタイル */
.job-card {
    @apply bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow;
}

.job-card:hover {
    transform: translateY(-2px);
}

/* フォームスタイル */
.form-input {
    @apply w-full border border-gray-300 rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.form-textarea {
    @apply w-full border border-gray-300 rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-vertical;
}

.form-select {
    @apply w-full border border-gray-300 rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent bg-white;
}

/* モーダルアニメーション */
.modal-enter {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* メッセージアニメーション */
.message-enter {
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 検索フィルターセクション */
.search-filters {
    @apply bg-white p-6 rounded-lg shadow-md mb-8;
}

.search-filters .filter-grid {
    @apply grid grid-cols-1 md:grid-cols-4 gap-4;
}

/* 求人カードグリッド */
.jobs-grid {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6;
}

/* 給与バッジ */
.salary-badge {
    @apply inline-block bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full;
}

.salary-badge.hourly {
    @apply bg-green-100 text-green-800;
}

.salary-badge.daily {
    @apply bg-yellow-100 text-yellow-800;
}

.salary-badge.monthly {
    @apply bg-purple-100 text-purple-800;
}

/* ステータスバッジ */
.status-badge {
    @apply inline-block text-xs px-2 py-1 rounded-full;
}

.status-badge.pending {
    @apply bg-yellow-100 text-yellow-800;
}

.status-badge.viewed {
    @apply bg-blue-100 text-blue-800;
}

.status-badge.accepted {
    @apply bg-green-100 text-green-800;
}

.status-badge.rejected {
    @apply bg-red-100 text-red-800;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

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

/* 白馬テーマカラー */
.hakuba-blue {
    color: #3B82F6;
}

.hakuba-green {
    color: #10B981;
}

.bg-hakuba-blue {
    background-color: #3B82F6;
}

.bg-hakuba-green {
    background-color: #10B981;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .jobs-grid {
        @apply grid-cols-1;
    }
    
    .filter-grid {
        @apply grid-cols-1 gap-3;
    }
    
    .hero-section {
        @apply py-8 px-4;
    }
    
    .hero-title {
        @apply text-2xl;
    }
    
    .hero-subtitle {
        @apply text-base;
    }
}

/* プリント用スタイル */
@media print {
    .no-print {
        display: none !important;
    }
    
    .job-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

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

/* フォーカス状態 */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* ローディングアニメーション */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* 白馬村らしい背景パターン（山のイメージ） */
.mountain-pattern {
    background-image: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.1) 25%, transparent 25%), 
        linear-gradient(225deg, rgba(16, 185, 129, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, rgba(59, 130, 246, 0.1) 25%, transparent 25%), 
        linear-gradient(315deg, rgba(16, 185, 129, 0.1) 25%, transparent 25%);
    background-position: 20px 0, 20px 0, 0 0, 0 0;
    background-size: 40px 40px;
}

/* 季節感を演出するアニメーション */
.snow-animation {
    position: relative;
    overflow: hidden;
}

.snow-animation::before {
    content: '❄';
    position: absolute;
    top: -10px;
    left: 10%;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    animation: snowfall 10s infinite linear;
}

.snow-animation::after {
    content: '❄';
    position: absolute;
    top: -10px;
    right: 10%;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    animation: snowfall 15s infinite linear;
    animation-delay: -5s;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}