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

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    overflow: hidden;
    gap: 5rem; /* Add spacing */
    flex-wrap: wrap; /* Allow wrapping */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.6));
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 4;
    position: relative;
}

/* hero-content h2 is now inside hero-title */
.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem; /* Moved from h2 */
}

.hero-title-icon {
    width: 60px; /* Adjust size as needed */
    height: 60px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); /* Add a subtle shadow */
}

.hero-content h2 {
    font-size: 3.5rem;
    /* margin-bottom is removed */
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-avatar {
    /* No longer absolutely positioned */
    z-index: 3;
}

.avatar-img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4));
    animation: flyInRight 1.2s ease-out 0.5s both;
}

.avatar-img:hover {
    animation: float 2s ease-in-out infinite;
}

@keyframes flyInRight {
    0% {
        transform: translateX(100px) translateY(-20px) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cta-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-button.secondary {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.cta-button.secondary:hover {
    background: #2c5aa0;
    color: white;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.features {
    padding: 100px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5aa0;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures image corners are rounded */
    flex-basis: 320px; /* Set a basis for sizing */
    max-width: 350px;  /* But not too much */
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.feature-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-card-title i {
    font-size: 1.5rem; /* Adjusted icon size */
    color: #2c5aa0;
    width: 24px;
    text-align: center;
}

.feature-card h3 {
    color: #2c5aa0;
    font-size: 1.25rem; /* Adjusted title size */
    margin-bottom: 0;
}

.feature-card p {
    flex-grow: 1;
    color: #666;
}

.demo {
    padding: 100px 0;
    background: #f8f9fa;
}

.demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5aa0;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.privacy-content, .contact-page {
    padding: 50px 0 100px;
}

.privacy-content h1, .contact-page h1 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-section {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.privacy-section h2 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.contact-form, .google-form-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.google-form-container iframe {
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2c5aa0;
    outline: none;
}

.submit-button {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-button:hover {
    background: #1e3d6f;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    text-align: center;
    color: #2c5aa0;
    margin-bottom: 2rem;
}

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

.info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.info-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0; /* Slide in */
    }

    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .hero-avatar {
        display: none;
    }
    
    .avatar-img {
        width: 200px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Download and X-Feed Sections */
.download-section, .x-feed-section {
    padding: 80px 0;
    text-align: center;
}

.download-section {
    background: #f8f9fa;
}

.download-section h2, .x-feed-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #2c5aa0;
}

.x-feed-section {
    background: #fff;
}

.x-feed-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}