/* ページ全体 */
body {
    margin: 0;
 	display:flex;
  	flex-direction:column;
 	min-height: 100vh;
    font-family: "Meiryo UI", sans-serif;
}

main{
    flex: 1;
}  

/* ヘッダー・フッター */
.rectangle {
    width: 100%;
    height: 80px;
    background-image: linear-gradient(90deg, #E3F6FD 0%, #7ED4F6 50%, #0F9ED5 100%);
}

/* 上部の長方形 */
.top {
    position: static;
    top: 0;
    left: 0;
}

/* 下部の長方形 */

.bottom,
.push {
  height: 80px;
}

.bottom {
    position: static;
    bottom: 0;
    left: 0;
}
/* タイトル */
.title {
    font-size: 50px;
    text-align: center;
    background: linear-gradient(90deg, #9DD6EF 0%, #17A1D6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Meiryo UI", sans-serif;
    margin-bottom: 50px;
}

/* ボタンコンテナ */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    text-align: center;
}

/* ボタン */
.btn-gradient {
    display: inline-block;
    width: 200px;
    padding: 20px 0;
    border-radius: 50px;
    text-decoration: none;
    color: #FFF;
    background-image: linear-gradient(90deg, #A2D8FFFF 0%, #36A1F9FF 100%);
    text-align: center;
    transition: .4s;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.1); /* 影を追加 */
    margin-bottom: 20px;
}

.btn-gradient:hover {
    background-image: linear-gradient(90deg, #90F59AFF 0%, #04CAFFFF 100%);
    transform: scale(1.1); /* ホバー時に拡大 */
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.2); /* 強調された影 */
}

/* 各セクションの基本スタイル */
/* セクションの中央配置 */
.content-section {
    display: none; /* 初期非表示 */
    max-width: 1200px; /* 最大幅を設定（中央配置のため） */
    width: 90%; /* 画面幅の90%に設定（スマホ対応） */
    margin: 0 auto; /* 中央配置 */
    padding: 50px 20px;
    text-align: center;
    height: auto; /* 高さを可変に */
  margin-top: 80px;
  margin-bottom: 100px;
    transition: 0.5s;

}


/* ボタンを押したときに該当のセクションだけ表示 */
.content-section:target {
    display: block;
    transform: scale(1.05); /* 表示されたセクションに少し拡大アニメーション */
    animation: fadeIn 1s ease-out; /* アニメーション追加 */
    border-bottom: none; /* ボタン押された時にもボーダーを消す */

}

/* 見出しにアニメーション追加 */
h1, h2 {
    font-family: "Meiryo UI", sans-serif;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    animation: slideIn 0.7s forwards; /* スライドインアニメーション */
}

h1 {
    font-size: 28px;
    font-weight: bold;
    color: #0F9ED5;
    border-bottom: 3px solid #0F9ED5;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* 背景色を各セクションに追加 */
#section1 {
    background-color: #e8f4fb;
}

#section2 {
    background-color: #e8f4fb;
}

#section3 {
    background-color: #e8f4fb;
}

#section4 {
    background-color: #e8f4fb;
}

/* 見出しスライドインのアニメーション */
@keyframes slideIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* フェードインアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 段落 */
p {
    font-family: "Meiryo UI", sans-serif;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    line-height: 1.8;
}

/* 段落アニメーション */
p {
    opacity: 0;
    animation: fadeIn 1s forwards;
}


/* 丸いボタン */
.btn-circle-fishy {
  display: inline-block;
  text-decoration: none;
  color: #FFF;
  font-family: "Meiryo UI", sans-serif; /* フォントを指定 */
  width: 200px;
  height: 200px;
  line-height: 200px;
  border-radius: 50%;
  text-align: center;
  overflow: hidden;
  background-image: linear-gradient(90deg, #A2D8FFFF 0%, #36A1F9FF 28%, #36A1EA 67%, #1994F6FF 100%);
  transition: .4s;
  position: fixed;
  top: 2%;   /* 垂直中央 */
  right: 25px; /* 画面右端からの距離（適宜調整） */
  transform: translateY(-40%); /* 垂直方向で中央に調整 */
}

.btn-circle-fishy:hover {
  -webkit-transform: rotate(10deg);
  transform: rotate(10deg);
}

.btn-gradient-radius {
  display: inline-block;
  padding: 27px 40px;
  border-radius: 40px;
  text-decoration: none;
  color: #FFF;
  background-image: linear-gradient(90deg, #A2D8FFFF 0%, #36A1F9FF 28%, #36A1F9FF 67%, #1994F6FF 100%);
  transition: .4s;
    margin: 0 auto;
  margin-bottom: 50px;
  width: auto; /* これを追加 */
  max-width: 300px; /* 必要なら最大幅を設定 */
  text-align: center;
}

.btn-gradient-radius:hover {
  background-image: linear-gradient(90deg, #90F59AFF 0%,  #04CAFFFF 100%)
}



/* ハンバーガーメニューのデザイン */
.hamburger-menu {
    display: none;
    background: #87cc77;
    margin: 0;
    font-family: arial;
    width: 100vw;
    height: 100vh;
    animation: bugfix infinite 1s;
}

@keyframes bugfix {
    from {
        padding: 0;
    }
    to {
        padding: 0;
    }
}

@-webkit-keyframes bugfix {
    from {
        padding: 0;
    }
    to {
        padding: 0;
    }
}

/* オーバーレイボタン */
#overlay-button {
    position: fixed; /* 固定位置 */
    right: 1em;
    top: 0; /* ヘッダーの高さに合わせる */
    padding: 26px 11px;
    z-index: 5;
    cursor: pointer;
    user-select: none;
    background-color: #87cefa;
    transition: transform 0.2s ease;
}

#overlay-button span {
    height: 4px;
    width: 35px;
    border-radius: 2px;
    background-color: white;
    position: relative;
    display: block;
    transition: all .2s ease-in-out;
}

#overlay-button span:before {
    top: -10px;
    visibility: visible;
}

#overlay-button span:after {
    top: 10px;
}

#overlay-button span:before, #overlay-button span:after {
    height: 4px;
    width: 35px;
    border-radius: 2px;
    background-color: white;
    position: absolute;
    content: "";
    transition: all .2s ease-in-out;
}

#overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
    background: #fff;
}

input[type=checkbox] {
    display: none;
}

input[type=checkbox]:checked ~ #overlay {
    visibility: visible; 
}

input[type=checkbox]:checked ~ #overlay {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* オーバーレイのスタイル */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #87cefa;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* メニューのスタイル */
#overlay ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-left: 0;
    list-style-type: none;
}

#overlay ul li {
    padding: 1em;
}

#overlay ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
}

#overlay ul li a:hover {
    color: #2578cb!important;
}

/* ハンバーガーボタンのスタイル */
#overlay-button {
    position: fixed; /* 固定位置 */
    right: 2em;
    top: 3em;
    cursor: pointer;
    user-select: none;
    z-index: 15;
}

#overlay-button span,
#overlay-button span:before,
#overlay-button span:after {
    display: block;
    height: 4px;
    width: 35px;
    background-color: white;
    border-radius: 2px;
    transition: all .2s ease-in-out;
}

/* ハンバーガーボタンが開いたときの変形 */
input[type=checkbox]:checked ~ #overlay-button span {
    background: transparent;
    transform: translateX(0);
}

input[type=checkbox]:checked ~ #overlay-button span:before {
    transform: rotate(45deg) translate(7px, 7px);
}

input[type=checkbox]:checked ~ #overlay-button span:after {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* スマホ用 */
@media (max-width: 750px) {
    .title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 15px;
    }
    p {
        font-size: 15px;
    }
    .btn-gradient {
        width: 180px;
        padding: 15px 0;
        font-size: 14px;
    }
    .btn-circle-fishy {
        display: none;
    }


.btn-gradient-radius {
        display: none;
    }


    #overlay-button {
        position: fixed;
        right: 0.5em;
        top: 0.5em; /* ハンバーガーメニューを上に配置する */
        cursor: pointer;
        user-select: none;
        z-index: 15;
    }
    .content-section {
        padding: 10px;
    }

}


/* タブレット用 */
@media (max-width: 850px){
    .title {
        font-size: 40px;
        margin-bottom: 40px;
    }
    h1 {
        font-size: 25px;
    }
    h2 {
        font-size: 18px;
    }
    p {
        font-size: 16px;
    }
    .btn-gradient {
        width: 220px;
        padding: 18px 0;
        font-size: 16px;
    }
    .btn-circle-fishy {
        display: none;
    }
    #overlay-button {
        position: fixed;
        right: 0.5em;
        top: 0.5em; /* ハンバーガーメニューを上に配置する */
        cursor: pointer;
        user-select: none;
        z-index: 15;
    }
    .content-section {
        padding: 20px;
    }
.btn-gradient-radius {
        display: none;
    }
}

/* PC用 */
@media (min-width: 851px) {
    .hamburger-menu {
        display: none; /* PCサイズ以上では非表示 */
    }
    #overlay-button{
        display: none; /* PCサイズ以上では非表示 */
    }
}


@media (hover: hover) {
  .btn-circle-fishy:hover,{
    -webkit-transform: rotate(10deg);
    transform: rotate(10deg);
    background-image: linear-gradient(90deg, #90F59AFF 0%, #04CAFFFF 100%);
  }
}

