:root {
    --primary-yellow: #ffd54f;
    --primary-blue: #1a73e8;
    --accent-color: #ff5252;
    --dark-blue: #0d47a1;
    --light-yellow: #fff8e1;
    --background: #121212;
    --text-light: #ffffff;
    --text-dark: #212121;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --section-spacing: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(to right, rgba(26, 115, 232, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 115, 232, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.light-effect {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 213, 79, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 10s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(0.8); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダーセクション */
.hero-section {
    min-height: auto; /* 移除100vh高度限制 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding: 10px 0 15px 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-yellow), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 15px rgba(255, 213, 79, 0.3);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-yellow), var(--primary-blue));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-light);
    opacity: 0.9;
}

.hero-image-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 30px rgba(26, 115, 232, 0.5),
                0 0 15px rgba(255, 213, 79, 0.3);
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.5s ease;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateX(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 40px rgba(26, 115, 232, 0.6),
                0 0 20px rgba(255, 213, 79, 0.4);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* 特徴セクション */
.features-section {
    padding-top: 10px;
    padding-bottom: var(--section-spacing);
    position: relative;
    margin-top: 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--section-spacing);
    text-align: center;
    color: var(--primary-yellow);
    position: relative;
}

.features-section .section-title {
    margin-top: 0;
    padding-top: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 1.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--section-spacing);
    margin-top: var(--section-spacing);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: var(--section-spacing);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-yellow), var(--primary-blue));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.1;
    color: var(--primary-yellow);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-weight: 700;
}

.feature-text {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: var(--section-spacing);
}

.feature-text:last-child {
    margin-bottom: 0;
}

.features-image-container {
    width: 100%;
    max-width: 600px;
    margin: var(--section-spacing) auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 30px rgba(26, 115, 232, 0.5),
                0 0 15px rgba(255, 213, 79, 0.3);
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.5s ease;
}

.features-image-container:hover {
    transform: perspective(1000px) rotateY(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 40px rgba(26, 115, 232, 0.6),
                0 0 20px rgba(255, 213, 79, 0.4);
}

/* チームセクション */
.team-section {
    padding: var(--section-spacing) 0;
    position: relative;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0), rgba(26, 115, 232, 0.1));
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--section-spacing);
    margin-top: var(--section-spacing);
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    max-width: 350px;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    color: var(--primary-yellow);
    opacity: 0.2;
}

.testimonial-text {
    margin-bottom: var(--section-spacing);
    font-style: italic;
    opacity: 0.9;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-blue);
}

.team-features {
    margin-top: var(--section-spacing);
}

.team-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--section-spacing);
}

.team-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.team-icon span {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.team-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-yellow);
}

.team-content p {
    opacity: 0.8;
}

/* CTAセクション */
.cta-section {
    padding: var(--section-spacing) 0;
    text-align: center;
    position: relative;
}

.cta-heading {
    font-size: 2rem;
    margin-bottom: var(--section-spacing);
    color: var(--primary-yellow);
}

.cta-subheading {
    font-size: 1.2rem;
    margin-bottom: var(--section-spacing);
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ボタンスタイル */
.ai-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-yellow), var(--accent-color));
    color: var(--text-dark);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 82, 82, 0.3);
    z-index: 1;
    margin-bottom: 15px; /* 减少按钮底部的空间 */
}

.ai-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: 0.5s;
    z-index: -1;
}

.ai-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 82, 82, 0.5);
}

.ai-button:hover::before {
    left: 100%;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 213, 79, 0.5), 0 0 20px rgba(255, 82, 82, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 213, 79, 0.8), 0 0 30px rgba(255, 82, 82, 0.5);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 213, 79, 0.5), 0 0 20px rgba(255, 82, 82, 0.3);
    }
}

.glow-effect {
    animation: glow 2s infinite;
}
/* 底部悬浮按钮 - 修复移动设备不可见问题 */
.floating-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--primary-yellow), var(--accent-color));
    color: var(--text-dark);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap; /* 确保文字不换行 */
    min-width: 300px; /* 确保按钮足够长 */
    text-align: center;
    z-index: 9999; /* 极高的z-index确保按钮位于最顶层 */
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.4);
    animation: strongPulse 1.5s infinite;
    display: block !important; /* 强制显示 */
    visibility: visible !important; /* 确保可见性 */
    opacity: 1 !important; /* 确保完全不透明 */
}

/* 强烈呼吸动画 - 修正以确保在移动设备上正常工作 */
@keyframes strongPulse {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(255, 82, 82, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.08);
        box-shadow: 0 8px 25px rgba(255, 213, 79, 0.8), 0 0 40px rgba(255, 82, 82, 0.6);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(255, 82, 82, 0.4);
    }
}

/* 针对移动设备的特殊处理 */
@media (max-width: 480px) {
    .floating-button {
        min-width: 85%; /* 在小屏幕上使用百分比宽度 */
        padding: 15px 20px;
        bottom: 10px; /* 在移动设备上更靠近底部 */
        font-size: 1rem; /* 略微减小字体大小以适应小屏幕 */
        position: fixed !important; /* 强制固定定位 */
    }
    
    /* 为底部添加一些额外的内边距，确保按钮不会遮挡内容 */
    body {
        padding-bottom: 70px;
    }
    
    /* 确保footer不会挡住按钮 */
    .footer {
        margin-bottom: 60px;
    }
}

/* フッター */
.footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: var(--section-spacing) 0;
    margin-top: var(--section-spacing);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* レスポンシブ設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .hero-section {
        padding: 10px 0 0 0; /* 减少底部空间 */
        min-height: auto; /* 确保没有额外的高度 */
    }
    
    .hero-image-container {
        transform: none;
        margin: 15px auto; /* 减少图片周围的空间 */
    }
    
    .ai-button {
        margin-top: 0;
        margin-bottom: 5px; /* 极大减少按钮底部的空间 */
    }
    
    .features-section {
        padding-top: 5px; /* 减少顶部空间 */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px; /* 减少卡片间距 */
        margin-top: 20px;
    }
    
    .feature-card {
        padding: 15px;
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .team-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .team-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cta-heading {
        font-size: 1.6rem;
    }
    
    .ai-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* 显著减少空白的关键样式 */
    .hero-content > *:last-child {
        margin-bottom: 0;
    }
    
    .features-section .section-title {
        margin-top: 0;
    }
    
    /* 确保整体紧凑 */
    .container {
        padding: 0 15px;
    }
}