.cast_box{
  margin-top: -0.5rem;
}

.pagelink{
  width: 100%;
  display: flex;
  justify-content: center;
}

.pagelink a{
  display: block;
}

.pagelink span{
  background: #ff53a0;
  border: 1px solid #ff53a0;
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem 0;
  margin: 0 0.5rem;
  color: #fff;
}
.pagelink a span{
  background: #fff;
  color: #333;
}

@media all and (min-width: 768px) {
  .pagelink span{
    font-size: 1rem;
    padding: 0.2rem 0.8rem 0;
  }
}


@media all and (min-width: 768px) {
  #profile{
    display: flex;
    padding: 1rem 3rem 0;
  }
}


#profile .photo {
  position: relative;
  margin-bottom: 1rem;
  padding: 0 1rem;
}
@media all and (min-width: 768px) {
  #profile .photo {
    padding: 0;
    margin-bottom: 0;
    margin-right: 3rem;
    width: 40%;
  }
}


#photo_wrapper{
  background: #ff2385;
  padding: 0 0.5rem;
  position: relative;
}
@media all and (min-width: 768px) {
  #photo_wrapper{
    padding: 0 1rem;
  }
}

#photo_wrapper:before,
#photo_wrapper:after{
  width: 100%;
  height: 0;
  display: block;
  position: absolute;
  left: 0;
  content: "";
}
#photo_wrapper:before{
  border-bottom: solid 0.5rem #ff2385;
  border-left: solid 0.5rem transparent;
  bottom: 100%;
}
@media all and (min-width: 768px) {
  #photo_wrapper:before{
    border-bottom: solid 1rem #ff2385;
    border-left: solid 1rem transparent;
  }
}

#photo_wrapper:after{
  border-top: solid 0.5rem #ff2385;
  border-right: solid 0.5rem transparent;
  top: 100%;
}
@media all and (min-width: 768px) {
  #photo_wrapper:after{
    border-top: solid 1rem #ff2385;
    border-right: solid 1rem transparent;
  }
}

#profile .photo .cate{
  display: flex;
  width: 100%;
  margin: 0 0 1rem;
}
@media all and (min-width: 768px) {
  #profile .photo .cate{
    margin: 0 0 2rem;
  }
}

#profile .cate_img {
    color: #fff;
    text-shadow: 0 0 2px #000;
    position: relative;
    display: block;
    width: 100%;
  }
#profile .cate_img:before{
    content:"";
    display: block;
    padding: 20% 0 0 0;
  }
#profile .cate_img:after{
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: rgb(255,255,255);
  background: -moz-linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.7) 100%);
  background: -webkit-linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.7) 100%);
  background: linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.7) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
}

@media all and (min-width: 768px) {
  #profile .cate_img:after{
  }
}


#profile .cate_img img{
    width: 90%;
    height: 70%;
    position: absolute;
    top: 15%;
    left: 5%;
    z-index: 2;
  }


#profile .cate_01{
  background: #ff0000;
}
#profile .cate_02{
  background: #ff6300;
}
#profile .cate_03{
  background: #ffb000;
}
#profile .cate_04{
  background: #ffd045;
}
#profile .cate_05{
  background: #cfff45;
}
#profile .cate_06{
  background: #96ff00;
}
#profile .cate_07{
  background: #2bff00;
}
#profile .cate_08{
  background: #00ffb3;
}
#profile .cate_09{
  background: #00d1ff;
}
#profile .cate_10{
  background: #0085ff;
}
#profile .cate_11{
  background: #0038ff;
}
#profile .cate_12{
  background: #6900ff;
}
#profile .cate_13{
  background: #c400ff;
}
#profile .cate_14{
  background: #ff00d6;
}
#profile .cate_15{
  background: #ff0063;
}

#profile .new_img {
  position: absolute;
  top: 0;
  z-index: 9999;
  right: 0rem;
  top: 1.7rem;
  width: 2rem;
}

@media all and (min-width: 768px) {
  #profile .new_img {
    position: absolute;
    top: 0;
    z-index: 9999;
    right: -1.5rem;
    top: 1.7rem;
    width: 3rem;
  }
}




#profile .name {
  font-size: 2rem;
  line-height: 1.4;
  padding: 1rem 1rem 0.5rem;
}
@media all and (min-width: 768px) {
  #profile .name {
    font-size: 2rem;
    line-height: 1.4;
    padding: 0 0 1rem;
  }
}


#profile .blog {
  width: 90%;
  margin: auto;
  padding: 10px 0;
  min-height: 500px;
}
@media all and (min-width: 768px) {
  #profile .blog {
    width: 600px;
    margin: auto;
    padding: 10px 0;
    min-height: 500px;
  }
}

#profile .blog iframe {
  width: 90%;
  height: 500px;
}
@media all and (min-width: 768px) {
  #profile .blog iframe {
    width: 600px;
    height: 500px;
  }
}


#schedule {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem 2rem
}

@media all and (min-width: 768px) {
  #schedule {
    flex-direction: row;
    padding: 2rem 0 2rem
  }
}

#schedule .schedule {
  display: flex;
  flex-direction: column;
  border-width: 1px;
  border-style: solid;
  border-color: #ff507f;
  margin: 0 0;
}
@media all and (min-width: 768px) {
  #schedule .schedule {
    margin: 0 0.2rem;
  }
}

#schedule .schedule .date,
#schedule .schedule .time {
  padding: 0 1rem;
  text-align: center;
  font-size: 0.9rem;
}
#schedule .schedule .date{
  background: #ff507f;
  color: #fff;
  font-weight: bold;
}

#profile .schedule .date, #profile .schedule .time {
  flex: 0 1 auto;
  border-width: 2px 2px 0 0;
  border-style: solid;
  border-color: #ff507f;
  box-sizing: border-box;
  padding: 20px 0;
  line-height: 1;
  display: block;
}

#profile .schedule .date {
  width: 40%;
  text-align: center;
}

#profile .schedule .time {
  width: 60%;
  text-align: center;
}

@media all and (min-width: 768px) {
  #profile .profile_data {
    display: flex;
    flex-wrap: wrap;
  }
}

#profile p {
  padding: 0.3rem 1rem;
  border-left: 5px solid #ff507f;
  margin: 0 1rem;
}

@media all and (min-width: 768px) {
  #profile p {
    margin: 0 0 1rem;
    width: 35%;
    text-align: left;
    padding: 0.3rem 1rem;
    border-left: 5px solid #ff507f;
    box-sizing: border-box;
  }
}

#profile p.data {
  margin: 0 1rem 1rem;
  padding: 0.3rem 1rem;
  border-left: 5px solid transparent;
}

@media all and (min-width: 768px) {
  #profile p.data {
    width: 65%;
    margin: 0 0 1rem;
    padding: 5px 15px;
    border: none;
  }
}

#profile .swiper-pagination{
  position: relative;
  padding: 1rem 0 0;
  display: flex;
  justify-content: center;
}
@media all and (min-width: 768px) {
  #profile .swiper-pagination{
    padding: 2rem 0 0;
  }
}

#profile .swiper-pagination-bullet{
  width: 25%;
  height: auto;
  position: relative;
  display: block;
  border-radius: 0;
  background: none !important;
}

#profile .swiper-pagination-bullet:after{
  content: "";
  display: block;
  padding-top: 150%;
}
#profile .swiper-pagination-bullet img{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
