/* ========================================
   リセットとベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-black: #0A0A0A;
    --secondary-black: #151515;
    --dark-gray: #1F1F1F;
    --medium-gray: #2A2A2A;
    --light-gray: #808080;
    --text-gray: #B0B0B0;
    --white: #FFFFFF;
    --neon-green: #C1FF00;
    --neon-green-hover: #D4FF33;

    /* フォント */
    --font-primary: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', sans-serif;

    /* アニメーション */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ナビゲーション
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(193, 255, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(10, 10, 10, 0.98);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    transition: all var(--transition-fast);
}

.nav-logo:hover .logo-image {
    filter: drop-shadow(0 0 10px rgba(193, 255, 0, 0.5));
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link.active {
    color: var(--neon-green);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-icon {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.nav-link:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-cta {
    display: flex;
    align-items: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--neon-green);
    color: var(--primary-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover {
    background: var(--neon-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 255, 0, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button .material-icons {
    font-size: 18px;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--neon-green);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle .material-icons {
    font-size: 28px;
    color: var(--white);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.5) 30%,
        rgba(10, 10, 10, 0.7) 60%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 500;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s 0.2s forwards;
}

.hero-title .highlight {
    color: var(--neon-green);
    position: relative;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 1s 0.4s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--neon-green);
    color: var(--primary-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
    opacity: 0;
    animation: fadeInUp 1s 0.6s forwards;
}

.hero-cta:hover {
    background: var(--neon-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(193, 255, 0, 0.3);
}

/* ========================================
   ソリューションセクション
======================================== */
.solutions-section {
    padding: 120px 0;
    background: var(--primary-black);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.solution-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    border: 1px solid rgba(193, 255, 0, 0.1);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-green) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(193, 255, 0, 0.1);
    border-color: rgba(193, 255, 0, 0.3);
}

.solution-card:hover::before {
    transform: translateX(0);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: var(--neon-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.solution-icon .material-icons {
    font-size: 32px;
    color: var(--primary-black);
}

.solution-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.solution-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ========================================
   統計セクション
======================================== */
.stats-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--secondary-black) 0%, var(--primary-black) 100%);
    position: relative;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.stat-number {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    color: var(--neon-green);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ========================================
   導入事例セクション
======================================== */
.case-studies-section {
    padding: 120px 0;
    background: var(--primary-black);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-study-card {
    background: var(--dark-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-study-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.case-study-card:hover .case-study-image {
    transform: scale(1.05);
}

.case-study-content {
    padding: 30px;
}

.case-study-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.case-study-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.case-study-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ========================================
   フッター
======================================== */
.footer {
    background: var(--secondary-black);
    border-top: 1px solid rgba(193, 255, 0, 0.1);
    padding: 80px 0 40px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--white) 0%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--neon-green);
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-links a:hover {
    color: var(--neon-green);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid rgba(193, 255, 0, 0.1);
}

.social-link:hover {
    background: var(--neon-green);
    transform: translateY(-3px);
}

.social-link i {
    color: var(--text-gray);
    font-size: 18px;
    transition: color var(--transition-fast);
}

.social-link:hover i {
    color: var(--primary-black);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--white);
}

.separator {
    color: var(--text-gray);
    font-size: 13px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-gray);
}

/* ========================================
   アニメーション
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-medium);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-medium);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-medium);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   ユーティリティクラス
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.text-green {
    color: var(--neon-green);
}

.mt-80 {
    margin-top: 80px;
}

.mb-80 {
    margin-bottom: 80px;
}

.py-120 {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* ========================================
   レスポンシブデザイン（基本スタイル）
======================================== */

/* タブレット〜小型デスクトップ (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 32px;
    }

    .solution-cards {
        gap: 24px;
    }

    .stats-grid {
        gap: 32px;
    }
}

/* タブレット (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        height: 70px;
    }

    .nav-container {
        padding: 0 24px;
    }

    .logo-image {
        height: 36px;
    }

    .hero-section {
        margin-top: 70px;
        min-height: 600px;
    }

    .container {
        max-width: 768px;
        padding: 0 24px;
    }

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

    .solutions-section,
    .stats-section,
    .case-studies-section {
        padding: 80px 0;
    }
}

/* モバイル〜タブレット (max-width: 768px) - iPhone 16最適化 */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* ナビゲーション */
    .navbar {
        height: 64px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-container {
        padding: 0 20px;
        height: 64px;
    }

    .logo-image {
        height: 36px;
    }

    /* デスクトップメニューとCTAを非表示 */
    .nav-menu,
    .nav-cta {
        display: none;
    }

    /* ハンバーガーメニューを表示 */
    .hamburger-menu {
        display: flex;
    }

    /* ヒーローセクション */
    .hero-section {
        margin-top: 64px;
        min-height: calc(100vh - 64px);
        padding: 0;
    }

    .hero-content {
        padding: 0 20px;
    }

    /* コンテナとセクション */
    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 40px;
        padding: 0;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    .section-subtitle {
        font-size: 12px;
        letter-spacing: 0.1em;
        margin-bottom: 12px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.6;
    }

    /* セクションパディング */
    .solutions-section,
    .stats-section,
    .case-studies-section {
        padding: 64px 0;
    }

    .solution-cards {
        padding: 0;
    }

    /* スペーシングユーティリティ */
    .mt-80 {
        margin-top: 48px;
    }

    .mb-80 {
        margin-bottom: 48px;
    }

    .py-120 {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    /* フッター */
    .footer {
        padding: 64px 0 32px;
        background: var(--secondary-black);
    }

    .footer-container {
        padding: 0 20px;
    }

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

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

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

    .footer-column ul li a {
        font-size: 15px;
        line-height: 1.5;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding-top: 24px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
    }

    .footer-legal a {
        font-size: 14px;
    }

    .footer-copyright {
        text-align: center;
        font-size: 13px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* 小型モバイル (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-header {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 28px);
    }

    .hero-section {
        min-height: 450px;
        padding: 40px 0;
    }

    .solutions-section,
    .stats-section,
    .case-studies-section {
        padding: 48px 0;
    }

    .mt-80 {
        margin-top: 48px;
    }

    .mb-80 {
        margin-bottom: 48px;
    }

    .py-120 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* 超小型モバイル (max-width: 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .logo-image {
        height: 28px;
    }

    .section-title {
        font-size: 22px;
    }
}