/* ========================================
   株式会社ENWAVE 公式ホームページ
   カラーテーマ: スカイブルー × 黄緑色
   デザイン: 洗練された未来的かつ暖かいデザイン
======================================== */

:root {
    /* Primary Colors - Sky Blue */
    --primary-light: #87CEEB;
    --primary: #4AADE8;
    --primary-dark: #2E8BC0;
    
    /* Secondary Colors - Yellow Green */
    --secondary-light: #C5E384;
    --secondary: #9ACD32;
    --secondary-dark: #7CB518;
    
    /* Accent Colors */
    --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --accent-gradient-reverse: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Typography */
    --font-primary: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    --font-display: 'Montserrat', 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================================
   Reset & Base Styles
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.8;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ========================================
   Container
======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.logo-en {
    color: var(--primary);
}

.logo-wave {
    color: var(--secondary-dark);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition-normal);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%234AADE8' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: wave 8s ease-in-out infinite;
}

.wave-animation::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%239ACD32' fill-opacity='0.1' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,128C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: wave 6s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--gray-800);
    margin-bottom: 24px;
}

.hero-title-main {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 173, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 173, 232, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   Section Styles
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(74, 173, 232, 0.03) 0%, rgba(154, 205, 50, 0.03) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.service-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 16px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.service-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent-gradient);
    border-radius: 20px;
}

/* ========================================
   About Section
======================================== */
.about {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-table-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.about-table {
    width: 100%;
    border-collapse: collapse;
}

.about-table tr {
    border-bottom: 1px solid var(--gray-100);
}

.about-table tr:last-child {
    border-bottom: none;
}

.about-table th,
.about-table td {
    padding: 20px 16px;
    text-align: left;
    vertical-align: top;
}

.about-table th {
    width: 140px;
    font-weight: 600;
    color: var(--gray-800);
    background: linear-gradient(90deg, rgba(74, 173, 232, 0.05) 0%, transparent 100%);
    border-radius: 8px 0 0 8px;
}

.about-table td {
    color: var(--gray-600);
}

/* ========================================
   Philosophy Section
======================================== */
.philosophy {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-main {
    margin-bottom: 60px;
}

.philosophy-name {
    text-align: center;
    margin-bottom: 40px;
}

.philosophy-name h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 30px;
}

.name-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.name-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.name-letter {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-meaning {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

.name-plus {
    font-size: 2rem;
    color: var(--gray-300);
    font-weight: 300;
}

.philosophy-text {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 40px;
}

.philosophy-text p {
    margin-bottom: 20px;
    color: var(--gray-700);
    line-height: 2;
}

.philosophy-text p:last-child {
    margin-bottom: 0;
}

.philosophy-text strong {
    color: var(--primary-dark);
}

.philosophy-vision {
    margin-bottom: 60px;
}

.philosophy-vision blockquote {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-800);
    padding: 40px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.philosophy-vision blockquote::before,
.philosophy-vision blockquote::after {
    content: '"';
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
}

.philosophy-vision blockquote::before {
    top: 0;
    left: 20px;
}

.philosophy-vision blockquote::after {
    bottom: -20px;
    right: 20px;
}

.philosophy-image h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid var(--secondary);
}

.philosophy-image p {
    margin-bottom: 16px;
    color: var(--gray-600);
    line-height: 2;
}

.philosophy-image strong {
    color: var(--secondary-dark);
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.contact-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-message p {
    margin-bottom: 30px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo .logo-en {
    color: var(--primary-light);
}

.footer-logo .logo-wave {
    color: var(--secondary-light);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 12px;
    font-weight: 400;
}

.footer-links ul {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .header .container {
        height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-menu a {
        display: block;
        padding: 16px 0;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-table-wrapper {
        padding: 24px;
    }
    
    .about-table th,
    .about-table td {
        display: block;
        width: 100%;
        padding: 12px 0;
    }
    
    .about-table th {
        background: none;
        padding-bottom: 4px;
    }
    
    .about-table tr {
        padding: 16px 0;
    }
    
    .philosophy-text {
        padding: 24px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .name-letter {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 30px 24px;
    }
    
    .name-breakdown {
        gap: 20px;
    }
    
    .philosophy-vision blockquote {
        font-size: 1.1rem;
        padding: 30px 20px;
    }
    
    .philosophy-vision blockquote::before,
    .philosophy-vision blockquote::after {
        font-size: 2.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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