@charset "UTF-8";

html {
  font-size: 62.5%;
}

body {
  font-size: 1.4rem;
  background-color: #F9FAFB;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Noto Sans JP';
  margin: 0;
}

.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

img {
  width: 170px;
  height: 170px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

table {
  border: 1px;
}

a {
  text-decoration: none;
}

/* case */
.case_container {
  width: 100%;
  background-color: #F9FAFB;
  position: relative;
}

.cases {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.card {
  width: 400px;
  height: 500px;
  font-size: 32px;
  border: 1px solid #2B2B2B;
  border-radius: 15px;
  background-color: #D9D9D9;
  margin: 30px 25px;
  position: relative;
  display: block;
  box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.4);
}

.card img {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  border-radius: 15px;
}

.card p {
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  top: 300px;
  width: 100%;
  text-align: center;
}

/* media */
@media screen and (max-width: 768px) {
  .cases .card {
    height: 300px;
    width: 250px;
  }

  .cases .card img {
    width: 150px;
    height: 150px;
  }

  .cases .card p {
    font-size: 20px;
    top: 200px;
  }
}

@media screen and (max-width: 480px) {
  .cases .card {
    height: 180px;
    width: 40%;
    margin: 10px;
  }

  .cases .card img {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 10px;
  }

  .cases .card p {
    font-size: 15px;
    top: 120px;
  }

  .cases {
    margin: 0 0 20px 0;
    width: 100%;
  }
}