@charset "UTF-8";

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
}

header {
  position: fixed;
  /* opacity: 0.97; */
  display: flex; /* Flexboxを有効にする */
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center; /* 垂直方向の中央揃え */
  width: 100%; /* ヘッダー全体の幅 */
  /* 必要に応じて高さや背景色を設定 */
  height: 75px;
  background-color: white;
  border-bottom: 7.5px solid;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  z-index: 2000;
  opacity: 0.975;
}

/* メニューのスタイル */
.menu {
  position: fixed;
  top: 0;
  right: -100%; /* 初期状態では画面の外に隠れている */
  width: 300px;
  height: 100%;
  background-color: white;
  color: black;
  transition: right 0.3s ease; /* スライドインのアニメーション */
  box-sizing: border-box;
  padding-left: 10px;
  z-index: 10;
}

/* メニューが開いているとき */
.menu.open {
  right: 0;
}

/* ボタンのスタイル */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #ba2636, #007bbb);
  margin: 5px 0;
  transition: 0.4s;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* メニューリストのスタイル */
.menu ul {
  list-style-type: none;
  padding: 0;
  margin-top: 50px;
}

.menu li {
  padding: 17.5px 25px;
  border-bottom: 4px solid;
  border-image: linear-gradient(to left, #ba2636, #007bbb) 1;
  transition: background-color 0.75s;
}

.menu li a {
  text-align: center;
  color: black;
  text-decoration: none;
  display: block;
}

/* スライドアニメーション */
.btn {
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn.slide-bg {
  position: relative;
  overflow: hidden;
  z-index: 2500;
}

.btn.slide-bg span {
  display: inline-block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ba2636, #007bbb);
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: -1;
}

.btn.slide-bg:hover a {
  color: white;
}
.btn.slide-bg:hover span {
  transform: none;
}

.wrap {
  padding-top: 75px;
}
.wrap .wrap-image {
  max-width: 100%;
  border-bottom: 5px solid #fff;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
}

.wrap h1 {
  font-size: 40px;
  margin-top: -60px;
  margin-left: 20px;
  color: white;
  text-shadow: 3px 5px 10px black;
}

.main-contents {
  height: auto;
  padding-bottom: 50px;
}

p {
  color: black;
}

h2 {
  margin: 50px auto 25px auto;
  text-align: center;
  width: 250px;
  color: black;
  border-bottom: 3px solid #fff;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
}

h2 span {
  background: linear-gradient(90deg, #ba2636, #007bbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

ruby {
  font-weight: lighter;
}

.detail {
  position: static;
  text-align: center;
  margin: 0 auto;
  z-index: -20;
}

.detail a {
  text-decoration: none;
}

/* ボタンのスタイル */
.buttonOutlineGradient {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 64px;
  padding: 2px;
  margin: 25px 0;
  font-family: sans-serif;
  font-size: 16px;
  text-align: center;
  overflow-wrap: anywhere;
  background: linear-gradient(135deg, #ba2636, #007bbb);
  border-radius: 32px; /* (buttonの高さ / 2) の値*/
}

.buttonOutlineGradient::before {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: linear-gradient(135deg, #ba2636, #007bbb);
  border-radius: 32px; /* (buttonの高さ / 2) の値 ;*/
  opacity: 0;
  filter: blur(10px);
}

.buttonOutlineGradient_item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: black;
  background-color: white;
  border-radius: 32px; /* (buttonの高さ / 2) の値 */
  z-index: 100;
}

@media (any-hover: hover) {
  .buttonOutlineGradient::before {
    transition: opacity 0.2s;
  }

  .buttonOutlineGradient:hover::before {
    opacity: 1;
  }
}

.block {
  opacity: 0; /* 最初は非表示にしておく */
  transition: all 0.5s; /* 動きを滑らかに */
}
/* フェードイン用のクラス */
.fadeIn {
  opacity: 1;
}

.div-decoration {
  margin-bottom: -47px;
  margin-left: -125px;
  position: relative;
  z-index: 1500;
}

.abacus-problem {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px 0 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.slider {
  width: 200px;
  border: 1px solid black;
  display: flex;
  overflow: hidden;
  margin: 0 auto;
}

.slider > :first-child {
  -webkit-animation-name: scroll;
  animation-name: scroll;
  -webkit-animation-duration: 20s;
  animation-duration: 20s;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

@keyframes scroll {
  0% {
    margin-left: 0;
  }

  20% {
    margin-left: -100%;
  }

  25% {
    margin-left: -100%;
  }

  45% {
    margin-left: -200%;
  }

  50% {
    margin-left: -200%;
  }

  70% {
    margin-left: -300%;
  }

  75% {
    margin-left: -300%;
  }

  95% {
    margin-left: -400%;
  }

  100% {
    margin-left: -400%;
  }
}

.school-search {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.abacus-shop {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.job-opening {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.information {
  width: auto;
  padding: 15px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
}

.information-contents {
  height: 150px; /*スクロールの高さ*/
  overflow-y: scroll;
}

.contact {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.contact-contents a {
  width: auto;
  text-align: center;
  font-weight: bold;
  color: white;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  margin: 25px auto;
  text-decoration: none;
  display: block;
}

.contact-contents span {
  background: linear-gradient(90deg, #ba2636, #007bbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sns {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.sns-contents a {
  margin: 25px auto;
  text-align: center;
}

.sns-contents a img {
  padding: 10px;
  margin: 25px;
  box-shadow: 3px 5px 10px black;
}

.about-me {
  flex-direction: column;
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.face {
  margin: 0 auto;
  border: 1px solid white;
  border-radius: 100%;
  box-shadow: 3px 5px 10px black;
}

.about-me-contents {
  margin: 12.5px 25px;
}

.about-me-contents h3 {
  margin-top: 50px;
  text-align: center;
  color: black;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
}

.about-me-contents h3 p {
  text-align: right;
}

.kake {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.kake-contents h3 {
  margin-top: 25px;
  text-align: center;
  color: black;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
}

.kake-contents ul {
  list-style: none;
  background: #f1f8ff;
  box-shadow: 0px 0px 0px 10px #f1f8ff; /*線の外側*/
  border: dashed 2px #668ad8; /*破線*/
  border-radius: 9px;
  margin-left: 10px; /*はみ出ないように調整*/
  margin-right: 10px; /*はみ出ないように調整*/
  padding: 0.5em 0.5em 0.5em 2em;
}

.kake-contents li {
  font-size: 17.5px;
  margin-top: 12.5px;
  letter-spacing: 5px;
  line-height: 1.5;
  padding: 0.5em 0;
}

.wari {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.wari-contents h3 {
  margin-top: 25px;
  text-align: center;
  color: black;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
}

.mitori {
  height: auto;
  width: auto;
  padding: 25px;
  margin: 25px 50px;
  border: 5px solid black;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
  box-shadow: 3px 5px 10px black;
  text-align: center;
}

.mitori-contents h3 {
  margin-top: 25px;
  text-align: center;
  color: black;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
}

footer {
  display: flex; /* Flexboxを有効にする */
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center; /* 垂直方向の中央揃え */
  width: 100%; /* ヘッダー全体の幅 */
  /* 必要に応じて高さや背景色を設定 */
  height: 75px;
  background-color: white;
  border-top: 7.5px solid;
  border-image: linear-gradient(to right, #ba2636, #007bbb) 1;
}
