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

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

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

.post-wrap .post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 30px;
}

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

.post-wrap .post-box a {
  position: relative;
  display: block;
}

.post-wrap .post-box .thumb {
  position: relative;
  width: 100%;
  padding-top: calc(100% * 246 / 369);
  margin-bottom: 20px;
  border-radius: var(--radius-mid);
  overflow: clip;
}

.post-wrap .post-box .thumb img {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-wrap .post-box .date {
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.post-wrap .post-box .title {
  margin-bottom: 10px;
}

.post-wrap .post-box .info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 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-category {
  white-space: pre-wrap;
  text-align: left;
}

.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;
}

/*news*/
.news-list {
  border-bottom: 2px dotted #ccc;
}

.post-wrap .news-box {
  border-top: 2px dotted #ccc;
}

.post-wrap .news-box a {
  position: relative;
  padding: 30px 70px 30px 0;
}

.post-wrap .news-box .icon-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
}

.post-wrap .news-box .info {
  display: flex;
  gap: 5px 15px;
  margin-bottom: 15px;
}

.post-wrap .news-box .date {
  margin-bottom: 0;
}

.post-wrap .news-box .detail p {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.post-detail .inner a {
  color: var(--color-primary);
  text-decoration: underline;
  word-wrap: break-word;
}

.post-detail .inner a.link-arrow {
  text-decoration: none;
  color: inherit;
}

.post-detail .inner [class^=btn-] {
  margin: 10px 0;
  text-decoration: none;
  color: inherit;
}

.post-detail .inner a.link-file {
  color: inherit;
}

.post-detail .inner strong {
  font-weight: 700;
}

.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 {
  margin-top: 5px;
  margin-bottom: 5px;
  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: 2.2rem;
  border-bottom: 3px solid var(--color-primary);
  margin: 50px 0 25px;
}

.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 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: var(--color-primary);
}

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

.post-detail .inner table tr {
  height: auto !important;
}

.post-detail .inner table th,
.post-detail .inner table td {
  width: auto !important;
  height: auto !important;
  padding: 10px;
  border: 1px solid #b09789;
}

.post-detail .inner table th {
  background-color: var(--color-primary-light);
  font-weight: 700;
}

.post-detail .news-img-list{
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
}
.post-detail ul.news-img-list li{
    list-style: none;
    width: 100%;
    max-width: 270px;
    margin: 0;
}
.post-detail .img-box{
margin: 15px 0;
}


/*タイトル等*/
.post-info {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 20px;
  margin-bottom: 80px;
}

.post-info .post-title {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  line-height: 1.3;
  font-size: 4rem;
}

.post-info .post-day {
  line-height: 1;
}

.post-info .post-category {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1;
}

.post-info .post-category a {
  color: var(--color-primary);
}




/*sideber*/

.sidebar {
  position: relative;
  width: 18%;
  min-width: 270px;
}

.sidebar .title-border {
  margin-top: 50px;
  margin-bottom: 25px;
}

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

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

.sidebar li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.sidebar li a {
  position: relative;
  display: block;
  line-height: 1.3;
  padding: 8px 0;
}

.sidebar select {
  width: 100%;
  padding: 8px 5px;
  border-radius: 10px;
  border: 2px solid #ccc;
  appearance: auto;
  transition: all var(--transition-primary);
}

.sidebar select:hover {
  cursor: pointer;
  background-color: var(--color-primary-light2);
}

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


/*pager*/
.pagenation {
  margin: 80px 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: 10px;
}

.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;
}


.pagenation-single {
  border-top: var(--border-primary);
  padding-top: 50px;
}

.pagenation-single nav {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.pagenation-single nav .link-arrow .icon-arrow {
  background-color: var(--color-primary);
}

.pagenation-single nav .link-arrow .icon-arrow::after {
  background-image: url(../images/icon_arrow_r_wh);
}

.pagenation-single nav .link-arrow.prev .icon-arrow::after {
  rotate: 180deg;
}


/* **************************************************************
 archive
*************************************************************** */
.archive-head {
  padding: 30px 40px;
  margin-bottom: 80px;
  background: var(--tex-primary-light);
  border-radius: var(--radius-mid);
}

.archive-head p {
  line-height: 1.7;
}

.archive-head .link-arrow {
  margin-top: 10px;
}

.title-archive {
  margin-bottom: 50px;
}


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


--- 1440px


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

  .post-wrap .post-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-info .post-title {
    margin-bottom: 30px;
    font-size: 3rem;
  }


}







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


--- 991px


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

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

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


  /*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 .post-list {
    gap: 40px 20px;
  }

  .post-wrap .container-btns {
    display: flex !important;
  }


  /*single*/
  .post-detail {
    margin-bottom: 50px;
  }

  .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-detail .news-img-list{
  display: block;
}
.post-detail ul.news-img-list li{
    margin-bottom: 15px;
}

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


  /*p-navi*/

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

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

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


}

/* end */




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


--- 560px


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

  /* **************************************************************
 blog
*************************************************************** */
  .post-wrap .post-list {
    grid-template-columns: 1fr;
  }

  .post-wrap .news-box a {
    padding: 20px 50px 20px 0;
  }

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

  .post-wrap .news-box .detail p {
    font-size: 1.4rem;
  }

  /*detail*/
  .post-detail .inner table tr {
    display: block;
    margin-top: -2px;
  }

  .post-detail .inner table th {
    display: block;
    border-bottom: none;
  }

  .post-detail .inner table td {
    display: block;
    border-top: none;
  }

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


  /* **************************************************************
 archive
*************************************************************** */
  .archive-head {
    padding: 20px;
    margin-bottom: 40px;
  }

  .title-archive {
    margin-bottom: 35px;
  }


}