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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.header-container {
    position: relative;
    text-align: center;
}

.header-image {
    width: 100%;
    height: auto;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-overlay h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.text-overlay p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 20px;
    text-align: center;
}

.pricing p, .usage p, .message p {
    font-size: 1.2rem;
}

.usage p {
    margin-bottom: 20px; /* 説明文とスクリーンショットの間にゆとりを追加 */
}

.usage font {
    display: block; /* インラインではなくブロック表示にすることで間隔を取りやすく */
    margin: 20px 0; /* 上下にゆとりを追加 */
}

.screenshots {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.screenshots img {
    width: 15%;
    border-radius: 10px;
    margin: 20px 0; /* 上下に20pxの余白を追加 */
}

.features {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.feature {
    width: 30%;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

footer p {
    font-size: 1.2rem;
}

/* スマホ対応 (画面幅768px以下) */
@media (max-width: 768px) {
    .header-image {
        object-fit: cover; /* 画像を切り取る */
       height: auto; /* 高さを画像比率に合わせる */
        max-height: 260px; /* ヘッダー画像の高さを制限 */
        width: 100%; /* 横幅は全体に合わせる */
    }
    .text-overlay {
        padding: 5px; /* テキストに内側余白を追加 */
        width: 100%; /* テキストボックスの幅を縮小 */
        max-width: 260px; /* 最大幅を設定して画像内に収める */
        box-sizing: border-box; /* 内側余白を含む幅計算 */
    }

    .text-overlay h1 {
       font-size: 1.0rem; /* 見出しのフォントサイズをさらに縮小 */
        margin-bottom: 0px; /* 見出しと説明文の間隔をさらに縮める */
    }

    .text-overlay p {
        font-size: 0.8rem; /* 説明文のフォントサイズを縮小 */
        line-height: 1.2; /* 行間を詰めて収まりをよくする */
        text-align: center; /* テキストを中央揃え */
        margin: 0; /* 余白をリセット */
    }

   .screenshots {
        display: flex;
        justify-content: flex-start; /* 横スクロールに対応 */
        overflow-x: auto; /* 横スクロールを有効にする */
        gap: 10px; /* 画像間のスペースを縮小 */
        padding-bottom: 10px; /* スクロールバーとの重なりを防止 */
    }

    .screenshots img {
        width: 45%; /* 画像幅を画面サイズに応じて統一 */
        max-width: 150px; /* 最大幅を統一 */
        flex-shrink: 0; /* 画像が縮小されないように固定 */
        border-radius: 10px;
        margin: 0; /* マージンをリセット */
    }
    .features {
        flex-direction: column; /* 横並びから縦並びに変更 */
        align-items: center;
    }

    .feature {
        width: 90%; /* 各要素の横幅を調整 */
    }

    .header-container {
        text-align: left; /* スマホでは中央揃えから変更 */
    }

    footer h2 {
        font-size: 1.5rem; /* フッターのフォントサイズを小さく */
    }

    footer p {
        font-size: 1rem;
    }

    .usage p {
        margin-bottom: 30px; /* スマホ版ではさらに間隔を広げる */
    }

    .usage font {
        margin: 25px 0; /* スマホ版で「*1」の前後のゆとりをさらに大きく */
    }
}
