/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Noto+Sans+JP:wght@300;400;700&display=swap');

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Dark Theme Palette */
    --primary-color: #a78bfa;
    /* Light Purple */
    --primary-main: #7c3aed;
    /* Vivid Violet */
    --primary-glow: rgba(124, 58, 237, 0.5);

    --bg-dark: #0f172a;
    /* Deep Blue/Slate */
    --bg-darker: #020617;
    /* Almost Black */

    --text-white: #f8fafc;
    --text-gray: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--primary-glow);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-white);
    background-color: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ナビゲーション - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
    padding-left: 140px;
    /* Space for the absolute logo (120px + margin) */
    height: 70px;
    /* Keep brand area height explicitly if needed to maintain header thickness */
}

/* Remove gap as we use padding/positioning now */
/* .nav-brand gap is removed implicitly by replacing the block */

.nav-brand:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 120px;
    /* Increased from 70px to ~1.7x for impact */
    width: 120px;
    position: absolute;
    left: 0;
    top: -15px;
    /* Slight top protrusion, mostly bottom protrusion */
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    z-index: 10;
    /* Ensure it floats above */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-main), var(--primary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-white);
    transition: 0.3s;
    border-radius: 2px;
}

/* ヒーローセクション - Premium Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Dark overlay added for better text readability */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('images/hero-bg.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    /* Ensure canvas doesn't overflow */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above background, below content */
    pointer-events: none;
    /* Let clicks pass through */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.3));
    animation: fadeInUp 1s ease both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

/* アニメーション定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ボタン - Glowing Effect */
.btn {
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-main), #4f46e5);
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
}

.btn-primary::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: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* セクション共通 */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-white);
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-main);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* サービスセクション - Cards */
.services {
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Glassmorphism Card */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    border-radius: 24px;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(124, 58, 237, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.4));
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 事業概要セクション */
.about {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-gray);
}

.about-text p {
    margin-bottom: 2rem;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.info-item:hover {
    background: var(--glass-highlight);
    border-color: var(--primary-glow);
}

.info-item strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 600;
}

/* お問い合わせセクション */
.contact {
    background-color: var(--bg-darker);
    position: relative;
}

/* Decorative Glow */
.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: var(--primary-main);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--primary-main), #4f46e5);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.5);
    transition: all 0.3s ease;
}

.contact-email:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.7);
}

.contact-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    opacity: 0.7;
}

/* フッター */
.footer {
    background-color: #000;
    color: var(--text-gray);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 0;
        overflow: hidden;
        align-items: center;
        gap: 0;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        height: auto;
        padding: 2rem 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .contact-content {
        padding: 2rem 1.5rem;
    }

    .contact-email {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}