/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1800px;
    margin: 0 40px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 80px;
    width: auto;
}

.nav-logo h2 {
    color: #000000;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2c3e50;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hamburger active state */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero-container {
    text-align: center;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 40px;
    max-height: 80vh;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Animated Text */
.hero-animated-text {
    text-align: center;
    color: #ffd700;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 70vh;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-main-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #2c3e50;
}

.animated-text-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.animated-text-line:nth-child(1) {
    animation-delay: 0.2s;
}

.animated-text-line:nth-child(2) {
    animation-delay: 0.4s;
}


.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    margin-top: 2rem;
    color: #2c3e50;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.typing-animation {
    display: inline-block;
    border-right: 2px solid black;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    /* ブリンクは軽めに継続（無限）させて消えないようにする */
    animation: typing 2.8s steps(22, end) 0.4s forwards, blink-caret 1.1s step-end infinite 3.2s;
    will-change: width;
    contain: layout style paint;
}

/* タイピング終了後に安定状態へ（JSでクラス付与） */

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 24ch;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: black;
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PC画面で横幅1100px以下の時の調整 */
@media (max-width: 1100px) {
    .hero-main-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
}

/* PC画面で横幅1000px以下の時の調整 */
@media (max-width: 1000px) {
    .hero-main-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* PC画面で横幅900px以下の時の調整 */
@media (max-width: 900px) {
    .hero-main-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: #203a43;
    color: white;
}

.btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #203a43;
    border: 2px solid #203a43;
}

.btn-secondary:hover {
    background: #203a43;
    color: white;
    transform: translateY(-2px);
}

/* Spheres Container */
.spheres-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    width: 100dvw;
    height: 100dvh;
    max-width: 100dvw;
    max-height: 100dvh;
    min-width: 100dvw;
    min-height: 100dvh;
    overflow: hidden;
    z-index: 1;
}

/* Sphere Styles */
.sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 182, 193, 1.0) 0%,
        rgba(255, 105, 180, 0.95) 30%,
        rgba(0, 191, 255, 0.95) 60%,
        rgba(138, 43, 226, 0.85) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 30px rgba(255, 182, 193, 0.8),
        0 0 60px rgba(0, 191, 255, 0.7);
    opacity: 0.95;
    mix-blend-mode: screen;
    animation: noiseDistort 8s ease-in-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
    contain: layout style paint;
}


/* プラズマフロン - 人工知能の呼吸をイメージしたプラズマエフェクト（回転） */
.sphere::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%) translateZ(0);
    border-radius: 50%;
    will-change: transform, opacity;
    contain: layout style paint;
    background: 
        radial-gradient(ellipse at 30% 30%,
            rgba(0, 191, 255, 0.6) 0%,
            rgba(255, 105, 180, 0.5) 25%,
            rgba(138, 43, 226, 0.4) 50%,
            rgba(0, 191, 255, 0.3) 75%,
            transparent 100%),
        radial-gradient(ellipse at 70% 70%,
            rgba(255, 105, 180, 0.5) 0%,
            rgba(138, 43, 226, 0.4) 30%,
            rgba(0, 191, 255, 0.3) 60%,
            transparent 100%),
        radial-gradient(ellipse at center,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(0, 191, 255, 0.3) 65%,
            rgba(255, 105, 180, 0.4) 80%,
            rgba(138, 43, 226, 0.3) 100%);
    border: 2px solid rgba(0, 191, 255, 0.5);
    box-shadow: 
        0 0 20px rgba(0, 191, 255, 0.6),
        0 0 40px rgba(255, 105, 180, 0.4),
        0 0 60px rgba(138, 43, 226, 0.3),
        inset 0 0 30px rgba(0, 191, 255, 0.2),
        inset 0 0 60px rgba(255, 105, 180, 0.15);
    animation: plasmaFlow 6s ease-in-out infinite, plasmaDistort 8s ease-in-out infinite, rotateFront 20s linear infinite;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.85;
    transform-origin: center center;
    pointer-events: none;
    filter: blur(1px);
}

/* プラズマ流線 - 電気的な流れが周回する（回転） */
.sphere::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    height: 115%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: 
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 25deg,
            rgba(0, 191, 255, 0.8) 28deg,
            rgba(255, 255, 255, 1.0) 30deg,
            rgba(0, 191, 255, 0.8) 32deg,
            transparent 35deg,
            transparent 60deg,
            rgba(255, 105, 180, 0.7) 63deg,
            rgba(255, 255, 255, 0.9) 65deg,
            rgba(255, 105, 180, 0.7) 67deg,
            transparent 70deg,
            transparent 120deg,
            rgba(138, 43, 226, 0.7) 123deg,
            rgba(255, 255, 255, 0.9) 125deg,
            rgba(138, 43, 226, 0.7) 127deg,
            transparent 130deg,
            transparent 180deg,
            rgba(0, 191, 255, 0.6) 183deg,
            rgba(255, 255, 255, 0.8) 185deg,
            rgba(0, 191, 255, 0.6) 187deg,
            transparent 190deg,
            transparent 240deg,
            rgba(255, 105, 180, 0.6) 243deg,
            rgba(255, 255, 255, 0.8) 245deg,
            rgba(255, 105, 180, 0.6) 247deg,
            transparent 250deg,
            transparent 300deg,
            rgba(138, 43, 226, 0.6) 303deg,
            rgba(255, 255, 255, 0.8) 305deg,
            rgba(138, 43, 226, 0.6) 307deg,
            transparent 310deg,
            transparent 360deg
        ),
        radial-gradient(circle at 50% 50%,
            transparent 0%,
            transparent 45%,
            rgba(0, 191, 255, 0.1) 50%,
            transparent 55%
        );
    mask: 
        radial-gradient(circle, transparent 47%, black 48%, black 53%, transparent 54%),
        radial-gradient(circle at 30% 30%, transparent 0%, black 2%, black 3%, transparent 4%),
        radial-gradient(circle at 70% 70%, transparent 0%, black 2%, black 3%, transparent 4%),
        radial-gradient(circle at 50% 20%, transparent 0%, black 1.5%, black 2.5%, transparent 3.5%);
    -webkit-mask: 
        radial-gradient(circle, transparent 47%, black 48%, black 53%, transparent 54%),
        radial-gradient(circle at 30% 30%, transparent 0%, black 2%, black 3%, transparent 4%),
        radial-gradient(circle at 70% 70%, transparent 0%, black 2%, black 3%, transparent 4%),
        radial-gradient(circle at 50% 20%, transparent 0%, black 1.5%, black 2.5%, transparent 3.5%);
    animation: plasmaPulse 4s ease-in-out infinite, rotateFront 15s linear infinite;
    z-index: 2;
    mix-blend-mode: screen;
    opacity: 0.8;
    transform-origin: center center;
    pointer-events: none;
    filter: blur(0.5px);
}


/* 電流が流れているようなパルスアニメーション - 超強化版 */
@keyframes electricPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 
            0 0 40px rgba(255, 255, 255, 0.7),
            0 0 80px rgba(255, 255, 255, 0.5),
            inset 0 0 40px rgba(255, 255, 255, 0.5);
    }
    10% {
        transform: scale(1.12);
        opacity: 0.9;
        box-shadow: 
            0 0 50px rgba(255, 255, 255, 0.9),
            0 0 100px rgba(255, 255, 255, 0.7),
            inset 0 0 50px rgba(255, 255, 255, 0.7);
    }
    20% {
        transform: scale(1.25);
        opacity: 1;
        box-shadow: 
            0 0 70px rgba(255, 255, 255, 1),
            0 0 140px rgba(255, 255, 255, 0.9),
            inset 0 0 70px rgba(255, 255, 255, 0.9);
    }
    30% {
        transform: scale(1.18);
        opacity: 0.95;
        box-shadow: 
            0 0 60px rgba(255, 255, 255, 0.95),
            0 0 120px rgba(255, 255, 255, 0.8),
            inset 0 0 60px rgba(255, 255, 255, 0.8);
    }
    40% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 
            0 0 80px rgba(255, 255, 255, 1),
            0 0 160px rgba(255, 255, 255, 1),
            inset 0 0 80px rgba(255, 255, 255, 1);
    }
    50% {
        transform: scale(1.22);
        opacity: 0.98;
        box-shadow: 
            0 0 65px rgba(255, 255, 255, 0.98),
            0 0 130px rgba(255, 255, 255, 0.85),
            inset 0 0 65px rgba(255, 255, 255, 0.85);
    }
    60% {
        transform: scale(1.35);
        opacity: 1;
        box-shadow: 
            0 0 90px rgba(255, 255, 255, 1),
            0 0 180px rgba(255, 255, 255, 1),
            inset 0 0 90px rgba(255, 255, 255, 1);
    }
    70% {
        transform: scale(1.15);
        opacity: 0.9;
        box-shadow: 
            0 0 55px rgba(255, 255, 255, 0.9),
            0 0 110px rgba(255, 255, 255, 0.7),
            inset 0 0 55px rgba(255, 255, 255, 0.7);
    }
    80% {
        transform: scale(1.08);
        opacity: 0.8;
        box-shadow: 
            0 0 45px rgba(255, 255, 255, 0.8),
            0 0 90px rgba(255, 255, 255, 0.6),
            inset 0 0 45px rgba(255, 255, 255, 0.6);
    }
    90% {
        transform: scale(1.02);
        opacity: 0.75;
        box-shadow: 
            0 0 35px rgba(255, 255, 255, 0.75),
            0 0 70px rgba(255, 255, 255, 0.5),
            inset 0 0 35px rgba(255, 255, 255, 0.5);
    }
}

/* Individual Sphere Positions and Animations */
.sphere-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 5%;
    background: radial-gradient(circle at 20% 20%, 
        rgba(255, 182, 193, 1.0) 0%,
        rgba(255, 105, 180, 0.9) 25%,
        rgba(0, 191, 255, 0.8) 55%,
        rgba(138, 43, 226, 0.7) 100%);
    box-shadow: 
        0 0 35px rgba(255, 182, 193, 0.9),
        0 0 70px rgba(0, 191, 255, 0.8),
        inset 0 0 25px rgba(255, 255, 255, 0.25);
    animation: breathe 4.5s ease-in-out infinite, noiseDistort 9s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.sphere-1::before {
    background: 
        radial-gradient(ellipse at 25% 25%,
            rgba(0, 191, 255, 0.7) 0%,
            rgba(255, 105, 180, 0.6) 20%,
            rgba(138, 43, 226, 0.5) 45%,
            rgba(0, 191, 255, 0.35) 70%,
            transparent 100%),
        radial-gradient(ellipse at 75% 75%,
            rgba(255, 105, 180, 0.6) 0%,
            rgba(138, 43, 226, 0.5) 25%,
            rgba(0, 191, 255, 0.4) 55%,
            transparent 100%);
    border: 2px solid rgba(0, 191, 255, 0.6);
    box-shadow: 
        0 0 25px rgba(0, 191, 255, 0.7),
        0 0 45px rgba(255, 105, 180, 0.5),
        0 0 65px rgba(138, 43, 226, 0.4),
        inset 0 0 35px rgba(0, 191, 255, 0.25);
    animation: plasmaFlow 5.5s ease-in-out infinite, plasmaDistort 9s ease-in-out infinite, rotateFront 11s linear infinite;
    animation-delay: 0s, 0s, 0s;
}

.sphere-1::after {
    display: none;
}


.sphere-2 {
    width: 280px;
    height: 280px;
    top: 50%;
    right: 10%;
    background: radial-gradient(circle at 70% 30%, 
        rgba(138, 43, 226, 1.0) 0%,
        rgba(0, 191, 255, 0.95) 30%,
        rgba(255, 105, 180, 0.9) 60%,
        rgba(255, 182, 193, 0.8) 100%);
    box-shadow: 
        0 0 65px rgba(138, 43, 226, 0.95),
        0 0 120px rgba(0, 191, 255, 0.85),
        inset 0 0 45px rgba(255, 255, 255, 0.25);
    animation: breathe 8.5s ease-in-out infinite, noiseDistort 11s ease-in-out infinite;
    animation-delay: 1s, 1s;
}

.sphere-2::before {
    background: 
        radial-gradient(ellipse at 70% 30%,
            rgba(138, 43, 226, 0.7) 0%,
            rgba(0, 191, 255, 0.6) 22%,
            rgba(255, 105, 180, 0.5) 48%,
            rgba(138, 43, 226, 0.35) 72%,
            transparent 100%),
        radial-gradient(ellipse at 30% 70%,
            rgba(0, 191, 255, 0.6) 0%,
            rgba(255, 105, 180, 0.5) 28%,
            rgba(138, 43, 226, 0.4) 58%,
            transparent 100%);
    border: 2px solid rgba(138, 43, 226, 0.55);
    box-shadow: 
        0 0 32px rgba(138, 43, 226, 0.7),
        0 0 72px rgba(0, 191, 255, 0.55),
        0 0 92px rgba(255, 105, 180, 0.45),
        inset 0 0 48px rgba(138, 43, 226, 0.25);
    animation: plasmaFlow 6.8s ease-in-out infinite, plasmaDistort 11s ease-in-out infinite, rotateFront 26s linear infinite;
    animation-delay: 1s, 1s, 1s;
}

.sphere-2::after {
    display: none;
}


.sphere-3 {
    width: 160px;
    height: 160px;
    top: 25%;
    right: 25%;
    background: radial-gradient(circle at 50% 15%, 
        rgba(0, 191, 255, 1.0) 0%,
        rgba(255, 182, 193, 0.95) 35%,
        rgba(255, 105, 180, 0.85) 65%,
        rgba(138, 43, 226, 0.75) 100%);
    box-shadow: 
        0 0 30px rgba(0, 191, 255, 1.0),
        0 0 60px rgba(255, 105, 180, 0.85),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    animation: breathe 5.5s ease-in-out infinite, noiseDistort 7.5s ease-in-out infinite;
    animation-delay: 2s, 2s;
}

.sphere-3::before {
    background: 
        radial-gradient(ellipse at 50% 15%,
            rgba(0, 191, 255, 0.75) 0%,
            rgba(255, 182, 193, 0.65) 18%,
            rgba(255, 105, 180, 0.55) 42%,
            rgba(0, 191, 255, 0.4) 68%,
            transparent 100%),
        radial-gradient(ellipse at 50% 85%,
            rgba(255, 105, 180, 0.6) 0%,
            rgba(138, 43, 226, 0.5) 30%,
            rgba(0, 191, 255, 0.35) 60%,
            transparent 100%);
    border: 2px solid rgba(0, 191, 255, 0.65);
    box-shadow: 
        0 0 18px rgba(0, 191, 255, 0.75),
        0 0 38px rgba(255, 105, 180, 0.55),
        0 0 58px rgba(138, 43, 226, 0.4),
        inset 0 0 28px rgba(0, 191, 255, 0.28);
    animation: plasmaFlow 4.8s ease-in-out infinite, plasmaDistort 7.5s ease-in-out infinite, rotateFront 14s linear infinite;
    animation-delay: 2s, 2s, 2s;
}

.sphere-3::after {
    display: none;
}


.sphere-4 {
    width: 240px;
    height: 240px;
    bottom: 15%;
    left: 15%;
    background: radial-gradient(circle at 40% 60%, 
        rgba(255, 105, 180, 1.0) 0%,
        rgba(138, 43, 226, 0.92) 28%,
        rgba(0, 191, 255, 0.88) 58%,
        rgba(255, 182, 193, 0.8) 100%);
    box-shadow: 
        0 0 38px rgba(255, 105, 180, 0.95),
        0 0 75px rgba(138, 43, 226, 0.88),
        inset 0 0 28px rgba(255, 255, 255, 0.18);
    animation: breathe 6.5s ease-in-out infinite, noiseDistort 10s ease-in-out infinite;
    animation-delay: 0.5s, 0.5s;
}

.sphere-4::before {
    background: 
        radial-gradient(ellipse at 40% 60%,
            rgba(255, 105, 180, 0.7) 0%,
            rgba(138, 43, 226, 0.6) 24%,
            rgba(0, 191, 255, 0.5) 50%,
            rgba(255, 105, 180, 0.35) 74%,
            transparent 100%),
        radial-gradient(ellipse at 60% 40%,
            rgba(138, 43, 226, 0.6) 0%,
            rgba(0, 191, 255, 0.5) 26%,
            rgba(255, 105, 180, 0.4) 56%,
            transparent 100%);
    border: 2px solid rgba(255, 105, 180, 0.58);
    box-shadow: 
        0 0 20px rgba(255, 105, 180, 0.68),
        0 0 42px rgba(138, 43, 226, 0.48),
        0 0 62px rgba(0, 191, 255, 0.38),
        inset 0 0 32px rgba(255, 105, 180, 0.24);
    animation: plasmaFlow 6.2s ease-in-out infinite, plasmaDistort 10s ease-in-out infinite, rotateFront 32s linear infinite;
    animation-delay: 0.5s, 0.5s, 0.5s;
}

.sphere-4::after {
    display: none;
}


.sphere-5 {
    width: 180px;
    height: 180px;
    top: 5%;
    right: 2%;
    background: radial-gradient(circle at 80% 40%, 
        rgba(138, 43, 226, 0.98) 0%,
        rgba(0, 191, 255, 0.93) 32%,
        rgba(255, 182, 193, 0.87) 62%,
        rgba(255, 105, 180, 0.78) 100%);
    box-shadow: 
        0 0 32px rgba(138, 43, 226, 0.92),
        0 0 65px rgba(0, 191, 255, 0.82),
        inset 0 0 22px rgba(255, 255, 255, 0.22);
    animation: breathe 10.5s ease-in-out infinite, noiseDistort 8.5s ease-in-out infinite;
    animation-delay: 1.5s, 1.5s;
}

.sphere-5::before {
    background: 
        radial-gradient(ellipse at 80% 40%,
            rgba(138, 43, 226, 0.68) 0%,
            rgba(0, 191, 255, 0.58) 20%,
            rgba(255, 182, 193, 0.48) 46%,
            rgba(138, 43, 226, 0.33) 70%,
            transparent 100%),
        radial-gradient(ellipse at 20% 60%,
            rgba(0, 191, 255, 0.58) 0%,
            rgba(255, 105, 180, 0.48) 27%,
            rgba(138, 43, 226, 0.38) 57%,
            transparent 100%);
    border: 2px solid rgba(138, 43, 226, 0.6);
    box-shadow: 
        0 0 19px rgba(138, 43, 226, 0.7),
        0 0 41px rgba(0, 191, 255, 0.5),
        0 0 61px rgba(255, 182, 193, 0.4),
        inset 0 0 31px rgba(138, 43, 226, 0.26);
    animation: plasmaFlow 5.3s ease-in-out infinite, plasmaDistort 8.5s ease-in-out infinite, rotateFront 15s linear infinite;
    animation-delay: 1.5s, 1.5s, 1.5s;
}

.sphere-5::after {
    display: none;
}


.sphere-6 {
    width: 320px;
    height: 320px;
    top: 10%;
    right: -5%;
    opacity: 0.8;
    z-index: 1;
    background: radial-gradient(circle at 15% 70%, 
        rgba(0, 191, 255, 0.96) 0%,
        rgba(255, 105, 180, 0.91) 30%,
        rgba(138, 43, 226, 0.86) 60%,
        rgba(255, 182, 193, 0.76) 100%);
    box-shadow: 
        0 0 42px rgba(0, 191, 255, 0.88),
        0 0 82px rgba(255, 105, 180, 0.78),
        inset 0 0 32px rgba(255, 255, 255, 0.16);
    animation: breathe 7.5s ease-in-out infinite, noiseDistort 12s ease-in-out infinite;
    animation-delay: 2.5s, 2.5s;
}

.sphere-6::before {
    background: 
        radial-gradient(ellipse at 15% 70%,
            rgba(0, 191, 255, 0.72) 0%,
            rgba(255, 105, 180, 0.62) 22%,
            rgba(138, 43, 226, 0.52) 48%,
            rgba(0, 191, 255, 0.37) 72%,
            transparent 100%),
        radial-gradient(ellipse at 85% 30%,
            rgba(255, 105, 180, 0.62) 0%,
            rgba(138, 43, 226, 0.52) 28%,
            rgba(0, 191, 255, 0.42) 58%,
            transparent 100%);
    border: 2px solid rgba(0, 191, 255, 0.62);
    box-shadow: 
        0 0 21px rgba(0, 191, 255, 0.72),
        0 0 43px rgba(255, 105, 180, 0.52),
        0 0 63px rgba(138, 43, 226, 0.42),
        inset 0 0 33px rgba(0, 191, 255, 0.27);
    animation: plasmaFlow 7.8s ease-in-out infinite, plasmaDistort 12s ease-in-out infinite, rotateFront 19s linear infinite;
    animation-delay: 2.5s, 2.5s, 2.5s;
}

.sphere-6::after {
    display: none;
}


.sphere-7 {
    width: 350px;
    height: 350px;
    top: 15%;
    left: -8%;
    opacity: 0.75;
    z-index: 1;
    position: relative;
    background: radial-gradient(circle at 60% 80%, 
        rgba(255, 182, 193, 0.94) 0%,
        rgba(138, 43, 226, 0.89) 26%,
        rgba(0, 191, 255, 0.84) 56%,
        rgba(255, 105, 180, 0.74) 100%);
    box-shadow: 
        0 0 70px rgba(255, 182, 193, 0.9),
        0 0 130px rgba(138, 43, 226, 0.82),
        inset 0 0 48px rgba(255, 255, 255, 0.18);
    animation: breathe 12.5s ease-in-out infinite, noiseDistort 13.5s ease-in-out infinite;
    animation-delay: 3s, 3s;
}

.sphere-7::before {
    background: 
        radial-gradient(ellipse at 60% 80%,
            rgba(255, 182, 193, 0.7) 0%,
            rgba(138, 43, 226, 0.6) 24%,
            rgba(0, 191, 255, 0.5) 50%,
            rgba(255, 182, 193, 0.35) 74%,
            transparent 100%),
        radial-gradient(ellipse at 40% 20%,
            rgba(138, 43, 226, 0.6) 0%,
            rgba(0, 191, 255, 0.5) 26%,
            rgba(255, 105, 180, 0.4) 56%,
            transparent 100%);
    border: 2px solid rgba(255, 182, 193, 0.6);
    box-shadow: 
        0 0 35px rgba(255, 182, 193, 0.8),
        0 0 70px rgba(138, 43, 226, 0.6),
        0 0 95px rgba(0, 191, 255, 0.5),
        inset 0 0 45px rgba(255, 182, 193, 0.28);
    animation: plasmaFlow 8.8s ease-in-out infinite, plasmaDistort 13.5s ease-in-out infinite, rotateFront 38s linear infinite;
    animation-delay: 3s, 3s, 3s;
}

.sphere-7::after {
    display: none;
}

/* Lottieアニメーション - sphere-7を外側から覆いかぶせる */
/* Lottieアニメーション共通スタイル */
dotlottie-wc {
    border-radius: 50% !important;
    overflow: hidden !important;
    border: none !important;
    outline: none !important;
    display: block !important;
    box-shadow: none !important;
}

dotlottie-wc canvas,
dotlottie-wc svg,
dotlottie-wc * {
    border-radius: 50% !important;
    overflow: hidden !important;
    border: none !important;
    outline: none !important;
}

/* Lottieアニメーション - sphere-1を外側から覆いかぶせる */
.sphere-1-lottie {
    position: absolute;
    top: calc(15% - 40px);
    left: calc(5% - 40px);
    width: 280px;
    height: 280px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
    border-radius: 50%;
    overflow: hidden;
    border: none;
    outline: none;
}

/* Lottieアニメーション - sphere-2を外側から覆いかぶせる */
.sphere-2-lottie {
    position: absolute;
    top: calc(50% - 55px);
    right: calc(10% - 55px);
    width: 390px;
    height: 390px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
}

/* Lottieアニメーション - sphere-3を外側から覆いかぶせる */
.sphere-3-lottie {
    position: absolute;
    top: calc(25% - 30px);
    right: calc(25% - 30px);
    width: 220px;
    height: 220px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
}

/* Lottieアニメーション - sphere-4を外側から覆いかぶせる */
.sphere-4-lottie {
    position: absolute;
    bottom: calc(15% - 45px);
    left: calc(15% - 45px);
    width: 330px;
    height: 330px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
}

/* Lottieアニメーション - sphere-5を外側から覆いかぶせる */
.sphere-5-lottie {
    position: absolute;
    top: calc(5% - 35px);
    right: calc(2% - 35px);
    width: 250px;
    height: 250px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
}

/* Lottieアニメーション - sphere-6を外側から覆いかぶせる */
.sphere-6-lottie {
    position: absolute;
    top: calc(10% - 65px);
    right: calc(-5% - 65px);
    width: 450px;
    height: 450px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
}

/* Lottieアニメーション - sphere-7を外側から覆いかぶせる */
.sphere-7-lottie {
    position: absolute;
    top: calc(15% - 50px);
    left: calc(-8% - 50px);
    width: 450px;
    height: 450px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
}

/* Lottieアニメーション - sphere-8を外側から覆いかぶせる */
.sphere-8-lottie {
    position: absolute;
    bottom: calc(25% - 45px);
    right: calc(20% - 45px);
    width: 310px;
    height: 310px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
    display: block;
    transform: translate(0, 0);
}


.sphere-8 {
    width: 220px;
    height: 220px;
    bottom: 25%;
    right: 20%;
    animation: breathe 8.5s ease-in-out infinite, noiseDistort 10s ease-in-out infinite;
    animation-delay: 1.8s, 1.8s;
}

.sphere-8::before {
    animation: plasmaFlow 6.2s ease-in-out infinite, plasmaDistort 10s ease-in-out infinite, rotateFront 21s linear infinite;
    animation-delay: 1.8s, 1.8s, 1.8s;
}

.sphere-8::after {
    display: none;
}


/* Animations */
@keyframes floatAndRotate {
    0% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-20px) scale(1.08);
    }
    50% {
        transform: translateY(-40px) scale(0.92);
    }
    75% {
        transform: translateY(-20px) scale(1.05);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

/* 呼吸のような動き */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 3Dノイズによる歪みアニメーション - パフォーマンス最適化版 */
@keyframes noiseDistort {
    0%, 100% {
        transform: translateZ(0) scale(1);
        opacity: 0.95;
    }
    10% {
        transform: translateZ(0) scale(1.01);
        opacity: 0.96;
    }
    20% {
        transform: translateZ(0) scale(0.99);
        opacity: 0.94;
    }
    30% {
        transform: translateZ(0) scale(1.02);
        opacity: 0.97;
    }
    40% {
        transform: translateZ(0) scale(0.98);
        opacity: 0.93;
    }
    50% {
        transform: translateZ(0) scale(1.01);
        opacity: 0.96;
    }
    60% {
        transform: translateZ(0) scale(0.99);
        opacity: 0.94;
    }
    70% {
        transform: translateZ(0) scale(1.02);
        opacity: 0.97;
    }
    80% {
        transform: translateZ(0) scale(1.0);
        opacity: 0.95;
    }
    90% {
        transform: translateZ(0) scale(1.01);
        opacity: 0.96;
    }
}

/* プラズマフローのアニメーション - 流動的な動き（パフォーマンス最適化版） */
@keyframes plasmaFlow {
    0%, 100% {
        opacity: 0.75;
        transform: translate(-50%, -50%) translateZ(0) scale(1) rotate(0deg);
        box-shadow: 
            0 0 20px rgba(0, 191, 255, 0.6),
            0 0 40px rgba(255, 105, 180, 0.4);
    }
    25% {
        opacity: 0.9;
        transform: translate(-50%, -50%) translateZ(0) scale(1.05) rotate(90deg);
        box-shadow: 
            0 0 25px rgba(0, 191, 255, 0.7),
            0 0 45px rgba(255, 105, 180, 0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0) scale(1.1) rotate(180deg);
        box-shadow: 
            0 0 30px rgba(0, 191, 255, 0.8),
            0 0 50px rgba(255, 105, 180, 0.6);
    }
    75% {
        opacity: 0.9;
        transform: translate(-50%, -50%) translateZ(0) scale(1.05) rotate(270deg);
        box-shadow: 
            0 0 25px rgba(0, 191, 255, 0.7),
            0 0 45px rgba(255, 105, 180, 0.5);
    }
}

/* プラズマの歪みアニメーション */
@keyframes plasmaDistort {
    0%, 100% {
        transform: translate(-50%, -50%) translateZ(0) scale(1);
        opacity: 0.85;
    }
    10% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.02);
        opacity: 0.87;
    }
    20% {
        transform: translate(-50%, -50%) translateZ(0) scale(0.98);
        opacity: 0.83;
    }
    30% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.03);
        opacity: 0.88;
    }
    40% {
        transform: translate(-50%, -50%) translateZ(0) scale(0.99);
        opacity: 0.84;
    }
    50% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.01);
        opacity: 0.86;
    }
    60% {
        transform: translate(-50%, -50%) translateZ(0) scale(0.97);
        opacity: 0.82;
    }
    70% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.03);
        opacity: 0.88;
    }
    80% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.0);
        opacity: 0.85;
    }
    90% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.02);
        opacity: 0.87;
    }
}

/* プラズマパルスアニメーション - 電気的なパルス */
@keyframes plasmaPulse {
    0%, 100% {
        opacity: 0.7;
        filter: blur(0.5px) brightness(1);
    }
    25% {
        opacity: 0.9;
        filter: blur(0.7px) brightness(1.3);
    }
    50% {
        opacity: 1;
        filter: blur(0.8px) brightness(1.5);
    }
    75% {
        opacity: 0.9;
        filter: blur(0.7px) brightness(1.3);
    }
}

/* プラズマパルスアニメーション - 電気的なパルス */
@keyframes plasmaPulse {
    0%, 100% {
        opacity: 0.7;
        filter: blur(0.5px) brightness(1);
    }
    25% {
        opacity: 0.9;
        filter: blur(0.7px) brightness(1.3);
    }
    50% {
        opacity: 1;
        filter: blur(0.8px) brightness(1.5);
    }
    75% {
        opacity: 0.9;
        filter: blur(0.7px) brightness(1.3);
    }
}

/* フロンの回転アニメーション */
@keyframes rotateFront {
    0% {
        transform: translate(-50%, -50%) translateZ(0) rotate(0deg) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) translateZ(0) rotate(360deg) scale(1);
    }
}

/* フロンの逆回転アニメーション */
@keyframes rotateFrontReverse {
    0% {
        transform: translate(-50%, -50%) translateZ(0) rotate(360deg) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) translateZ(0) rotate(0deg) scale(1);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0;
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


/* Mission Hero Section */
.mission-hero {
    padding: 2rem 0 2rem 0;
    background: white;
}

.mission-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.mission-hero-text {
    padding: 1rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.mission-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.mission-hero-title-accent {
    color: #2c3e50;
}

.mission-hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

/* About Hero Text */
.about-hero-text {
    text-align: center;
    margin-bottom: 3rem;
}

.about-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.about-hero-title-accent {
    color: #2c3e50;
}

.about-hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

/* Company Hero Text */
.company-hero-text {
    text-align: center;
    margin-bottom: 3rem;
}

.company-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.company-hero-title-accent {
    color: #2c3e50;
}

.company-hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

.mission-hero-headline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 2.5rem 0;
    line-height: 1.4;
}

.mission-hero-button {
    margin-top: 2rem;
}

.btn-mission {
    background: white;
    color: #333;
    border: 2px solid #333;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-mission:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
}

.mission-hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.mission-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Services Hero Section */
.services-hero {
    padding: 2rem 0 2rem 0;
    background: #f8fafc;
}

.services-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.services-hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.services-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.services-hero-text {
    padding: 1rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.services-hero-title-accent {
    color: #2c3e50;
}

.services-hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

.services-hero-headline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.services-hero-description {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 2.5rem 0;
}

.services-hero-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services-hero-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.services-hero-link:hover {
    color: #2c3e50;
}

.services-hero-arrow {
    color: #9ca3af;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Services Section */
.services {
    padding: 2rem 0 2rem 0;
    background: #f8fafc;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 1200px;
    max-width: 1200px;
    width: 100%;
    height: 320px;
    margin: 0 auto;
    box-sizing: border-box;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.service-card:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(100px);
}

.service-card:nth-child(even).animate-in {
    transform: translateX(0);
}


.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:nth-child(even):hover {
    transform: translateY(-10px) scale(1.02);
}

.service-image {
    flex: 0 0 480px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.animate-in .service-image {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.service-card:nth-child(even) .service-image {
    transform: scale(0.8) rotate(10deg);
}

.service-card:nth-child(even).animate-in .service-image {
    transform: scale(1) rotate(0deg);
}

.service-content {
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:nth-child(even) .service-content {
    margin-left: 2rem;
}

.service-card.animate-in .service-content {
    opacity: 1;
    transform: translateY(0);
}

.tech-icon {
    width: 480px;
    height: 320px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tech-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.tech-icon > * {
    position: relative;
    z-index: 2;
}

.web-tech {
    background: url('./images/service-001.jpg');
    background-size: cover;
    background-position: center;
}

.ai-tech {
    background: url('./images/service-002.jpg');
    background-size: cover;
    background-position: center;
}

.cloud-tech {
    background: url('./images/service-003.jpg');
    background-size: cover;
    background-position: center;
}

.corporate-tech {
    background: url('./images/service-004.jpg');
    background-size: cover;
    background-position: center;
}

.marketing-tech {
    background: url('./images/service-005.jpg');
    background-size: cover;
    background-position: center;
}

/* WEB Tech Animation */
.code-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.line {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    animation: codeTyping 2s ease-in-out infinite;
}

.line:nth-child(1) { animation-delay: 0s; }
.line:nth-child(2) { animation-delay: 0.2s; }
.line:nth-child(3) { animation-delay: 0.4s; }
.line:nth-child(4) { animation-delay: 0.6s; }
.line:nth-child(5) { animation-delay: 0.8s; }

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.8) 0%, rgba(44, 62, 80, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(44, 62, 80, 0.6);
    animation: aiFloat 8s ease-in-out infinite;
}

.element-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    width: 8px;
    height: 8px;
}

.element-2 {
    top: 45%;
    right: 12%;
    animation-delay: 2.5s;
    width: 5px;
    height: 5px;
}

.element-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 5s;
    width: 7px;
    height: 7px;
}

.element-4 {
    top: 70%;
    right: 25%;
    animation-delay: 1.5s;
    width: 4px;
    height: 4px;
}

.element-5 {
    top: 30%;
    left: 60%;
    animation-delay: 3.5s;
    width: 6px;
    height: 6px;
}

/* AI Tech Animation */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.node-1 { top: 20%; left: 20%; animation-delay: 0s; }
.node-2 { top: 20%; right: 20%; animation-delay: 0.3s; }
.node-3 { top: 50%; left: 10%; animation-delay: 0.6s; }
.node-4 { top: 50%; right: 10%; animation-delay: 0.9s; }
.node-5 { bottom: 20%; left: 50%; animation-delay: 1.2s; }

.connection {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    animation: dataFlow 3s ease-in-out infinite;
}

.connection-1 {
    top: 25%;
    left: 25%;
    width: 50%;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.connection-2 {
    top: 25%;
    right: 25%;
    width: 50%;
    transform: rotate(-15deg);
    animation-delay: 0.5s;
}

.connection-3 {
    top: 55%;
    left: 15%;
    width: 70%;
    transform: rotate(10deg);
    animation-delay: 1s;
}

.connection-4 {
    bottom: 25%;
    left: 55%;
    width: 40%;
    transform: rotate(-20deg);
    animation-delay: 1.5s;
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.5) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(44, 62, 80, 0.7);
    animation: dataFlow 3s linear infinite;
}

.data-point:nth-child(1) {
    top: 20%;
    left: 25%;
    animation-delay: 0s;
    width: 5px;
    height: 5px;
}

.data-point:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
}

.data-point:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 2s;
    width: 4px;
    height: 4px;
}

.data-point:nth-child(4) {
    top: 75%;
    right: 40%;
    animation-delay: 0.5s;
    width: 3px;
    height: 3px;
}

.data-point:nth-child(5) {
    top: 35%;
    left: 70%;
    animation-delay: 1.5s;
    width: 4px;
    height: 4px;
}

/* Cloud Tech Animation */
.cloud-structure {
    position: absolute;
    width: 100%;
    height: 100%;
}

.server {
    position: absolute;
    width: 20px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    animation: serverPulse 2s ease-in-out infinite;
}

.server-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.server-2 {
    top: 50%;
    left: 50%;
    animation-delay: 0.5s;
}

.server-3 {
    bottom: 20%;
    right: 30%;
    animation-delay: 1s;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    animation: connectionFlow 3s ease-in-out infinite;
}

.line-1 {
    top: 35%;
    left: 50%;
    width: 20%;
    animation-delay: 0s;
}

.line-2 {
    top: 65%;
    left: 70%;
    width: 20%;
    animation-delay: 1s;
}

.line-3 {
    top: 50%;
    left: 30%;
    width: 20%;
    animation-delay: 2s;
}

/* Digital Tech Animation */
.corporate-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.digital-pixel {
    position: absolute;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    border-radius: 2px;
    animation: digitalGlow 3s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.building-1 {
    width: 8px;
    height: 8px;
    top: 25%;
    left: 20%;
    animation-delay: 0s;
}

.building-2 {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 45%;
    animation-delay: 0.8s;
}

.building-3 {
    width: 10px;
    height: 10px;
    top: 60%;
    left: 70%;
    animation-delay: 1.6s;
}

.logo-icon {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    animation: digitalPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.8);
}

.corporate-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.corporate-particles .particle {
    background: radial-gradient(circle, rgba(44, 62, 80, 0.6) 0%, rgba(44, 62, 80, 0.2) 50%, transparent 100%);
    animation: corporateFloat 5s ease-in-out infinite;
}

.corporate-particles .particle-1 {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
}

.corporate-particles .particle-2 {
    top: 40%;
    left: 60%;
    animation-delay: 1.2s;
}

.corporate-particles .particle-3 {
    top: 70%;
    left: 15%;
    animation-delay: 2.4s;
}

.corporate-particles .particle-4 {
    top: 25%;
    left: 80%;
    animation-delay: 3.6s;
}

@keyframes buildingGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(44, 62, 80, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(44, 62, 80, 0.6);
        transform: scale(1.05);
    }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes corporateFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

/* Marketing Tech Animation */
.marketing-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chart {
    position: absolute;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 2px;
    animation: chartGrow 3s ease-in-out infinite;
}

.chart-1 {
    width: 8px;
    height: 40px;
    bottom: 30%;
    left: 25%;
    animation-delay: 0s;
}

.chart-2 {
    width: 8px;
    height: 60px;
    bottom: 30%;
    left: 45%;
    animation-delay: 0.5s;
}

.chart-3 {
    width: 8px;
    height: 35px;
    bottom: 30%;
    left: 65%;
    animation-delay: 1s;
}

.target-icon {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    border: 3px solid white;
    animation: targetPulse 2s ease-in-out infinite;
}

.marketing-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.marketing-particles .particle {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.8) 0%, rgba(0, 204, 255, 0.6) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
    animation: digitalFloat 3s ease-in-out infinite;
}

.marketing-particles .particle-1 {
    top: 20%;
    left: 15%;
    width: 6px;
    height: 6px;
    animation-delay: 0s;
}

.marketing-particles .particle-2 {
    top: 45%;
    left: 75%;
    width: 8px;
    height: 8px;
    animation-delay: 0.6s;
}

.marketing-particles .particle-3 {
    top: 70%;
    left: 30%;
    width: 5px;
    height: 5px;
    animation-delay: 1.2s;
}

.marketing-particles .particle-4 {
    top: 35%;
    left: 85%;
    width: 7px;
    height: 7px;
    animation-delay: 1.8s;
}

.marketing-particles .particle-5 {
    top: 60%;
    left: 10%;
    width: 9px;
    height: 9px;
    animation-delay: 2.4s;
}

/* Digital Animations */
@keyframes digitalGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.9);
    }
}

@keyframes digitalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 12px rgba(255, 107, 107, 0.8);
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 107, 107, 1);
    }
}

@keyframes digitalFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes chartGrow {
    0%, 100% { 
        transform: scaleY(1);
        opacity: 0.8;
    }
    50% { 
        transform: scaleY(1.3);
        opacity: 1;
    }
}

@keyframes targetPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    }
}

@keyframes marketingFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-15px) translateX(5px);
        opacity: 1;
    }
}

.cloud-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.7) 0%, rgba(44, 62, 80, 0.3) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(44, 62, 80, 0.5);
    animation: cloudFloat 6s ease-in-out infinite;
}

.particle-1 {
    top: 8%;
    left: 15%;
    animation-delay: 0s;
    width: 4px;
    height: 4px;
}

.particle-2 {
    top: 25%;
    right: 8%;
    animation-delay: 1.5s;
    width: 2px;
    height: 2px;
}

.particle-3 {
    bottom: 15%;
    left: 8%;
    animation-delay: 3s;
    width: 3px;
    height: 3px;
}

.particle-4 {
    bottom: 8%;
    right: 15%;
    animation-delay: 4.5s;
    width: 2px;
    height: 2px;
}

.particle-5 {
    top: 60%;
    left: 40%;
    animation-delay: 0.8s;
    width: 3px;
    height: 3px;
}

.particle-6 {
    top: 40%;
    right: 35%;
    animation-delay: 2.2s;
    width: 2px;
    height: 2px;
}

/* Animations */
@keyframes codeTyping {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes aiFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

@keyframes dataFlow {
    0% { 
        transform: translateX(0px) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(10px) scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: translateX(0px) scale(1);
        opacity: 0.7;
    }
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -10px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(5px, 10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes dataFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes dataMove {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(30px, 30px); opacity: 0; }
}

@keyframes serverPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes connectionFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes cloudFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(15px, -15px); opacity: 0.8; }
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    padding: 2rem 0;
    background: white;
}

.portfolio-hero-text {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.portfolio-hero-title-accent {
    color: #2c3e50;
}

.portfolio-hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

.portfolio .container {
    max-width: 1600px;
}

.portfolio-container {
    position: relative;
    margin-top: 3rem;
    overflow: visible;
}

/* Portfolio Slider Styles */
.portfolio-slider {
    position: relative;
    overflow: visible;
    margin: 2rem 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.portfolio-slider .portfolio-grid {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    gap: 2rem;
    flex-direction: row; /* 横並びを強制 */
}

.portfolio-slider .portfolio-item {
    flex: 0 0 auto;
    width: 485.328px; /* コンテンツ421.328px + padding64px */
    padding: 0 32px;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

.portfolio-slider .portfolio-header {
    background: #f8fafc;
    margin: 0 -32px;
    padding: 2rem 32px;
}

/* Slider Navigation */
.slider-navigation {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    font-size: 1.2rem;
    z-index: 1000;
    position: relative;
}

.slider-btn:hover {
    background: #2c3e50;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-prev {
    margin-left: -25px;
}

.slider-next {
    margin-right: -25px;
}

/* Responsive Design for Portfolio Slider */
@media (max-width: 1200px) {
    .slider-wrapper {
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: hidden; /* 1つのアイテムのみ表示 */
        padding-bottom: 10px;
    }
    
    .portfolio-slider .portfolio-grid {
        display: flex;
        justify-content: center; /* 中央配置 */
        align-items: center;
        width: 100%;
        margin: 0;
        position: relative;
        text-align: center; /* 中央揃えを追加 */
        transition: transform 0.5s ease-in-out;
        will-change: transform;
        flex-direction: row; /* 横並びを強制 */
    }
    
    .portfolio-slider .portfolio-item,
    .portfolio-slider .portfolio-item-link {
        width: calc(100vw - 40px); /* 画面幅から余白を引く */
        max-width: 100%;
        flex: 0 0 auto;
        margin: 0;
        box-sizing: border-box;
        display: block;
        min-height: 400px; /* 最小高さを設定 */
        height: auto;
        opacity: 1 !important; /* animate-inクラスの影響を無効化 */
    }
    
    /* portfolio-headerとportfolio-contentの高さを強制的に統一 */
    .portfolio-slider .portfolio-header {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
    
    .portfolio-slider .portfolio-content {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
    
    .portfolio-slider .portfolio-title {
        margin: 0 0 1rem 0;
        line-height: 1.3;
        height: 2.6rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .portfolio-slider .portfolio-client {
        margin: 0 0 1rem 0;
        height: 1.5rem;
        overflow: hidden;
    }
    
    .portfolio-slider .portfolio-category {
        margin: 0 0 1rem 0;
        height: 1.5rem;
        overflow: hidden;
    }
    
    .portfolio-slider .portfolio-description {
        flex: 1;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
    }
    
    /* 表示されているアイテムを強制的に中央配置（JavaScriptで制御） */
    .portfolio-slider .portfolio-item,
    .portfolio-slider .portfolio-item-link {
        display: none !important;
    }
    
    /* JavaScriptで制御するため、CSSの:first-child制御を無効化 */
    .portfolio-slider .portfolio-item:first-child,
    .portfolio-slider .portfolio-item-link:first-child {
        display: none !important;
    }
    
    /* animate-inクラスを完全に無効化 */
    .portfolio-slider .portfolio-item.animate-in,
    .portfolio-slider .portfolio-item-link.animate-in,
    .portfolio-slider .portfolio-item.cloned-item,
    .portfolio-slider .portfolio-item-link.cloned-item {
        opacity: 1 !important;
        transition: none !important;
    }
    
    /* portfolio-grid外のportfolio-itemを非表示 */
    .portfolio-slider .portfolio-item:not(.portfolio-item-link),
    .portfolio-slider .portfolio-item-link:not(.portfolio-item-link) {
        display: none !important;
    }
    
    /* portfolio-grid外のa.portfolio-item-linkを非表示 */
    .portfolio-slider a.portfolio-item-link:not(.portfolio-item-link) {
        display: none !important;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        display: flex; /* ボタンを確実に表示 */
        pointer-events: auto; /* クリック可能にする */
    }
    
    .slider-prev {
        margin-left: -20px;
    }
    
    .slider-next {
        margin-right: -20px;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    width: 100%;
}

/* PC版のportfolio.html専用の設定（横並びを防ぐ） */
@media (min-width: 1201px) {
    .portfolio .portfolio-grid:not(.portfolio-slider .portfolio-grid) {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
        flex-direction: column !important;
    }
    
    /* PC版のslider-wrapperとportfolio-item-linkを確実に表示 */
    .portfolio-slider {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .slider-wrapper {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .portfolio-slider .portfolio-grid {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .portfolio-slider .portfolio-item-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        left: auto !important;
        margin: 0 !important;
        width: 485.328px !important;
        max-width: 485.328px !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    /* 元のアイテム（portfolio-item.portfolio-item-link）を確実に表示 */
    .portfolio-slider .portfolio-item.portfolio-item-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        left: auto !important;
        margin: 0 !important;
        width: 485.328px !important;
        max-width: 485.328px !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    .portfolio-slider .portfolio-item-link.cloned-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    .portfolio-slider .portfolio-grid {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-wrap: nowrap !important;
    }
}


.portfolio-item {
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px);
}


.portfolio-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 0 0 auto;
    width: 485.328px; /* コンテンツ421.328px + padding64px */
    padding: 0 32px;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

/* レスポンシブ対応時のportfolio-itemの幅調整 */
@media (max-width: 1200px) {
    .portfolio-item,
    .portfolio-item-link {
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        display: block !important;
        min-height: 400px !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .portfolio-item,
    .portfolio-item-link {
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        display: block !important;
        min-height: 380px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .portfolio-item,
    .portfolio-item-link {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        display: block !important;
        min-height: 350px !important;
        height: auto !important;
    }
}

/* portfolio-gridのレスポンシブ対応 */
@media (max-width: 1200px) {
    .portfolio-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 2rem !important;
        justify-content: center !important;
        align-items: start !important;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        justify-content: center !important;
        align-items: start !important;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        justify-content: center !important;
        align-items: start !important;
    }
}

.portfolio-item-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-header {
    background: #f8fafc;
    padding: 2rem;
    color: #1f2937;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* portfolio.html専用のportfolio-header背景色拡張 */
.portfolio .portfolio-header {
    margin: 0 -32px; /* portfolio-gridのpadding分を相殺 */
    width: calc(100% + 64px); /* portfolio-gridのpadding分を追加 */
    box-sizing: border-box;
}

/* レスポンシブ対応時のportfolio-headerの高さ調整 */
@media (max-width: 1200px) {
    .portfolio-header {
        min-height: 140px !important;
        height: auto !important;
        padding: 1.8rem 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* portfolio.html専用のレスポンシブ設定 */
    .portfolio .portfolio-header {
        margin: 0 -32px !important; /* portfolio-gridのpadding分を相殺 */
        width: calc(100% + 64px) !important; /* portfolio-gridのpadding分を追加 */
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .portfolio-header {
        min-height: 120px !important;
        height: auto !important;
        padding: 1.5rem 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* portfolio.html専用のレスポンシブ設定 */
    .portfolio .portfolio-header {
        margin: 0 -32px !important; /* portfolio-gridのpadding分を相殺 */
        width: calc(100% + 64px) !important; /* portfolio-gridのpadding分を追加 */
        box-sizing: border-box !important;
    }
    
    .portfolio-title {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .portfolio-client {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        min-height: 100px !important;
        height: auto !important;
        padding: 1rem 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* portfolio.html専用のレスポンシブ設定 */
    .portfolio .portfolio-header {
        margin: 0 -32px !important; /* portfolio-gridのpadding分を相殺 */
        width: calc(100% + 64px) !important; /* portfolio-gridのpadding分を追加 */
        box-sizing: border-box !important;
    }
    
    .portfolio-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.3rem !important;
    }
    
    .portfolio-client {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
}

.portfolio-content {
    padding: 2rem 2rem 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

/* レスポンシブ対応時のportfolio-contentの高さ調整 */
@media (max-width: 1200px) {
    .portfolio-content {
        min-height: 300px !important;
        height: auto !important;
        padding: 2rem 2rem 0 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }
    
    .portfolio-description {
        line-height: 1.8 !important;
        margin-bottom: 1.5rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .portfolio-content {
        min-height: 280px !important;
        height: auto !important;
        padding: 1.5rem 2rem 0 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }
    
    .portfolio-description {
        line-height: 1.7 !important;
        margin-bottom: 1.2rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .portfolio-content {
        min-height: 250px !important;
        height: auto !important;
        padding: 1rem 1.5rem 0 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }
    
    .portfolio-description {
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }
}

.portfolio-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.portfolio-client {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.portfolio-content .portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
}

.portfolio-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
    flex: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Portfolio Button Container */
.portfolio-button-container {
    text-align: center;
    margin-top: 3rem;
}

.portfolio-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.portfolio-list-btn i {
    font-size: 1rem;
}




/* About Section */
.about {
    padding: 6rem 0;
    background: #f8fafc;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


.about-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-top: 0.2rem;
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #6b7280;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 0;
    border: 1px solid #bae6fd;
}

.stat h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 2rem 0;
    background: #f8fafc;
}

.contact-hero-text {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.contact-hero-title-accent {
    color: #2c3e50;
}

.contact-hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 2rem 0;
    font-weight: 500;
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c3e50;
    width: 50px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    background: white;
    padding: 3rem 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
}

.form-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* New Form Layout */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.form-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 1rem;
    min-width: 180px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.form-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #203a43;
}

textarea.form-input {
    width: 100%;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.required {
    color: #dc2626;
    font-weight: bold;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Portfolio Detail Styles */
.portfolio-detail {
    background: #ffffff;
    padding: 2rem 0;
}

.portfolio-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.portfolio-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* レスポンシブ対応時のportfolio-detail-titleのサイズ調整 */
@media (max-width: 1200px) {
    .portfolio-detail-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 768px) {
    .portfolio-detail-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    .portfolio-detail-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
}

.portfolio-detail-client {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.portfolio-detail-category {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-detail-main {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.portfolio-detail-description {
    padding: 2rem;
}

.portfolio-detail-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.portfolio-detail-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
}

.portfolio-detail-description p:last-child {
    margin-bottom: 0;
}

.portfolio-button-container {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.portfolio-button-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-button-container .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.portfolio-button-container .btn-primary:hover {
    background: linear-gradient(135deg, #2c3e50, #1a2533);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

/* Privacy Policy */
.privacy-policy {
    background: #ffffff;
    padding: 3rem 0;
}

.privacy-policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.privacy-policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-policy-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    letter-spacing: 0.05em;
}

.privacy-policy-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.privacy-policy-text {
    line-height: 1.8;
    color: #374151;
}

.privacy-policy-intro {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #2c3e50;
    border-radius: 0 8px 8px 0;
}

.privacy-policy-section {
    margin-bottom: 2.5rem;
}

.privacy-policy-section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.privacy-policy-section-content {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #374151;
}

.privacy-policy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-policy-list li {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.privacy-policy-contact {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
}

.privacy-policy-contact p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #374151;
}

.privacy-policy-contact a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-policy-contact a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Responsive Design for Privacy Policy */
@media (max-width: 760px) {
    .privacy-policy-title {
        font-size: 2rem;
    }
    
    .privacy-policy-content {
        padding: 0 1rem;
    }
    
    .privacy-policy-intro {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .privacy-policy-section-title {
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ffffff;
    padding: 3rem 0 2rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo-image {
    height: 25px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-logo h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.footer-section-links-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-section-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.footer-section-links li {
    display: flex !important;
    align-items: center;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-section-links li:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.footer-section-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    padding: 0.3rem 0.8rem;
    display: block;
}

.footer-section-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 760px) {
    .nav-container {
        padding: 0 20px;
        margin: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.75);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .title-main {
        font-size: 2.2rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .mission-hero-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .mission-hero-image {
        height: 300px;
    }
    
    .mission-hero-text {
        padding: 1rem 1rem;
        text-align: center;
    }
    
    .services-hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        grid-template-rows: auto auto;
    }
    
    .services-hero-image {
        height: 300px;
        order: 2; /* レスポンシブ対応：画像を下に配置 */
    }
    
    .services-hero-text {
        padding: 1rem 1rem;
        text-align: center;
        order: 1; /* レスポンシブ対応：テキストを上に配置 */
    }
    
    .mission-hero-title {
        font-size: 2.8rem;
    }
    
    .about-hero-title {
        font-size: 2.8rem;
    }
    
    .company-hero-title {
        font-size: 2.8rem;
    }
    
    .mission-hero-headline {
        font-size: 1.8rem;
    }
    
    .portfolio-hero-title {
        font-size: 2.8rem;
    }
    
    .contact-hero-title {
        font-size: 2.8rem;
    }
    
    .services-hero-title {
        font-size: 2.8rem;
    }
    
    .services-hero-headline {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Hero Responsive - Tablet */
    .hero-container {
        max-width: 100%;
        width: 100%;
        padding: 1rem 0;
    }
    
    .hero-animated-text {
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        max-height: 60vh;
    }
    
    .animated-text-line {
        white-space: normal;
    }
    
    /* 横画面対応 */
    @media (max-height: 600px) and (orientation: landscape) {
        .hero {
            min-height: 100vh;
            max-height: 100vh;
        }
        
        .hero-container {
            max-height: 90vh;
            max-width: 100%;
            width: 100%;
            padding: 4rem 0 0.5rem 0;
        }
        
        .hero-animated-text {
            max-height: 50vh;
        }
        
    .hero-container {
        max-width: 100%;
        width: 100%;
        padding: 1rem 0;
    }
    
    .hero-animated-text {
        padding: 0;
    }
    
    .animated-text-line {
        white-space: normal;
    }
        
        .hero-main-title {
            font-size: 2rem;
        }
        
        .hero-subtitle {
            font-size: 1.4rem;
        }
    }
    
    .hero-main-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
        min-height: 2em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .typing-animation {
        white-space: nowrap;
        overflow: hidden;
        width: 0;
        border-right: 2px solid black;
        min-height: 1.5em;
        line-height: 1.5;
        animation: typing 4s steps(22, end) 1.5s forwards, blink-caret 0.75s step-end infinite;
    }
    
    
    .services-grid {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        transform: translateY(50px);
        width: 100%;
        max-width: 100%;
        padding: 2rem 1rem;
        box-sizing: border-box;
        min-height: auto;
        height: auto;
    }
    
    .service-card.animate-in {
        transform: translateY(0);
    }
    
    .service-card:nth-child(even) {
        flex-direction: column;
        transform: translateY(50px);
    }
    
    .service-card:nth-child(even).animate-in {
        transform: translateY(0);
    }
    
    .service-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        height: auto;
        min-height: 250px;
    }
    
    .service-card:nth-child(even) .service-content {
        margin-left: 0;
    }
    
    .tech-icon {
        width: 100%;
        max-width: 400px;
        height: 250px;
        min-height: 250px;
        background-size: cover;
        background-position: center;
    }
    
    /* 横画面対応 */
    @media (max-height: 600px) and (orientation: landscape) {
        .service-card {
            padding: 1rem 0.5rem;
            gap: 1rem;
        }
        
        .service-image {
            max-width: 200px;
            min-height: 200px;
        }
        
        .tech-icon {
            width: 100%;
            max-width: 300px;
            height: 200px;
            min-height: 200px;
            background-size: cover;
            background-position: center;
        }
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .portfolio-item {
        transform: translateY(30px);
    }
    
    .portfolio-item.animate-in {
        transform: translateY(0);
    }
    
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-label {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    .form-input {
        width: 100%;
    }
    
    .contact-form {
        padding: 2rem 0;
    }
    
    .form-content {
        padding: 0 1rem;
    }
    
    .footer-section-links-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .footer-section-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.3rem !important;
        min-width: min-content;
    }
    
    .footer-section-links li:not(:last-child)::after {
        display: none;
    }
    
    .footer-section-links a {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        white-space: nowrap;
    }
    
    .footer-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .sphere {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .title-main {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .services-hero-title {
        font-size: 2.2rem;
    }
    
    .services-hero-headline {
        font-size: 1.5rem;
    }
    
    .mission-hero-title {
        font-size: 2.2rem;
    }
    
    .about-hero-title {
        font-size: 2.2rem;
    }
    
    .company-hero-title {
        font-size: 2.2rem;
    }
    
    .mission-hero-headline {
        font-size: 1.5rem;
    }
    
    .portfolio-hero-title {
        font-size: 2.2rem;
    }
    
    .contact-hero-title {
        font-size: 2.2rem;
    }
    
    .mission-hero-image {
        height: 250px;
    }
    
    .mission-hero-text {
        padding: 1rem 1rem;
    }
    
    .services-hero-description {
        font-size: 1rem;
    }
    
    .services-hero-image {
        height: 250px;
        order: 2; /* レスポンシブ対応：画像を下に配置 */
    }
    
    .services-hero-text {
        padding: 1rem 1rem;
        order: 1; /* レスポンシブ対応：テキストを上に配置 */
    }
    
    .service-card {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem 0.5rem;
        box-sizing: border-box;
        min-height: auto;
        height: auto;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-section-links-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0.5rem;
    }
    
    .footer-section-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.2rem !important;
    }
    
    .footer-section-links a {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
    
    .footer-section-title {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }
}

/* Extra Small Devices - Mobile */
@media (max-width: 480px) {
    /* Hero Responsive - Mobile */
    .hero-animated-text {
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        min-height: 2em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .typing-animation {
        white-space: nowrap;
        overflow: hidden;
        width: 0;
        border-right: 2px solid black;
        min-height: 1.5em;
        line-height: 1.5;
        animation: typing 4s steps(22, end) 1.5s forwards, blink-caret 0.75s step-end infinite;
    }
    
    /* 小さな画面での縦幅調整 */
    @media (max-height: 500px) {
        .hero {
            min-height: 100vh;
            max-height: 100vh;
        }
        
        .hero-container {
            max-height: 95vh;
            max-width: 100%;
            width: 100%;
            padding: 4rem 0 0.5rem 0;
        }
        
        .hero-animated-text {
            max-height: 45vh;
        }
        
        .hero-main-title {
            font-size: 1.4rem;
        }
        
        .hero-subtitle {
            font-size: 1.1rem;
        }
    }
    
    /* 非常に小さな画面（360px以下） */
    @media (max-width: 360px) {
        .hero-main-title {
            font-size: 1.2rem;
        }
        
        .hero-subtitle {
            font-size: 1rem;
        }
    }
    
    /* 極小画面（320px以下） */
    @media (max-width: 320px) {
        .hero-main-title {
            font-size: 1rem;
        }
        
        .hero-subtitle {
            font-size: 0.9rem;
        }
    }
    
    /* 超極小画面（280px以下） */
    @media (max-width: 280px) {
        .hero-main-title {
            font-size: 0.9rem;
        }
        
        .hero-subtitle {
            font-size: 0.8rem;
        }
    }
    
    /* 400px以下の画面での調整 */
    @media (max-width: 400px) {
        .hero-main-title {
            font-size: 1.848rem;
        }
        
        .hero-subtitle {
            font-size: 1.386rem;
        }
    }
}

/* Company Information Section */
.company-info {
    background: #f8f9fa;
    padding: 4rem 0;
}

.company-info-content {
    max-width: 1200px;
    margin: 0 auto;
}

.company-details-block {
    background: white;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.company-detail-row {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
}

.company-detail-row:last-child {
    border-bottom: none;
}

.company-detail-label {
    width: 200px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: #000000;
    font-size: 1rem;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.company-detail-value {
    flex: 1;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .company-detail-row {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
    }
    
    .company-detail-label {
        width: 100%;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .company-detail-value {
        font-size: 0.95rem;
    }
}

/* Contact Button Section */
.contact-button-section {
    background: white;
    padding: 3rem 0;
}

.contact-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #203a43, #2d4a53);
    color: white;
    box-shadow: 0 4px 15px rgba(32, 58, 67, 0.3);
}

.contact-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 58, 67, 0.4);
    background: linear-gradient(135deg, #2d4a53, #203a43);
}

.contact-form-btn i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-form-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* レスポンシブ対応時のspheres-container表示 */
@media (max-width: 1200px) {
    .spheres-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform-origin: center;
    }
    /* 特定スフィアを非表示 */
    .sphere-3,
    .sphere-5,
    .sphere-6,
    .sphere-8,
    .sphere-3-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-8-lottie {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    /* 念のため全スフィアとLottieを表示維持 */
    .sphere,
    .sphere-1,
    .sphere-2,
    .sphere-3,
    .sphere-4,
    .sphere-5,
    .sphere-6,
    .sphere-7,
    .sphere-8,
    .sphere-1-lottie,
    .sphere-2-lottie,
    .sphere-3-lottie,
    .sphere-4-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-7-lottie,
    .sphere-8-lottie {
        display: block !important;
        visibility: visible !important;
        opacity: 0.9 !important;
    }
    /* sphere-2の影を丸くクリップ */
    .sphere-2,
    .sphere-2::before,
    .sphere-2::after {
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;
    }
    /* sphere-7の影を丸くクリップ */
    .sphere-7,
    .sphere-7::before,
    .sphere-7::after {
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;
    }
    /* 特定スフィアを非表示 */
    .sphere-3,
    .sphere-5,
    .sphere-6,
    .sphere-8,
    .sphere-3-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-8-lottie {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 768px) {
    .spheres-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transform-origin: center;
    }
    /* 特定スフィアを非表示 */
    .sphere-3,
    .sphere-5,
    .sphere-6,
    .sphere-8,
    .sphere-3-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-8-lottie {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .sphere,
    .sphere-1,
    .sphere-2,
    .sphere-3,
    .sphere-4,
    .sphere-5,
    .sphere-6,
    .sphere-7,
    .sphere-8,
    .sphere-1-lottie,
    .sphere-2-lottie,
    .sphere-3-lottie,
    .sphere-4-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-7-lottie,
    .sphere-8-lottie {
        display: block !important;
        visibility: visible !important;
        opacity: 0.85 !important;
    }
    /* sphere-7の影を丸くクリップ */
    .sphere-7,
    .sphere-7::before,
    .sphere-7::after {
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;
    }
    /* sphere-2の影を丸くクリップ */
    .sphere-2,
    .sphere-2::before,
    .sphere-2::after {
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;
    }
    /* 特定スフィアを非表示 */
    .sphere-3,
    .sphere-5,
    .sphere-6,
    .sphere-8,
    .sphere-3-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-8-lottie {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 480px) {
    .spheres-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transform-origin: center;
    }
    /* 特定スフィアを非表示 */
    .sphere-3,
    .sphere-5,
    .sphere-6,
    .sphere-8,
    .sphere-3-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-8-lottie {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .sphere,
    .sphere-1,
    .sphere-2,
    .sphere-3,
    .sphere-4,
    .sphere-5,
    .sphere-6,
    .sphere-7,
    .sphere-8,
    .sphere-1-lottie,
    .sphere-2-lottie,
    .sphere-3-lottie,
    .sphere-4-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-7-lottie,
    .sphere-8-lottie {
        display: block !important;
        visibility: visible !important;
        opacity: 0.82 !important;
    }
    /* sphere-7の影を丸くクリップ */
    .sphere-7,
    .sphere-7::before,
    .sphere-7::after {
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;
    }
    /* sphere-2の影を丸くクリップ */
    .sphere-2,
    .sphere-2::before,
    .sphere-2::after {
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
        -webkit-clip-path: circle(50% at 50% 50%) !important;
    }
    /* 特定スフィアを非表示 */
    .sphere-3,
    .sphere-5,
    .sphere-6,
    .sphere-8,
    .sphere-3-lottie,
    .sphere-5-lottie,
    .sphere-6-lottie,
    .sphere-8-lottie {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}
