* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
}

.main_area {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding:1rem 2rem;
}

/*
h1 {
  margin: 30px 0 20px 30px;
  font-size: 20px;
  font-weight: bold;
}
*/

h2{
  margin:1rem 1rem 2rem;
  letter-spacing:3pt;
  font-weight:600;
  font-size:2.25rem;
}

a {
  /*color: #337bc8;*/
  color:#337ab7;
}

ul,ol {
  list-style: none;
}

ul>li, ol>li {
  margin-bottom: 2%;
  font-size: 1em;
}

.intro ul li {
  margin: 0.5% 0;
}

.main_content {
  width: 100%;
  margin: 0px auto;
}

#func {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin: 30px auto;
  padding: 0;
}

#func button{
  background-color: transparent;
  border: none;
  padding: 0;
  appearance: none;
}

[id*="card"] {
  flex: 0 0 20%;
  text-align: center;
  height: auto;
  margin: 0.5% 0;
  padding: 0;
  cursor: pointer;
}

.back {
  position: relative;
}

.view {
  position: absolute;
  left: 15%;
  bottom: 10%;
  display: none;
  z-index: 10;
}

.view img {
  width: 50px;
}

.expl {
  position: absolute;
  right: 15%;
  bottom: 10%;
  display: none;
  z-index: 10;
}

.expl img {
  width: 40px;
}

.fade-in {
    opacity: 0;
}
.fade-in.lazyloaded {
    opacity: 1;
    transition: opacity 300ms;
}

.switch {
  width: 80%;
  margin: 10px auto;
  text-align: center;
}

#reset {
  display: block;
  width: 10%;
  height: 30px;
  margin: 20px auto;
}

/* ########### 1024px以上 ########### */
@media screen and (min-width: 1024px) and (orientation: landscape){

}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {

  li[id*="card"] {
    flex: 0 0 25%;
  }

}

/* ########## 767px以上 1023px以下 ########## */
@media screen and (max-width: 1023px) and (min-width: 767px){

  [id*="card"] {
    flex: 0 0 25%;
  }

}
/* ########## 1023px以下 ########## */
@media screen and (max-width:1023px){

}

@media screen and (max-width: 896px) and (orientation: landscape) {

  [id*="card"] {
    flex: 0 0 25%;
  }

}

/* ########### 767px以下 ########### */
@media screen and (max-width: 767px) {

  [id*="card"] {
    flex: 0 0 100%;
  }

  .view {
    position: absolute;
    left: 25%;
    bottom: 10%;
  }

  .expl {
    position: absolute;
    right: 25%;
    bottom: 10%;
  }
}

@media screen and (max-width: 767px) and (orientation: landscape) {

  [id*="card"] {
    flex: 0 0 33%;
  }

}

.btn,
a.btn,
button.btn {
  font-size: 1.0rem;
  font-weight: 700;
  line-height: 1.0;
  position: relative;
  display: inline-block;
  padding: 0.9rem 1rem;
  border:none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  border-radius: 5px;
}
button.btn {
  margin-top:2rem;
  width:20%;
  min-width:100px;
}
.btn-success{color:#fff;background-color:#28a745;}
button.btn-success:hover{color:#fff;background-color:#218838;  cursor: pointer;}


.btn-primary{color:#fff;background-color:#007bff;}
button.btn-primary:hover{color:#fff;background-color:#0069d9;  cursor: pointer;}

