@charset "utf-8";

/*全ページ共通*/

html.spacebook {
  font-size: .73vw;
}

@media screen and (max-width: 640px) {
  html.spacebook {
    font-size: 2.4vw;
  }
}

body {
  background-color: black;
  width: 100%;
  min-height: 100vh;
  color: white;
  margin: 0;
  /* bodyの余白を削除 */
  padding: 10rem 0 0;
  /* bodyの余白を削除 */
}

body::before {
  display: none !important;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

img {
  vertical-align: bottom;
}

main {
  padding-bottom: 50px;
}


h1 {
  display: block;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto;
  font-size: 4rem;
  text-align: center;
  background: -webkit-gradient(linear, left top, right top, from(#ff9748), color-stop(#fe00dc), to(#fc45a4));
  background: -o-linear-gradient(left, #ff9748, #fe00dc, #fc45a4);
  background: linear-gradient(to right, #ff9748, #fe00dc, #fc45a4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.6rem;
  padding-top: 0;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 50px;
}

.flex-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 61%;
  margin: auto;
}

.f-child {
  position: relative;
  z-index: 1;
  width: 26%;
  padding: 20px 0;
  border: 2px solid white;
  border-radius: 20px;
  color: white;
  text-align: center;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-decoration: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0 3% 5rem;
}

/* グラデーション枠 + 角丸維持 */
.f-child:hover {
  border: 2px solid transparent;
  border-radius: 20px;
  background-clip: padding-box;
  position: relative;
  z-index: 1;
}

/* グラデーションの枠を作る擬似要素 */
.f-child:hover::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 20px;
  background: -o-linear-gradient(315deg, #FD6585 10%, #0D25B9 100%);
  background: linear-gradient(135deg, #FD6585 10%, #0D25B9 100%);
  z-index: -1;
}

.f-img {
  font-size: 10px;
  max-height: 13rem;
  margin: 0 auto;
}

.f-name {
  color: #fff;
  font-size: 2.6rem;
}

.f-description {
  text-align: left;
  color: #fff;
  padding: 0 20px;
  font-size: 1.4rem;
}

@media screen and (min-width: 641px) and (max-width: 1024px) {
  .flex-container {
    width: 90%;
  }

  .f-child {
    width: 22%;
    margin: 0 2% 5rem;
  }
}

@media screen and (max-width: 640px) {

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .flex-container {
    width: 90%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .f-child {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 47%;
    aspect-ratio: 1 / 1;
    margin: 0 0 2rem;
    padding: 0;
  }

  .f-img {
    max-width: 80%;
    max-height: 10rem;
  }

  .f-name {
    font-size: 2.2rem;
  }

  .f-description {
    display: none;
  }
}