/* ブログblog
----------------------------------------------------------------------------------------------- */

/*main-article*/
.post-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.post-wrap main {
  width: 72%;
}

.post-wrap .post-list {
  border-bottom: 1px solid #CCC;
}

.post-wrap .post-box {
  width: 100%;
  margin: 0;
}

.post-wrap .post-box a {
  position: relative;
  display: block;
  padding: 30px 50px 30px 0;
  border-top: 1px solid #bec7d7;
}

.post-wrap .post-box a:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: 22px;
  height: 15px;
  background: url(../images/icon_arrow_r_bl.svg) no-repeat center / contain;
  transition: all var(--transition-primary);
  transform-origin: right;
}

.post-wrap .post-box a:hover {
  background-color: var(--color-primary-light);
  color: #333;
}

.post-wrap .post-box a:hover::after {
  scale: 1.3;
}

.post-wrap .post-box .title {
  margin-bottom: 10px;
  line-height: 1.3;
  font-size: 2.2rem;
  color: var(--color-primary);
}

.post-wrap .post-box .info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.post-wrap .post-box .info .day {
  min-width: 65px;
  color: #666666;
  font-family: var(--font-secondary);
  font-size: 1.4rem;
}

.post-wrap .post-box .info .tag {
  display: inline-block;
  min-width: 76px;
  margin: 0 10px;
  padding: 4px 8px;
  background-color: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 50rem;
  line-height: 1;
  color: var(--color-primary);
  font-size: 1.4rem;
  text-align: center;
}

.post-wrap .post-box .detail {
  color: #666;
  font-size: 1.6rem;
}

.post-wrap .post-box .detail p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  /* ここで表示したい行数を指定 */
  line-height: 1.5;
  /* 行の高さ */
  max-height: 4.5em;
  /* line-height * 行数 = 1.5em * 3行 = 4.5em */
}


/*detail*/

.post-detail {
  margin-bottom: 100px;
}

.post-detail .inner a {
  color: #055be4;
  text-decoration: underline;
  word-wrap: break-word;
}

.post-detail .inner strong {
  padding: 0 3px;
  background-color: #ffe6c8;
  font-weight: 600;
}

.post-detail .inner img {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: inherit;
}

.post-detail .inner blockquote {
  border-left: 3px solid #ccc;
  margin-left: 0;
  padding-left: 15px;
}

.post-detail .inner p {
  word-break: break-all;
  line-height: 2;
  text-align: justify;
}

.post-detail .inner h1,
.post-detail .inner h2,
.post-detail .inner h3 {
  padding-bottom: 15px;
  font-size: 22px;
  color: var(--color-sub);
  border-bottom: 2px solid var(--color-sub);
  margin: 30px 0 20px;
}

.post-detail .inner h5,
.post-detail .inner h6 {
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ccc;
  font-size: initial;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

.post-detail .inner strong {
  background: #FFF79A;
}

.post-detail .inner ul,
.post-detail .inner ol {
  margin: 15px 0;
  padding-left: 0.5rem;
}

.post-detail .inner ul li {
  margin-left: 15px;
  list-style: disc;
}

.post-detail .inner ol li {
  margin-left: 15px;
  list-style: decimal;
}

.post-detail .inner ol li span {
  color: #111;
  font-weight: normal;
}

.post-detail .inner ul li::marker,
.post-detail .inner ol li::marker {
  color: #0b316d;
}

.post-detail .inner table {
  margin: 15px 0;
}

.post-detail .inner table th,
.post-detail .inner table td {
  padding: 10px;
  border: 1px solid #ccc;
}

.post-detail .inner table th {
  background-color: #f1f1f1;
  font-weight: 400;
}

/*タイトル等*/
.post-info {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 100px;
  border-bottom: 1px solid var(--color-sub);
}

.post-info .post-title {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.post-info .post-day {
  color: #666666;
  font-family: var(--font-secondary);
}

.post-info .post-category .tag {
  display: inline-block;
  min-width: 76px;
  margin: 0 10px;
  padding: 5px 10px;
  background-color: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 50rem;
  line-height: 1;
  color: var(--color-primary);
  font-size: 1.4rem;
  text-align: center;
}

.post-catch {
  margin: 40px auto;
  text-align: center;
}


/*p-nav*/
.post-wrap .p-navi {
  padding: 20px 0 0;
  margin: 80px 0 0;
  border-top: 1px solid #111;
}

.post-wrap .p-navi ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.post-wrap .p-navi ul li {
  max-width: 50%;
}

.post-wrap .p-navi ul li a {
  position: relative;
  display: block;
  line-height: 1;
  padding: 5px;
  color: #111;
  font-size: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}





/*sideber*/

.sidebar {
  position: sticky;
  right: 0;
  top: 100px;
  width: 24%;
  padding: 25px;
  background-color: var(--color-primary-light);
}

.sidebar-title {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-primary);
  font-size: 90%;
}

.sidebar>div:first-child .sidebar-title {
  margin-top: 0;
}

.sidebar ul {
  margin-bottom: 30px;
}

.sidebar li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid #CCC;
  overflow: hidden;
  font-size: 1.4rem;
}

.sidebar li a {
  position: relative;
  display: block;
  line-height: 1.3;
  text-overflow: ellipsis;
  font-size: 1.6rem;
  overflow: hidden;
}

.sidebar li time {
  display: block;
  width: 100%;
  font-size: 1.2rem;
  color: #666666;
  font-family: var(--font-secondary);
}

.sidebar select {
  width: 100%;
  padding: 8px 5px;
  border-radius: 10px;
  background: #fff;
  border-color: #fff;
  appearance: auto;
}

.wp-block-archives__label {
  display: none !important;
}


/*pager*/
.pagenation {
  margin: 50px auto 0;
}

.pagenation ul {
  display: flex;
  align-items: center;
  justify-content: center !important;
}

.pagenation ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 1px;
  line-height: 1;
  font-family: var(--font-secondary);
}

.pagenation ul li.prev,
.pagenation ul li.next {
  background-color: var(--color-primary);
  border-radius: 50%;
}

.pagenation ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px 10px;
  color: #111111;
  font-size: 2rem;
}

.pagenation ul li.active {
  background-color: #fff;
  color: #cccccc;
  font-size: 2rem;
}


.pagenation ul li.prev a {
  position: relative;
  padding-top: 100%;
}

.pagenation ul li.prev a::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  scale: -1 1;
  display: block;
  background: url(../images/icon_arrow_r_wh.svg) no-repeat center / contain;
  width: 18px;
  height: 13px;
}



.pagenation ul li.next a {
  position: relative;
  padding-top: 100%;
}

.pagenation ul li.next a::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  background: url(../images/icon_arrow_r_wh.svg) no-repeat center / contain;
  width: 18px;
  height: 13px;
}


/* /////////////////////////////////////////////////////////////////////////////////////////////////////////


--- 1199px


///////////////////////////////////////////////////////////////////////////////////////////////////////// */
@media (max-width: 1199px) {

  .post-wrap main {
    width: 70%;
  }
}







/* /////////////////////////////////////////////////////////////////////////////////////////////////////////


--- 991px


///////////////////////////////////////////////////////////////////////////////////////////////////////// */
@media screen and (max-width: 991px) {

  /* blog
-------------------------------------------------------------------------------- */
  .post-wrap {
    flex-direction: column;
  }

  .post-wrap main {
    width: 100%;
  }


  .post-title {
    font-size: 2.4rem;
  }



  /*sidebar*/
  .sidebar {
    width: 100%;
    margin-top: 50px;
  }

  .sidebar-box select {
    min-height: 45px;
  }


}

/* end */












/* /////////////////////////////////////////////////////////////////////////////////////////////////////////


--- 767px(スマホ、iPad縦以下)


///////////////////////////////////////////////////////////////////////////////////////////////////////// */
@media screen and (max-width: 767px) {

  /* blog
-------------------------------------------------------------------------------- */

  .post-wrap {
    flex-wrap: wrap;
  }

  .post-wrap main {
    width: 100%;
  }


  .post-wrap .post-list::after {
    display: none;
  }

  .post-wrap .post-box {
    width: auto;
  }

  .post-wrap .post-box a {
    padding: 30px 0;
  }

  .post-wrap .post-box a:after {
    top: inherit;
    bottom: 40px;
    translate: 0;
  }

  .post-wrap .post-box .title {
    font-size: 1.8rem;
  }

  .post-wrap .post-box .info {
    margin: 0 0 5px;
  }

  .post-wrap .post-box .info .category {
    font-size: 1.2rem;
  }

  .post-wrap .post-box .detail p {
    padding-right: 40px;
    font-size: 1.4rem;
  }




  /*single*/
  .post-detail .inner h1 {
    font-size: 1.8rem;
  }

  .post-detail .inner h2 {
    font-size: 1.8rem;
  }

  .post-detail .inner h3 {
    font-size: 1.8rem;
    margin: 25px 0 15px;
  }

  .post-detail .inner h5,
  .post-detail .inner h6 {
    margin: 25px 0 15px;
    padding-bottom: 8px;
    font-size: 1.6rem;
  }

  .post-detail .inner ul,
  .post-detail .inner ol {
    padding: 0 5px 0;
  }

  .post-info p {
    font-size: 1.6rem;
  }

  .post-title {
    font-size: 2.2rem !important;
  }


  .post-btnarea {
    margin: 50px auto;
  }

  .post-btnarea .c-btn {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.4rem;
  }



  /*sidebar*/
  .sidebar-box li a {
    font-size: 1.4rem;
  }


  /*p-navi*/
  .post-wrap .p-navi {
    margin: 30px 0;
  }

  .post-wrap .p-navi ul {
    justify-content: space-around;
  }

  .pagenation {
    margin: 30px auto;
  }

  .pagenation ul li {
    width: 30px;
    height: 30px;
  }

  .pagenation ul li a {
    font-size: 1.6rem;
  }

  .pagenation ul li.prev a::after,
  .pagenation ul li.next a::after {
    width: 15px;
  }


}

/* end */