/* =============================================
   MDY LLC - Ultra Modern Website Styles
   ============================================= */

/* CSS Variables */
:root {
    --primary-color: #90E3D2;
    --primary-dark: #6BCDB9;
    --primary-light: #B5EDE3;
    --secondary-color: #4A90A4;
    --accent-color: #FF6B6B;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0fffe 100%);
}

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

/* =============================================
   HEADER - Ultra Modern Design with Glassmorphism
   ============================================= */

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Keep header below mobile menu */
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        0 2px 16px rgba(144, 227, 210, 0.2);
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(144, 227, 210, 0.05) 50%,
        rgba(255, 255, 255, 0.95) 100%
    );
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Header Background Overlay */
.header-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(144, 227, 210, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 205, 185, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: headerGlow 8s ease-in-out infinite;
}

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

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.4),
        0 4px 20px rgba(144, 227, 210, 0.3);
    transform: translateY(0);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with Modern Design */
.logo {
    position: relative;
}

.logo h1 a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 a::before {
    content: "🏢";
    font-size: 1.6rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo h1 a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo h1 a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.logo h1 a:hover::after {
    width: 100%;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
}

/* Desktop Navigation - Clean Underline Design */
.main-nav {
    display: flex;
    margin-left: auto; /* 右側に配置 */
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem; /* メニュー間隔を広げる */
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem 0.5rem; /* 上下のみパディング、左右は最小限 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: none;
    font-size: 1rem;
}

/* アクティブページの下線 */
.main-nav ul li a.active::after,
.main-nav ul li a:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* ホバー時の下線アニメーション */
.main-nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav ul li a:hover {
    color: var(--primary-dark);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li a.active {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Modern Mobile Menu Toggle - Hamburger Style */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(144, 227, 210, 0.4);
}

.menu-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(144, 227, 210, 0.6);
}

.menu-toggle:hover::before {
    width: 100px;
    height: 100px;
}

.menu-toggle:active {
    transform: translateY(0) scale(0.95);
}

/* Hamburger Icon Styles */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Active state - Transform to X */
.menu-toggle.active .menu-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .menu-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Ultra Modern Mobile Navigation */
.mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 9999 !important; /* Higher z-index to ensure it appears above everything */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    visibility: hidden !important; /* Add visibility control */
    pointer-events: none !important; /* Initially disable pointer events */
}

.mobile-nav.active {
    left: 0 !important;
    visibility: visible !important; /* Make visible when active */
    pointer-events: auto !important; /* Enable pointer events when active */
    animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(144, 227, 210, 0.05) 50%,
        rgba(255, 255, 255, 0.98) 100%
    );
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        0 2px 16px rgba(144, 227, 210, 0.2);
}

.mobile-nav-content {
    position: relative;
    padding-top: 120px;
    height: 100%;
    overflow-y: auto;
    z-index: 1;
}

/* Mobile Navigation Close Button */
.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(144, 227, 210, 0.4);
    z-index: 99999 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.mobile-nav-close:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(144, 227, 210, 0.6);
}

.mobile-nav-close:active {
    transform: translateY(0) scale(0.95);
}

@keyframes slideInFromLeft {
    from {
        left: -100%;
        opacity: 0;
    }
    to {
        left: 0;
        opacity: 1;
    }
}

.mobile-nav ul {
    list-style: none;
    padding: 2rem;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 1.5rem;
    transform: translateY(50px);
    opacity: 0;
    animation: mobileMenuItemFadeIn 0.6s ease forwards;
}

.mobile-nav ul li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav ul li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav ul li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav ul li:nth-child(4) { animation-delay: 0.4s; }

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

.mobile-nav ul li a {
    display: block;
    padding: 1.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(144, 227, 210, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(144, 227, 210, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.mobile-nav ul li a:hover::before,
.mobile-nav ul li a.active::before {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex !important;
    }
}

/* Desktop: hide mobile elements completely */
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: none !important; /* PC版では完全に非表示 */
    }
    
    .main-nav {
        display: flex !important; /* PC版では必ず表示 */
    }
}

/* Mobile: ensure mobile nav is available */
@media (max-width: 768px) {
    .mobile-nav {
        display: block !important; /* モバイルでは表示可能にする */
    }
    
    /* Ensure the mobile menu has the highest z-index in mobile */
    .mobile-nav.active {
        z-index: 99999 !important;
        display: block !important;
        visibility: visible !important;
        left: 0 !important;
    }
}

/* =============================================
   HERO SECTION - Ultra Modern Design
   ============================================= */

.hero {
    position: relative;
    min-height: 55vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(144, 227, 210, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(144, 227, 210, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn, .hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.hero-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(144, 227, 210, 0.3);
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(144, 227, 210, 0.4);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.hero-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.02);
}

/* フローティング画像のスタイル */
.floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-image {
    position: absolute;
    width: 180px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(144, 227, 210, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatAnimation 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.floating-image:hover {
    transform: scale(1.1) rotateZ(0deg) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 15px 30px rgba(144, 227, 210, 0.2);
    z-index: 10;
}

.floating-image:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(144, 227, 210, 0.1), rgba(107, 205, 185, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-image:hover .image-overlay {
    opacity: 1;
}

/* 個別の画像配置とアニメーション - より分散した配置 */
.floating-image-1 {
    top: 12%;
    left: 5%;
    --rotation: -15deg;
    transform: rotateZ(-15deg);
    animation-delay: 0s;
    z-index: 3;
}

.floating-image-2 {
    top: 8%;
    right: 8%;
    --rotation: 12deg;
    transform: rotateZ(12deg);
    animation-delay: 1s;
    z-index: 4;
}

.floating-image-3 {
    bottom: 28%;
    left: 3%;
    --rotation: 8deg;
    transform: rotateZ(8deg);
    animation-delay: 2s;
    z-index: 2;
}

.floating-image-4 {
    bottom: 12%;
    right: 6%;
    --rotation: -10deg;
    transform: rotateZ(-10deg);
    animation-delay: 3s;
    z-index: 5;
}

.floating-image-5 {
    top: 35%;
    left: 1%;
    --rotation: 18deg;
    transform: rotateZ(18deg);
    animation-delay: 4s;
    z-index: 3;
}

.floating-image-6 {
    top: 65%;
    right: 2%;
    --rotation: -12deg;
    transform: rotateZ(-12deg);
    animation-delay: 5s;
    z-index: 4;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px) rotateZ(var(--rotation, 0deg));
    }
    25% {
        transform: translateY(-15px) rotateZ(calc(var(--rotation, 0deg) + 3deg));
    }
    50% {
        transform: translateY(-8px) rotateZ(var(--rotation, 0deg));
    }
    75% {
        transform: translateY(-20px) rotateZ(calc(var(--rotation, 0deg) - 2deg));
    }
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(144, 227, 210, 0.1) 0%,
        transparent 50%,
        rgba(107, 205, 185, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* =============================================
   SCROLL DOWN INDICATOR - Modern Animated Design
   ============================================= */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(144, 227, 210, 0.2);
    border-radius: 50px;
.scroll-indicator:hover {
    transform: translateY(-5px);
    background: rgba(144, 227, 210, 0.4);
    border: 1px solid rgba(144, 227, 210, 0.6);
}   border: 1px solid rgba(144, 227, 210, 0.3);
}

.scroll-indicator:hover {
    transform: translateY(-5px);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
    margin: 0 auto 10px;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 10px;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.8;
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
        opacity: 1;
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
        opacity: 1;
    }
}

/* Alternative scroll indicator style */
.scroll-indicator-alt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    text-align: center;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 10px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
    
    .scroll-arrow {
        width: 25px;
        height: 25px;
        border-width: 2px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .scroll-mouse {
        width: 20px;
        height: 32px;
    }
    
    .scroll-wheel {
        width: 3px;
        height: 6px;
    }
}

/* =============================================
   ANIMATIONS & MODERN EFFECTS
   ============================================= */

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

/* パーティクル効果 */
.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 2;
    animation: particleFloat 20s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.hero-particle:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.hero-particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.hero-particle:nth-child(4) {
    top: 60%;
    right: 25%;
    animation-delay: 9s;
    animation-duration: 16s;
}

.hero-particle:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation-delay: 12s;
    animation-duration: 20s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        margin-top: 70px;
    }
    
    .hero-text-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* モバイルでの画像サイズと配置調整 */
    .floating-image {
        width: 100px;
        height: 70px;
        border-radius: 15px;
    }
    
    .floating-image-1 { 
        top: 8%; 
        left: 3%; 
        --rotation: -10deg;
        transform: rotateZ(-10deg);
    }
    .floating-image-2 { 
        top: 15%; 
        right: 5%; 
        --rotation: 8deg;
        transform: rotateZ(8deg);
    }
    .floating-image-3 { 
        bottom: 30%; 
        left: 5%; 
        --rotation: 5deg;
        transform: rotateZ(5deg);
    }
    .floating-image-4 { 
        bottom: 20%; 
        right: 3%; 
        --rotation: -8deg;
        transform: rotateZ(-8deg);
    }
    .floating-image-5 { 
        top: 45%; 
        left: 1%; 
        --rotation: 12deg;
        transform: rotateZ(12deg);
    }
    .floating-image-6 { 
        top: 55%; 
        right: 1%; 
        --rotation: -6deg;
        transform: rotateZ(-6deg);
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .floating-image {
        width: 150px;
        height: 100px;
        border-radius: 18px;
    }
    
    .floating-image-1 { 
        top: 10%; 
        left: 4%; 
        --rotation: -12deg;
        transform: rotateZ(-12deg);
    }
    .floating-image-2 { 
        top: 8%; 
        right: 6%; 
        --rotation: 10deg;
        transform: rotateZ(10deg);
    }
    .floating-image-3 { 
        bottom: 30%; 
        left: 3%; 
        --rotation: 6deg;
        transform: rotateZ(6deg);
    }
    .floating-image-4 { 
        bottom: 18%; 
        right: 5%; 
        --rotation: -8deg;
        transform: rotateZ(-8deg);
    }
    .floating-image-5 { 
        top: 40%; 
        left: 1%; 
        --rotation: 14deg;
        transform: rotateZ(14deg);
    }
    .floating-image-6 { 
        top: 58%; 
        right: 2%; 
        --rotation: -10deg;
        transform: rotateZ(-10deg);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-text-container {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    /* 極小画面では画像を更に小さく */
    .floating-image {
        width: 80px;
        height: 55px;
        border-radius: 12px;
    }
    
    /* より控えめな回転角度 */
    .floating-image-1 { 
        --rotation: -5deg;
        transform: rotateZ(-5deg);
    }
    .floating-image-2 { 
        --rotation: 4deg;
        transform: rotateZ(4deg);
    }
    .floating-image-3 { 
        --rotation: 3deg;
        transform: rotateZ(3deg);
    }
    .floating-image-4 { 
        --rotation: -4deg;
        transform: rotateZ(-4deg);
    }
    .floating-image-5 { 
        --rotation: 6deg;
        transform: rotateZ(6deg);
    }
    .floating-image-6 { 
        --rotation: -3deg;
        transform: rotateZ(-3deg);
    }
}

/* =============================================
   BUSINESS SECTION
   ============================================= */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.business {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fdfc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(144, 227, 210, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 205, 185, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.business .container {
    position: relative;
    z-index: 2;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.business-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(144, 227, 210, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.business-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(144, 227, 210, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.business-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(144, 227, 210, 0.3);
    transition: all 0.3s ease;
}

.business-item:hover .business-icon {
    transform: scale(1.1) rotateY(360deg);
    box-shadow: 0 15px 35px rgba(144, 227, 210, 0.4);
}

.business-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.business-more {
    text-align: center;
    margin-top: 4rem;
}

/* モバイル対応 - 事業内容 */
@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .business-item {
        padding: 2rem 1.5rem;
    }
    
    .business-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .business-item h3 {
        font-size: 1.1rem;
    }
}

/* タブレット対応 - 事業内容 */
@media (max-width: 1024px) and (min-width: 769px) {
    .business-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .business-item {
        padding: 2rem 1.5rem;
    }
    
    .business-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    text-align: center;
}

.footer-social a {
    color: white !important;
    font-size: 1.8rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   CONTACT HEADER STYLES
   ============================================= */

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.contact-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconPulse 2s ease-in-out infinite;
}

.contact-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(144, 227, 210, 0.3);
}

.header-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto;
    border-radius: 2px;
    position: relative;
    animation: underlineGlow 2s ease-in-out infinite;
}

.header-underline::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -10px;
    right: -10px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    opacity: 0.3;
    animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(144, 227, 210, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(144, 227, 210, 0.6));
    }
}

@keyframes underlineGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(144, 227, 210, 0.4);
    }
    50% { 
        box-shadow: 0 0 20px rgba(144, 227, 210, 0.8);
    }
}

@keyframes underlineExpand {
    0%, 100% { 
        transform: scaleX(1);
        opacity: 0.3;
    }
    50% { 
        transform: scaleX(1.1);
        opacity: 0.5;
    }
}

/* =============================================
   PHILOSOPHY SECTION - Modern Design
   ============================================= */

.philosophy {
    padding: 6rem 0;
    background: 
        linear-gradient(135deg, var(--primary-light) 0%, #f0fffe 50%, #ffffff 100%),
        radial-gradient(circle at 30% 70%, rgba(144, 227, 210, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(107, 205, 185, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(144, 227, 210, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.philosophy .container {
    position: relative;
    z-index: 2;
}

/* General section title styling - Centers all section titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.philosophy .section-title {
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 10px 25px rgba(144, 227, 210, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.philosophy-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(144, 227, 210, 0.03) 0%, transparent 70%);
    animation: philosophyGlow 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes philosophyGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 1;
    }
}

.philosophy-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    text-align: justify;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.philosophy-content p:first-child {
    animation-delay: 0.2s;
}

.philosophy-content p:last-child {
    animation-delay: 0.4s;
    margin-bottom: 0;
}

.philosophy-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    left: -2rem;
    top: -1rem;
    font-family: serif;
    opacity: 0.3;
}

.philosophy-content p:last-child::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    right: -1rem;
    bottom: -2rem;
    font-family: serif;
    opacity: 0.3;
}

/* =============================================
   SERVICES PAGE STYLES - Modern Design
   ============================================= */

.services-hero {
    position: relative;
    min-height: 55vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(144, 227, 210, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.services-hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.services-hero-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(144, 227, 210, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.services-hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
}

.services-list {
    padding: 80px 0;
    background: var(--light-gray);
}

.service-detail {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(144, 227, 210, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-detail:hover::before {
    transform: scaleX(1);
}

.service-detail:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(144, 227, 210, 0.15);
}

.service-content h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
}

.service-content h3 i {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.service-detail:hover .service-content h3 i {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.service-content .btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(144, 227, 210, 0.3);
}

.service-content .btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(144, 227, 210, 0.4);
    background: var(--gradient-secondary);
}

.service-content .btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-content .btn:hover::after {
    transform: translateX(3px);
}

/* Service Image Styles - PC Only */
@media (min-width: 769px) {
    .service-detail {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .service-image {
        flex: 0 0 300px;
        height: 200px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.1),
            0 4px 12px rgba(144, 227, 210, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .service-detail:hover .service-image {
        transform: scale(1.02);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.15),
            0 6px 20px rgba(144, 227, 210, 0.2);
    }
    
    .service-detail:hover .service-image img {
        transform: scale(1.05);
    }
    
    .service-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align all content to the left */
    }
}

/* Mobile: Hide service images and align content to left */
@media (max-width: 768px) {
    .service-image {
        display: none;
    }
    
    .service-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align all content to the left on mobile too */
    }
    
    .service-content h3 {
        justify-content: flex-start; /* Ensure title is left-aligned on mobile */
    }
}

/* =============================================
   CONTACT PAGE STYLES - Modern Design
   ============================================= */

.contact-hero {
    position: relative;
    min-height: 55vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(144, 227, 210, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.contact-hero-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(144, 227, 210, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contact-hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

.contact-hero .hero-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
}

.contact-content {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #f0fcfa 100%);
    position: relative;
    overflow: hidden;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(144, 227, 210, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(114, 202, 183, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Contact Card Styles */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(144, 227, 210, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(144, 227, 210, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(144, 227, 210, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

/* Contact Card Icon */
.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 20px;
    margin: 0 auto 2rem;
    box-shadow: 
        0 12px 32px rgba(144, 227, 210, 0.3),
        0 4px 12px rgba(144, 227, 210, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 16px 40px rgba(144, 227, 210, 0.4),
        0 6px 16px rgba(144, 227, 210, 0.3);
}

.contact-card-icon i {
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon i {
    transform: scale(1.1);
}

/* Special Instagram Icon */
.instagram-icon {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
}

.instagram-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
    border-radius: 22px;
    z-index: -1;
    filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover .instagram-icon::before {
    opacity: 0.7;
}

/* Contact Card Content */
.contact-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    word-break: break-all;
    font-weight: 500;
}

.contact-card a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contact-card a:hover::after {
    width: 100%;
}

.contact-note {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.8rem;
    font-style: italic;
    font-weight: 400;
    opacity: 0.8;
}

/* Map Button */
.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    box-shadow: 
        0 8px 24px rgba(144, 227, 210, 0.3),
        0 4px 12px rgba(144, 227, 210, 0.2);
    position: relative;
    overflow: hidden;
}

.map-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.map-button:hover::before {
    left: 100%;
}

.map-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 16px 40px rgba(144, 227, 210, 0.4),
        0 8px 20px rgba(144, 227, 210, 0.3);
    color: white !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-content {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .contact-card-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }
    
    .contact-card-icon i {
        font-size: 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-card p {
        font-size: 1rem;
    }
    
    .map-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        border-radius: 14px;
    }
}

.social-links a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.4rem 1rem;
    background: rgba(144, 227, 210, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(144, 227, 210, 0.3);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 227, 210, 0.3);
}

.map-link-container {
    margin-top: 1.5rem;
}

.map-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(144, 227, 210, 0.3);
    width: 100%;
    justify-content: center;
}

.map-link-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(144, 227, 210, 0.4);
}

/* Mobile Layout */
@media (max-width: 768px) {
    .contact-hero {
        padding: 130px 0 70px;
        margin-top: 70px;
    }
    
    .contact-hero h2 {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
        line-height: 1.1;
    }
    
    .contact-hero h2::after {
        width: 40px;
        height: 3px;
        bottom: -6px;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .contact-hero .hero-description {
        font-size: 1.15rem;
        line-height: 1.4;
        padding: 0 1rem;
    }
    
    .contact-info {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .contact-detail,
    .contact-hours {
        margin-bottom: 1.5rem;
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 1rem;
    }
    
    .contact-icon i {
        font-size: 1.1rem;
    }
    
    .contact-text h4 {
        font-size: 1.1rem;
    }
    
    .contact-text p,
    .contact-text a {
        font-size: 0.95rem;
    }
}

.contact-social {
    margin-top: 2rem;
    text-align: center;
}

.contact-social h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(144, 227, 210, 0.3);
    background: var(--gradient-secondary);
}

.map-link-container {
    text-align: center;
    margin-top: 3rem;
}

.map-link-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(144, 227, 210, 0.3);
}

.map-link-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(144, 227, 210, 0.4);
    background: var(--gradient-secondary);
}

.map-link-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.map-link-button:hover i {
    transform: scale(1.1);
}

/* =============================================
   RESPONSIVE DESIGN FOR SERVICES & CONTACT
   ============================================= */

@media (max-width: 1024px) {
    .services-hero,
    .contact-hero {
        min-height: 80vh;
    }
    
    .services-hero-content,
    .contact-hero-content {
        padding: 3rem 2.5rem;
        max-width: 700px;
    }
    
    .services-hero h2,
    .contact-hero h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .services-hero p,
    .contact-hero .hero-subtitle,
    .contact-hero .hero-description {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .contact-card {
        padding: 2.2rem 1.8rem;
    }
    
    .service-detail,
    .contact-info {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .services-hero,
    .contact-hero {
        min-height: 70vh;
        margin-top: 70px;
    }
    
    .services-hero-content,
    .contact-hero-content {
        padding: 2.5rem 2rem;
        margin: 1rem auto;
        border-radius: 20px;
    }
    
    .services-hero h2,
    .contact-hero h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .services-hero p,
    .contact-hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .contact-hero .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .services-list,
    .contact-content {
        padding: 40px 0;
    }
    
    .service-detail,
    .contact-info {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-content h3 {
        font-size: 1.6rem;
        flex-direction: row;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-detail {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-icon {
        margin: 0 auto 1rem auto;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .map-link-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .services-hero h2,
    .contact-hero h2 {
        font-size: 2rem;
    }
    
    .service-detail,
    .contact-info {
        padding: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.4rem;
    }
    
    .contact-header h3 {
        font-size: 1.6rem;
    }
    
    .contact-detail {
        padding: 1rem;
    }
    
    .contact-hours {
        padding: 1.5rem;
    }
}
