/* カイタックジャパン Webサイト - カスタムCSS */
/* 配置先: ~/khaithac-website/assets/css/custom.css */

/* =================================
   リセット・基本スタイル
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =================================
   スムーススクロール
   ================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =================================
   ナビゲーション補助スタイル
   ================================= */
.nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-dropdown.active {
    max-height: 500px;
}

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

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

/* =================================
   ホバーエフェクト
   ================================= */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* =================================
   カスタムスクロールバー（Webkit）
   ================================= */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0088CC;
}

/* =================================
   印刷時のスタイル
   ================================= */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* =================================
   アクセシビリティ
   ================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* フォーカス時のアウトライン */
a:focus,
button:focus {
    outline: 2px solid #00A0E9;
    outline-offset: 2px;
}

/* =================================
   レスポンシブ画像
   ================================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =================================
   ローディングアニメーション
   ================================= */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00A0E9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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