
main {
    margin-bottom: 0; /* ← フッターの下に余白を作らない */
}

footer {
    background-color: #0288d1;
    color: white;
    margin: 0; /* ← これが重要！ */
   
}

        body {
            font-family: "Arial", sans-serif;
            background-color: #b3e5fc;
            text-align: center;
            color: #0277bd;
            margin: 0;
            overflow-y: auto;
        }
        /* ヘッダーのスタイル */
        header {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 10;
        }

        #nav-menu {
            display: flex;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 10px 0;
        }

        .nav-item {
            margin: 0 20px;
            color: white;
            text-decoration: none;
            font-size: 18px;
        }

        .nav-item:hover {
            color: #00bcd4;
            border-bottom: 2px solid #00bcd4;
        }

        .hero {
            position: relative;
            width: 100%;
            height: 80vh;
            background: url('images/top.jpg') no-repeat center center/cover;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
            font-size: 36px;
            font-weight: bold;
        }

        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
        }

        .hero-text {
            position: relative;
            z-index: 1;
        }

        .container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 10;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #29b6f6;
            color: white;
            text-decoration: none;
            border-radius: 10px;
            font-size: 18px;
        }

        .btn:hover {
            background-color: #0288d1;
        }

        .main {
            position: relative;
            width: 100%;
            height: 80vh; /* 80%の高さ */
            background: url('images/top.jpg') no-repeat center center/cover;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
            font-size: 36px;
            font-weight: bold;
            overflow: hidden; /* シャボン玉がhero外に出ないように */
        }
        
        .bubble {
            position: absolute;
            background: rgba(255, 255, 255, 0.5); /* 半透明の白 */
            border-radius: 50%;
            opacity: 0.7;
            animation: floatUp 10s infinite linear;
            pointer-events: none; /* シャボン玉が他の要素と干渉しないように */
        }
        
        @keyframes floatUp {
            from {
                transform: translateY(100vh);
                opacity: 0.5;
            }
            to {
                transform: translateY(-10vh);
                opacity: 0;
            }
        }
        

        .content {
            height: 100vh;
            padding: 50px;
            background: #e1f5fe;
        }

        footer {
            background-color: #0288d1; /* フッターの色を変更 */
            color: white;
            padding: 10px;
            position: relative;
            width: 100%;
            text-align: center;
        }




/* 丸い図形を配置するコンテナ */
.circle-container {
    display: flex; /* 横並びにする */
    justify-content: center; /* 中央揃え */
    gap: 20px; /* 図形間の間隔 */
    margin-top: 50px;
}

/* 丸い図形の共通スタイル */
.circle {
    width: 150px; /* 幅 */
    height: 150px; /* 高さ */
    border-radius: 50%; /* 丸にする */
    display: flex; /* 中のテキストを中央に配置するためにflexboxを使用 */
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
    color: white; /* テキストの色 */
    font-size: 18px; /* フォントサイズ */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 影をつけて浮き上がった感じに */
}

/* 各丸の色を指定 */
.red {
    background-color: #f44336; /* 赤 */
}

.green {
    background-color: #4caf50; /* 緑 */
}

.blue {
    background-color: #2196f3; /* 青 */
}

/* 丸の中のテキスト */
.circle p {
    margin: 0;
    padding: 0;
}

/* 詳細ボタン3 */
.detail-button3 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #56f133, #5fcff7);
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

  /* トップに戻るボタン */
  html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fbfbfb;
    border: solid 2px #2546ef;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
    .pagetop:hover, .pagetop:hover .pagetop__arrow {
        border-color: #3293e7;
    }
}
@media (max-width: 768px) {
    .pagetop {
        height: 40px;
        width: 40px;
        position: fixed;
        right: 10px;
        bottom: 10px;
        background: #354d65;
        border: solid 2px #000;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
    }
    
    .pagetop__arrow {
        height: 10px;
        width: 10px;
        border-top: 3px solid #000;
        border-right: 3px solid #000;
        transform: translateY(20%) rotate(-45deg);
    }
}



/* 基本のスタイル（PC向け） */
body {
    font-family: "Arial", sans-serif;
    background-color: #b3e5fc;
    text-align: center;
    color: #0277bd;
    margin: 0;
    overflow-y: auto;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* ナビゲーション */
#nav-menu {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.nav-item {
    margin: 0 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-item:hover {
    color: #00bcd4;
    border-bottom: 2px solid #00bcd4;
}

/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    background: url('images/top.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-size: 36px;
    font-weight: bold;
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 20px;
    font-size: 28px;
}

/* 丸いアイコン */
.circle-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 各丸の色 */
.red { background-color: #f44336; }
.green { background-color: #4caf50; }
.blue { background-color: #2196f3; }

/* スマホ対応（画面幅 768px 以下） */
@media (max-width: 768px) {
    /* ナビゲーションメニューのフォントサイズを調整 */
    
    .nav-item {
        display: block;
        margin: 10px 0;
        font-size: 16px;
    }

    /* ヒーローセクションのフォントサイズ調整 */
    .hero {
        height: 60vh;
        font-size: 24px;
    }

    .hero-text {
        font-size: 20px;
        padding: 10px;
    }

    /* 丸いアイコンを縦並びに */
    .circle-container {
        flex-direction: column;
        align-items: center;
    }

    .circle {
        width: 120px;
        height: 120px;
        font-size: 16px;
    }

    /* コンテンツの余白調整 */
    .content-block {
        padding: 10px;
    }
  
}


a {
    text-decoration: none;
}

html, body {
    overflow-x: hidden; /* 横方向の余白を消す */
}

@media (max-width: 600px) {
  #header .nav-item {
    font-size: 12px;          /* 文字サイズを小さく */
    letter-spacing: 0.01em;   /* 文字間を少し開ける */
    padding: 0px 10px;        /* 左右に余白を作る */
    display: inline-block;    /* マージンが効きやすくする */
  }

  #header .nav-menu {
    text-align: center;       /* メニュー全体を中央揃え */
  }
}