:root {
    --primary: #00bcd4;
    --primary-glow: rgba(0, 188, 212, 0.5);
    --secondary: #0d47a1;
    --bg-dark: #050a14;
    --bg-gradient-start: #050a14;
    --bg-gradient-end: #0a2e4e;
    --text-main: #ffffff;
    --text-muted: #e0e6ed;
    --glass-bg: rgba(0, 20, 40, 0.6);
    --glass-border: #00bcd4;
    --card-hover: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --nav-bg: rgba(5, 10, 20, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(13, 71, 161, 0.2) 0%, transparent 40%);
    z-index: -2;
}

.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-bubbles span {
    position: absolute;
    bottom: -150px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.4) 0%, transparent 80%);
    border: 2px solid rgba(0, 220, 255, 0.8);
    border-radius: 50%;
    animation: rise 15s infinite linear;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.5), inset 0 0 20px rgba(0, 188, 212, 0.3);
}

.bg-bubbles span:nth-child(1) {
    width: 160px;
    height: 160px;
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bg-bubbles span:nth-child(2) {
    width: 80px;
    height: 80px;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bg-bubbles span:nth-child(3) {
    width: 200px;
    height: 200px;
    left: 35%;
    animation-duration: 15s;
    animation-delay: 4s;
}

.bg-bubbles span:nth-child(4) {
    width: 120px;
    height: 120px;
    left: 50%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.bg-bubbles span:nth-child(5) {
    width: 60px;
    height: 60px;
    left: 65%;
    animation-duration: 14s;
    animation-delay: 3s;
}

.bg-bubbles span:nth-child(6) {
    width: 180px;
    height: 180px;
    left: 80%;
    animation-duration: 18s;
    animation-delay: 5s;
}

.bg-bubbles span:nth-child(7) {
    width: 100px;
    height: 100px;
    left: 90%;
    animation-duration: 9s;
    animation-delay: 2s;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-120vh) scale(1.2);
        opacity: 0;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(to bottom, var(--nav-bg) 0%, transparent 100%);
    backdrop-filter: blur(5px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

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

/* Sub Page */
.page-wrapper {
    padding-top: 100px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.hero-logo {
    max-width: 90%;
    width: 600px;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.3));
}



.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-down span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Section Common */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.en-title {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.ja-title {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Cards (Philosophy) */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Policy List */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.policy-item {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(90deg, var(--glass-bg) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    transition: all 0.3s ease;
    border-radius: 0 16px 16px 0;
}

.policy-item:hover {
    border-color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.2) 0%, transparent 100%);
}

.policy-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.policy-item:hover .policy-number {
    color: var(--primary);
}

.policy-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.policy-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
    transition-delay: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Article Styles for keiei.html */
.article-content {
    background: rgba(5, 10, 20, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(5px);
}

.chapter-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.article-section {
    margin-bottom: 4rem;
}

.article-section h2 {
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-section h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.article-section h4 {
    font-size: 1.1rem;
    color: #fff;
    margin: 1.5rem 0 0.8rem;
    font-weight: 700;
}

.article-section p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.9;
    text-align: justify;
}

.article-section ul {
    list-style: none;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
}

.article-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.article-section li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.article-section strong {
    color: #fff;
    background: linear-gradient(transparent 60%, rgba(0, 188, 212, 0.3) 60%);
}

@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }
}

/* AI Hero Section Styles */
.ai-hero-wrapper {
    margin-top: 1rem;
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
}

.ai-link-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(5, 10, 20, 0.7);
    border: 1px solid var(--primary);
    padding: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.15);
    position: relative;
    overflow: hidden;
}

.ai-link-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.ai-link-hero:hover {
    background: rgba(0, 20, 40, 0.9);
    border-color: #fff;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
    transform: translateY(-3px);
}

.ai-link-hero:hover::before {
    left: 120%;
    transition: 0.7s;
}

.ai-image-hero {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    overflow: hidden;
    background: #000;
}

.ai-image-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-text-hero {
    flex-grow: 1;
    text-align: left;
}

.ai-text-hero p {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.ai-text-hero h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.ai-btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.ai-link-hero:hover .ai-btn-hero {
    background: #fff;
    color: var(--primary);
}

.ai-btn-hero .arrow {
    transition: transform 0.3s ease;
}

.ai-link-hero:hover .arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .ai-link-hero {
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
        padding: 2rem;
        gap: 1rem;
    }

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

    .ai-image-hero {
        width: 100px;
        height: 100px;
    }

    .ai-btn-hero {
        width: 100%;
    }
}

/* AI Consultant Section */
.ai-consultant {
    padding-top: 0;
    padding-bottom: 8rem;
}

.ai-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.ai-link {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(13, 71, 161, 0.2) 100%);
    border: 1px solid var(--primary);
    padding: 3rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.ai-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.ai-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.2);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, rgba(13, 71, 161, 0.25) 100%);
    border-color: #fff;
}

.ai-link:hover::before {
    left: 120%;
    transition: 0.7s;
}

.ai-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
}

.ai-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ai-link:hover .ai-image img {
    transform: scale(1.1);
}

.ai-text {
    flex-grow: 1;
    text-align: left;
}

.ai-text p {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.ai-text h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: var(--primary);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.ai-link:hover .ai-btn {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.ai-btn .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.ai-link:hover .arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .ai-link {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .ai-image {
        width: 140px;
        height: 140px;
    }

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

    .ai-text h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }


}

/* DX Training Section */
.dx-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.dx-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 10, 20, 0.4);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.dx-link-item:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
}

.dx-link-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.dx-link-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dx-link-item:hover .dx-link-arrow {
    transform: translateX(5px);
}