:root {
    --primary-color: #FF7F50;
    --primary-light: #FF9E7A;
    --primary-dark: #E0603B;
    --primary-gradient: linear-gradient(135deg, #FF7F50 0%, #FF512F 100%);
    --secondary-color: #4A90E2;
    --bg-color: #F8F9FB;
    --text-color: #1A1A1A;
    --text-light: #5A5A5A;
    --card-bg: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* 共通アニメーション・ Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* NavBar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    border-radius: 8px;
}

.lang-switch select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
}

/* Hero Section */
.hero {
    padding: 140px 20px 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(255,127,80,0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(74,144,226,0.1), transparent 50%);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-header-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.hero-label {
    display: inline-block;
    color: var(--primary-color);
    padding: 0;
    font-weight: 800;
    font-size: 2.5em;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 5px;
}

.hero h1 {
    font-size: 3.2em;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 800;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-badge {
    height: 52px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-badge:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.hero-carousel {
    position: relative;
    width: 260px;
    height: 563px;
}

.hero-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 8px solid #1c1c1e;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel img.active {
    opacity: 1;
    z-index: 2;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 800;
}

.section-title p {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 127, 80, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8em;
}

.feature-text h3 {
    font-size: 2em;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.15em;
    color: var(--text-light);
    line-height: 1.8;
}

.feature-desc-sp {
    display: none;
}
.feature-desc-pc {
    display: block;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-visual img {
    width: 280px;
    border-radius: 36px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    border: 6px solid #1c1c1e;
    transition: transform 0.5s ease;
}



.feature-row:hover .feature-visual img {
    transform: scale(1.01) translateY(-3px);
}

/* AI Message Preview */
.ai-preview {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-color);
}

.ai-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 32px;
    text-align: left;
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.ai-card-header i {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2em;
    flex-shrink: 0;
}

.ai-card-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: var(--text-color);
}

/* Task info badge row - shown ABOVE the message bubble */
.message-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.message-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,127,80,0.08);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255,127,80,0.2);
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Message bubble - shown BELOW the task info */
.message-bubble {
    background: #fff;
    padding: 22px 26px;
    border-radius: 0 20px 20px 20px;
    font-size: 1.1em;
    color: #1c1e21;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    line-height: 1.7;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px 0 0 4px;
}

/* Premium Section */
.premium {
    padding: 100px 0;
    background: #fff;
}

.premium-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    color: #fff;
    border-radius: 40px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.premium-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.premium-box h2 {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 2.8em;
    margin: 0 0 10px;
    color: #FFD700;
}

.premium-box > p {
    font-size: 1.1em;
    opacity: 0.8;
    margin-bottom: 40px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.premium-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05em;
    border: 1px solid rgba(255,255,255,0.1);
}

.premium-item i {
    color: #FFD700;
    font-size: 1.4em;
}

/* Bottom CTA */
.bottom-cta {
    padding: 100px 20px;
    background: var(--bg-color);
    text-align: center;
}

.hidden-pc {
    display: none;
}

/* スマホ版専用の改行（PCでは非表示） */
.cta-br-sp {
    display: none;
}

.bottom-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.bottom-cta h2 {
    font-size: 2.1em;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.bottom-cta p {
    font-size: 1.15em;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-store-buttons {
    justify-content: center;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 60px 20px 40px;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo img {
    width: 24px;
    border-radius: 6px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.copyright {
    color: #aaa;
    font-size: 0.9em;
}

@media (max-width: 900px) {
    .hero {
        padding: 70px 20px 40px;
        min-height: auto;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
    }
    .hero-header-top {
        justify-content: center;
    }
    .hero h1 { font-size: 2.3em; }
    .store-buttons { justify-content: center; }
    .hero-label { font-size: 1.8em; }
    
    /* 横スクロール型のUI */
    .features .container {
        padding: 0;
    }
    .features .section-title {
        padding: 0 20px;
    }
    .features-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 20px 40px;
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .features-wrapper::-webkit-scrollbar {
        display: none;
    }
    .feature-row, .feature-row:nth-child(even) {
        flex: 0 0 85%;
        scroll-snap-align: center;
        flex-direction: column;
        text-align: center;
        background: #fdfdfd;
        border: 1px solid #eaeaea;
        padding: 24px 15px;
        border-radius: 30px;
        margin-bottom: 0;
        gap: 15px;
    }
    .feature-visual img {
        width: auto;
        max-height: 48vh;
        max-width: 220px;
        object-fit: contain;
        margin: 0 auto;
    }
    .feature-icon-wrapper { 
        width: 48px;
        height: 48px;
        font-size: 1.4em;
        margin: 0 auto 12px; 
    }
    .feature-text h3 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    .feature-text p {
        font-size: 0.95em;
        line-height: 1.5;
        margin-bottom: 5px;
    }
    .feature-desc-pc {
        display: none !important;
    }
    .feature-desc-sp {
        display: block !important;
    }

    .premium-grid { grid-template-columns: 1fr; }
    .premium-box { padding: 40px 20px; }
    .bottom-cta { padding: 60px 20px; }
    .bottom-cta h2 { font-size: 1.85em; }
    /* スマホ版キャッチコピーの改行制御 */
    .cta-br-sp { display: inline; }
    .cta-br-sp-hide { display: none; }
    
    .hidden-pc {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: -10px;
        margin-bottom: 30px;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
        background: #ddd;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    .carousel-dot.active {
        width: 24px;
        background: var(--primary-color);
        border-radius: 4px;
    }
}
