@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* スムーズスクロール */

/* アニメーション */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* スクロールアニメーション */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

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

.gradient-text-animated {
    background: linear-gradient(270deg, #3EB4E6, #2EA3D8, #3EB4E6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* リッチなシャドウ */
.rich-shadow {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(62, 180, 230, 0.15),
        0 0 0 1px rgba(62, 180, 230, 0.05);
}

.rich-shadow-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rich-shadow-hover:hover {
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(62, 180, 230, 0.25),
        0 0 0 1px rgba(62, 180, 230, 0.1);
    transform: translateY(-8px) scale(1.02);
}

/* 3D効果 */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

/* グラスモーフィズム強化 */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* メッシュグラデーション背景 */
.mesh-gradient {
    background:
        radial-gradient(at 0% 0%, rgba(62, 180, 230, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(46, 163, 216, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(38, 146, 196, 0.3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(62, 180, 230, 0.3) 0px, transparent 50%);
}

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

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3EB4E6, #2EA3D8);
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2EA3D8, #2692C4);
}

/* ホバーエフェクト強化 */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* パルスアニメーション */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* グローエフェクト */
.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #3EB4E6, #2EA3D8, #3EB4E6);
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.glow:hover::before {
    opacity: 0.7;
}

/* シャインエフェクト */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotateZ(60deg) translate(-100%, 0);
    transition: transform 0.6s;
}

.shine:hover::after {
    transform: rotateZ(60deg) translate(100%, 0);
}

/* パララックス */
.parallax {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 横スライド用スタイル */
.case-studies-container {
    -webkit-overflow-scrolling: touch;
}

.case-studies-container::-webkit-scrollbar {
    display: none;
}

.case-study-card {
    flex-shrink: 0;
}

/* スクロールインジケーターのアニメーション */
.scroll-indicator {
    transition: all 0.3s ease;
}

.scroll-indicator.active {
    opacity: 1;
    background: linear-gradient(135deg, #3EB4E6, #2EA3D8);
    transform: scale(1.2);
}

/* 成功事例カードの画像ホバーエフェクト */
.case-study-card img {
    transition: transform 0.6s ease;
}

.case-study-card:hover img {
    transform: scale(1.1);
}

/* ナビゲーションの視認性改善 */
.nav {
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .nav-text {
    color: #1f2937 !important;
}

.nav.scrolled .nav-text:hover {
    color: #3EB4E6 !important;
}

.nav.scrolled .logo_img img {
    filter: brightness(0) saturate(100%);
}

.nav-text {
    color: white;
    transition: color 0.3s ease;
}
