@charset "UTF-8";

*{
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
html{
	font-size: 62.5%;
}
body{
	font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
	font-size: 1.6rem;/* 16px*/
	line-height: 2;
	background: #fef8f6;
	color: #313131;
	overflow-x: hidden;
}
a{
	text-decoration: none;
}
a:link, a:visited, a:active {
	color: #313131;
}
.wrapper{
	position: static;
	width: 100%;
	height: auto;
	padding: 20px 0 80px 0;
}
.contents{
	width: 88%;
	text-align: left;
	margin: 0 auto;
}
.contents_2 {
	width: 88%;
	text-align: left;
	margin: 0 auto;
}

/*header*/

/*nav*/

nav {
	font-family: 'Josefin Sans', sans-serif;
	position: fixed;
	z-index: 2;
}
.nav {
	position: fixed;
	z-index: 2;
	right: 30px;
	top: 30px;
	font-size: 2.0rem;
	font-weight: bold;
	letter-spacing: 0.3rem;
	line-height: 1.2;
}
.nav a {
	color:#fff;
	display: inline-block;
	position: relative;
	text-decoration: none;
	overflow: hidden;
}
.nav a:after {
	position: absolute;
	z-index: -1;
	bottom: 0;
	left: 0;
	content: "";
	width: 100%;
	height: 1px;
	background: #fff;
	transform: scale(0, 1);
	transform-origin: right top;
	transition: transform .3s;
}
.nav a:hover:after {
	transform-origin: left top;
	transform: scale(1, 1);
}
.nav a:visited {
	color: #fff;
}
.nav-content {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
}
.nav-list {
	animation: nav-list 0.3s ease-out both;
}
.nav-content li:nth-child(1) {
	animation-delay: 2.6s;
}
.nav-content li:nth-child(3) {
	animation-delay: 2.5s;
}
.nav-content li:nth-child(5) {
	animation-delay: 2.4s;
}
.nav-content li:nth-child(7) {
	animation-delay: 2.3s;
}
@keyframes nav-list {
	0% {
		transform: translateX(30px);
		opacity: 0;
	}
	50% {
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 100%;
	}
}
.nav-line {
	display: block;
	height: 1px;
	background: #fff;
	margin: 14px 10px 0 8px;
	animation-name: nav-line;
	animation-duration: 0.2s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}
.nav-line:nth-child(2) {
	animation-delay: 2.3s;
}
.nav-line:nth-child(4) {
	animation-delay: 2.2s;
}
.nav-line:nth-child(6) {
	animation-delay: 2.1s;
}
@keyframes nav-line {
	0% {
		width: 0px;
	}
	100% {
		width: 12px;
	}
}
.nav.colorchange a ,.nav.colorchange a:visited {
	color: #313131;
	transition: all 0.65s;
}
.nav.colorchange a:after ,.nav.colorchange .nav-line {
	background: #313131;
}
.nav .nav-list-current {
	border-bottom: 1px solid #313131;
}
.nav .nav-list-current:after {
	height: 0;
}

/*nav-sp*/

.nav-sp{
	display:none;
}
.nav-sp a {
	color: #313131;
}
.nav-sp a:visited {
	color: #313131;
}
.nav-sp-icon {
	height: 30px;
	width: 30px;
	position: fixed;
	z-index: 2;
	right: 30px;
	top: 30px;
	cursor: pointer;
}
.nav-sp-icon-line {
	height: 2px;
	width: 30px;
	display: block;
	background: #fff;
	margin-bottom: 4px;;
	transition: transform .2s ease, background-color .5s ease;
}
.nav-sp-icon-line-left {
	width: 15px;
}
.nav-sp-icon-line-right {
	width: 15px;
	float: right;
}
.nav-sp-box:before, .nav-sp-box:after {
	content: "";
	position: fixed;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	transition: transform cubic-bezier(0.77, 0, 0.175, 1) 0.8s;
	transform: translateX(0%) translateY(-100%);
}
.nav-sp-box:after {
	background: #fff;
	transition-delay: 0s;
}
.nav-sp-box:before {
	transition-delay: .1s;
}
.nav-sp-content {
	position: fixed;
	top: 50%;
	transform: translate(0%, -50%);
	width: 100%;
	text-align: center;
	font-size: 3.5rem;
	line-height: 1.3;
	font-weight: 600;
	visibility: hidden;
}
.nav-sp-list {
	position: relative;
	display: inline-block;
	transition-delay: 0.8s;
	opacity: 0;
	transform: translate(0%, 100%);
	transition: opacity .2s ease, transform .3s ease;
	margin: 0 20px;
}
.nav-sp-list:before {
	content: "";
	position: absolute;
	background: #313131;
	width: 20px;
	height: 1px;
	top: 100%;
	transform: translate(0%, 0%);
	transition: all .3s ease;
	z-index: -1;
}
.nav-sp-list:hover:before {
	width: 100%;
}
body.nav-active .nav-sp-content{
	visibility:visible;
}
body.nav-active .nav-sp-icon-line {
	background-color: #a0a0a0;
	transform: translateX(0px) rotate(-45deg);
}
body.nav-active .nav-sp-icon-line-left {
	transform: translateX(1px) rotate(45deg);
}
body.nav-active .nav-sp-icon-line-right {
	transform: translateX(-2px) rotate(45deg);
}
body.nav-active .nav-sp-box {
	visibility: visible;
}
body.nav-active .nav-sp-box:before, body.nav-active .nav-sp-box:after {
	transform: translateX(0%) translateY(0%);
}
body.nav-active .nav-sp-box:after {
	transition-delay: .1s;
}
body.nav-active .nav-sp-box:before {
	transition-delay: 0s;
}
body.nav-active .nav-sp-list {
	opacity: 1;
	transform: translateX(0%);
	transition: opacity .3s ease, transform .3s ease, color .3s ease;
}
body.nav-active .nav-sp-list:nth-child(0) {
	transition-delay: 0.5s;
}
body.nav-active .nav-sp-list:nth-child(1) {
	transition-delay: 0.6s;
}
body.nav-active .nav-sp-list:nth-child(2) {
	transition-delay: 0.7s;
}
body.nav-active .nav-sp-list:nth-child(3) {
	transition-delay: 0.8s;
}
body.nav-active .nav-sp-list:nth-child(4) {
	transition-delay: 0.9s;
}
.nav-sp-icon-line.sp-colorchange {
	background:#313131;
}

/* sub-page-nav */
.sub-page .nav a, .sub-page .nav a:visited {
	color: #313131;
}
.sub-page .nav a:after, .sub-page .nav-line ,.sub-page .nav-sp-icon-line {
	background: #313131;
}
.sub-page .nav-content li:nth-child(1) {
	animation-delay: 1.1s;
}
.sub-page .nav-content li:nth-child(3) {
	animation-delay: 1.0s;
}
.sub-page .nav-content li:nth-child(5) {
	animation-delay: 0.9s;
}
.sub-page .nav-content li:nth-child(7) {
	animation-delay: 0.8s;
}
.sub-page .nav-line:nth-child(2) {
	animation-delay: 0.8s;
}
.sub-page .nav-line:nth-child(4) {
	animation-delay: 0.7s;
}
.sub-page .nav-line:nth-child(6) {
	animation-delay: 0.6s;
}

/* footer */

footer{
	background: #6c6c6c;
	color: #fff;
	font-size: 13px;
	padding: 7px 0;
	text-align: center;
}

/* all works page */
.works-main-img img {
	width: 100%;
	margin: 100px 0 2% 0;
	padding: 0 2px;
}
#all-works h1{
	font-size: 45px;/* IE8以下とAndroid4.3以下用フォールバック */
	font-size: calc(4.5rem + ((1vw - 0.897rem) * 2.6109));/* 45px~55px 897px~1280px で可変 -----*/
	color: #313131;
	line-height: 1;
	margin-bottom: 20px;
	text-align: right;

}
.cate-list {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
}
.cate-list a{
	cursor: pointer;
	font-size: 2.2rem;
	position: relative;
	white-space: nowrap;
}
.cate-list a::before,
.cate-list a::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #313131;
    top: 100%;
    left: 0;
    pointer-events: none;
}
.cate-list a::before {
    content: '';
}
.cate-list a {
    padding: 0 10px;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 1px;
    text-indent: 1px;
}
.cate-list a::before {
    top: 50%;
    height: 1px;
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s cubic-bezier(0.4, 1, 0.8, 1);
}
.cate-list a:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}
.cate-list a span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 1, 0.8, 1);
}
.cate-list a:hover span {
    transform: scale3d(1.1, 1.1, 1.1);
}
.cate-list .current-cat a::before {
	transform: none;
}

/*works page*/

.works-content {
	padding-bottom: 0;
}
.works-content h1 {
	font-size: 5.0rem;
}
.works-content .contents {
	margin-top: 100px;
}
.works-content .works-info {
	display: flex;
   flex-wrap: wrap;
}
.works-content .works-info .works-time {
	margin-right: 40px;
}
.works-content .works-tags {
	margin-bottom: 30px;
}
.works-content .works-all-link {
	margin-bottom: 40px;
	animation: all-works 0.3s ease-out both;
	display: inline-flex;
}
@keyframes all-works {
	0% {
		transform: translateX(30px);
		opacity: 0;
	}
	50% {
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 100%;
	}
}
.works-content .works-all-link a {
	position: relative;
	cursor: pointer;
}
.works-content .works-all-link a {
	color: #313131;
	display: inline-block;
	position: relative;
	text-decoration: none;
	overflow: hidden;
}
.works-content .works-all-link a:after {
	position: absolute;
	z-index: -1;
	bottom: 0;
	left: 0;
	content: "";
	width: 100%;
	height: 1px;
	background: #313131;
	transform: scale(0, 1);
	transform-origin: left top;
	transition: transform .3s;
}
.works-content .works-all-link a:hover:after {
	transform-origin: right top;
	transform: scale(1, 1);
}
.works-content .works-all-link a:visited {
	color: #313131;
}
.works-content .works-link-line {
	display: block;
	height: 1px;
	width: 30px;
	background: #313131;
	margin: 16px 10px 0 8px;
}

/*wp works contribution*/

/*.works-contribution .wrapper {
	padding: 0;
}
.works-contribution .cont-text {
	margin-bottom: 50px;
}
.works-contribution .cont-img {
	position: static;
	width: 100%;
	height: auto;
	margin: 50px auto 0 auto;
	padding: 64px 0 100px 0;
	background: #e3e3e3;
}
.works-contribution .cont-pc-img li {
	margin-bottom: 50px;
}
.works-contribution .cont-pc-img img {
	width: 100%;
}
.works-contribution .cont-sp-img {
	display: flex;
	flex-wrap: wrap;
}
.works-contribution .cont-sp-img li {
	width: 250px;
}
.works-contribution .cont-sp-img li:nth-child(3n-1), .works-contribution .cont-sp-img li:nth-child(3n) {
	margin-left: calc(50% - 375px);
}
.works-contribution .cont-sp-img img {
	width: 100%;
}*/

/*single_img*/

.single_img_wrap {
	margin-bottom: 120px;
	width: 100%;
}
.single_img_box1 ,.single_img_box2 ,.single_img_box1 li ,.single_img_box1 li img ,.single_img_box2 li img {
	width: 100%;
}
.single_img_box1 {
	margin-bottom: 20px;
}
.single_img_box1 li {
	margin-bottom: 10px;
}
.single_img_box2 {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.single_img_box2 li {
	width: 30%;
}
.single_img_box2 li:nth-child(3n-1), .single_img_box2 li:nth-child(3n) {
	margin-left: 5%;
}


/*404error-page*/

.error-content .contents {
	margin-top: 100px;
	text-align: center;
	padding: 0 30px;
}
.error-content h1{
	font-size: 4.6rem;
}

/*responsive*/

@media screen and (min-width: 1280px){
	#all-works h1{
		font-size: 5.5rem;
	}
	/*.works-contribution .cont-sp-img li {
		width: 300px;
	}
	.works-contribution .cont-sp-img li:nth-child(3n-1), .works-contribution .cont-sp-img li:nth-child(3n) {
		margin-left: calc(50% - 451px);
	}*/
}
@media screen and (max-width: 896px) {
	.nav {
		display: none;
	}
	.nav-sp{
		display: block;
	}
	#all-works h1{
		font-size: 4.5rem;
	}
	.works-contribution .cont-sp-img {
		display: block;
		flex-wrap: nowrap;
	}
	.works-contribution .cont-sp-img li:nth-child(3n-1), .works-contribution .cont-sp-img li:nth-child(3n) {
		margin: 0 auto 20px auto;
	}
	.works-contribution .cont-sp-img li {
		margin: 0 auto 20px auto;
	}
}
@media screen and (max-width: 480px) {
	.nav-sp-list {
		margin:50px auto;
		display: table;
	}
	#all-works h1{
		font-size: 6.0rem;
	}
}

/*dark-mode*/

:root {
	--black-white: #313131;
	--gray-white: #a0a0a0;
	--white-black: #fff;
}
@media (prefers-color-scheme: dark) {
	:root {
		--black-white: #fff;
		--gray-white: #fff;
		--white-black: #313131;
	}
}
