/* ========================================
   グローバルスタイル
======================================== */
:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff00ff;
    --accent-color: #ffcc00;
    --dark-bg: #0a0a0f;
    --dark-secondary: #141420;
    --text-light: #ffffff;
    --text-gray: #a0a0b0;
    --gradient-primary: linear-gradient(135deg, #00ffcc 0%, #00aaff 50%, #ff00ff 100%);
    --gradient-secondary: linear-gradient(45deg, #ff00ff 0%, #00ffcc 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    --shadow-neon: 0 0 20px rgba(0, 255, 204, 0.5);
    --shadow-neon-pink: 0 0 20px rgba(255, 0, 255, 0.5);
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ========================================
   ローディング画面
======================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 2s ease-in-out infinite;
}

.loading-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ========================================
   ナビゲーション
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* ========================================
   ボタンスタイル
======================================== */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    box-shadow: var(--shadow-neon);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 255, 204, 0.7);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: var(--shadow-neon);
}

/* ナビゲーションの「今すぐ始める」ボタンのスタイル改善 */
.nav-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: none;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7575 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.cta-button.small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 204, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 170, 255, 0.2) 0%, transparent 50%);
}

.timeline-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

.hero-content {
    flex: 1;
    padding-right: 0;
    padding-left: 12rem;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line-1 {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-line-2 {
    display: block;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: var(--shadow-neon);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 350px;
    height: 700px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0a0a0f 100%);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(0, 255, 204, 0.3);
}

.mockup-image {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
}

.floating-posts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
}

.future-post {
    position: absolute;
    background: rgba(20, 20, 32, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.future-post.post-1 {
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.future-post.post-2 {
    top: 150px;
    right: -120px;
    animation-delay: 2s;
}

.future-post.post-3 {
    bottom: 100px;
    left: -80px;
    animation-delay: 4s;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.post-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ai-score {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   機能セクション
======================================== */
.features {
    padding: 100px 0;
    background: var(--dark-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.title-ja {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.title-en {
    display: block;
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
}

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

.feature-card {
    background: rgba(20, 20, 32, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 255, 204, 0.3);
}

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

.feature-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   使い方セクション
======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--dark-bg);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 255, 204, 0.2);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.step-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.step-visual {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.step-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.step-card:hover .step-visual img {
    transform: scale(1.1);
}

.step-arrow {
    flex: 0 0 auto;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    position: relative;
}

.step-arrow::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid var(--primary-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* ========================================
   成功事例セクション
======================================== */
.success-stories {
    padding: 100px 0;
    background: var(--dark-secondary);
}

.stories-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-card {
    display: none;
    background: rgba(20, 20, 32, 0.8);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.story-card.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.story-image {
    flex: 0 0 300px;
    height: 400px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.story-quote {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.story-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.story-author {
    margin-bottom: 1.5rem;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.author-achievement {
    color: var(--text-gray);
}

.achievement-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
}

.achievement-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.5));
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.slider-prev,
.slider-next {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: var(--shadow-neon);
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

/* ========================================
   デモセクション
======================================== */
.demo-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.dream-textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(20, 20, 32, 0.8);
    border: 2px solid rgba(0, 255, 204, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dream-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.demo-input-area {
    text-align: center;
}

#analyze-button {
    margin-top: 2rem;
}

.demo-result {
    margin-top: 3rem;
    transition: all 0.5s ease;
}

.demo-result.hidden {
    display: none;
}

.result-card {
    background: rgba(20, 20, 32, 0.8);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.result-header h4 {
    font-size: 1.5rem;
    color: var(--text-light);
}

.result-score {
    text-align: right;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.score-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: var(--shadow-neon);
}

.analysis-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analysis-icon {
    font-size: 2rem;
    flex: 0 0 auto;
}

.analysis-text h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.analysis-text p,
.analysis-text ul {
    color: var(--text-gray);
}

.analysis-text ul {
    list-style: none;
    padding-left: 0;
}

.analysis-text li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.analysis-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.result-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 204, 0.2);
}

.result-cta p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* ========================================
   料金プランセクション
======================================== */
.pricing {
    padding: 100px 0;
    background: var(--dark-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: rgba(20, 20, 32, 0.8);
    border: 2px solid rgba(0, 255, 204, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 255, 204, 0.3);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--dark-bg);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-type {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-price {
    margin-bottom: 2rem;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-gray);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 2rem;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   CTAセクション
======================================== */
.final-cta {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.final-cta .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.cta-visual {
    flex: 1;
}

.cta-visual img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ========================================
   フッター
======================================== */
.footer {
    background: var(--dark-bg);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        transform: scale(0.8);
    }
    
    .nav-menu {
        display: none;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 2rem 0;
    }
    
    .story-card {
        flex-direction: column;
    }
    
    .story-image {
        flex: none;
        height: 250px;
    }
    
    .final-cta .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
