/* Theme Name: theme-blog-header
Author: RyoIwamoto
Desctiption: DemoSite blog theme header
Version: 1 */

@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Sacramento&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caveat&display=swap");

.searchform {
  width: 300px;
  position: relative;
}

.search-input {
  border: 1px solid gray;
  border-radius: 5px;
  height: 40px;
  width: 310px;
}

.search-button {
  cursor: pointer;
  position: absolute;
  top: 7px;
  right: 0px;
}

.page-naviarea {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.wp-pagenavi {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-pagenavi .extend {
  margin: 0 3px;
  height: 30px;
  width: 30px;
  border-radius: 3px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: none;
  background: transparent;
}

.wp-pagenavi .pages {
  margin: 0 3px;
  height: 30px;
  width: 60px;
  border-radius: 3px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-pagenavi .current {
  margin: 0 3px;
  height: 30px;
  width: 30px;
  background-color: gray;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.page,
a.nextpostslink,
a.previouspostslink {
  margin: 0 3px;
  height: 30px;
  width: 30px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.last,
a.first {
  margin: 0 3px;
  height: 30px;
  width: 30px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.last:hover,
a.first:hover,
li.next:hover,
a.nextpostslink:hover,
a.previouspostslink:hover,
a.page:hover {
  background-color: #cccccc;
}

.cat_name {
  background-color: white;
  box-sizing: border-box;
  margin: 30px auto;
  height: 50px;
  width: calc(100% - 30px);
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .cat_name {
    width: 100%;
    margin: 0 auto;
  }
}

.title-p {
  text-align: center;
}

.title-1 {
  padding-top: 1.5rem;
  margin: 0 auto;
  font-family: "Times New Roman", Times, serif;
}

@media screen and (max-width: 768px) {
  .title-1 {
    font-size: 1.8em;
  }
}

.title-2 {
  margin: 0 auto;
  font-family: "Caveat", cursive;
  font-size: 25px;
}

.central-area {
  display: flex;
  justify-content: center;
  background-color: whitesmoke;
}

@media screen and (max-width: 768px) {
  .central-area {
    display: block;
    width: 100%;
  }
}

.main-p {
   max-width: 800px;
   width: calc(100%* 2 / 3);
  box-sizing: border-box;
  background-color: transparent;
}
@media screen and (max-width: 768px) {
  .main-p {
   width: 100%;
  }
}
@media screen and (max-width: 500px) {
  .main-p {
    display: block;
    text-align: center;
  }
}

.article-p {
  height: 370px;
  max-width: 760px;
  width: calc(100% / 2 - 10px);
  flex-direction: row;
  display: grid;
  /* align-items: center; */
  /* グリッドの横幅を指定 */
  grid-template-columns: 100% 100%;
  margin: 30px 10px;
  box-sizing: border-box;
}

@media screen and (max-width: 500px) {
  .article-p {
    flex-direction: column;
    grid-template-columns: 100%;
    margin: 0;
    width: 100%;
    height: fit-content;
  }
}

.article-plr {
  box-sizing: border-box;
  max-width: 360px;
  width: calc(100% - 10px);
  height: 370px;
  margin: 0 auto;
  background-color: white;
  position: relative;
  box-shadow: 0px 0px 2px gray;
}

@media screen and (max-width: 768px) {
  .article-plr {
    margin: 10px auto;
    max-width: initial;
    width: calc(100% - 20px);
  }
}

.post-img img {
   width: 100%;
}

.new-a {
  display: block;
  position: absolute;
  padding: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.article-plr:hover {
  box-shadow: 1px 1px 3px gray;
  transform: translate(0, -5px);
  transition-duration: 0.3s;
}

.post-img {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  text-align: center;
  align-items: flex-end;
  height: 45%;
  width: 100%;
  margin-left: 0;
}

.post-title {
  position: absolute;
  z-index: 20;
  top: 169px;
  font-size: 17px;
  margin-left: 10px;
}

.text-excerpt {
  box-sizing: border-box;
  text-align: left;
  padding-left: 5px;
  z-index: 20;
  position: absolute;
}

.text-excerpt1 {
  box-sizing: border-box;
  text-align: left;
  padding: 0 5px;
  z-index: 20;
  top: 0;
  left: 0;
  position: absolute;
  top: 220px;
  width: 100%;
  height: 40%;
  font-size: 15px;
  overflow-wrap: break-word;
}

.entry-content {
  box-sizing: border-box;

  width: calc(100% - 30px);
  background-color: white;
  padding: 30px;
}

@media screen and (max-width: 768px) {
   .entry-content {
       width: 100%;
   }
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  /* 画面に固定 */
  position: fixed;
  z-index: 3;
  /*固定したい位置*/
  bottom: 10px;
  right: 0;
  /*ナビゲーションの形状*/
  background-color: white;
  height: 40px;
  width: 40px;
  border-radius: 2px;
  box-shadow: 0 0 3px gray;
  transition: box-shadow 0.1s;
  cursor: pointer;
  opacity: 70%;
}

.link:hover {
  background-color: #cccccc;
  transition-duration: 0.3s;
}

.follow-menu {
  font-size: 30px;
  font-weight: bold;
}