@charset "utf-8";

@import url("reset.css");
@import url('//fonts.googleapis.com/css?family=Sawarabi+Gothic&display=swap');

/*===========================================
	Base
===========================================*/

:root {
	--green: #49b17c;
	--darkgreen: #006837;
	--lightgreen: #e3fff2;
}

::selection {
	background-color: var(--green);
}
a::selection {
	color: #FFFFFF;
}

html {
	width: 100%;
	font-size: 62.5%;
}

body {
	position: relative;
	width: 100%;
	height: 100%;
	color: #222222;
	font-size: 1.6rem;
	font-family: 'Sawarabi Gothic', sans-serif;
	line-height: 1.8;
	z-index: 1;
	background: url(/assets/images/back_right.png) top right no-repeat;
	background-size: 80%;
	background-attachment: fixed;
}
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color:#FFFFFF;
	z-index: 9999;
	pointer-events: none;
	opacity: 0;
	transition: opacity .5s ease;
}
body.fadeout::before {
	opacity: 1;
}

body::after {
	content: "";
	width: 100%;
	height: 100%;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: -1;
	background: url(/assets/images/back_left.png) bottom left no-repeat;
	background-size: 80%;
}

img {
	max-width: 100%;
}

a {
	display: block;
	transition: 0.3s;
}

.inner {
	position: relative;
	max-width: 1120px;
	padding: 0 24px;
	margin: 0 auto;
}

@media screen and (min-width: 769px) {

	.is_sp {
		display: none;
	}
	a:hover {
		transform: scale(1.1);
	}

}

@media screen and (max-width: 768px) {

	.is_pc {
		display: none;
	}
	.inner {
		padding: 0 8px;
	}

	body,
	body::before {
		background-size: 100%;
	}

}

/*===========================================
	header
===========================================*/

header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	padding: 16px 0;
	background: rgb(255,255,255);
	background: linear-gradient(0deg, rgba(255,255,255,0) 5%, rgba(255,255,255,0.4) 35%, rgba(255,255,255,0.8) 100%);
}

header h1 {
	width: 38.3%;
	min-width: 240px;
	transition: 0.3s;
}
header h1.mini {
	width: 25%;
}

header .navbtn {
	display: none;
	position: absolute;
	width: 56px;
	top: 8px;
	right: 24px;
	text-align: center;
	cursor: pointer;
	transition: 0.3s;
}
header .navbtn span {
	display: block;
	width: 100%;
	height: 3px;
	background: #222222;
	transition: 0.3s;
}
header .navbtn span:nth-child(2) {
	margin-top: 16px;
	background: var(--green);
}
header .navbtn span:nth-child(3) {
	margin-top: 16px;
}
header .navbtn p {
	font-weight: bold;
	letter-spacing: 0.2em;
	margin-top: 5px;
}
header .navbtn.open span:nth-child(1) {
	transform: rotate(35deg) translate(12px, 16px);
}
header .navbtn.open span:nth-child(2) {
	opacity: 0;
}
header .navbtn.open span:nth-child(3) {
	transform: rotate(145deg) translate(-10px, 15px)
}

header nav {
	width: 61.7%;
	position: absolute;
	top: 8px;
	right: 0;
	z-index: 10;
	padding-right: 24px;
}
header nav ul {
	display: flex;
	justify-content: flex-end;
}
header nav ul li {
	margin-left: 40px;
	text-align: center;
}
header nav ul li.pre a {
	pointer-events: none;
	color: #CCCCCC;
}
header nav ul li.pre span:first-child::first-letter {
	color: #CCCCCC;
}
header nav ul li span:first-child {
	display: block;
	font-size: 1.2em;
	font-weight: bold;
	line-height: 1;
	letter-spacing: 0.1em;
}
header nav ul li span:nth-child(2) {
	font-size: 0.8em;
}
header nav ul li span:first-child::first-letter {
	font-size: 1.2em;
	color: var(--green);
}

@media screen and (min-width: 769px) {

	header .navbtn:hover {
		transform: scale(1.1);
	}

}

@media screen and (max-width: 1024px) {

	header h1 {
        width: 61.7%;
		max-width: 320px;
		min-width: 220px;
	}
	header .navbtn {
		display: block;
	}
	header nav {
		display: none;
		position: absolute;
		top: 88px;
		right: 16px;
		z-index: 10;
	}
	header nav ul {
		display: block;
		text-align: right;
	}
	header nav ul li {
		margin: 8px -100% 16px 0;
		text-align: right;
	}
	header nav ul li a {
		display: inline-block;
		padding: 8px 16px 8px 24px;
		background: rgba(255,255,255,0.7);
		box-shadow: 1px 1px 2px var(--darkgreen);
	}
	header nav ul li span:first-child {
		display: inline-block;
	}
	header nav ul li span:nth-child(2) {
		font-size: 1.0em;
	    font-weight: bold;
		margin-left: 3px;
	}

	header .navbtn.open + nav {
		display: block;
		padding-right: 0;
	}
	header .navbtn.open + nav ul li {
		animation-name: SlideInAnime;
		animation-duration: 0.3s;
		animation-fill-mode: forwards;
	}
	header .navbtn.open + nav ul li:nth-child(2) {
		animation-delay: 0.1s;
	}
	header .navbtn.open + nav ul li:nth-child(3) {
		animation-delay: 0.2s;
	}
	header .navbtn.open + nav ul li:nth-child(4) {
		animation-delay: 0.3s;
	}
	header .navbtn.open + nav ul li:nth-child(5) {
		animation-delay: 0.4s;
	}
	
	@keyframes SlideInAnime{
		from {
			margin-right: -100%;
		}
		to {
			margin-right: 0;
		}
	}

}

@media screen and (max-width: 768px) {

	header {
		padding-top: 8px;
	}
	header .navbtn {
		right: 8px;
	}
	header nav {
		width: auto;
		right: 8px;
	}

}

/*===========================================
	footer
===========================================*/

footer {
	position: fixed;
	right: 0;
	bottom: 0;
	width: 38.3%;
	max-width: 480px;
	text-align: right;
	z-index: 1;
}
footer small {
	position: fixed;
	bottom: 16px;
	right: 32px;
	font-size: 100%;
	color: var(--lightgreen);
	text-shadow: 1px 1px 0px var(--darkgreen);
}

@media screen and (max-width: 768px) {

	footer {
		width: 61.7%;
	}

}

/*===========================================
	main
===========================================*/

main {
	min-height: 100%;
	position: relative;
	padding-top: 160px;
	padding-bottom: 120px;
}
main .inner {
	padding: 16px 32px;
}
main p {
	margin-bottom: 1.6rem;
}
main a {
	display: inline-block;
	color: var(--green);
	font-weight: bold;
	margin: 0 8px;
}

h2 {
	font-size: 3.2rem;
	text-shadow: 1px 1px 1px var(--green);
	border-bottom: 1px solid var(--green);
	margin-bottom: 24px;
}
h2 span {
	font-size: 2.4rem;
	margin-left: 0.5em;
}

h3 {
	font-size: 2.4rem;
	font-weight: bold;
	color: var(--darkgreen);
	text-shadow: 1px 1px 2px #FFFFFF;
	margin-bottom: 0.5em;
}
h3 span {
	padding: 0 0.5em 0.1em;
    position: relative;
	z-index: 1;
	background: linear-gradient(0deg, rgba(73,177,124,1) 0%, rgba(73,177,124,1) 40%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
	border-bottom: 1px solid #FFFFFF;
}
h3 span::before {
	content: "";
	position: absolute;
    z-index: -1;
    left: -15px;
    bottom: -15px;
    border: 15px solid transparent;
    border-right: 15px solid var(--green);
}

h4 {
	font-weight: bold;
	color: var(--darkgreen);
	position: relative;
	padding-left: 18px;
	margin-bottom: 0.5em;
}
h4::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	background: var(--darkgreen);
	border-radius: 50%;
}

@media screen and (max-width: 768px) {

	main {
		padding-top: 104px;
	}
	main .inner {
		padding: 8px 16px;
	}

	h2 {
		font-size: 2.4rem;
		margin-bottom: 16px;
	}
	h2 span {
		font-size: 1.6rem;
	}
	h3 {
		font-size: 2.0rem;
	}

}

/*===========================================
	index
===========================================*/

#index main .news ul {
	width: 80%;
	height: 194px;
	padding: 0 8px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--green) #ffffff00;
}
#index main .news ul li {
	padding: 8px 0px;
	border-bottom: 1px dotted var(--green);
	margin: 8px 0 16px;
}
#index main .news ul li time {
	display: inline-block;
	width: 8em;
}

@media screen and (max-width: 768px) {

	#index main {
		padding-top: 120px;
	}
	#index main .news ul {
		width: auto;
		height: 240px;
		padding: 0;
	}
	#index main .news ul li {
		padding: 8px 4px 0;
	}
	#index main .news ul li time {
		display: block;
		line-height: 1.4;
	}

}

/*===========================================
	Profile
===========================================*/

#profile main .basic,
#profile main .skill {
	margin-bottom: 40px;
}
#profile main .basic .box,
#profile main .skill .box {
	padding: 1em;
}
#profile main .basic .box p,
#profile main .skill .box p {
	margin-left: 1em;
}
#profile main .biography .box {
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--green) #ffffff00;
}
#profile main .chronology {
	width: 1050px;
	display: flex;
    align-items: center;
	justify-content: space-around;
	padding: 60px 0 30px 1em;
	margin-left: -40px;
}
#profile main .chronology .yearbox {
	position: relative;
	width: 20px;
	height: 20px;
    background: var(--green);
	border-radius: 50%;
	display: block;
	cursor: pointer;
}
#profile main .chronology .yearbox:not(:first-child)::before {
	content: "";
	display: block;
	position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -42px;
	width: 42px;
	height: 5px;
    background: var(--green);
}
#profile main .chronology .yearbox::after {
	content: "";
	display: block;
	position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -42px;
	width: 42px;
	height: 5px;
    background: var(--green);
}
#profile main .chronology .yearbox span {
    width: max-content;
	position: absolute;
    top: -100%;
    font-size: 0.9em;
	color: #999999;
    transform: rotate(-45deg) translate(15px, -10px);
}
#profile main .chronology .yearbox.active span {
	color: #222222;
    font-weight: bold;
}
#profile main .chronology .yearbox.active,
#profile main .chronology .yearbox.active::after,
#profile main .chronology .yearbox.active ~ .yearbox,
#profile main .chronology .yearbox.active ~ .yearbox::after,
#profile main .chronology .yearbox.active ~ .yearbox::before {
    background: var(--darkgreen);
}
#profile main .overview {
	padding-right: 2em;
    margin: 2em 3em 0;
}
#profile main .overview div {
	display: none;
	min-height: 250px;
}
#profile main .overview div.active {
	display: block;
}
#profile main .overview div p {
	margin-left: 1em;
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {

	#profile main .chronology {
		margin-left: -50px;
	}
	#profile main .overview {
		padding-right: 0em;
		margin: 20px 1em 0;
	}

}


/*===========================================
	Contact
===========================================*/

form dl dt label {
	display: inline-block;
	padding: 3px 10px 0px 15px;
	border-bottom: 2px dotted var(--green);
	position: relative;
}
form dl dt label::before {
	content: "";
	background-color: var(--green);
	width: 10px;
	height: 10px;
	border-radius: 2px;
	position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
}
form dl dd {
	margin: 0.5em 0 1.5em;
}
form dl dd p {
	margin-bottom: 0;
}
form dl dd input:not([type="checkbox"]) {
	width: 400px;
	background-color: var(--lightgreen);
	padding: 3px 10px;
	border-radius: 3px;
}
form dl dd .reply {
	display: flex;
	margin-top: 3px;
}
form dl dd input[type="checkbox"] {
	margin-left: 2px;
	margin-right: 4px;
	accent-color: var(--darkgreen);
}
form dl dd input:disabled {
	background-color: #CCCCCC;
}
form dl dd .error {
	color: #a52626;
	display: none;
}
form dl dd .error.show {
	display: block;
}
form dl dd textarea {
	width: 600px;
	height: 10em;
	background-color: var(--lightgreen);
	padding: 3px 10px;
	border-radius: 3px;
}
.primary-btn {
	background: var(--green);
	color: #FFFFFF;
	padding: 6px 20px 5px;
	border-radius: 3px;
	border: 1px solid var(--green);
	transition: 0.3s;
}
.secondary-btn {
	background: #CCCCCC;
	padding: 6px 20px 5px;
	border-radius: 3px;
	border: 1px solid #CCCCCC;
	transition: 0.3s;
}

.modal-wrap {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .5);
	overflow: auto;
	display: none;
}
.modal-wrap.show {
	display: grid;
	grid-template-columns: 1em 1fr auto 1fr 1em;
	grid-template-rows:  1em 1fr auto 1fr 1em;
}
.modal-body {
	grid-column: 2 / 5;
	grid-row: 3;
	justify-self: center;
	width: 100%;
	max-width: 1000px;
	background-color: #fff;
	padding: 2em 2em 3em;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, .1);
}
.modal-body .form-item {
	margin-top: 2em;
}
.modal-body .form-item dt span {
	font-weight: bold;
	display: inline-block;
    padding: 3px 10px 0px 15px;
    border-bottom: 2px dotted var(--green);
    position: relative;
}
.modal-body .form-item dt span::before {
	content: "";
    background-color: var(--green);
    width: 10px;
    height: 10px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
}
.modal-body .form-item dd {
	margin: 0.5em 0 1em;
	background-color: var(--lightgreen);
    padding: 3px 10px;
    border-radius: 3px;
}
.modal-body > p {
	text-align: center;
}
.modal-body .btn-wrap {
	text-align: center;
	margin-top: 0.5em;
}
.modal-body .btn-wrap button {
	margin: 0 0.5em;
}

@media screen and (min-width: 769px) {

	.primary-btn:hover {
		transform: scale(1.1);
		background: #FFFFFF;
		color: var(--darkgreen);
		border: 1px solid var(--darkgreen);
	}
	.secondary-btn:hover {
		transform: scale(1.1);
		background: #FFFFFF;
		border: 1px solid #333333;
	}

}

@media screen and (max-width: 768px) {

	form dl dd input:not([type="checkbox"]),
	form dl dd textarea {
		width: 100%;
	}


}


/*===========================================
	Blog
===========================================*/

#blog main #post {
	display: flex;
    justify-content: space-between;
	position: relative;
	z-index: 1;
}
#blog main #post .article {
	width: 77%;
}
#blog main #post .article dl {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 0px 3px #CCC;
    padding: 10px 15px;
	margin-bottom: 2em;
}
#blog main #post .article dt {
    position: relative;
	font-size: 1.2em;
	font-weight: normal;
	padding: 3px 0 2px 18px;
    border-bottom: 2px dotted var(--green);
}
#blog main #post .article dt::before,
#blog main #post .side .index p::before {
	content: "";
    background-color: var(--green);
    width: 10px;
    height: 10px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 52%;
    transform: translateY(-50%);
}
#blog main #post .article dd {
	padding: 5px 10px 10px 18px;
}
#blog main #post .article dd p.info {
	font-size: 0.9em;
    color: var(--darkgreen);
}
#blog main #post .article dd p.info span {
	display: inline-block;
	margin: 0 5px;
}
#blog main #post .article dd img {
	width: 50%;
	display: inline-block;
	margin: 5px 0;
}
#blog main #post .article dd code {
    display: inline-block;
    width: 100%;
	background: var(--lightgreen);
    padding: 15px 10px;
	margin: 0.8em 0 1em;
}

#blog main #post .side {
	width: 20%;
}
#blog main #post .side .index,
#blog main #post .side .instagram {
	background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 0px 3px #CCC;
    padding: 10px 15px;
	margin-bottom: 1em;
}
#blog main #post .side .index p {
    position: relative;
	border-bottom: 2px dotted var(--green);
	padding-left: 1em;
	margin-bottom: 0.5em;
}
#blog main #post .side .instagram a {
	display: flex;
	font-weight: normal;
    color: #222222;
    margin: 0;
}
#blog main #post .side .instagram a img {
	width: 1em;
    margin-right: 5px;
}
#blog main #post .side .instagram span {
    display: block;
	font-size: 0.8em;
    line-height: 1.5;
    margin-top: 5px;
}
#blog main #post .pager span.current {
	display: inline-flex;
    width: 2em;
    height: 2em;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--darkgreen);
    color: var(--darkgreen);
	margin: 0 5px 0 0;
}
#blog main #post .pager span a {
	display: inline-flex;
    width: 2em;
    height: 2em;
    align-items: center;
    justify-content: center;
	color: #FFFFFF;
	background: var(--green);
    border: 1px solid var(--green);
	margin: 0 5px 0 0;
}

#blog main #instagram-feed {
	position: fixed;
    bottom: 50%;
    right: 15%;
}
#blog main #instagram-feed div {
	width: 14%;
	max-width: 200px;
	border: 5px solid #FFFFFF;
    box-shadow: 0px 0px 2px #999;
    margin: 3px;
	position: fixed;
}
#blog main #instagram-feed div:nth-child(1){
    bottom: 1vw;
    right: 35%;
    transform: rotate(10deg);
    z-index: 1;
}
#blog main #instagram-feed div:nth-child(2){
	bottom: 6vw;
    right: 15%;
    transform: rotate(-15deg);
	z-index: 2;
}
#blog main #instagram-feed div:nth-child(3){
    bottom: 10vw;
    right: 2%;
    transform: rotate(20deg);
	z-index: 3;
}

@media screen and (max-width: 768px) {

	#blog main #post {
		display: block;
	}
	#blog main #post .article,
	#blog main #post .side {
		width: 100%;
		margin-bottom: 2em;
	}
	#blog main #post .article dl {
		margin-bottom: 1em;
	}

	#blog main #instagram-feed div {
		width: 25%;
	}
	#blog main #instagram-feed div:nth-child(1){
		bottom: 3vw;
		right: 50%;
		transform: rotate(15deg);
	}
	#blog main #instagram-feed div:nth-child(2){
		bottom: -2.5vw;
	    right: 75%;
	}
	#blog main #instagram-feed div:nth-child(3){
		bottom: 14vw;
		right: -2%;
		transform: rotate(10deg);
	}

}

#blog main.admin input,
#blog main.admin select,
#blog main.admin textarea {
    background-color: var(--lightgreen);
    padding: 4px 10px;
    border-radius: 3px;
}
#blog main.admin p.checkbox {
	display: flex;
	align-items: center;
}
#blog main.admin p.checkbox input {
	width: 1em;
	height: 1em;
	margin-right: 5px;
}
#blog main.admin p.number input {
	width: 50px;
	border: 1px solid var(--green);
	margin-right: 10px;
}
#blog main.admin button {
	background: var(--green);
    color: #FFFFFF;
    padding: 4px 15px 3px;
    border-radius: 3px;
    border: 1px solid var(--green);
    transition: 0.3s;
}
#blog main.admin input#title {
	width: 70%;
}
#blog main.admin textarea {
	width: 75%;
	height: 300px;
}
#blog main.admin form div {
	margin: 20px 0;
}
#blog main.admin form div p {
	margin-bottom: 10px;
}
#blog main.admin form div p span {
	display: inline-block;
	padding: 3px 10px 0px 15px;
	border-bottom: 2px dotted var(--green);
	position: relative;
}
#blog main.admin form div p span::before {
	content: "";
    background-color: var(--green);
    width: 10px;
    height: 10px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
}


/*===========================================
	Story
===========================================*/

#story p.note {
	font-size: 0.8em;
	line-height: 1.4;
    text-indent: -1.2em;
    margin-left: 1.2em;
    margin-bottom: 3.2rem;
}
#story .synopsis {
	margin: 1em 2em;
}
#story .synopsis ul li a {
	font-size: 1.2em;
}
