.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignleft {
  display: block;
  margin-right: auto;
}


.alignright {
  display: block;
  margin-left: auto;
}

/* 全体のコンテナのスタイリング */
.p-works_inner {
  max-width: 1200px;
  margin: 30px auto;
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, .3);
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

/* 投稿コンテンツのスタイリング */
.posts {
  flex-grow: 1;
  margin-right: 20px; /* 最近の投稿リストとの間隔 */
  width: calc(100% - 330px);
}

/* 最近の投稿リストのスタイリング */
.recent-posts {
  width: 330px;
  padding: 15px;
}

.recent-posts h3 {
  background-color: #000000;
  color: white;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 3px;
  font-size: 18px;
}

.recent-posts ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.recent-posts li {
  margin-bottom: 10px;
  padding: 5px 8px;
  width: 100%;
}

.recent-posts li:hover {
  background-color: #eee;
}

.recent-posts a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  width: 100%;
}

.recent-posts a:hover {
  color: #333;
}

/* 見出し、日付などのスタイリング */
.posts-head {
  margin-bottom: 20px;
}

.posts-head ._time {
  font-size: 16px;
  color: #666;
}

.posts-head .ttl {
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

.posts-content {
  width: 100%;
}

/* ナビゲーションリンクのスタイリング */
.posts-works-nav {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
}

.posts-works-nav li {
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, .3);
  border-radius: 5px;
  width: 47%;
  padding: 10px;
  transition: .2s ease-in-out;
  color: #565656;
}

.posts-works-nav li:hover {
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, .3);
  transition: .2s ease-in-out;
  -webkit-transform: translate(0px, -2px);
  -moz-transform: translate(0px, -2px);
  -ms-transform: translate(0px, -2px);
  -o-transform: translate(0px, -2px);
  transform: translate(0px, -2px);
}

.posts-works-nav li a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.posts-works-nav img {
  width: 80px;
  height: auto;
  margin-right: 10px;
}

.post-label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* Swiperの基本スタイリング */
.swiper.mySwiper2 {
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Thumbnails Slider Styling */
.swiper-container {
  margin: 30px 0 0 0;
}
.swiper.mySwiper {
  width: 100%;
  height: 100px;
  margin: 10px 0;
}

.swiper.mySwiper .swiper-slide {
  width: 100px !important;
height: 80px !important;
  opacity: 0.4;
  cursor: pointer;
}

.swiper.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}

.swiper.mySwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
  color: #007aff!important;
}

@media (max-width: 768px) {
  .p-works_inner {
    flex-direction: column;
    box-shadow: none;
    padding: 0px 10px 40px;
    margin: 30px auto 0;
  }

  .posts {
    margin-right: 0;
    width: 100%;
  }

  .posts .navnav {
    margin: 5rem 0 0;
  }

  .recent-posts {
    width: 100%;
    order: 1;
    margin-top: 20px;
    padding: 0;
  }

  .posts-content {
    width: 100%;
  }

  .posts-content img {
    max-width: 100%;
    height: auto;
  }

  .posts-works-nav {
    flex-direction: column;
  }

  .posts-works-nav .prev {
    transition: .2s ease-in-out;
  }

  .posts-works-nav .prev:hover {
    box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, .3);
    transition: .2s ease-in-out;
    -webkit-transform: translate(0px, -2px);
    -moz-transform: translate(0px, -2px);
    -ms-transform: translate(0px, -2px);
    -o-transform: translate(0px, -2px);
    transform: translate(0px, -2px);
  }

  .posts-works-nav li {
    width: 100%;
    margin-bottom: 10px;
  }

  .posts-works-nav img {
    width: 60px;
  }
  
  .wp-caption {
    width: 100% !important;
  }
  
  /* Swiperの基本スタイリング */
  .swiper.mySwiper2 {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: contain;
  }
}