/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b69 100%);
    color: #fff;
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}


.header-content {
    text-align: center;
    padding: 2rem 0 3rem;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

header .logo img {
    width: 100px;
    height: auto;
    max-height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.company-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.header-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #a1a1aa;
    margin-top: 0.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Main Banner with AI SVG */
.main-banner {
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.ai-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* モバイルではAI背景SVGを非表示にしてパフォーマンスと見た目を改善 */
@media (max-width: 768px) {
    .ai-bg-svg {
        display: none;
    }

    /* モバイルでは背景色だけで対応 */
    .main-banner {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
}

.ai-bg-svg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.neural-network circle {
    animation: pulse 3s ease-in-out infinite;
}

.neural-network circle:nth-child(odd) {
    animation-delay: 0s;
}

.neural-network circle:nth-child(even) {
    animation-delay: 1.5s;
}

.floating-elements circle {
    animation: float 6s ease-in-out infinite;
}

.float-1 { animation-delay: 0s; }
.float-2 { animation-delay: 1.5s; }
.float-3 { animation-delay: 3s; }
.float-4 { animation-delay: 4.5s; }

.main-banner .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ai-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.ai-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.ai-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.content-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1e293b;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #475569;
}

.section-content strong {
    color: #1e293b;
    font-weight: 600;
}

.section-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* PersonaChoice Logo Styles */
.personachoice-logo {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.personachoice-logo:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.personachoice-logo a {
    display: inline-block;
    transition: all 0.3s ease;
}

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

.personachoice-logo-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.personachoice-logo:hover .personachoice-logo-img {
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.3));
}

.personachoice-description {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.personachoice-description:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* Company Info Styles */
.company-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row dt {
    font-weight: 600;
    color: #475569;
    min-width: 120px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.info-row dd {
    color: #1e293b;
    margin: 0;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b69 100%);
    padding: 5rem 2rem;
    color: white;
}

.contact-section .content-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-section .section-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.message-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.message-container p {
    margin: 0;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #a1a1aa;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    header {
        padding: 1rem;
    }

    .header-content {
        padding: 1rem 0 2rem;
    }

    .company-name {
        font-size: 2.5rem;
    }

    .main-banner {
        height: 60vh;
        min-height: 400px;
    }

    .main-banner .content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .content-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .main-banner {
        height: 50vh;
        min-height: 350px;
    }

    .company-name {
        font-size: 2rem;
    }

    .ai-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem 1rem;
    }
}

/* Scroll Animations */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.content-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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