/* 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099ff;
    --accent-color: #00ffff;
    --deep-blue: #001f3f;
    --light-blue: #e6f7ff;
    --text-dark: #0a1929;
    --text-light: #5e7489;
    --bg-light: #f0f9ff;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --gradient-secondary: linear-gradient(135deg, #00ffff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    --gradient-neon: linear-gradient(135deg, #00ffff 0%, #0099ff 50%, #0066ff 100%);
    --success-color: #4caf50;
    --error-color: #ff5252;
    --warning-color: #ff9800;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 70px;
    background: #f0f9ff;
}

@media (max-width: 768px) {
    body {
        padding-top: 54px;
    }
}

.common-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ヘッダー === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 70px;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-logo-icon {
    width: 40px;
    height: 40px;
    background: #44aaff;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(68, 170, 255, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: headerLogoSpin 3s infinite linear;
    overflow: visible;
}

.header-logo-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(68, 170, 255, 0.5);
    animation: headerLogoSpinFast 0.5s infinite linear;
}

.header-logo-icon.hover-stage2 {
    transform: scale(1.25);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4), 0 4px 15px rgba(68, 170, 255, 0.3);
    animation: headerLogoSpinFaster 0.3s infinite linear;
}

.header-logo-icon.hover-stage3 {
    transform: scale(1.35);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 8px 25px rgba(255, 215, 0, 0.3);
    animation: headerLogoSpinUltra 0.15s infinite linear, glowPulse 2s infinite ease-in-out;
    background: radial-gradient(circle, #44aaff 0%, #5bc0ff 100%);
}

.header-logo-icon::before,
.header-logo-icon::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-logo-icon.hover-stage3::before {
    background: 
        radial-gradient(2px 2px at 15px 25px, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(1px 1px at 35px 15px, rgba(255, 255, 150, 0.9), transparent),
        radial-gradient(1px 1px at 55px 35px, rgba(255, 215, 0, 0.7), transparent),
        radial-gradient(2px 2px at 25px 45px, rgba(255, 255, 150, 0.8), transparent);
    animation: sparkles1 1.5s infinite linear;
    opacity: 1;
}

.header-logo-icon.hover-stage3::after {
    background: 
        radial-gradient(1px 1px at 45px 20px, rgba(255, 215, 0, 0.9), transparent),
        radial-gradient(2px 2px at 20px 35px, rgba(255, 255, 150, 0.7), transparent),
        radial-gradient(1px 1px at 50px 45px, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(2px 2px at 30px 15px, rgba(255, 255, 150, 0.9), transparent);
    animation: sparkles2 1.8s infinite linear;
    opacity: 1;
}

.header.scrolled .header-logo-icon {
    animation: none;
    transform: rotate(0deg);
}

.header.scrolled .header-logo-icon:hover {
    transform: scale(1.15);
    animation: headerLogoSpinFast 0.5s infinite linear;
}

.header.scrolled .header-logo-icon.hover-stage2 {
    transform: scale(1.25);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4), 0 4px 15px rgba(68, 170, 255, 0.3);
    animation: headerLogoSpinFaster 0.3s infinite linear;
}

.header.scrolled .header-logo-icon.hover-stage3 {
    transform: scale(1.35);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 8px 25px rgba(255, 215, 0, 0.3);
    animation: headerLogoSpinUltra 0.15s infinite linear, glowPulse 2s infinite ease-in-out;
    background: radial-gradient(circle, #44aaff 0%, #5bc0ff 100%);
}

.header-logo-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
}

.header-pattern-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-dot1 { top: -1.5px; right: -1.5px; }
.header-dot2 { bottom: -1.5px; right: -1.5px; }
.header-dot3 { bottom: -1.5px; left: -1.5px; }
.header-dot4 { top: -1.5px; left: -1.5px; }

.header-company-name {
    height: 24px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
    max-width: none;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.header-tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #44aaff, #667eea);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: #44aaff;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #44aaff;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
    transition: all 0.3s ease;
}

.nav-link:hover .dropdown-arrow {
    border-top-color: #44aaff;
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    margin-top: 0.5rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(68, 170, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-link:hover {
    color: #44aaff;
    background: rgba(68, 170, 255, 0.08);
}

.dropdown-link:hover::before {
    left: 100%;
}

.dropdown-link.active {
    color: #44aaff;
    background: rgba(68, 170, 255, 0.08);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-line {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-item.has-dropdown {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    background: rgba(68, 170, 255, 0.1);
    color: #44aaff;
}

.mobile-nav-link.active {
    background: rgba(68, 170, 255, 0.1);
    color: #44aaff;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-dropdown-toggle:hover {
    background: rgba(68, 170, 255, 0.1);
    color: #44aaff;
}

.mobile-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover .mobile-dropdown-arrow {
    border-top-color: #44aaff;
}

.mobile-dropdown-toggle.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(68, 170, 255, 0.05);
}

.mobile-dropdown-menu.active {
    max-height: 300px;
}

.mobile-dropdown-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-dropdown-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-dropdown-link {
    display: block;
    padding: 0.75rem 3rem;
    text-decoration: none;
    color: #555;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-dropdown-link:hover {
    background: rgba(68, 170, 255, 0.15);
    color: #44aaff;
}

.mobile-dropdown-link.active {
    background: rgba(68, 170, 255, 0.15);
    color: #44aaff;
}

/* 隠されたサービス */
.service-hidden {
    display: none;
}

/* アニメーションキーフレーム */
@keyframes headerLogoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes headerLogoSpinFast {
    from { transform: scale(1.15) rotate(0deg); }
    to { transform: scale(1.15) rotate(360deg); }
}

@keyframes headerLogoSpinFaster {
    from { transform: scale(1.25) rotate(0deg); }
    to { transform: scale(1.25) rotate(360deg); }
}

@keyframes headerLogoSpinUltra {
    from { transform: scale(1.35) rotate(0deg); }
    to { transform: scale(1.35) rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 8px 25px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 12px 35px rgba(255, 215, 0, 0.5);
    }
}

@keyframes sparkles1 {
    0% { transform: rotate(0deg) scale(0); opacity: 0; }
    20% { transform: rotate(72deg) scale(1); opacity: 1; }
    40% { transform: rotate(144deg) scale(0.8); opacity: 0.8; }
    60% { transform: rotate(216deg) scale(1.2); opacity: 1; }
    80% { transform: rotate(288deg) scale(0.6); opacity: 0.6; }
    100% { transform: rotate(360deg) scale(0); opacity: 0; }
}

@keyframes sparkles2 {
    0% { transform: rotate(45deg) scale(0); opacity: 0; }
    25% { transform: rotate(135deg) scale(1.1); opacity: 1; }
    50% { transform: rotate(225deg) scale(0.7); opacity: 0.7; }
    75% { transform: rotate(315deg) scale(1.3); opacity: 1; }
    100% { transform: rotate(405deg) scale(0); opacity: 0; }
}

/* モダンフッター */
.modern-footer {
    position: relative;
    background: var(--gradient-dark);
    color: white;
    padding: 0;
    overflow: hidden;
}

/* 波のデザイン */
.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

/* メインコンテンツ */
.footer-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 5rem;
    padding: 5rem 0 3rem;
    position: relative;
    z-index: 1;
}

/* ブランドセクション */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.footer-logo-icon:hover {
    transform: scale(1.1) rotate(180deg);
    background: #44aaff;
    box-shadow: 0 8px 32px rgba(68, 170, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-logo-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
}

.footer-pattern-dot {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-dot1 { top: -2px; right: -2px; }
.footer-dot2 { bottom: -2px; right: -2px; }
.footer-dot3 { bottom: -2px; left: -2px; }
.footer-dot4 { top: -2px; left: -2px; }

.footer-company-name {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    object-fit: contain;
    max-width: none;
}

.footer-logo-icon:hover ~ .footer-company-name {
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ソーシャルリンク */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.social-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

/* メニューカラム */
.footer-menus {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-column {
    min-width: max-content;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    padding-bottom: 0.5rem;
    white-space: nowrap;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: max-content;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-column a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-column a:hover::before {
    width: 100%;
}

/* ハイライトリンク（新規追加） */
.highlight-link {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.highlight-link::after {
    content: '✨';
    margin-left: 0.3rem;
    font-size: 0.7rem;
    vertical-align: middle;
}

/* フッター下部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* 背景装飾 */
.footer-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: float-decoration 20s ease-in-out infinite;
}

.decoration-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -150px;
    animation-delay: 0s;
}

.decoration-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -100px;
    animation-delay: 7s;
}

.decoration-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float-decoration {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.2;
    }
}

/* クレイジーエフェクト */
.crazy-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-footer.crazy-mode .crazy-effects {
    opacity: 1;
}

.crazy-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.modern-footer.crazy-mode .layer-1 {
    background: conic-gradient(from 0deg at 50% 50%, 
        #ff0080 0deg, #00ff88 60deg, #00ffff 120deg, 
        #ff00ff 180deg, #ffff00 240deg, #ff0080 360deg);
    animation: crazyRotate 2s linear infinite, pulseOpacity 0.5s ease-in-out infinite;
    mix-blend-mode: multiply;
    opacity: 0.3;
}

.modern-footer.crazy-mode .layer-2 {
    background: radial-gradient(circle at 30% 30%, transparent 20%, #00ffff 40%, transparent 60%),
                radial-gradient(circle at 70% 70%, transparent 20%, #ff00ff 40%, transparent 60%),
                radial-gradient(circle at 50% 10%, transparent 20%, #ffff00 40%, transparent 60%);
    animation: crazyMove 3s ease-in-out infinite;
    opacity: 0.5;
}

.modern-footer.crazy-mode .layer-3 {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 0, 255, 0.3) 10px,
        rgba(255, 0, 255, 0.3) 20px
    );
    animation: slidePattern 1s linear infinite;
    opacity: 0.6;
}

.modern-footer.crazy-mode .glitch-layer {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
    animation: glitch 0.3s ease-in-out infinite;
    opacity: 0.8;
    mix-blend-mode: difference;
}

.modern-footer.crazy-mode .rainbow-blast {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        #ff0000, #ff7f00, #ffff00, #00ff00, 
        #0000ff, #4b0082, #9400d3, #ff0000
    );
    animation: rainbowSpin 4s linear infinite, scaleBlast 2s ease-in-out infinite;
    opacity: 0.2;
    filter: blur(50px);
}

.modern-footer.crazy-mode .cyber-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 2s linear infinite;
    opacity: 0.5;
}

.modern-footer.crazy-mode .explosion-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.modern-footer.crazy-mode .explosion-rings::before,
.modern-footer.crazy-mode .explosion-rings::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid;
    border-radius: 50%;
    animation: explodeRing 2s ease-out infinite;
}

.modern-footer.crazy-mode .explosion-rings::before {
    border-color: #00ffff;
    animation-delay: 0s;
}

.modern-footer.crazy-mode .explosion-rings::after {
    border-color: #ff00ff;
    animation-delay: 1s;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: particleFloat 5s linear infinite;
}

/* ロゴのクレイジーモード */
.modern-footer.crazy-mode .footer-logo-icon {
    animation: crazyLogoSpin 0.5s linear infinite, 
               logoColorShift 0.2s linear infinite,
               logoPulse 0.3s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.8),
                0 0 100px rgba(0, 255, 255, 0.6),
                0 0 150px rgba(255, 255, 0, 0.4);
}

/* アニメーション定義 */
@keyframes crazyRotate {
    to { transform: rotate(360deg); }
}

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

@keyframes crazyMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.5); }
    50% { transform: translate(-50px, 50px) scale(0.8); }
    75% { transform: translate(30px, 30px) scale(1.2); }
}

@keyframes slidePattern {
    to { transform: translateX(28px); }
}

@keyframes glitch {
    0%, 100% { 
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    20% { 
        clip-path: inset(20% 0 50% 0);
        transform: translateX(-5px);
    }
    40% { 
        clip-path: inset(50% 0 30% 0);
        transform: translateX(5px);
    }
    60% { 
        clip-path: inset(70% 0 10% 0);
        transform: translateX(-3px);
    }
    80% { 
        clip-path: inset(10% 0 80% 0);
        transform: translateX(3px);
    }
}

@keyframes rainbowSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scaleBlast {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes gridMove {
    to { transform: translate(50px, 50px); }
}

@keyframes explodeRing {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes crazyLogoSpin {
    to { transform: scale(1.1) rotate(360deg); }
}

@keyframes logoColorShift {
    0% { filter: hue-rotate(0deg) brightness(2); }
    100% { filter: hue-rotate(360deg) brightness(2); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.3); }
}

/* レスポンシブデザイン */
@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: 250px 1fr;
        gap: 3rem;
    }
    
    .footer-menus {
        grid-template-columns: repeat(3, 1fr);  /* 3カラム維持 */
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 0 2rem;
    }

    .footer-menus {
        grid-template-columns: repeat(3, 1fr);  /* 3カラム維持（変更点） */
        gap: 2rem;
    }
    
    .footer-column {
        min-width: unset;
    }
    
    .footer-column ul {
        min-width: unset;
    }
    
    .footer-column a {
        white-space: normal;
        font-size: 0.85rem;  /* 少し小さくして収まりやすく */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .header-content {
        padding: 0 1rem;
    }

    .header-logo-icon {
        width: 32px;
        height: 32px;
    }

    .header-logo-icon:hover {
        transform: scale(1.2);
        box-shadow: 0 5px 20px rgba(68, 170, 255, 0.5);
        animation: headerLogoSpinFast 0.5s infinite linear;
    }

    .header-logo-icon.hover-stage2 {
        transform: scale(1.3);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4), 0 3px 12px rgba(68, 170, 255, 0.3);
    }

    .header-logo-icon.hover-stage3 {
        transform: scale(1.4);
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 215, 0, 0.4),
            0 6px 20px rgba(255, 215, 0, 0.3);
    }

    .header-logo-icon.hover-stage3::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    .header-logo-icon.hover-stage3::after {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    .header-logo-pattern {
        width: 12px;
        height: 12px;
    }

    .header-pattern-dot {
        width: 6.5px;
        height: 6.5px;
    }

    .header-dot1 { top: -1.5px; right: -1.5px; }
    .header-dot2 { bottom: -1.5px; right: -1.5px; }
    .header-dot3 { bottom: -1.5px; left: -1.5px; }
    .header-dot4 { top: -1.5px; left: -1.5px; }

    .header-company-name {
        height: 20px;
    }

    .header-tagline {
        font-size: 0.7rem;
        white-space: nowrap;
        max-width: 300px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header {
        height: 55px;
    }

    .header-logo-icon {
        width: 28px;
        height: 28px;
    }

    .header-logo-icon:hover {
        transform: scale(1.25);
        box-shadow: 0 4px 18px rgba(68, 170, 255, 0.5);
        animation: headerLogoSpinFast 0.5s infinite linear;
    }

    .header-logo-icon.hover-stage2 {
        transform: scale(1.35);
        box-shadow: 0 5px 22px rgba(255, 215, 0, 0.4), 0 3px 10px rgba(68, 170, 255, 0.3);
    }

    .header-logo-icon.hover-stage3 {
        transform: scale(1.45);
        box-shadow: 
            0 0 12px rgba(255, 215, 0, 0.8),
            0 0 25px rgba(255, 215, 0, 0.4),
            0 5px 18px rgba(255, 215, 0, 0.3);
    }

    .header-logo-icon.hover-stage3::before {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
    }

    .header-logo-icon.hover-stage3::after {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
    }

    .header-tagline {
        font-size: 0.6rem;
        max-width: 250px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-pattern-dot {
        width: 5.4px;
        height: 5.4px;
    }

    .header-dot1 { top: -0.4px; right: -0.4px; }
    .header-dot2 { bottom: -0.4px; right: -0.4px; }
    .header-dot3 { bottom: -0.4px; left: -0.4px; }
    .header-dot4 { top: -0.4px; left: -0.4px; }

    /* フッターメニューのスマホレイアウト */
    .footer-menus {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    /* 最初の2つのカラムは上段に並ぶ */
    .footer-column:nth-child(1),
    .footer-column:nth-child(2) {
        grid-column: span 1;
    }
    
    /* 3つ目のカラム（採用・協業）は下段の左側に配置 */
    .footer-column:nth-child(3) {
        grid-column: span 2;
    }
    
    .footer-column h4 {
        white-space: normal;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-column a {
        font-size: 0.7rem;
    }

    .footer-column ul {
        gap: 0.3rem;
    }

    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-links {
        gap: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.7rem;
    }

    .footer-copyright p {
        font-size: 0.65rem;
    }
}

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