@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #0a0f18; /* ディープブラック系 */
    --bg-darker: #05080c;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    
    /* ブランドカラーのグラデーション要素 */
    --accent-1: #4f46e5; /* インディゴ */
    --accent-2: #06b6d4; /* シアン */
    --accent-3: #8b5cf6; /* パープル */
    
    --glass-bg: rgba(20, 25, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at top right, #111827, var(--bg-darker));
}

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

.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    background: rgba(10, 15, 24, 0.7);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5vw;
    background: rgba(10, 15, 24, 0.9);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent-2);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.5);
}

/* About Section */
.about-grid {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Profile Section (Timeline) */
.profile-card {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .profile-header {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .profile-intro {
        text-align: left;
        margin-bottom: 0;
    }
    .profile-image {
        width: 180px;
        height: 180px;
        flex-shrink: 0;
    }
}

.profile-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 500;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent-2);
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

.timeline-dot.pulse {
    border-color: var(--accent-3);
    background: var(--accent-3);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.timeline-content {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* Brand Colors for Text */
.rakuten { color: #bf0000; }
.rizap { color: #f39c12; }
.freakout { color: #e74c3c; }
.creema { color: #2ecc71; }
.inkyouup-text { color: #8b5cf6; }

.timeline-content small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.tag.highlight-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.3);
}


/* Companies Section */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .companies-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .companies-grid::-webkit-scrollbar {
        height: 6px;
    }
    .companies-grid::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
    }
    .company-card {
        flex: 0 0 calc(50vw - 3rem);
        min-width: 280px;
        scroll-snap-align: center;
    }
}

.company-card {
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

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

.company-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Pseudo icons */
.icon-4th::after { content: '🔬'; }
.icon-ink::after { content: '🎯'; }
.icon-quad::after { content: '🚀'; }
.icon-5s::after { content: '🤖'; }

.company-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.company-subtitle {
    font-size: 0.9rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
    font-weight: 600;
}

.company-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.feature-list {
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '→';
    color: var(--accent-2);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Support Results Section */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.result-card {
    padding: 2.5rem;
    border-left: 4px solid var(--accent-2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.result-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.result-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 700;
}

.result-content-block {
    margin-bottom: 1.5rem;
}

.result-content-block:last-child {
    margin-bottom: 0;
}

.result-content-block h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.result-content-block p {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.outcome-highlight {
    color: #10b981 !important; /* Emerald color for outcome */
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}


/* Contact Form */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.contact-text {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
    background: rgba(0,0,0,0.4);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Float label animation */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    padding: 0 0.4rem;
    background: var(--bg-dark);
    color: var(--accent-2);
}

/* Select element doesn't support the same placeholder trick cleanly without JS, so giving it slightly different padding */
.form-group select {
    appearance: none;
    color: var(--text-muted);
}
.form-group select:focus, 
.form-group select:valid {
    color: #fff;
}

.submit-button {
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

footer p {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}


/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh; width: 100%;
        background: rgba(10, 15, 24, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        gap: 2rem;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }

    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    
    .section { padding: 5rem 0; }
    
    .contact-wrapper { padding: 2rem 1.5rem; }
    
    .timeline::before { left: 4px; }
    .timeline-dot { left: -14px; width: 14px; height: 14px; }
    .timeline { padding-left: 15px; }

    .companies-grid {
        margin: 0 -2rem;
        padding: 0 2rem 1.5rem 2rem;
    }
    .company-card {
        flex: 0 0 85vw;
    }
}
