/* カスタムフォント設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    scroll-behavior: smooth;
}

/* ヘッダースタイル */
#header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(to bottom right, #f0f9ff 0%, #e0e7ff 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
}

/* ロゴアニメーション */
.hero-section img[alt="SYNAPT"] {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.hero-section img[alt="SYNAPT"]:hover {
    transform: scale(1.05);
}

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

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

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

/* ナビゲーションリンクのホバー効果 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* カードホバー効果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

/* セクション間のスペーシング */
section {
    scroll-margin-top: 80px;
}

/* テーブルレスポンシブ */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    table tbody tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
    }
    
    table tbody td {
        display: block;
        width: 100%;
        padding: 0.75rem 0 !important;
    }
    
    table tbody td:first-child {
        font-weight: bold;
        color: #1f2937;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 0.5rem !important;
    }
}

/* プライバシーポリシーのリストスタイル */
.prose ol ol,
.prose ul ul {
    margin-top: 0.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* グラデーションテキスト */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* ボタンのリップル効果 */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* モバイルメニューアニメーション */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.active {
    max-height: 500px;
}

/* グリッドアイテムのステッガードアニメーション */
.grid > * {
    animation: fadeIn 0.6s ease-out backwards;
}

.grid > *:nth-child(1) {
    animation-delay: 0.1s;
}

.grid > *:nth-child(2) {
    animation-delay: 0.2s;
}

.grid > *:nth-child(3) {
    animation-delay: 0.3s;
}

.grid > *:nth-child(4) {
    animation-delay: 0.4s;
}

/* ロード時のページフェードイン */
body {
    animation: fadeIn 0.5s ease-out;
}

/* アクセシビリティ: フォーカス表示 */
a:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* CEO画像のトリミング */
.ceo-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 30%;
}

/* プリント用スタイル */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}