/* styles.css */

/* グローバルスタイル */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f4f7f6;
    --text-color: #333;
    --white-color: #fff;
    --light-gray-color: #ecf0f1;
    --gray-color: #7f8c8d;
    --shadow-color: rgba(0,0,0,0.1);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヘッダー */
header {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 700;
}

header p {
    margin: 0.5rem 0 2rem;
    font-size: 1.3rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
}

/* セクション共通 */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

/* Aboutセクション */
#about p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.app-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.app-showcase img {
    width: 250px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: transform 0.3s ease;
}

.app-showcase img:hover {
    transform: translateY(-10px);
}

.app-showcase .showcase-middle {
    transform: scale(1.1);
}

/* Featuresセクション */
#features {
    background: var(--light-gray-color);
}

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

.feature-item {
    background: var(--white-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Theatersセクション */
#theaters {
    background: var(--white-color);
}

.theaters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.theater-item {
    background: var(--light-gray-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.theater-item:hover {
    transform: translateY(-5px);
}

.theater-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.theater-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* フッター */
footer {
    background: var(--secondary-color);
    color: var(--light-gray-color);
    text-align: center;
    padding: 2rem 0;
}

.social-links a {
    color: var(--light-gray-color);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    section h2 { font-size: 2rem; }

    .app-showcase {
        flex-direction: column;
    }

    .app-showcase .showcase-middle {
        transform: scale(1);
    }

    #search-container {
        flex-direction: column;
    }

    #movie-search {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 1rem;
        border-right: 2px solid #ddd;
    }

    #search-button {
        width: 100%;
        border-radius: 5px;
    }
}
