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

:root {
    --primary-green: #00a86b;
    --primary-red: #dc143c;
    --accent-gold: #ffd700;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* ナビゲーション */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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


/* ヒーローセクション */
.hero {
    margin-top: 70px;
    min-height: 90vh;
    background: linear-gradient(135deg, #00a86b 0%, #00c851 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-gold);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    border: 2px solid var(--text-light);
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-green);
}

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

/* Carousel Container */
.app-screenshots {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Screenshot Items */
.screenshot-item {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.screenshot-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-green);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background: var(--accent-gold);
    border-color: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Auto-play animation */
@keyframes carousel-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 15px 40px rgba(0, 168, 107, 0.3); }
}

.app-screenshots.auto-play {
    animation: carousel-glow 4s ease-in-out infinite;
}

/* コース概要セクション */
.course-overview {
    padding: 100px 20px;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 900;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

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

.course-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.practice-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.practical-badge {
    background: #fce4ec;
    color: #c2185b;
}

.course-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.course-card p {
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.8;
}

.course-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* アプリ詳細セクション */
.apps-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

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

.app-showcase {
    background: white;
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.app-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-green), var(--primary-red));
}

.app-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.app-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), #00c851);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 168, 107, 0.3);
}

.app-title-group {
    flex: 1;
}

.app-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.app-category {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 10px;
}

.app-status-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-released {
    background: #d4edda;
    color: #155724;
}

.status-development {
    background: #fff3cd;
    color: #856404;
}

.app-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.app-info {
    flex: 1;
}

.app-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.8;
}

.app-highlights {
    display: grid;
    gap: 20px;
}

.highlight {
    display: flex;
    gap: 15px;
    align-items: start;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.highlight-content p {
    color: #6c757d;
    font-size: 0.95rem;
}

.app-visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 500px;
}

.app-screenshot {
    width: 250px;
    height: 450px;
    object-fit: contain;
}

.app-screenshot.landscape {
    width: 400px;
    height: auto;
    max-height: 300px;
}

.coming-soon-placeholder {
    width: 250px;
    height: 450px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.placeholder-text {
    font-size: 1.5rem;
    color: #6c757d;
    font-weight: bold;
}

.app-download {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.store-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.store-badge img {
    height: 60px;
    width: auto;
}

.download-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--text-dark);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-btn.playstore {
    background: #00a86b;
}

.coming-soon-btn {
    background: #6c757d;
    cursor: not-allowed;
}

/* CTA セクション */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff1744 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="20" width="20" height="30" fill="rgba(255,255,255,0.05)" transform="rotate(45 30 35)"/><rect x="60" y="40" width="20" height="30" fill="rgba(255,255,255,0.05)" transform="rotate(-30 70 55)"/></svg>') repeat;
    background-size: 100px 100px;
    animation: float-bg 30s linear infinite;
}

@keyframes float-bg {
    from { transform: translate(0, 0); }
    to { transform: translate(-100px, -100px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* フッター */
footer {
    padding: 60px 20px 30px;
    background: var(--bg-dark);
    color: var(--text-light);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-gold);
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* レスポンシブ対応 */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }


    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-screenshots {
        max-width: 600px;
        border-radius: 15px;
    }
    
    .screenshot-item {
        min-height: 350px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .app-row {
        grid-template-columns: 1fr;
    }

    .app-visual-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .app-screenshots {
        max-width: 400px;
        border-radius: 10px;
    }
    
    .screenshot-item {
        min-height: 300px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .app-showcase {
        padding: 30px;
    }

    .app-header {
        flex-direction: column;
        text-align: center;
    }

    .app-visual-container {
        padding: 20px;
        min-height: 300px;
    }
    
    .app-screenshot {
        width: 180px;
        height: 320px;
    }
    
    .app-screenshot.landscape {
        width: 300px;
        height: auto;
        max-height: 200px;
    }
    
    .coming-soon-placeholder {
        width: 180px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

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

    .course-card {
        padding: 30px 20px;
    }

    .app-screenshots {
        max-width: 320px;
    }
    
    .screenshot-item {
        min-height: 250px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}