/* System font stack */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-system);
}

:root {
    --font-system: -webkit-system-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --gradient-primary: linear-gradient(135deg, #7FDBFF 0%, #FF6F61 100%);
    --gradient-text: linear-gradient(135deg, #2A2A2A 0%, #7FDBFF 40%, #FF6F61 80%, #2A2A2A 100%);
    --shadow-light: 0 8px 32px rgba(127, 219, 255, 0.08);
    --shadow-hover: 0 16px 48px rgba(127, 219, 255, 0.15);
}

body {
    font-family: var(--font-system);
    background: linear-gradient(135deg, #F9FAFB 0%, rgba(207, 255, 229, 0.3) 100%);
    color: #2A2A2A;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Organic background with radial light sources */
.organic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 30%, rgba(127, 219, 255, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(255, 111, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(207, 255, 229, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 60% 20%, rgba(127, 219, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: -2;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Hero Section with progressive disclosure */
.hero {
    text-align: center;
    position: relative;
    padding: 200px 20px 120px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.logo {
    font-size: 90px;
    font-weight: 700;
    font-family: var(--font-system);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #7FDBFF, #FF6F61);
    border-radius: 2px;
    opacity: 0.6;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    font-family: var(--font-system);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #2A2A2A 0%, #7FDBFF 40%, #FF6F61 80%, #2A2A2A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
}

.hero .subtitle {
    font-size: 22px;
    color: #2A2A2A;
    margin-bottom: 48px;
    font-weight: 500;
    opacity: 0.85;
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.5;
}

/* Enhanced form design */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.form-container {
    position: relative;
    display: flex;
    align-items: center;
}

.email-input {
    width: 100%;
    padding: 28px 180px 28px 36px;
    border: 2px solid rgba(127, 219, 255, 0.25);
    border-radius: 35px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    color: #2A2A2A;
    font-family: var(--font-system);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(127, 219, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.email-input:focus {
    outline: none;
    border-color: #7FDBFF;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 16px 48px rgba(127, 219, 255, 0.15),
        0 0 0 4px rgba(127, 219, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.email-input::placeholder {
    color: rgba(42, 42, 42, 0.5);
    font-weight: 400;
}

.cta-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-system);
    text-transform: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(127, 219, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 60px rgba(127, 219, 255, 0.35),
        0 0 0 2px rgba(127, 219, 255, 0.2);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover::after {
    width: 100px;
    height: 100px;
}

/* ボタンテキストのレスポンシブ対応 */
.cta-button .full-text {
    display: inline;
}

.cta-button .short-text {
    display: none;
}

.cta-button:active {
    transform: none !important;
    box-shadow: none !important;
}


.form-note {
    font-size: 16px;
    color: rgba(42, 42, 42, 0.6);
    margin-top: 16px;
    font-weight: 400;
    text-align: center;
    opacity: 0.8;
}

/* Success popup modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 60px 48px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 32px 80px rgba(127, 219, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(127, 219, 255, 0.2);
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #CFFFE5, #7FDBFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.modal-icon::after {
    content: '✓';
    font-size: 36px;
    color: #2A2A2A;
    font-weight: bold;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-system);
    color: #2A2A2A;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #7FDBFF, #FF6F61);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-message {
    font-size: 18px;
    color: rgba(42, 42, 42, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.modal-close {
    background: linear-gradient(135deg, #7FDBFF, #FF6F61);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-system);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(127, 219, 255, 0.3);
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(127, 219, 255, 0.4);
}

/* Ambient interactions */
.ambient-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(127, 219, 255, 0.3), transparent);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.1s ease;
    z-index: 1;
    opacity: 0;
}

/* Top left logo image */
.top-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-image {
    height: 60px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 8px rgba(127, 219, 255, 0.2));
}

.top-logo:hover {
    transform: translateY(-8px) scale(1.1);
    animation: bounce 0.6s ease-in-out;
}

.top-logo:hover .logo-image {
    filter: drop-shadow(0 8px 16px rgba(127, 219, 255, 0.4));
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(-8px) scale(1.1);
    }
    40% {
        transform: translateY(-12px) scale(1.15);
    }
    80% {
        transform: translateY(-6px) scale(1.08);
    }
}

.top-logo:hover .logo-image {
    filter: drop-shadow(0 4px 12px rgba(127, 219, 255, 0.3));
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, rgba(42, 42, 42, 0.8) 100%);
        color: #ffffff;
    }

    .hero h1 {
        background: linear-gradient(135deg, #ffffff 0%, #7FDBFF 40%, #FF6F61 80%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% 200%;
        animation: titleFadeIn 0.8s ease-out 0.5s both, gradientShift 8s ease-in-out infinite;
    }

    .hero .subtitle {
        color: rgba(255, 255, 255, 0.85);
    }
}

/* Demo video styling */
.demo-video-container {
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .demo-video-container {
        margin: 1.5rem 0;
    }
    
    .demo-video-container > div {
        margin: 1.5rem 0 !important;
        border-radius: 8px !important;
    }
}


.modal-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.modal-close-x:hover {
    color: #000;
}

.modal-link {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.top-signin {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 1000;
}

.signin-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.signin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #000;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .signin-link {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .signin-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

.signin-link::before {
    content: "👤";
    margin-right: 0.5rem;
    font-size: 1rem;
}

.roadmap-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.roadmap-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roadmap-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

#frill-roadmap-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Roadmap専用ボタンスタイル（Sign Inと同じデザイン、アイコンのみ異なる） */
.roadmap-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.roadmap-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #000;
}

/* Roadmapボタンには地図アイコンを表示 */
.roadmap-link::before {
    content: "🗺️";
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .roadmap-link {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .roadmap-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Reddit Section Styles */
.reddit-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

/* Reddit Container in Hero Section */
.reddit-container {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 0;
}

.reddit-container h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ライトモード対応 */
@media (prefers-color-scheme: light) {
    .reddit-container h3 {
        color: #333333;
    }
}

.reddit-container p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ライトモード対応 */
@media (prefers-color-scheme: light) {
    .reddit-container p {
        color: rgba(51, 51, 51, 0.7);
    }
}

.reddit-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #FF4500;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.3);
    margin-top: 1rem;
}

.reddit-button:hover {
    background: #FF5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.4);
    color: white;
}

.reddit-button svg {
    width: 20px;
    height: 20px;
}

/* X (Twitter) Container in Hero Section */
.x-container {
    text-align: center;
    max-width: 600px;
    margin: 1rem auto 0;
}

.x-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
}

.x-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    color: white;
}

.x-button svg {
    width: 20px;
    height: 20px;
}

/* Hero Feature Section */
.hero-feature-section {
    background: transparent;
    backdrop-filter: none;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    overflow: hidden;
}

.hero-feature-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-headline {
    font-size: 64px; 
    font-weight: 700;
    font-family: var(--font-system);
    text-transform: none; /*uppercaseからnoneに変更し強制大文字化を解除*/
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
}

.feature-headline::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.6;
}

.feature-description {
    font-size: 24px;
    color: #2A2A2A;
    margin-bottom: 60px;
    font-weight: 500;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.5;
    text-align: center;
}

.feature-list {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
    text-align: left;
    font-size: 24px;
    color: #2A2A2A;
    opacity: 0.9;
}

.feature-list li {
    margin-bottom: 40px;
}

.feature-item-title {
    display: block;
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-system);
    color: #111111;
}

.feature-detail {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(17, 17, 17, 0.85);
    margin: 12px 0 0;
    font-weight: 500;
}

.feature-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-image {
    width: 100%;
    max-width: 1400px;
    height: auto;
    border-radius: 24px;
    box-shadow: 
        0 32px 80px rgba(127, 219, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(127, 219, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.demo-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 40px 100px rgba(127, 219, 255, 0.3),
        0 0 0 2px rgba(127, 219, 255, 0.2);
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
    .hero-feature-section {
        background: transparent;
        backdrop-filter: none;
        border-top: none;
    }

    .feature-description {
        color: #2A2A2A;
    }
}

/* Responsive design for hero feature section */
/*タブレット以下（768px以下）での調整*/
@media (max-width: 768px) {
    .hero-feature-section {
        padding: 80px 20px;
    }
    
    .hero-feature-section .container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .feature-headline {
        font-size: 32px;
        margin-bottom: 40px;
        white-space: normal;
    }
    
    .feature-headline::after {
        width: 40px;
        bottom: -15px;
    }
    
    .feature-description {
        font-size: 26px;
        margin-bottom: 40px;
    }
    
    .demo-image {
        max-width: 100%;
        width: 100%;
    }

    .feature-list {
        padding-left: 1rem;
        font-size: 20px;
    }

    .feature-list li {
        margin-bottom: 32px;
    }

    .feature-item-title {
        font-size: 24px;
    }

    .feature-detail {
        font-size: 20px;
    }
}
/*スマホ以下（４８０px以下）での調整*/
@media (max-width: 480px) {
    .feature-headline {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 32px;
        white-space: normal;
    }
    /* 見出し下のアンダーラインの調整 */
    .feature-headline::after {
        width: 30px;
        bottom: -12px;
    }
    /*見出し下の説明文*/
    .feature-description {
        font-size: 24px;
        margin-bottom: 32px;
    }
}

/* Video Section */
.video-section {
    background: transparent;
    backdrop-filter: none;
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.video-section .feature-headline {
    font-size: 64px;
    font-weight: 700;
    font-family: var(--font-system);
    text-transform: none;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
}

.video-section .feature-headline::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.6;
}

.video-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (prefers-color-scheme: dark) {
    .video-section {
        background: transparent;
        backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 60px 20px;
    }
    
    .video-section .container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .video-section .feature-headline {
        font-size: 48px;
        margin-bottom: 40px;
    }
    
    .video-section .feature-headline::after {
        width: 40px;
        bottom: -15px;
    }
}

/* Remove the separate reddit-section styles since we moved it to hero */
/* .reddit-section { ... } - この部分は削除 */

@media (max-width: 768px) {
    .reddit-container {
        margin-top: 1.5rem;
    }
    
    .reddit-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Presentation Section */
.presentation-section {
    background: transparent;
    backdrop-filter: none;
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.presentation-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.presentation-section .feature-headline {
    font-size: 64px;
    font-weight: 700;
    font-family: var(--font-system);
    text-transform: none;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
}

.presentation-section .feature-headline::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.6;
}

.presentation-container {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(127, 219, 255, 0.2);
}

.presentation-container iframe {
    width: 100%;
    height: 700px;
    border: none;
}

/* Light mode adjustments for presentation */
@media (prefers-color-scheme: light) {
    .presentation-section {
        background: transparent;
        backdrop-filter: none;
    }
}

/* Responsive for presentation */
@media (max-width: 768px) {
    .presentation-section {
        padding: 60px 20px;
    }
    
    .presentation-section .container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .presentation-section .feature-headline {
        font-size: 48px;
        margin-bottom: 40px;
    }
    
    .presentation-container iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .presentation-section .feature-headline {
        font-size: 32px;
        margin-bottom: 32px;
    }
    
    .presentation-container iframe {
        height: 400px;
    }
}

/* Our StoryをVisionと同じ背景に変更 */
.our-story {
    background: transparent;
    backdrop-filter: none;
    position: relative;
    padding: 120px 0;
    z-index: 1;
    width: 100%;
    display: block;
    overflow: hidden;
}

/* Our Story専用の背景効果を削除または調整 */
.our-story-bg {
    display: none;
}

/* Our Storyのセクションタイトル - メイン定義を追加 */
.section-title {
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #2A2A2A 0%, #7FDBFF 40%, #FF6F61 80%, #2A2A2A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: var(--font-system);
}

/* Our Storyのテキストブロック - メイン定義（重複削除済み） */
.story-text {
    text-align: center;
    padding: 40px 30px;
    background: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    opacity: 0.9;
    font-weight: 500;
}

.story-text:last-child {
    margin-bottom: 0;
}

.story-text:hover {
    transform: translateY(-8px);
    background: rgba(42, 42, 42, 0.95);
    box-shadow: 0 20px 60px rgba(127, 219, 255, 0.3);
}

.story-text.in-view {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(127, 219, 255, 0.2);
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .our-story {
        background: transparent;
        backdrop-filter: none;
    }
    
    .feature-description {
        color: rgba(255, 255, 255, 0.85);
    }

    .feature-list {
        color: rgba(255, 255, 255, 0.85);
    }

    .feature-item-title {
        color: rgba(255, 255, 255, 0.95);
    }

    .feature-detail {
        color: rgba(255, 255, 255, 0.75);
    }

    .section-title {
        background: linear-gradient(135deg, #ffffff 0%, #7FDBFF 40%, #FF6F61 80%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% 200%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .our-story, .vision {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 48px;
        margin-bottom: 40px;
    }
    
    .story-text {
        font-size: 18px;
        padding: 30px 20px;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .vision-item {
        padding: 30px 20px;
        border: 1px solid rgba(255, 111, 97, 0.2) !important;
    }
    
    .vision-statement {
        padding: 40px 20px;
    }
    
    .vision-statement p {
        font-size: 18px;
    }
}

/* Use Cases Gallery Section */
.use-cases-gallery {
    background: transparent;
    padding: 100px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.gallery-description {
    text-align: center;
    font-size: 20px;
    color: rgba(42, 42, 42, 0.7);
    margin-bottom: 60px;
    font-weight: 400;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(127, 219, 255, 0.15);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(127, 219, 255, 0.1) 0%, rgba(255, 111, 97, 0.1) 100%);
}

.gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-thumbnail img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(127, 219, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #2A2A2A;
    padding: 20px 20px 10px;
    margin: 0;
}

.gallery-item-description {
    font-size: 16px;
    color: rgba(42, 42, 42, 0.7);
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.5;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.gallery-modal.show {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(127, 219, 255, 0.3);
    border: 1px solid rgba(127, 219, 255, 0.2);
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.show .gallery-modal-content {
    transform: scale(1) translateY(0);
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(42, 42, 42, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #2A2A2A;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    background: rgba(42, 42, 42, 0.2);
    transform: rotate(90deg);
}

.gallery-modal-body {
    padding: 60px 40px 40px;
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .use-cases-gallery {
        padding: 80px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .gallery-modal-body {
        padding: 50px 25px 25px;
    }

    .gallery-description {
        font-size: 18px;
        margin-bottom: 40px;
    }
}

@media (prefers-color-scheme: dark) {
    .gallery-description {
        color: rgba(255, 255, 255, 0.7);
    }

    .gallery-item {
        background: rgba(42, 42, 42, 0.9);
    }

    .gallery-item-title {
        color: rgba(255, 255, 255, 0.95);
    }

    .gallery-item-description {
        color: rgba(255, 255, 255, 0.7);
    }

    .gallery-modal-content {
        background: rgba(42, 42, 42, 0.98);
    }

    .gallery-modal-close {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

    .gallery-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Language Switcher Button */
.lang-switcher {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.95) 100%);
    border: 1px solid rgba(127, 219, 255, 0.2);
    box-shadow: var(--shadow-light);
    font-weight: 500;
}

.lang-switcher:hover {
    border-color: rgba(127, 219, 255, 0.4);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
}

.lang-switcher:active {
    transform: translateY(0);
}

#currentLang {
    font-weight: 600;
    color: #2A2A2A;
}

/* Dark mode styles for navigation */
@media (prefers-color-scheme: dark) {
    .lang-switcher {
        background: none !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        box-shadow: none !important;
    }

    .lang-switcher:hover {
        border-color: #7FDBFF !important;
        background: rgba(127, 219, 255, 0.1) !important;
        color: #ffffff !important;
    }

    #currentLang {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .signin-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .signin-link:hover {
        color: #ffffff !important;
    }

    .roadmap-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .roadmap-link:hover {
        color: #ffffff !important;
    }
}

/* Problem Solution Section */
.problem-solution-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
}

.problem-block {
    margin-bottom: 60px;
    text-align: center;
}

.problem-intro {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.problem-quote {
    font-size: 32px;
    font-weight: 700;
    color: #2A2A2A;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(127, 219, 255, 0.08) 0%, rgba(255, 111, 97, 0.08) 100%);
    border-left: 4px solid #7FDBFF;
    border-radius: 8px;
    max-width: 700px;
    line-height: 1.4;
    font-style: italic;
}

.problem-explanation {
    font-size: 19px;
    color: #555;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}

.solution-block {
    margin-bottom: 60px;
    text-align: center;
}

.solution-intro {
    font-size: 20px;
    color: #555;
    margin: 20px auto 30px;
    max-width: 700px;
    line-height: 1.7;
}

.solution-points {
    list-style: none;
    padding: 0;
    max-width: 750px;
    margin: 30px auto;
    text-align: left;
}

.solution-points li {
    font-size: 19px;
    color: #2A2A2A;
    margin: 20px 0;
    padding-left: 40px;
    position: relative;
    line-height: 1.7;
}

.solution-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7FDBFF;
    font-size: 24px;
    font-weight: bold;
}

.solution-summary {
    font-size: 21px;
    font-weight: 600;
    color: #2A2A2A;
    margin: 30px auto 20px;
    max-width: 700px;
    line-height: 1.6;
}

.solution-analogy {
    font-size: 18px;
    color: #888;
    margin: 10px auto;
    max-width: 700px;
    font-style: italic;
}

.example-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.98) 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(127, 219, 255, 0.15);
}

.example-title {
    font-size: 28px;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 25px;
    text-align: center;
}

.example-input {
    font-size: 22px;
    color: #2A2A2A;
    background: rgba(127, 219, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-style: italic;
    border-left: 3px solid #7FDBFF;
}

.example-output {
    font-size: 19px;
    color: #555;
    margin: 25px 0 15px;
    font-weight: 500;
}

.example-bullets {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.example-bullets li {
    font-size: 18px;
    color: #2A2A2A;
    margin: 15px 0;
    padding-left: 35px;
    position: relative;
    line-height: 1.6;
}

.example-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FF6F61;
    font-size: 20px;
    font-weight: bold;
}

.example-result {
    font-size: 20px;
    font-weight: 600;
    color: #2A2A2A;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(127, 219, 255, 0.08) 0%, rgba(255, 111, 97, 0.08) 100%);
    border-radius: 8px;
    text-align: center;
}

/* CTA Section within Problem Solution */
.cta-section {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(127, 219, 255, 0.05) 0%, rgba(255, 111, 97, 0.05) 100%);
    border-radius: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .email-form {
    margin-bottom: 15px;
}

.cta-section .form-note {
    margin-top: 15px;
}
