/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d3748;
    --secondary-color: #4299e1;
    --accent-color: #ed8936;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --background-light: #f7fafc;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1e1e3f 50%, #2d1b69 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(66, 153, 225, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(237, 137, 54, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    background: linear-gradient(45deg, rgba(66, 153, 225, 0.4), rgba(102, 126, 234, 0.4));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 65%;
    right: 12%;
    background: linear-gradient(45deg, rgba(237, 137, 54, 0.4), rgba(245, 87, 108, 0.4));
    border-radius: 50% 50% 30% 70% / 30% 70% 50% 50%;
    animation-delay: 2s;
}

.shape-3 {
    width: 90px;
    height: 90px;
    bottom: 25%;
    left: 15%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(66, 153, 225, 0.3));
    border-radius: 70% 30% 30% 70% / 50% 50% 50% 50%;
    animation-delay: 4s;
}

@keyframes float {
    0% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.1);
        border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(0.9);
        border-radius: 70% 30% 50% 50% / 50% 50% 30% 70%;
    }
    75% { 
        transform: translateY(-15px) rotate(270deg) scale(1.05);
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    }
    100% { 
        transform: translateY(0px) rotate(360deg) scale(1);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-logo {
    margin-bottom: 2rem;
    text-align: center;
    animation: logoFloat 3s ease-in-out infinite;
}

.studio-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(37, 99, 235, 0.6));
    transition: all 0.3s ease;
}

.studio-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 20px 50px rgba(37, 99, 235, 0.8));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.highlight {
    background: linear-gradient(45deg, #00d4ff 0%, #ff00ff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* コードウィンドウ */
.code-window {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        var(--shadow-large),
        0 0 30px rgba(66, 153, 225, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideInRight 1s ease-out, glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: var(--shadow-large), 0 0 20px rgba(66, 153, 225, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    to { box-shadow: var(--shadow-large), 0 0 40px rgba(66, 153, 225, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(66, 153, 225, 0.3);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27ca3f; }

.window-title {
    color: #cccccc;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
}

.code-content {
    padding: 20px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.3);
}

.keyword { color: #569cd6; }
.variable { color: #9cdcfe; }
.property { color: #9cdcfe; }
.string { color: #ce9178; }

/* セクション共通スタイル */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* アバウトセクション */
.about {
    background: var(--background-light);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 作品セクション */
.works {
    background: white;
}

.works-grid {
    display: grid;
    gap: 3rem;
}

.work-category {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.work-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.work-items {
    display: grid;
    gap: 1.5rem;
}

.work-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.work-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.work-item.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0.05) 100%);
}

.work-preview {
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
}

.video-preview.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.video-preview.niconico {
    background: linear-gradient(135deg, #252525 0%, #000000 100%);
}

.website-preview {
    background: var(--gradient-accent);
}

.work-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.work-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.work-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.work-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* AI技術セクション */
.ai-tech {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.ai-tech .container {
    position: relative;
    z-index: 2;
}

.ai-tech .section-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 4rem;
}

/* AI Hero Section */
.ai-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
}

.ai-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.ai-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Neural Network Animation */
.brain-animation {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto;
}

.neural-network {
    width: 100%;
    height: 100%;
    position: relative;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.node-1 { top: 20%; left: 20%; animation-delay: 0s; }
.node-2 { top: 20%; right: 20%; animation-delay: 0.4s; }
.node-3 { bottom: 40%; left: 50%; transform: translateX(-50%); animation-delay: 0.8s; }
.node-4 { bottom: 20%; left: 30%; animation-delay: 1.2s; }
.node-5 { bottom: 20%; right: 30%; animation-delay: 1.6s; }

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: dataFlow 3s infinite;
}

.con-1 {
    top: 30%;
    left: 22%;
    width: 56%;
    transform: rotate(5deg);
    animation-delay: 0s;
}

.con-2 {
    top: 35%;
    left: 30%;
    width: 40%;
    transform: rotate(-20deg);
    animation-delay: 0.5s;
}

.con-3 {
    bottom: 50%;
    left: 25%;
    width: 30%;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.con-4 {
    bottom: 50%;
    right: 25%;
    width: 30%;
    transform: rotate(-45deg);
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent-color);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 20px var(--accent-color);
    }
}

@keyframes dataFlow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Feature Cards */
.ai-features {
    margin-bottom: 5rem;
}

.features-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(237, 137, 54, 0.2);
}

.feature-card.featured {
    border: 2px solid var(--accent-color);
    background: rgba(237, 137, 54, 0.1);
}

.feature-icon {
    min-width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge.cost {
    background: linear-gradient(45deg, #48bb78, #38a169);
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.feature-impact {
    background: rgba(237, 137, 54, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

/* Sub Features */
.sub-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.sub-feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--secondary-color);
}

.sub-feature h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-feature ul {
    list-style: none;
}

.sub-feature li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.sub-feature li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Tech Specs */
.tech-specs {
    margin-bottom: 5rem;
}

.specs-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spec-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.2);
}

.spec-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.spec-item h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.spec-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Applications */
.applications {
    margin-bottom: 5rem;
}

.apps-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(237, 137, 54, 0.2);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.app-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.app-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.app-card ul {
    list-style: none;
}

.app-card li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.app-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Advantages */
.advantages {
    margin-bottom: 5rem;
}

.advantages-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(237, 137, 54, 0.2);
}

.advantage-stat {
    margin-bottom: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    display: block;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.advantage-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Demo Characters */
.demo-characters {
    margin-bottom: 5rem;
}

.demo-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.character-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.2);
}

.character-avatar {
    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;
}

.character-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.character-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.character-traits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trait {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* AI CTA */
.ai-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-cta h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.ai-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ai-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .ai-main-title {
        font-size: 2rem;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .sub-features {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cost-scenarios {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mechanism-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cost-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .ai-tech .section-title {
        font-size: 2rem;
    }
    
    .ai-main-title {
        font-size: 1.8rem;
    }
    
    .brain-animation {
        width: 200px;
        height: 200px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* APIコスト試算 */
.cost-analysis {
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 20px;
}

.cost-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: white;
}

.cost-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.scenario-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.scenario-card.featured {
    border: 2px solid var(--secondary-color);
    background: rgba(37, 99, 235, 0.1);
}

.scenario-card h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.cost-comparison {
    margin-bottom: 1.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cost-item.traditional {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
}

.cost-item.optimized {
    background: rgba(34, 197, 94, 0.2);
    border-left: 4px solid #22c55e;
}

.cost-item .label {
    font-weight: 600;
    color: white;
}

.cost-item .amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.cost-item small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.savings {
    text-align: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.cost-breakdown-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.cost-breakdown-detail h4 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mechanism-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mechanism-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.mechanism-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.mechanism-item h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mechanism-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* コンタクトセクション */
.contact {
    background: var(--primary-color);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* フッター */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .work-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .code-window {
        font-size: 0.8rem;
    }
}

/* 関連技術リンク */
.related-tech {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-tech h3 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.tech-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tech-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
}

.tech-link.portfolio {
    border-left: 4px solid var(--accent-color);
}

.tech-link .tech-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.tech-link.portfolio .tech-icon {
    background: var(--gradient-accent);
}

.tech-link .tech-icon i {
    color: white;
    font-size: 1.5rem;
}

.tech-info h4 {
    margin: 0 0 8px;
    color: white;
    font-weight: 600;
}

.tech-info p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.link-arrow {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
} 