/* 事例紹介
=========================================================================
========================================================================*/
#works main {
	padding-top: 154px;
	text-align: center;
}

#works main h1 {
	overflow: hidden;
	margin-bottom: 43px;
	height: 25px;
	text-align: left;
	text-indent: 100%;
	white-space: nowrap;
	background: url(../img/works/title.svg) center center no-repeat;
	background-size: contain;
}

/* ----- カテゴリーナビ ----- */
#works main ul.category {
	display: inline-block;
	display: flex;
	justify-content: center;
	margin-bottom: 60px;
}

#works main ul.category li {
	padding: 0 1.5em;
}

#works main ul.category li a {
	position: relative;
	display: inline-block;
	color: #333;
	text-decoration: none;
}

#works main ul.category li a:visited,
#works main ul.category li a:hover {
	color: #333;
}

#works main ul.category li a::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 4px;
	background: #B5D2E2;
	transform: scale(0, 1);
	transition: 0.4s;
}

#works main ul.category li a:hover::before {
	transform: scale(1);
}

#works main ul.category li.current-cat a::before {
	transform: scale(1);
}

/* リスト
------------------------------------------------------- */
#works main .list {
	position: relative;
	margin: 0 auto 36px;
	width: 930px;
	text-align: left;
}

#works main .list ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#works main .list ul::before {
	content: "";
	display: block;
	width: calc(216 / 930 * 100%);
	order: 1;
}

#works main .list ul::after {
	content: "";
	display: block;
	width: calc(216 / 930 * 100%);
}

#works main .list ul li {
	margin-bottom: 59px;
	width: calc(216 / 930 * 100%);
}

#works main .list ul li div {
	position: relative;
	overflow: hidden;
	margin-bottom: 10px;
	width: 100%;
	padding-top: 75%;
}

#works main .list ul li div img {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	width: auto;
	height: 100%;
	transition-duration: 0.3s;
}

#works main .list ul li a:hover img {
	transform: translate(-50%, -50%) scale(1.025, 1.025);
	opacity: .8;
}

#works main .list ul li a,
#works main .list ul li a:visited {
	font-size: 1.4rem;
	line-height: 1.53em;
	color: #333;
	text-decoration: none;
}

#works main .list ul li a:hover {
	color: #333;
	text-decoration: underline;
}

/* ページャー
------------------------------------------------------- */
.pagination {
	margin: 0 auto 88px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	line-height: 39px;
	text-align: center;
}

.pagination .page-numbers {
	margin: 0 5px;
}

.pagination .current {
	display: block;
	width: 39px;
	height: 39px;
	text-decoration: none;
	border: 1px solid #DEDEDE;
	color: #FFF;
	background-color: #898989;
}

.pagination a,
.pagination a:visited {
	display: block;
	width: 39px;
	height: 39px;
	text-decoration: none;
	border: 1px solid #DEDEDE;
	color: #898989;
	transition: all 1s;
}

.pagination a.prev,
.pagination a.next {
	width: 97px;
}

.pagination a:hover {
	color: #FFF;
	background-color: #898989;
}

/* 投稿
------------------------------------------------------- */
#works main .custom {
	margin: 0 auto;
	padding: 70px 0 0;
	width: 1140px;
	text-align: left;
}

/* ----- メイン画像 ----- */
#works main .custom .main_photo {
	margin: 0 auto 28px;
}

/* ----- タイトル ----- */
#works main .custom .headline {
	margin: 0 auto 60px;
	width: 1140px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #6EA5C1;
}

#works main .custom .headline .title {
	padding: 0 30px;
	width: calc(576 / 960 *100%);
}

#works main .custom .headline .title p {
	margin-bottom: 10px;
	font-size: 1.6rem;
}

#works main .custom .headline .title h2 {
	font-weight: bold;
	font-size: 2.2rem;
	line-height: 1.54em;
	color: #FFF;
}

#works main .custom .headline .detail {
	padding: 30px;
	width: calc(384 / 960 *100%);
	background-color: #ECF2F5;
}

#works main .custom .headline .detail p {
	font-size: 1.6rem;
	line-height: 1.84em;
}

/* ----- 投稿内容 ----- */
#works main .post {
	margin: 0 auto 17px;
	width: 870px;
	text-align: left;
}

/* 投稿タイトル ----- */
#works main .post h2.post_title {
	margin: 0 auto 1em;
	width: 780px;
	font-weight: bold;
	font-size: 2.2rem;
	line-height: 1.5em;
}

/* ブロックエディター ----- */
/* 段落 */
#works main .post p {
	margin: 0 auto 60px;
	width: 780px;
}

/* 整形済みテキスト */
#works main .post pre {
	margin: 0 auto 60px;
	width: 780px;
	white-space: pre-wrap;
}

/* 投稿画像  */
#works main .post figure.wp-block-image {
	margin: 0 auto 60px;
}

/* 見出し */
#works main .post h1,
#works main .post h2,
#works main .post h3,
#works main .post h4,
#works main .post h5,
#works main .post h6,
#works main .post ul,
#works main .post ol {
	margin: 0 auto .5em;
	width: 780px;
	font-weight: bold;
}

#works main .post h1 {
	font-size: 2rem;
}

#works main .post h2 {
	font-size: 2rem;
}

#works main .post h3 {
	font-size: 1.8rem;
}

#works main .post h4 {
	font-size: 1.7rem;
}

#works main .post h5 {
	font-size: 1.6rem;
}

#works main .post h6 {
	font-size: 1.6rem;
}

/* リスト */
#works main .post ul {
	list-style: disc;
	margin-bottom: 60px;
	padding-left: 1.5em;
	font-weight: 300;
}

#works main .post ol {
	list-style: decimal;
	margin-bottom: 60px;
	padding-left: 1.5em;
	font-weight: 300;
}

/* テーブル */
#works main .post figure.wp-block-table {
	margin: 0 auto 60px;
	width: 780px;
}

#works main .post table {
	width: 100%;
}

#works main .post table,
#works main .post td,
#works main .post th {
	border-collapse: collapse;
	border: 1px solid #333;
}

#works main .post td,
#works main .post th {
	padding: .5em 1em;
}

/* Youtube */
#works main .post .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}

#works main .post .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
}

/* キャプション */
#works main .post figcaption {
	font-size: 1.2rem;
	text-align: center;
}

/* ページャー
------------------------------------------------------- */
.post_pager {
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
	margin-bottom: 76px;
}

.post_pager div {
	overflow: hidden;
	text-align: left;
	text-indent: 100%;
	white-space: nowrap;
	width: 69px;
	height: 75px;
}

.post_pager div:nth-child(2) {
	margin: 0 35px;
}

.post_pager div a {
	position: relative;
	display: block;
	height: 100%;
	color: #FFF;
	transition: all .3s;
}

.post_pager div a::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	margin: 0 auto;
	width: 35px;
	height: 1px;
	background: #333;
	transform: scale(0, 1);
	transition: 0.4s;
	z-index: 2;
}

.post_pager div a:hover::before {
	transform: scale(1);
}

.post_pager div:nth-child(1) a {
	background: url(../img/common/button_prev.svg) center center no-repeat;
	background-size: contain;
}

.post_pager div:nth-child(2) a {
	background: url(../img/common/button_index.svg) center center no-repeat;
	background-size: contain;
}

.post_pager div:nth-child(3) a {
	background: url(../img/common/button_next.svg) center center no-repeat;
	background-size: contain;
}

/*  1180px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:1180px) {

	/* 投稿
	------------------------------------------------------- */
	#works main .custom {
		width: 100%;
	}
}

/*  1000px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:1000px) {

	/* 投稿
	------------------------------------------------------- */
	/* ----- タイトル ----- */
	#works main .custom .headline {
		width: 100%;
	}
}


/*  970px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:970px) {

	/* リスト
	------------------------------------------------------- */
	#works main .list {
		padding: 0 20px;
		width: 100%;
	}
}

/*  910px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:910px) {

	/* 投稿
	------------------------------------------------------- */
	/* ----- 投稿内容 ----- */
	#works main .post {
		padding: 0 20px;
		width: 100%;
	}
}

/*  820px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:820px) {

	/* ブロックエディター ----- */
	/* 段落 ----- */
	#works main .post p {
		width: 100%;
	}

	/* 整形済みテキスト ----- */
	#works main .post pre {
		width: 100%;
	}

	/* 見出し */
	#works main .post h1,
	#works main .post h2,
	#works main .post h3,
	#works main .post h4,
	#works main .post h5,
	#works main .post h6,
	#works main .post ul,
	#works main .post ol {
		width: 100%;
	}

	/* テーブル */
	#works main .post figure.wp-block-table {
		width: 100%;
	}
}

/*  767px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:767px) {
	#works main {
		padding-top: 96px;
	}

	#works main h1 {
		margin-bottom: 33px;
		height: 20px;
	}

	/* ----- カテゴリーナビ ----- */
	#works main ul.category {
		margin-bottom: 38px;
	}

	#works main ul.category li {
		padding: 0 .5em;
	}

	#works main ul.category li a {
		font-size: 1.3rem;
	}

	#works main ul.category li a::before {
		height: 2px;
	}

	/* リスト
	------------------------------------------------------- */
	#works main .list {
		margin: 0 auto 32px;
	}

	#works main .list ul li {
		margin-bottom: 38px;
		width: calc(162 / 335 * 100%);
	}

	#works main .list ul li div {
		margin-bottom: 5px;
	}

	#works main .list ul li a:hover img {
		transform: translate(-50%, -50%) scale(1, 1);
		opacity: 1;
	}

	#works main .list ul li a,
	#works main .list ul li a:visited {
		font-size: 1.3rem;
	}

	/* ページャー
	------------------------------------------------------- */
	.pagination {
		margin: 0 auto 84px;
		font-size: 1.1rem;
		line-height: 31px;
	}

	.pagination .page-numbers {
		margin: 0 4px;
	}

	.pagination .current {
		width: 31px;
		height: 31px;
	}

	.pagination a,
	.pagination a:visited {
		width: 31px;
		height: 31px;
	}

	.pagination a.prev,
	.pagination a.next {
		width: 49px;
	}

	.pagination a:hover {
		color: #898989;
		background-color: #FFF;
	}

	/* 投稿
	------------------------------------------------------- */
	#works main .custom {
		padding: 0 0 0;
	}

	/* ----- メイン画像 ----- */
	#works main .custom .main_photo {
		margin: 0 auto;
	}

	/* ----- タイトル ----- */
	#works main .custom .headline {
		margin: 0 auto 40px;
		flex-wrap: wrap;
	}

	#works main .custom .headline .title {
		padding: 22px 31px;
		width: 100%;
	}

	#works main .custom .headline .title p {
		margin-bottom: 0;
		font-size: 1.2rem;
	}

	#works main .custom .headline .title h2 {
		font-size: 1.8rem;
	}

	#works main .custom .headline .detail {
		padding: 22px 31px;
		width: 100%;
	}

	#works main .custom .headline .detail p {
		font-size: 1.2rem;
	}

	/* ----- 投稿内容 ----- */
	#works main .post {
		margin: 0 auto 10px;
	}

	/* ブロックエディター ----- */
	/* 段落 */
	#works main .post p {
		margin: 0 auto 40px;
	}

	/* 整形済みテキスト */
	#works main .post pre {
		margin: 0 auto 40px;
	}

	/* 投稿画像  */
	#works main .post figure.wp-block-image {
		margin: 0 auto 40px;
	}

	/* 見出し */
	#works main .post h1,
	#works main .post h2,
	#works main .post h3,
	#works main .post h4,
	#works main .post h5,
	#works main .post h6,
	#works main .post ul,
	#works main .post ol {
		margin: 0 auto .5em;
	}

	#works main .post h1 {
		font-size: 2rem;
	}

	#works main .post h2 {
		font-size: 1.8rem;
	}

	#works main .post h3 {
		font-size: 1.7rem;
	}

	#works main .post h4 {
		font-size: 1.6rem;
	}

	#works main .post h5 {
		font-size: 1.5rem;
	}

	#works main .post h6 {
		font-size: 1.4rem;
	}

	/* リスト */
	#works main .post ul {
		margin-bottom: 40px;
	}

	#works main .post ol {
		margin-bottom: 40px;
	}

	/* テーブル */
	#works main .post figure.wp-block-table {
		margin: 0 auto 40px;
	}

	/* ページャー
	------------------------------------------------------- */
	.post_pager {
		margin-bottom: 40px;
	}

	.post_pager div {
		height: 60px;
	}

	.post_pager div:nth-child(2) {
		margin: 0 20px;
	}

	.post_pager div a {
		position: relative;
		display: block;
		height: 100%;
		color: #FFF;
		transition: all .3s;
	}

	.post_pager div a::before {
		display: none;
	}

}

/*  480px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:480px) {}
