/* ユーザページでbootstrap.cssから抜粋したスタイルを使うためのCSS */

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border: 6px double #3c763d;
  margin: 6px;
  padding: 10px;
}

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border: 6px double #a94442;
  margin: 6px;
  padding: 10px;
}

/* 閉じる (x) のaリンクを非表示にする */
.alert-success a {
  display: none;
}

.alert-danger a {
  display: none;
}


::-webkit-scrollbar {
  height: 12px;
  width: 6px;
  background: #2a2a2e;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
}

::-webkit-scrollbar-corner {
  background: #2a2a2e;
}

/********************************
          DEFAULT
*********************************/
em {
  font-style: normal;
  color: var(--primary);
}

figure {
  margin: 0;
  padding: 0;
}

fieldset {
  width: 80%;
  border: 0;
  padding: 0;
  margin: 0;
}

.title {
  font-family: "Roboto", sans-serif;
}

.btn1,
.btn2 {
  padding: 1rem 1rem;
  border-radius: 10px;
  text-align: center;
  border: 0;
}

.btn1 {
  background-color: #fcba04;
  color: #fff;
}

.btn1:hover {
  background-color: #f79300;
}

.btn2 {
  background-color: #fe3e30;
  color: #fff;
}

.btn2:hover {
  background-color: #f72729;
}

/********************************
          HEADER
*********************************/
@media (max-width: 1000px) {
  header section .title {
    font-size: 1.5em;
    line-height: 0.8;
  }
}

/********************************
        BLOG CONTAINER
*********************************/
.blog_container {
  width: 100%;
  display: flex;
  align-items: top;
  background-color: #ffffff;
}

/*BLOG LEFT CONTENT*/
.blog_content {
  padding: 2rem;
  width: 100%;
}

.blog_content .load-btn {
  display: block;
  width: 150px;
  margin: 5vh auto;
}

.left_content {
  display: flex;
  align-items: top;
  justify-content: space-between;
  flex-wrap: wrap;
  column-count: 2;
  gap: 20px 10px;
  flex: 0 0 70%;
}

.right_content {
  flex: 0 0 30%;
}

.blog_card {
  width: 100%;
  flex: 0 0 48.5%;
  overflow: hidden;
  background-color: #fff;
}

.blog_card:nth-child(1) {
  flex: 0 0 100%;
}

.blog_card .figure {
  display: block;
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog_card:nth-child(1) .figure {
  height: 300px;
}

.blog_card .figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.blog_card .tag {
  padding: 5px 10px;
  background-color: #f7b500;
  color: #fff;
  position: absolute;
  right: 1%;
  top: 3%;
  font-size: 12px;
}

.blog_card section {
  padding: 1rem;
  position: relative;
  background-color: #fff;
}

.blog_card section .title {
  font-weight: 600;
  font-size: 18px;
  color: #2a2a2e;
  width: auto;
}

.blog_card section a:hover {
  color: #f7b500;
}

.blog_card:hover>.figure img {
  transform: scale(1.1);
}

.share_icon {
  position: absolute;
  bottom: -30px;
  left: 10px;
  background-color: #fe3e30;
  color: #fff;
  display: flex;
  align-items: center;
  padding-right: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.5s;
}

.share_icon .fa {
  padding: 5px;
  background-color: #f72729;
  margin-right: 10px;
}

.blog_card section img {
  width: 30%;
  margin-right: 20px;
  object-fit: cover;
  border: 5px solid rgba(1, 1, 1, 0.1);
}

.blog_card section img:nth-child(even) {
  float: left;
}

.blog_card section img:nth-child(odd) {
  float: right;
}

/*BLOG RIGHT CONTENT*/
.columns {
  display: block;
  margin-bottom: 4vh;
  background-color: #fff;
}

.columns section {
  padding: 1rem;
}

.columns .title {
  background-color: #f7b500;
  color: #fff;
  padding: 1rem;
  text-align: left;
  width: 100%;
  display: block;
  transition: 0.2s;
  border-left: 0px solid #2a2a2e;
}

.columns:hover>.title {
  border-left: 5px solid #2a2a2e;
}

.columns .title a {
  float: right;
}

.columns .title a:hover {
  color: #2a2a2e;
}

.search form {
  width: 100%;
  display: flex;
  align-items: center;
}

.search fieldset:nth-child(2) {
  width: 10%;
}

.search form input {
  border: 1px solid rgba(1, 1, 1, 0.1);
  width: 100%;
  font-weight: 600;
  color: rgba(1, 1, 1, 0.5);
}

.search .btn1 {
  background-color: #fcba04;
  border: 1px solid #f7b500;
  border-radius: 0;
  margin-left: 5px;
}

/*BOOKS*/
.books .cards {
  position: relative;
  width: 100%;
  height: 37vh;
  overflow: hidden;
  border-radius: 5px;
  background-color: #f1f1f1;
}

.books .cards::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 900;
  display: block;
  width: 100%;
  height: 100%;
}

.books .card_part {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  display: flex;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  transform: translateX(700px);
  background-repeat: no-repeat;
  animation: opaqTransition 7s cubic-bezier(0, 0, 0, 0.97) infinite;
  background-color: #f1f1f1;
}

.books .card_part.card_part-two {
  z-index: 6;
  background-repeat: no-repeat;
}

.books .card_part.card_part-one {
  z-index: 7;
  background-repeat: no-repeat;
}

/* .books .card_part.card_part-three {
  z-index: 5;
  animation-delay: 14s;
  background-repeat: no-repeat;
} */
/* 
.books .card_part.card_part-four {
  z-index: 4;
  animation-delay: 21s;
  background-repeat: no-repeat;
} */

@keyframes opaqTransition {
  3% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(0);
  }

  28% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-500px);
  }
}

/*CATEGORIES*/
.categories a {
  display: inline-block;
  /* border-radius: 40px; 
  font-size: 12px; */
  white-space: nowrap;
  color: #fff;
}

.categories a:hover {
  background-color: #2a2a2e;
}

/*POSTS*/
.posts a {
  display: flex;
  align-items: center;
  margin: 0.4rem 0;
}

.posts a img {
  width: 100px;
  margin-right: 10px;
}

.posts a:hover>p {
  color: #000;
}

/*COMMENTS*/
.comments {
  position: relative;
  overflow: hidden;
}

.marquee2 {
  position: relative;
  overflow: hidden;
  line-height: 1.6em;
}

.marquee2 p {
  border-bottom: 1px solid rgba(1, 1, 1, 0.1);
  position: relative;
  padding: 0.4rem 0;
}

.marquee2 p:before {
  content: "\f10d";
  font-family: "FontAwesome";
  margin-right: 5px;
  position: relative;
  top: -5px;
}

@keyframes marquee1 {
  0% {
    top: 10%;
  }

  100% {
    top: -100%;
  }
}

/*SOCIAL MEDIA*/
.social_icons {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 15px;
  background-color: transparent;
}

.social_icons .fa {
  padding: 7px 13px;
  background-color: #f1f1f1;
  color: #fff;
  transition: 0.2s;
}

.social_icons a:hover>.fa {
  transform: scale(1.1);
}

.social_icons .fa-facebook {
  background-color: #3b5998;
}

.social_icons .fa-instagram {
  background-color: #fb3958;
}

.social_icons .fa-youtube {
  background-color: #c4302b;
}

.social_icons .fa-whatsapp {
  background-color: #25d366;
}

.social_icons .fa-telegram {
  background-color: #3399ff;
}

@media (max-width: 1000px) {
  .blog_container {
    flex-wrap: wrap;
  }

  .blog_content {
    padding: 0;
    order: 2;
  }

  .left_content {
    flex: 0 0 100%;
    order: 2;
    padding: 1rem;
  }

  .right_content {
    flex: 0 0 100%;
    order: 1;
    padding: 1rem;
  }

  .books,
  .posts,
  .comments,
  .categories {
    display: inline-block;
    width: 47%;
    margin: 1.3%;   
    white-space: nowrap;
    margin-bottom: 0;
    vertical-align: center;
  }

  .posts {
    overflow-y: auto;
  }

  .right_content {
    flex: 0 0 100%;
  }
}

@media (max-width: 770px) {
  .blog_card {
    flex: 0 0 100%;
  }

  .posts,
  .comments,
  .categories {
    width: 100%;
    margin: 0;
    height: auto;
  }
  .categories a {
    display: inline-block;
    /* border-radius: 40px; 
    font-size: 12px; */
    width: 17%;
    white-space: nowrap;
    color: #fff;
  }
}

/*REMOVE THIS*/
.credits {
  position: fixed;
  right: 0;
  bottom: 2%;
  background-color: #1e1e1e;
  padding: 0.5rem;
  font-size: 12px;
  z-index: 999;
  color: rgba(255, 255, 255, 0.7);
}

.credits a {
  color: rgba(255, 255, 255, 0.7);
}

.credits a:hover {
  color: white;
}

.credits .btn0 {
  background-color: white;
  color: #000;
  padding: 5px;
  border-radius: 5px;
  border: 0;
  display: block;
  margin: 1vh auto;
  width: 100px;
  text-align: Center;
}

.credits .btn0:hover {
  color: black;
  background-color: #b8bca7;
}

/* otherway */

.blog-item img {
  display: block;
  width: 100%;
  vertical-align: middle;
}

.blog-item section {
  padding: 10px;
}

.blog-item a {
  display: flex;
  padding: 10px;
  overflow: hidden;
  align-items: center;
  max-width: 95%;
  margin: auto;
  color: #333;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  border-radius: 6px;
  margin-bottom: 5px;
  text-decoration: none;
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  border-bottom: 6px solid #AAAA;
}

.blog-item a:hover {
  box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.2);
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  border-bottom: 6px solid #AAAAAA;
}

.blog-item .icon {
  width: 35%;
  object-fit: cover;
  margin-right: 50px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 26px rgba(0, 0, 0, 0.4);
}

.blog-item .content {
  width: 65%;
}

.blog-item .content .title {
  font-size: 21px;
  text-transform: capitalize;
  color: #25aae1;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
}

.blog-item .icon img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.blog-item .content .title .blog-date {
  font-size: 12px;
  margin-left: 20px;
  color: #333;
  font-family: 'Lato', sans-serif;
}

.blog-item .content .title .blog-date:before {
  content: '/';
  color: #2bb673;
  font-size: 25px;
  top: auto;
  position: relative;
  margin-right: 10px;
}

.blog-item .content .rounded {
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 10px;
}

.blog-item .item-arrow {
  height: 20px;
  width: 15%;
  position: relative;
  text-align: center;
  font-size: 35px;
  left: 0;
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
}

.blog-item a:hover>.item-arrow {
  /*padding-left: 40px;*/
  color: #25aae1;
  left: 30px;
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
}

.rounded {
  width: 70px;
  height: 5px;
  border-radius: 6px;
  background-image: linear-gradient(to right, #25aae1, #40e495);
  /* background: #2bb769; */
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .blog-item .content {
    width: 100%;
    margin-top: 15px;
  }

  .blog-item .content .title {
    font-size: 23px;
  }

  .blog-item .item-arrow {
    margin: auto;
  }

  .blog-item .icon {
    width: 60%;
    margin-right: 20px;
  }

  .blog-item .icon img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }

  .blog-item {
    width: 92%;
    margin: auto;
  }

  .blog-item a {
    /* display: block; */
    padding: 0px;
  }

}

/* filter */


hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #070707;
}

.blog-comment::before,
.blog-comment::after,
.blog-comment-form::before,
.blog-comment-form::after {
  content: "";
  display: table;
  clear: both;
}

.blog-comment {
  padding-left: 15px;
  padding-right: 15px;
}

.blog-comment ul {
  list-style-type: none;
  padding: 0;
}

.blog-comment img {
  opacity: 1;
  filter: Alpha(opacity=100);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
}

.blog-comment img.avatar {
  position: relative;
  float: left;
  margin-left: 0;
  margin-top: 0;
  width: 65px;
  height: 65px;
  border: 1px solid
}

.blog-comment .post-comments {
  border: 1px solid #8a8686;
  margin-bottom: 20px;
  width: 100%;
  margin-right: 0px;
  padding: 10px 20px;
  position: relative;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  background: #fff;
  color: #212224;
  position: relative;
}

.blog-comment .meta {
  font-size: 13px;
  color: #111111;
  padding-bottom: 8px;
  margin-bottom: 10px !important;
  border-bottom: 1px solid #eee;
}

.blog-comment>ul.comments>li>ul {
  list-style-type: none;
  padding: 0;
  margin-left: 85px;
}

.blog-comment-form {
  padding-left: 15%;
  padding-right: 15%;
  padding-top: 40px;
}

.blog-comment h3,
.blog-comment-form h3 {
  margin-bottom: 40px;
  font-size: 26px;
  line-height: 30px;
  font-weight: 800;
}

.photo {
  /* position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%); */
  display: block;
  width: 100%;
  margin-top: 10px;
}

.photo img {
  width: 80%;
  object-fit: cover;
  /* filter: grayscale(100%) contrast(120%); */
  box-shadow: 10px 15px 25px 0 rgba(0, 0, 0, .2);
  display: block;
  transition: all .5s cubic-bezier(0.645, 0.045, 0.355, 1);
  margin-bottom: 20px;
}

.photo:hover img {
  box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, .3);
}

#author {
  font-family: Helvetica, Arial;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #888;
}

#author:hover {
  color: #111;
}

@media (max-width: 740px) {
  .photo img {
    width: 60%;
  }
}


.segmented-control {
  display: inline-flex;
}

.segmented-control input[type="radio"] {
  display: none;
}

.segmented-control label {
  border-width: 1px;
  border-style: solid;
  border-color: slategrey;
  border-right: none;
  padding: 6px 10px;
  background: rgba(112, 128, 144, 0.2);
  text-transform: uppercase;
  color: slategrey;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.segmented-control div label:last-of-type {
  border-right: 2px solid slategrey;
}
#radio{
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
#radio5{
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.segmented-control input:checked + label {
  background: slategrey;
  color: white;
  cursor: default;
}
