/* 全体のリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* パディングとボーダーを含む計算に */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%; /* 画面全体を埋める */
  width: 100%; /* 横幅も全体を埋める */
}

.background {
  width: 100%; /* 横幅100% */
  min-height: 100vh; /* 画面の高さを常に埋める */
  background-image: radial-gradient(at 50% 0%, rgba(254, 254, 254, 1), rgba(255, 255, 255, 1) 34%, rgba(23, 161, 214, 1));
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* 必要に応じて */
}
.rounded-box {
  width: 98%; /* 横幅90% */
  min-height: 100vh; /* コンテンツに応じて高さを調整 */
  background: white;
  border-radius: 250px; /* 四隅を丸くする */
  display: flex;
  flex-direction: column; /* 縦方向の配置 */
  justify-content: flex-start; /* 上寄せ */
  align-items: center; /* 水平中央寄せ */
  padding: 20px; /* 内側余白 */
}

.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);
}

.title {
  font-size: 70px;
  letter-spacing: 0.5em;
  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: 100px;
}

.custom-table {
  width: 100%; /* 表の幅 */
  margin: 0 auto;
  border-collapse: collapse;
  text-align: left;
  font-family: "Meiryo UI", sans-serif; /* フォントを指定 */
  font-size: 18px; /* 必要に応じてフォントサイズも調整 */
  margin-bottom: 100px;
}

.custom-table th, 
.custom-table td {
  padding: 30px 50px; /* セルの余白 */
  border: none; /* 枠線なし */
}

.custom-table th {
  background-color: #E7F7FD; /* ヘッダーの背景色 */
  font-weight: bold;
}

.custom-table tr:not(:last-child) td {
  border-bottom: dashed 2px #bdbdbd; /* 横線 */
}

.custom-table td p {
  margin: 0; /* デフォルトの上下余白を削除 */
  line-height: 1.5; /* 行間を調整（必要に応じて変更可能） */
}



.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-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;
    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) {
  .rounded-box {

    border-radius: 100px;
}

  .title {
    font-size: 35px; /* タイトルを少し大きく */
    margin-bottom: 40px;
  }

  .custom-table {
    width: 90%; /* テーブル幅を調整 */
    font-size: 14px; /* フォントサイズを調整 */
    margin-bottom: 50px;
  }

  .custom-table th, 
  .custom-table td {
    padding: 15px 20px; /* セル内の余白調整 */
  }

  .btn-gradient-radius {
    padding: 20px 25px; /* ボタンのサイズ調整 */
    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: 15px; /* コンテンツの余白調整 */
  }
}

/* タブレット用 */
@media (min-width: 750px) and (max-width: 1024px) {
  .title {
    font-size: 45px; /* タイトルのサイズを調整 */
    margin-bottom: 50px;
  }


.rounded-box {
  border-radius: 150px; /* 四隅を丸くする */
}

  .custom-table {
    width: 85%;
    font-size: 16px;
    margin-bottom: 70px;
  }

  .custom-table th, 
  .custom-table td {
    padding: 20px 30px;
  }

  .btn-gradient-radius {
    padding: 25px 55px;
    font-size: 18px;
  }

  .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;
  }
}

/* PC用 */
@media (min-width: 851px) {
  .hamburger-menu {
    display: none; /* PCサイズ以上では非表示 */
  }

  #overlay-button {
    display: none; /* PCサイズ以上では非表示 */
  }

  .btn-circle-fishy {
    display: inline-block;
  }
}
