/* ====================
   CSS Reset & Base Styles
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ====================
   Color Variables
   ==================== */
:root {
    --primary-color: #6366f1;
    --primary-light: #8b5cf6;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #f97316 100%);
}

/* ====================
   Utility Classes
   ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================
   Buttons
   ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--background-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-download {
    background: var(--gradient-secondary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.25rem;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ====================
   Header & Navigation
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.version {
    font-size: 0.8rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.nav-menu .cta-button {
    color: white !important;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* ====================
   Hero Section
   ==================== */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    background: var(--background-white);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    background: var(--background-white);
    padding: 1rem;
}

/* ====================
   Hero Section with Background Image
   ==================== */
.hero-with-bg {
    background: url('../images/BG_img.jpg') center center / cover no-repeat !important;
    min-height: 600px;
}

.hero-with-bg::before {
    display: none !important;
}

.hero-with-bg .hero-description {
    color: white !important;
}

.hero-with-bg .cta-button {
    color: white !important;
}

/* ====================
   Features Section
   ==================== */
.features {
    padding: 5rem 0;
    background: var(--background-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {

    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ====================
   Highlights Section
   ==================== */
.highlights {
    padding: 5rem 0;
    background: var(--background-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.highlight-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.highlight-item p {
    color: var(--text-light);
}

/* ====================
   Usage Section
   ==================== */
.usage {
    padding: 5rem 0;
    background: var(--background-white);
}

.usage-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-image {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    background: var(--background-light);
    padding: 1rem;
}

/* ====================
   Installation Section
   ==================== */
.installation {
    padding: 5rem 0;
    background: var(--background-light);
}

.installation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.install-step {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.install-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.install-step p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.code-block {
    background: var(--text-dark);
    color: #f1f5f9;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.requirements {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.requirements h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.requirements ul {
    list-style: disc;
    list-style-position: inside;
    color: var(--text-light);
    line-height: 1.8;
}

/* ====================
   Warnings Section
   ==================== */
.warnings {
    padding: 5rem 0;
    background: var(--background-white);
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.warning-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent-color);
}

.warning-card.important {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.warning-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.warning-card ul {
    list-style: disc;
    list-style-position: inside;
    color: var(--text-light);
    line-height: 1.8;
}

.warning-card li {
    margin-bottom: 0.5rem;
}

/* ====================
   Download Section
   ==================== */
.download {
    padding: 5rem 0;
    background: var(--background-light);
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.download-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 2rem;
}

.download-icon {
    font-size: 1.5rem;
}

.file-info {
    font-size: 0.9rem;
    opacity: 1;
}

.version-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ====================
   Examples Section (Video Only)
   ==================== */
.examples {
    padding: 5rem 0;
    background: var(--background-white);
}

.video-container {
    max-width: 800px;
    margin: 3rem auto 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        margin: 2rem auto 0;
        border-radius: 0.5rem;
    }
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .installation-content {
        grid-template-columns: 1fr;
    }
    
    .warning-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-meta {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features,
    .highlights,
    .usage,
    .installation,
    .warnings,
    .download {
        padding: 3rem 0;
    }
    
    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ====================
   Animation & Interactions
   ==================== */
@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.highlight-item,
.step,
.warning-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ====================
   Hero Title Responsive Typography
   ==================== */
.mobile-break {
    display: none;
}

@media (max-width: 767px) {
    .mobile-break {
        display: inline;
    }
}

@media (min-width: 1920px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
        max-width: 800px;
    }
    
    .hero-container {
        max-width: 1400px;
        gap: 5rem;
    }
}

@media (min-width: 1200px) and (max-width: 1919px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
        max-width: 700px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
        max-width: 600px;
    }
    
    .hero-container {
        gap: 3rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        max-width: 500px;
    }
    
    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title .mobile-break {
        display: inline;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
}

.hero-video {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    background: var(--background-white);
    border: 3px solid var(--primary-color);
}

/* 動画が読み込まれない場合のフォールバック */
.hero-video img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    background: var(--background-white);
    padding: 1rem;
}

/* ====================
   Platform-specific installation instructions
   ==================== */
.platform-instructions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.platform-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.platform-section:hover {
    border-color: rgba(138, 43, 226, 0.5);
}

.platform-section h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mac-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mac-note strong {
    color: #ffc107;
    display: block;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .platform-instructions {
        flex-direction: row;
    }
    
    .platform-section {
        flex: 1;
    }
}
