/* ページ全体 */
body {
    margin: 0;
    font-family: "Meiryo UI", sans-serif;
    text-align: center; /* タイトルも中央寄せ */
}

/* ヘッダー・フッター */
.rectangle {
    width: 100%;
    height: 80px;
    background-image: linear-gradient(90deg, #E3F6FD 0%, #7ED4F6 50%, #0F9ED5 100%);
}

.top {
    position: static;
}

.bottom {
    position: static;
    bottom: 0;
    width: 100%;
    height: 80px;
}

/* タイトル */
.title {
    font-size: 50px;
    text-align: center;
    background: linear-gradient(90deg, #9DD6EF 0%, #17A1D6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 50px;
    animation: slideIn 0.8s ease-out;
}

/* 画像を中央に横並び配置 */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-out;
}

/* 画像の個別アニメーション */
.image-container img {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 1s ease-out forwards;
}

/* 見出しスライドインのアニメーション */
@keyframes slideIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 画像フェードイン＋少し浮かせるアニメーション */
@keyframes fadeInMove {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フェードインアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* テキスト */
.text {
    padding: 0.5em 1em;
    margin: 2em auto;
    color: #474747;
    background: #e8f4fb;
    border-left: double 7px #17A1D6FF;
    border-right: double 7px #17A1D6FF;
    max-width: 1000px;
    text-align: center;
}
.text p {
    font-family: "Meiryo UI", sans-serif;
    margin: 10;
    padding: 0;
}

/* 丸いボタン */
.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 57px;
  border-radius: 40px;
  text-decoration: none;
  color: #FFF;
  background-image: linear-gradient(90deg, #A2D8FFFF 0%, #36A1F9FF 28%, #36A1F9FF 67%, #1994F6FF 100%);
  transition: .4s;
  margin-top: 100px;
  margin-bottom: 50px;
}

.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;
}

#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;
}

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 !important;
        margin-bottom: 30px;
    }



    .text {
        width: 90%;
        padding: 2em 1em;
        margin: 5em auto 10em;
        background: #e8f4fb;
        border-left: double 7px #17A1D6FF;
        border-right: double 7px #17A1D6FF;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .btn-circle-fishy {
        display: none;
    }



    #overlay-button {
        position: fixed;
        right: 0.5em;
        top: 0.5em; /* ハンバーガーメニューを上に配置する */
        cursor: pointer;
        user-select: none;
        z-index: 15;
    }

}

/* タブレット対応 */
@media (max-width: 850px) {
    .title {
        font-size: 45px;
        margin-bottom: 30px;
    }

    .image-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .image-container img {
        width: 90%;
        height: auto;
        max-width: 320px;
    }

    .text {
        width: 90%;
        padding: 2em 1em;
        margin: 5em auto 10em;
        background: #e8f4fb;
        border-left: double 7px #17A1D6FF;
        border-right: double 7px #17A1D6FF;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .btn-circle-fishy {
        display: none;
    }
    #overlay-button {
        position: fixed; /* 固定位置 */
        right: 0.5em;
        top: 0.5em; /* ハンバーガーメニューを上に配置する */
        cursor: pointer;
        user-select: none;
        z-index: 15;
    }
}



/* PCサイズ以上でハンバーガーメニューを非表示 */
@media (min-width: 851px) {
    .hamburger-menu {
        display: none; /* PCサイズ以上では非表示 */
    }
    #overlay-button{
        display: none; /* PCサイズ以上では非表示 */
    }
}

