/* ベースのスタイル設定 */
:root {
    --primary-color: #26C6DA;
    --primary-light: #B2EBF2;
    --primary-dark: #0097A7;
    --secondary-color: #FF7043;
    --text-color: #333333;
    --light-text: #666666;
    --background: #F5F5F5;
    --white: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

/* ヘッダー */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    max-width: 250px; /* 最大幅を制限 */
}

/* app-previewの画像が粗くならないよう調整 */
.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    image-rendering: -webkit-optimize-contrast; /* Webkit向け画像品質改善 */
    image-rendering: crisp-edges; /* 標準APIでの画像品質改善 */
}

.hero h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.buttons {
    display: flex;
    gap: 1rem;
}

/* 機能セクション */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* スクリーンショットセクション */
.screenshots {
    padding: 5rem 0;
    background-color: var(--background);
}

.screenshot-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.screenshot {
    flex: 0 1 300px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.screenshot img {
    width: 100%;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.screenshot p {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* 使い方セクション */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--white);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* ダウンロードセクション */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
}

.download .section-title {
    color: var(--white);
}

.download-text {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.app-stores {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.app-store-badge img, .play-store-badge img {
    height: 50px;
    transition: var(--transition);
}

.app-store-badge:hover img, .play-store-badge:hover img {
    transform: scale(1.05);
}

/* フッター */
footer {
    background-color: #333;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--white);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact a {
    color: var(--primary-light);
    display: inline-block;
    margin-top: 1rem;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}
