#content {
	max-width: 95vw;
	flex-wrap: nowrap;
	justify-content: space-around;
}
main {
	width: 70%;
}
aside {
	width: 30%;
}

.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 {
  margin: 30px auto;
  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: #F19133 !important;
}


.contact-form {
	margin-top: 5rem;
    background-color: #EEEEEE;
    box-shadow: 0px 0px 6px #d3d4c7 !important;
    width: 100%;
    padding: 2rem 7rem;
}
.contact-form h2 {
    position: relative !important;
    margin-bottom: 2rem !important;
    font-weight: normal;
	text-align: center;
    font-size: 3rem;
}
.contact-form h2::after {
    content: 'お問い合わせ';
    position: absolute !important;
    font-weight: normal;
    font-size: 1rem;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 0 1rem !important;
    margin: 0 !important;
}

.contact-form table {
    border-collapse: separate;
    border-spacing: 10px;
    border: none !important;
	width: 100%;
}
.contact-form table th,
.contact-form table td {
    border: none;
    background: unset;
    vertical-align: top;
}
.contact-form table th p {
	text-align: left;
}
.contact-form table td input,
.contact-form table td textarea {
    width: 100%;
}
.contact-form table td textarea {
    height: 100px;
}
.table-center {
    text-align: center;
    font-size: small;
}
.table-center.require p {
    background-color: #EFFF00;
    padding: .4rem .8rem;
	white-space: nowrap;
}
.table-center.unrequire p {
    background-color: #B4B4B4;
    padding: .4rem .8rem;
	white-space: nowrap;
}

.contact-submit {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem;
}
.contact-submit > p {
    position: relative;
    color: #353535;
    text-align: center;
    width: 350px;
    height: 55px;
    transition: all 1s ease;
}
.contact-submit > p::before {
    position: absolute;
    inset: 0;
    background-color: #EFFF00;
    content: '';
    z-index: 2;
    transform: translate(4px, 4px);
    transition: transform .5s ease;
}
.contact-submit > p::after {
    position: absolute;
    inset: 0;
    border: 1px solid #353535;
    content: '';
    z-index: 2;
}
.contact-submit-btn {
    position: relative;
    z-index: 5;
    border: 1px solid #000;
    background-color: initial;
    padding: 10px 20px;
    color: #333;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    height: 100%;
}
.contact-submit > p:hover::before {
    transform: translate(0, 0);
}


.news-container {
	margin-top: 5rem;
    background-color: #EEEEEE;
    box-shadow: 0px 0px 6px #d3d4c7 !important;
    width: 100%;
    padding: 2rem 7rem 3rem;
}
.news-container h2 {
    position: relative !important;
    margin-bottom: 2rem !important;
    font-weight: normal;
	text-align: center;
    font-size: 3rem;
}
.news-container h2::after {
	content: 'お知らせ';
	position: absolute !important;
	font-weight: normal;
	font-size: 1rem;
    bottom: -15%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 0 1rem !important;
	margin: 0 !important;
}

@media (max-width: 768px) {
	#content {
        max-width: 100vw;
    }
	main {
		width: 100%;
	}
	aside {
		width: 100%;
		margin-top: 1rem;
	}
  .p-works_inner {
    flex-direction: column;
    box-shadow: none;
    padding: 0px 0px 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;
  }
	
  .contact-form {
    padding: 1rem;
	margin-top: 2rem;
  }
  .table-center.require p,
  .table-center.unrequire p{
    padding: .2rem;
  }
	
  .news-container {
    padding: 1rem 1rem 2rem;
	margin-top: 2rem;
  }
}