/* ====================
共通スタイル
==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    background-color: #0a0a0f;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.8;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ====================
強化されたサイバーパンク背景システム
==================== */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* より明るいベースグラデーション */
.bg-base {
   position: absolute;
    width: 100%;
    height: 100%;
    /* background を background-color から rgba に変更 */
    background: linear-gradient(135deg, 
        rgba(15, 15, 26, 0.3) 0%,     /* 0.3 = 30%不透明度 */
        rgba(42, 16, 64, 0.3) 25%, 
        rgba(26, 32, 80, 0.3) 50%, 
        rgba(58, 16, 96, 0.3) 75%, 
        rgba(15, 15, 26, 0.3) 100%);
    animation: gradient-shift 12s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.9; }
    50% { opacity: 0.95; }
    75% { opacity: 0.85; }
}

/* より明るいネオングリッド */
.neon-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    animation: grid-move 25s linear infinite;
    transform: perspective(800px) rotateX(60deg) translateZ(-200px);
    transform-origin: center bottom;
}

@keyframes grid-move {
    0% { transform: perspective(800px) rotateX(60deg) translateZ(-200px) translateY(0); }
    100% { transform: perspective(800px) rotateX(60deg) translateZ(-200px) translateY(-40px); }
}

/* 強化された浮遊粒子システム */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.9) 0%, rgba(0, 255, 255, 0.3) 50%, transparent 70%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.particle:nth-child(even) {
    background: radial-gradient(circle, rgba(255, 0, 255, 0.9) 0%, rgba(255, 0, 255, 0.3) 50%, transparent 70%);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

/* より多くの粒子 */
.particle-1 { width: 4px; height: 4px; left: 5%; animation: float-up 20s infinite linear; }
.particle-2 { width: 6px; height: 6px; left: 15%; animation: float-up 18s infinite linear 2s; }
.particle-3 { width: 3px; height: 3px; left: 25%; animation: float-up 22s infinite linear 1s; }
.particle-4 { width: 5px; height: 5px; left: 35%; animation: float-up 16s infinite linear 3s; }
.particle-5 { width: 4px; height: 4px; left: 45%; animation: float-up 24s infinite linear 0.5s; }
.particle-6 { width: 7px; height: 7px; left: 55%; animation: float-up 19s infinite linear 2.5s; }
.particle-7 { width: 5px; height: 5px; left: 65%; animation: float-up 21s infinite linear 1.5s; }
.particle-8 { width: 3px; height: 3px; left: 75%; animation: float-up 17s infinite linear 4s; }
.particle-9 { width: 6px; height: 6px; left: 85%; animation: float-up 23s infinite linear 0.8s; }
.particle-10 { width: 4px; height: 4px; left: 95%; animation: float-up 20s infinite linear 3.2s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translateY(95vh) translateX(10px) scale(1);
    }
    95% {
        opacity: 1;
        transform: translateY(-5vh) translateX(150px) scale(1);
    }
    100% {
        transform: translateY(-10vh) translateX(200px) scale(0);
        opacity: 0;
    }
}

/* データストリーム効果 */
.data-streams {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #00ff00, transparent);
    opacity: 0.6;
}

.stream-1 { left: 10%; height: 200px; animation: stream-fall 3s infinite linear; }
.stream-2 { left: 30%; height: 150px; animation: stream-fall 2.5s infinite linear 0.5s; }
.stream-3 { left: 50%; height: 250px; animation: stream-fall 3.5s infinite linear 1s; }
.stream-4 { left: 70%; height: 180px; animation: stream-fall 2.8s infinite linear 1.5s; }
.stream-5 { left: 90%; height: 220px; animation: stream-fall 3.2s infinite linear 2s; }

@keyframes stream-fall {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* 強化されたスキャンライン */
.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.08) 50%
    );
    background-size: 100% 3px;
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

/* サイバー回路パターン */
.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(0, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, transparent 49%, rgba(0, 255, 255, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(255, 0, 255, 0.1) 50%, transparent 51%);
    background-size: 300px 300px, 250px 250px, 400px 400px, 100px 20px, 20px 100px;
    animation: circuit-pulse 8s ease-in-out infinite;
}

@keyframes circuit-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* より多くの強化されたネオンビーム */
.neon-beams {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.beam {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 0, 255, 0.8), 
        rgba(0, 255, 255, 0.8), 
        transparent);
    filter: blur(1px);
    box-shadow: 0 0 10px currentColor;
}

.beam-1 { width: 200%; top: 15%; animation: beam-slide 6s linear infinite; }
.beam-2 { width: 150%; top: 35%; animation: beam-slide 8s linear infinite reverse; }
.beam-3 { width: 180%; top: 55%; animation: beam-slide 7s linear infinite 2s; }
.beam-4 { width: 220%; top: 75%; animation: beam-slide 5s linear infinite 1s; }

@keyframes beam-slide {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* サイバーシェイプの強化 */
.cyber-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border: 2px solid;
    animation: float 20s infinite ease-in-out;
    filter: drop-shadow(0 0 10px currentColor);
}

.shape-1 { width: 80px; height: 80px; border-color: rgba(255, 0, 255, 0.6); top: 5%; left: 8%; transform: rotate(45deg); animation-duration: 25s; }
.shape-2 { width: 120px; height: 120px; border-color: rgba(0, 255, 255, 0.6); top: 15%; right: 10%; animation-duration: 30s; animation-delay: -5s; }
.shape-3 { width: 60px; height: 60px; border-color: rgba(255, 0, 255, 0.6); bottom: 25%; left: 20%; transform: rotate(30deg); animation-duration: 22s; animation-delay: -10s; }
.shape-4 { width: 100px; height: 100px; border-color: rgba(0, 255, 255, 0.6); top: 40%; left: 15%; transform: rotate(60deg); animation-duration: 28s; animation-delay: -15s; }
.shape-5 { width: 70px; height: 70px; border-color: rgba(255, 0, 255, 0.6); top: 60%; right: 20%; animation-duration: 35s; animation-delay: -20s; }
.shape-6 { width: 90px; height: 90px; border-color: rgba(0, 255, 255, 0.6); bottom: 15%; right: 30%; transform: rotate(15deg); animation-duration: 26s; animation-delay: -8s; }
.shape-7 { width: 110px; height: 110px; border-color: rgba(255, 0, 255, 0.6); top: 25%; left: 40%; animation-duration: 32s; animation-delay: -12s; }
.shape-8 { width: 50px; height: 50px; border-color: rgba(0, 255, 255, 0.6); bottom: 40%; left: 60%; transform: rotate(75deg); animation-duration: 20s; animation-delay: -18s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(0) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(40px) rotate(270deg) scale(1.05);
    }
}

/* ホログラム効果 */
.hologram-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 255, 0.05) 50%,
        transparent 70%
    );
    animation: hologram-sweep 10s linear infinite;
}

@keyframes hologram-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ====================
ヒーローセクション
==================== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    background: radial-gradient(ellipse at center, 
        rgba(255, 0, 255, 0.15) 0%, 
        rgba(0, 255, 255, 0.1) 50%,
        transparent 70%);
}

.hero-content {
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 3s ease infinite;
    text-shadow: 0 0 40px rgba(255, 0, 255, 0.5);
    position: relative;
    text-transform: uppercase;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* グリッチエフェクト */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff00ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(0); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(-2px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(-1px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(1px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(50% 0 30% 0); transform: translate(0); }
    20% { clip-path: inset(80% 0 10% 0); transform: translate(2px); }
    40% { clip-path: inset(20% 0 60% 0); transform: translate(-2px); }
    60% { clip-path: inset(70% 0 20% 0); transform: translate(1px); }
    80% { clip-path: inset(30% 0 50% 0); transform: translate(-1px); }
    100% { clip-path: inset(10% 0 85% 0); transform: translate(0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00ffff;
    margin-top: 30px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    opacity: 0;
    animation: fade-in-up 1.5s forwards 0.5s;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================
サービスセクション - 強化されたアニメーション
==================== */
.service-block {
    padding: 120px 0;
    position: relative;
    z-index: 100;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(15, 15, 26, 0.7) 10%,  /* 0.9 → 0.7に変更 */
        rgba(15, 15, 26, 0.7) 90%,  /* 0.9 → 0.7に変更 */
        transparent 100%);
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff00ff, #00ffff, transparent);
}

.service-item {
    display: flex;
    align-items: stretch; /* centerからstretchに変更 */
    margin-bottom: 150px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 0, 255, 0.08) 0%, 
        rgba(0, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 
        0 0 50px rgba(255, 0, 255, 0.2),
        inset 0 0 50px rgba(0, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
}

.service-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* サイバー出現エフェクト */
.service-item.cyber-appear {
    animation: cyber-materialize 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cyber-materialize {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8) rotateX(30deg);
        filter: blur(10px) hue-rotate(180deg);
    }
    30% {
        opacity: 0.5;
        transform: translateY(50px) scale(0.9) rotateX(15deg);
        filter: blur(5px) hue-rotate(90deg);
    }
    60% {
        opacity: 0.8;
        transform: translateY(20px) scale(1.05) rotateX(-5deg);
        filter: blur(2px) hue-rotate(45deg);
    }
    80% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02) rotateX(2deg);
        filter: blur(0) hue-rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0) hue-rotate(0deg);
    }
}

.service-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s;
}

.service-item:hover::before {
    opacity: 1;
    animation: border-glow 2s linear infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.service-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 80px rgba(255, 0, 255, 0.4),
        0 0 120px rgba(0, 255, 255, 0.3),
        inset 0 0 60px rgba(255, 0, 255, 0.1);
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* 画像コンテナ - 5:4比率に修正 */
.service-item-img {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding-bottom: 40%;
    background: linear-gradient(135deg, 
        rgba(26, 8, 37, 0.8) 0%, 
        rgba(15, 26, 42, 0.8) 100%);
    border-radius: 20px 0 0 20px; /* 左側の角丸 */
}

/* 偶数番目（左右反転）の画像は右側を角丸に */
.service-item:nth-child(even) .service-item-img {
    border-radius: 0 20px 20px 0; /* 右側の角丸 */
}


.service-item-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 5:4比率で切り抜き */
    object-position: center;
    transition: transform 0.8s ease-out;
    filter: saturate(1.1) contrast(1.1) brightness(0.95);  /* 明るさを下げる */
}

.service-item-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 0, 255, 0.4) 0%, 
        rgba(0, 255, 255, 0.4) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.service-item:hover .service-item-img img {
    transform: scale(1.1);
    filter: saturate(1.3) contrast(1.4) brightness(1.2);
}

.service-item-text {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦方向の中央揃え */
}

.service-item-text h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}
.service-item-text h3 span {
  font-size: 0.5em;
}
.service-item-text p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 10px;
}
.service-item-text p.mini {
    font-size: 0.7em;
    line-height: 1;
}
.service-item-text p:nth-of-type(1) {
  color: #66dcfa;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.4rem;
}
.service-item-text a {
  color: #f82bec;
  font-weight: bold;
  font-size: 1.4rem;
  text-decoration: none;
}

/* ====================
フッター
==================== */
.footer {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(15, 15, 26, 0.95) 20%);
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    position: relative;
    z-index: 100;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #00ffff;
    text-decoration: none;
    margin: 0 20px;
    transition: all 0.3s;
    font-size: 1.1rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
        margin-bottom: 100px;
    }
    
    /* スマホでも5:4比率を維持 */
    .service-item-img {
        width: 100%;
        flex: none;
        padding-bottom: 80%; /* 横幅100%の80% = 5:4比率 */
    }
    
    .service-item-text {
        padding: 30px;
        width: 100%;
    }
    
    h2 {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
    
    .service-item-text h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .service-item-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-block {
        padding: 80px 0;
    }
  .service-item-text p:nth-of-type(1) {
    font-size: 1.1rem;
  }
}

/* より小さいスマートフォン用 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .service-item-text {
        padding: 25px;
    }
    
    .service-item-text h3 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 10px;
    }
}
/* ====================
スクロールインジケーター
==================== */
.scroll-indicator {
    margin-top: 60px;  /* タイトルからの距離 */
    cursor: pointer;
    z-index: 200;
    animation: fade-in-up 2s forwards 1.5s;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;  /* 大きく */
    letter-spacing: 8px;  /* より広く */
    color: #00ffff;
    text-align: center;
    margin-bottom: 25px;  /* 間隔を広く */
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    animation: text-glow 2s ease-in-out infinite;
    font-weight: 700;  /* 太く */
}

@keyframes text-glow {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 30px rgba(0, 255, 255, 1),
                     0 0 40px rgba(255, 0, 255, 0.5);
    }
}

.scroll-arrow-container {
    position: relative;
    width: 40px;  /* 大きく */
    height: 70px;  /* 大きく */
    margin: 0 auto;
}

.scroll-arrow {
    position: absolute;
    width: 30px;  /* 大きく */
    height: 30px;  /* 大きく */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-right: 3px solid;  /* 太く */
    border-bottom: 3px solid;  /* 太く */
    opacity: 0;
}

.arrow-1 {
    top: 0;
    border-color: #ff00ff;
    animation: arrow-flow 2s infinite;
    box-shadow: 3px 3px 15px rgba(255, 0, 255, 0.8);
}

.arrow-2 {
    top: 18px;  /* 間隔調整 */
    border-color: #00ffff;
    animation: arrow-flow 2s infinite 0.4s;
    box-shadow: 3px 3px 15px rgba(0, 255, 255, 0.8);
}

.arrow-3 {
    top: 36px;  /* 間隔調整 */
    border-color: #ff00ff;
    animation: arrow-flow 2s infinite 0.8s;
    box-shadow: 3px 3px 15px rgba(255, 0, 255, 0.8);
}

@keyframes arrow-flow {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px) rotate(45deg);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(25px) rotate(45deg) scale(0.8);
    }
}

.scroll-line {
    width: 2px;  /* 太く */
    height: 80px;  /* 長く */
    margin: 25px auto 0;  /* 間隔調整 */
    background: linear-gradient(to bottom, 
        #00ffff, 
        rgba(0, 255, 255, 0.5), 
        transparent);
    animation: line-extend 3s ease-in-out infinite;
    transform-origin: top;
}

@keyframes line-extend {
    0%, 100% {
        transform: scaleY(0);
        opacity: 0;
    }
    20% {
        transform: scaleY(0.5);
        opacity: 1;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
    80% {
        transform: scaleY(1);
        opacity: 0.3;
    }
}

/* ホバーエフェクト */
.scroll-indicator:hover .scroll-arrow {
    animation-duration: 1s;
}

.scroll-indicator:hover .scroll-text {
    color: #ff00ff;
    text-shadow: 0 0 20px rgba(255, 0, 255, 1);
}

.scroll-indicator:hover .scroll-line {
    background: linear-gradient(to bottom, 
        #ff00ff, 
        rgba(255, 0, 255, 0.5), 
        transparent);
}

/* スクロール後に非表示 */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 30px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
}

/* ====================
動画背景
==================== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;  /* 最背面に配置 */
    overflow: hidden;
    pointer-events: none;  /* クリックイベントを通過 */
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.3;  /* 0.12から0.3に上げる */
    filter: blur(0px) brightness(1.0);  /* ぼかしを外して明るく */
}

/* 動画の上にオーバーレイ */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.4) 0%, 
        rgba(42, 16, 64, 0.2) 50%, 
        rgba(26, 32, 80, 0.2) 100%);
    mix-blend-mode: darken;
}

/* 既存のcyber-backgroundのz-indexを調整（style.cssで修正） */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;  /* 0から1に変更 - 動画の上に配置 */
}

/* モバイルでパフォーマンス対策 */
@media (max-width: 768px) {
    .video-background video {
        opacity: 0.08;  /* モバイルではさらに薄く */
    }
}

/* 低速回線やreduced-motion設定時は動画非表示 */
@media (prefers-reduced-motion: reduce) {
    .video-background {
        display: none;
    }
}

/* ====================
サイバーカーソル
==================== */
* {
    cursor: none !important;
}

.cyber-cursor {
    pointer-events: none;
    position: fixed;
    z-index: 99999;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.cursor-ring {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 0, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

.cursor-target {
    position: fixed;
    width: 40px;
    height: 40px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.3s ease-out;
    pointer-events: none;
}

.cursor-target::before,
.cursor-target::after {
    content: '';
    position: absolute;
    background: rgba(255, 0, 255, 0.8);
}

.cursor-target::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.cursor-target::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
}

/* ホバー状態 */
body.hovering .cursor-ring {
    width: 45px;
    height: 45px;
    border-color: #ff00ff;
    border-width: 1px;
    animation: cursor-pulse 1s infinite;
}

body.hovering .cursor-dot {
    background: #ff00ff;
    transform: translate(-50%, -50%) scale(0.7);
}

/* クリック状態 */
body.clicking .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
    background: #ff00ff;
}

body.clicking .cursor-ring {
    width: 60px;
    height: 60px;
    opacity: 0;
    border-color: #00ffff;
    border-width: 3px;
}

body.clicking .cursor-target {
    opacity: 1;
    width: 50px;
    height: 50px;
    animation: target-lock 0.3s ease-out;
}

@keyframes cursor-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

@keyframes target-lock {
    0% { 
        transform: translate(-50%, -50%) rotate(45deg) scale(1.5); 
        opacity: 0;
    }
    50% { 
        transform: translate(-50%, -50%) rotate(45deg) scale(1); 
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) rotate(45deg) scale(0.8); 
        opacity: 1;
    }
}

/* サービスリンクのスタイル調整 */
a.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 150px;
}

.service-item-text a {
    display: none; /* 既存の個別リンクを非表示 */
}

/* リンク化されたカードのホバー */
.service-link:hover .service-item {
    transform: translateY(-15px) scale(1.03);
}

/* モバイル対応 */
@media (hover: none) {
    * {
        cursor: auto !important;
    }
    
    .cyber-cursor {
        display: none;
    }
}

/* サービスアイテムをクリック可能に */
.service-item[data-link] {
    cursor: none; /* カスタムカーソル使用 */
    position: relative;
}

.service-item[data-link]::after {
    content: '→';
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
    border: 2px solid rgba(255, 0, 255, 0.5);
    border-radius: 50%;
    color: #00ffff;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s;
}

.service-item[data-link]:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* 会社ロゴ - サイズ調整 */
.company-logo-wrapper {
    margin: 30px 0;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.company-logo-wrapper:hover {
    opacity: 1;
    transform: scale(1.05);
}

.company-logo {
    width: 200px;  /* 300px → 200px に変更 */
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
}

/* タブレット対応 */
@media (max-width: 768px) {
    .company-logo {
        width: 150px;  /* 200px → 150px に変更 */
    }
}

/* モバイル対応 */
@media (max-width: 480px) {
    .company-logo {
        width: 120px;  /* 150px → 120px に変更 */
    }
}

/* フッターの新しいリンクスタイル */
.footer p a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

/* 訪問済みでも色を維持 */
.footer p a:visited {
    color: #00ffff;
}

/* ホバー効果 */
.footer p a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

/* アンダーラインアニメーション */
.footer p a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: width 0.3s;
}

.footer p a:hover::after {
    width: 100%;
}

/* アクティブ時 */
.footer p a:active {
    color: #00ffff;
}

/* ヒーローセクションの会社ロゴ */
.hero-company-logo {
    position: relative;
    width: 120px;
    margin: 40px auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-company-logo img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
}

/* サイバー光リング */
.cyber-glow-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid;
    border-radius: 50%;
    border-color: transparent;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.6) 50%, transparent 70%);
    animation: rotate-glow 3s linear infinite;
    filter: blur(1px);
}

.cyber-glow-ring::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00ffff;
    border-right-color: #ff00ff;
    animation: rotate-glow 2s linear infinite reverse;
}

.ring-2 {
    width: 160px;
    height: 160px;
    background: linear-gradient(-45deg, transparent 30%, rgba(255, 0, 255, 0.4) 50%, transparent 70%);
    animation: rotate-glow 4s linear infinite reverse;
    animation-delay: -0.5s;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* パーティクル効果 */
.hero-company-logo::before,
.hero-company-logo::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
    animation: orbit-particle 5s linear infinite;
}

.hero-company-logo::after {
    background: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
    animation-delay: -2.5s;
}

@keyframes orbit-particle {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

/* ホバー効果 */
.hero-company-logo:hover .cyber-glow-ring {
    animation-duration: 1s;
    filter: blur(2px) brightness(1.5);
}

.hero-company-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 0, 255, 0.8));
    transition: all 0.3s;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hero-company-logo {
        width: 80px;
    }
    
    .cyber-glow-ring {
        width: 100px;
        height: 100px;
    }
    
    .ring-2 {
        width: 120px;
        height: 120px;
    }
}