@charset "UTF-8";

.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  margin:20px 0;
}
.tab-wrap:after {
  content: '';
  width: 100%;
  height: 3px;
  background: #fbf9fb;
  display: block;
  order: -1;
}
.tab-label {
  color: rgb(0, 0, 0);
  background: LightGray;
  white-space: nowrap;
  text-align: center;
  padding: 10px .5em;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  flex: 1;
}
.tab-label:not(:last-of-type) {
  margin-right: 5px;
}
.tab-content {
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  border:none;
}
.tab-content ul{
  list-style: none;
  padding:0 10px;
}
.tab-content ul li{
  padding:10px;
}
.tab-content h2{
  font-size: 3.0rem;
  color:rgb(175, 20, 20);
  border-bottom: 1px solid #ddd;
}
/* アクティブなタブ */
.tab-switch:checked+.tab-label {
  background: rgb(255, 255, 255);
  border-top:1px solid #ddd;
  border-right:1px solid #ddd;
  border-left:1px solid #ddd;
}
.tab-switch:checked+.tab-label+.tab-content {
  height: auto;
  overflow: auto;
  padding:50px 15px;
  opacity: 1;
  transition: .5s opacity;
  animation-name: displayAnime;/*ふわっと表示させるためのアニメーション*/
  animation-duration: 2s;
  animation-fill-mode: forwards;
}
/* ラジオボタン非表示 */
.tab-switch {
  display: none;
}

@keyframes displayAnime{
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}