/* 基本的なリセットや共通スタイル */
body {
    font-family: sans-serif; /* フォント指定 */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* 全体の背景色 */
}

.container {
    max-width: 960px; /* コンテンツの最大幅 */
    margin: 0 auto; /* 中央揃え */
    padding: 0 20px; /* 左右に余白 */
}

.section {
    padding: 60px 0; /* セクションの上下に余白 */
    text-align: center; /* セクション内の要素を中央揃え */
}

h1, h2, h3 {
    color: #2a7a9a; /* 見出しの色 */
    margin-bottom: 20px;
}

h2 {
    font-size: 2em; /* セクションタイトルの大きさ */
    margin-bottom: 40px;
}

img {
    max-width: 100%; /* 画像が親要素からはみ出さないように */
    height: auto;
}

/* ヘッダー / メインビジュアル (Hero Section) */
.hero {
    background-color: #e0f2f7; /* 背景色 */
    color: #111; /* 文字色 */
    padding: 80px 0;
    text-align: center;
}

.hero .app-icon {
    width: 320px; /* アプリのアイコンサイズ */
    height: 320px;
    margin-bottom: 20px;
    border-radius: 15px; /* 角を丸く */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #222;
}

.hero .tagline {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

.download-button {
    display: inline-block; /* ボタンとして表示 */
    background-color: #4CAF50; /* ボタンの色 */
    color: white;
    padding: 15px 30px;
    text-decoration: none; /* 下線なし */
    border-radius: 5px; /* 角を丸く */
    font-size: 1.2em;
    margin-top: 20px;
    transition: background-color 0.3s ease; /* ホバー時のアニメーション */
}

.download-button:hover {
    background-color: #45a049;
}

.download-button.large img {
    height: 50px; /* Google Playバッジの高さ */
    width: auto;
    vertical-align: middle;
}

.hero .main-screenshot {
    margin-top: 40px;
    /* 元の margin-top は維持しつつ、左右を auto にして中央寄せ */
    margin-left: auto;
    margin-right: auto;

    max-width: 80%; /* 画像の最大幅を親要素の80%に制限 */
    height: auto; /* 縦横比を維持 */

    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

    display: block; /* 中央寄せのためにブロック要素にする */
}

/* 画面幅が狭い場合は、max-width: 100% に戻すなど調整すると良い */
@media (max-width: 768px) {
    .hero .main-screenshot {
        max-width: 100%; /* スマホなど狭い画面では画面幅いっぱいに */
        margin-left: auto; /* 中央寄せは維持 */
        margin-right: auto;
    }
}


/* アプリの紹介 / 特徴セクション */
#features {
    background-color: #fff;
}

.features-grid {
    display: grid; /* グリッドレイアウト */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 画面幅に応じて列数を自動調整 */
    gap: 30px; /* アイテム間の隙間 */
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #e0f7fa; /* アイテムの背景色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-item img {
    width: 100px; /* アイコンのサイズ */
    height: auto;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #00796b; /* アイテム見出しの色 */
}

.feature-item p {
    font-size: 1em;
    color: #555;
}


/* スクリーンショットセクション */
#screenshots .screenshot-gallery {
    display: flex; /* フレックスボックスで横並びに */
    overflow-x: auto; /* 横スクロールを可能に */
    gap: 15px; /* 画像間の隙間 */
    padding-bottom: 20px; /* スクロールバーのための余白 */
    -webkit-overflow-scrolling: touch; /* スマホでのスクロールをスムーズに */
    justify-content: center; /* 中央寄せ（画像が少ない場合） */
}

#screenshots .screenshot-gallery img {
    width: auto; /* 幅は画像に合わせる */
    height: 400px; /* 高さを固定（必要に応じて調整） */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* 画像が縮小されないように */
}

/* ダウンロードセクション */
#download {
    background-color: #fff;
}

#download .qr-code {
    width: 150px; /* QRコードのサイズ */
    height: 150px;
    margin-top: 20px;
}


/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

footer a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-top: 10px;
}

/* レスポンシブ対応の調整（必要に応じて追加・修正） */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1em;
    }

    .download-button {
        padding: 10px 20px;
        font-size: 1em;
    }

     .download-button.large img {
        height: 40px; /* 小さい画面でのGoogle Playバッジの高さ */
    }

    #screenshots .screenshot-gallery img {
        height: 300px; /* 小さい画面での画像の高さ */
    }

    .section {
        padding: 40px 0;
    }

    h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

     .features-grid {
        grid-template-columns: 1fr; /* 小さい画面では1列表示 */
     }

    .feature-item {
        padding: 15px;
    }
}

/* === 以下、言語リストの横並び用に追加するスタイル === */
/* セクションを囲むコンテナ */
.list-container {
    display: flex; /* 子要素（section）を横に並べる */
    gap: 20px; /* セクション間に隙間を作る */
    flex-wrap: wrap; /* 画面幅が狭くなった場合に折り返す */
}

/* 各セクションのスタイル */
.list-container section {
    flex: 1; /* 利用可能なスペースを均等に分配する */
    min-width: 300px; /* 最小幅を設定して、狭い画面での表示崩れを防ぐ */
    border: 1px solid #ccc; /* 見やすくするために枠線を追加 */
    padding: 15px; /* 内側の余白 */
    box-sizing: border-box; /* paddingとborderを要素の幅に含める */
}

.list-container h2 {
    margin-top: 0; /* セクション内のh2の上部のマージンを調整（任意） */
}
/* === 追加スタイルここまで === */