/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --background: #ffffff;
    --background-alt: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

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

/* ナビゲーションバー */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.navbar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.navbar-notice {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.navbar-download {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-download:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ヘッダー */
.header {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header .container {
    position: relative;
    z-index: 1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.app-icon {
    width: 80px;
    height: 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.header-text {
    text-align: left;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* メインコンテンツ */
.main {
    padding: 80px 0;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 60px 0;
    background: var(--background-alt);
    margin-bottom: 80px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* セクションタイトル */
.section-title {
    font-size: 2.2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

/* ギャラリー */
.gallery {
    padding: 80px 0;
    background: var(--background);
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    border-right: 1px solid var(--border-color);
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

.gallery-item[data-image="1"],
.gallery-item[data-image="2"] {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

.gallery-item[data-image="4"] {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.gallery-item:last-child {
    border-right: none;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}


.gallery-item[data-image="4"] img {
    height: 600px;
    object-position: center;
    display: block;
    margin: 0 auto;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-weight: 500;
    font-size: 1.1rem;
}

/* 機能セクション */
.features {
    padding: 80px 0;
    background: var(--background-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTAセクション */
.cta {
    padding: 40px 0;
    background: var(--background);
    color: var(--text-primary);
    text-align: center;
}

.cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.cta-notice {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: inline-block;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.app-store-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* フッター */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    opacity: 0.8;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.twitter-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: 10% auto;
    max-width: 70%;
    max-height: 80%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal-info {
    padding: 30px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .navbar-content {
        padding: 0 15px;
    }
    
    .navbar-title {
        font-size: 1rem;
    }
    
    .navbar-download-container {
        gap: 2px;
    }
    
    .navbar-notice {
        font-size: 0.6rem;
        padding: 1px 6px;
    }
    
    .navbar-download {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .gallery-row {
        flex-direction: column;
        width: 100%;
    }
    
    .gallery-item {
        max-width: 100%;
        width: 100%;
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .gallery-item[data-image="4"] {
        flex: 1;
        max-width: 100%;
    }
    
    .gallery-item[data-image="4"] img {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        margin: 10% auto;
        max-width: 95%;
    }
    
    .modal-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 40px 0;
    }
    
    .main {
        padding: 60px 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .gallery, .features {
        padding: 60px 0;
    }
    
    .cta {
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .gallery-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .gallery-row {
        flex-direction: column;
        width: 100%;
    }
    
    .gallery-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    
    .gallery-item:last-child {
        border-bottom: none;
    }
    
    .gallery-item[data-image="4"] {
        flex: 1;
        max-width: 100%;
    }
    
    .gallery-item[data-image="4"] img {
        height: 300px;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item,
.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
