@charset "utf-8";


        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            height: 400vh;
            /* スクロールできるようにページを長くする */
            background-size: cover;
            background-position: center center;
            /* 画像を中央に配置 */
            background-attachment: fixed;
            /* 背景を固定 */
            transition: background 0.5s ease-in-out;
            background-image: url(img/0.jpg);
        }

        .content {
            padding: 50px;
            color: white;
            font-size: 1.5em;
        }

        h1 {
            margin-bottom: 30px;
        }

        /* 各セクションのスタイル */
        .section {
            padding: 100px;
            text-align: left;
            background-color: rgba(0, 0, 0, 0.8);
        }

        #section1 {
            background-color: rgba(150, 50, 50, 0.8);
            /* 赤 */
        }

        #section2 {
            background-color: rgba(50, 150, 50, 0.8);
            /* 緑 */
        }

        #section3 {
            background-color: rgba(50, 50, 150, 0.8);
            /* 青 */
        }

        .link1{
            margin: 0 auto;
            padding: 10px;
            text-align: center;
            background-color: rgba(150, 150, 150, 0.5);
            font-weight: bold;
        }

        .footer {

            padding-top: 120px;
        }



        /* GPT用 */
        .gpt1 {
            font-size: 32px;
            color: blue;
        }


        .gpt {
            font-family: Arial, sans-serif;
            padding: 20px;
            margin-left: 100px;
        }

        #response {
            margin-top: 20px;
            padding: 10px;
            border: 1px solid #ddd;
            background-color: #f9f9f9;
            max-width: 600px;
        }

        input,
        button {
            padding: 10px;
            margin: 5px 0;
        }



        /* 横幅が広いモニター用のメディアクエリ */

        @media screen and (min-width: 2000px) {
            body {
                height: 300vh;

            }

            /* コンテンツのフォントサイズを大きく */
            .content {
                font-size: 1.8em;
            }

        }


        /* スマホ表示用のメディアクエリ */
        @media screen and (max-width: 768px) {
            body {
                height: 600vh;
                /* スマホ用にスクロール範囲を広げる */
            }

            /* コンテンツのフォントサイズを小さく */
            .content {
                font-size: 1.2em;
            }

            .section {
                padding: 50px;
                /* スマホではセクション間のスペースを減らす */
            }

            .gpt {
                margin-left: 30px;
            }

        }

        @media screen and (max-width: 512px) {
            body {
                height: 500vh;
                /* スマホ用にスクロール範囲を広げる */
            }

            /* コンテンツのフォントサイズを小さく */
            .content {
                font-size: 1em;
            }

            .section {
                padding: 20px;
                /* スマホではセクション間のスペースを減らす */
            }

            .gpt {
                margin-left: 20px;
            }

        }

