/* ===================================
   グローバルスタイル
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-color: #4A90E2;
    --secondary-color: #5CC8E8;
    --accent-color: #7C5CE8;
    --success-color: #50C878;
    --warning-color: #F5A623;
    --danger-color: #E85C5C;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4A90E2 0%, #5CC8E8 100%);
    --gradient-warm: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%);
    
    /* テキストカラー */
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #95A5A6;
    
    /* 背景カラー */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-lighter: #FAFBFC;
    --bg-dark: #1A2332;
    
    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* ボーダー半径 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-primary::after {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-medium);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-weight: 500;
}

.mobile-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(106, 133, 234, 0.3) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 60px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
    background: white;
    color: var(--text-dark);
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid var(--bg-light);
    transition: var(--transition-normal);
}

.btn-hero-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

/* ===================================
   セクション共通スタイル
   =================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   アプリ画面セクション
   =================================== */
.app-screens {
    background: white;
    padding: 100px 0;
}

.app-screens-content {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 60px;
}

.screen-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.screen-item.reverse {
    direction: rtl;
}

.screen-item.reverse > * {
    direction: ltr;
}

.screen-image {
    position: relative;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
}

.dashboard-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.mobile-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
}

.mobile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.screen-description h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.screen-description p {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 30px;
}

.screen-features {
    list-style: none;
    padding: 0;
}

.screen-features li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 12px;
}

.screen-features i {
    color: var(--success-color);
    font-size: 18px;
}

/* ===================================
   特徴セクション
   =================================== */
.features {
    background: var(--bg-lighter);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===================================
   AI社員セクション
   =================================== */
.ai-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.ai-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.ai-card-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transition: var(--transition-slow);
}

.ai-card:hover .ai-card-header::before {
    transform: scale(1.5);
}

.chat-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.phone-bg { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.voice-bg { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.sales-bg { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.report-bg { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.research-bg { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

.ai-card-body {
    padding: 32px;
}

.ai-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.ai-description {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

.ai-features {
    list-style: none;
    margin-bottom: 20px;
}

.ai-features li {
    padding: 8px 0;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-features i {
    color: var(--success-color);
    font-size: 14px;
}

.ai-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--text-medium);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   業務自動化セクション
   =================================== */
.automation {
    background: var(--bg-lighter);
}

.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.automation-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-align: center;
}

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

.automation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.email-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.zoom-icon { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.sns-icon { background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%); }
.line-icon { background: linear-gradient(135deg, #06beb6 0%, #48b1bf 100%); }
.sort-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.estimate-icon { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.receipt-icon { background: linear-gradient(135deg, #FFB75E 0%, #ED8F03 100%); }
.seo-icon { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.custom-icon { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.automation-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.automation-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.automation-features span {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-medium);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.automation-features i {
    color: var(--primary-color);
}

.custom-card {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* ===================================
   CTAセクション
   =================================== */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-normal);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}

.btn-cta-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   お問い合わせセクション
   =================================== */
.contact {
    background: var(--bg-lighter);
    padding: 80px 0;
}

.contact-cta-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-cta-wrapper .section-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-cta-wrapper .section-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
}

.btn-contact-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: white;
    padding: 20px 48px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-contact-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-contact-main i {
    font-size: 24px;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.footer-logo i {
    font-size: 32px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   スクロールトップボタン
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .ai-staff-grid,
    .automation-grid {
        grid-template-columns: 1fr;
    }
    
    .screen-item,
    .screen-item.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }
    
    .screen-description h3 {
        font-size: 24px;
    }
    
    .screen-description p {
        font-size: 16px;
    }
    
    .mobile-img {
        max-width: 280px;
    }
    
    .app-screens-content {
        gap: 60px;
    }
    
    .contact-cta-wrapper {
        padding: 40px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .btn-contact-main {
        padding: 16px 36px;
        font-size: 18px;
    }
}