@charset "utf-8";

/*-------------------------
* 共通設定
-------------------------*/

html {
	/* remの基準 */
	font-size: 10px;
	/* 色（関数の設定） */
	--black: #3B2D24;
	--brown: #A37759;
	--mint: #CAE8E3;
	--yellow: #FFFDDA;
	--lightyellow: #FFFCEA;
	--red: #F85E61;
	--pink: #FFDEDE;
	--white: #FFF7F7;
	/* フォント */
	font-family: "Kosugi Maru", sans-serif;
	font-weight: 400;
	font-style: normal;
	/* 回転時の文字サイズ変更off */
	-webkit-text-size-adjust: 100%;
}

body {
	font-size: 1.8rem;
	line-height: 3rem;
	color: var(--black);
}

a {
	display: block;
}

img {
	width: 100%;
	height: auto;

	object-fit: cover;
	object-position: center center;
}


/*-------------------------
* Topへ戻るボタン
-------------------------*/

.scrollTop {
	cursor: pointer;
	position: fixed;
	display: inline-block;
	right: 1rem;
	bottom: 0;
	opacity: 0.87;
}

/* position:fixedとrelativeを重ねて使えないので作った */
.scrollTop-bear {
	background-color: #642929;
	color: #FFDEDE;

	width: 6.7rem;
	height: 5.9rem;
	border-radius: 50%;
	line-height: 5.9rem;
	text-align: center;
	position: relative;
}

.scrollTop::before,
.scrollTop::after {
	content: "";
	background-color: #642929;
	width: 3.3rem;
	height: 3.3rem;
	border-radius: 50%;
	top: 0rem;
	position: absolute;
}

.scrollTop::before {
	left: -1rem;
}

.scrollTop::after {
	right: -1rem;
}

/*-------------------------
* menuボタン
-------------------------*/

.menu-btn {
	cursor: pointer;
	position: fixed;

	bottom: 0;
	left: 0;
	z-index: 5;
	width: 66px;
	height: 66px;
	background: url(../img/menu.svg) no-repeat center;
}

.menu-btn span {
	display: none;
}

.menu-btn span {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: var(--white);
	border-radius: 4px;
	color: var(--white);
}

/*----------------------------
* ★メニューボタンを押されたら
*----------------------------*/

.menu-btn.is-active span:nth-of-type(1) {
	display: block;
	transform: translateY(33px) rotate(45deg) scale(0.6);
}

.menu-btn.is-active span:nth-of-type(2) {
	display: block;
	transform: translateY(33px) rotate(-45deg) scale(0.6);
}

.menu-btn.is-active {
	background: var(--brown);
}

/*----------------------------
* menu画面
*----------------------------*/
.menu {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 4;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--brown);
	/* background: rgba(163, 119, 89, 0.9); */
	background-image: repeating-linear-gradient(transparent, transparent 7px, #CAE8E3 7px, #CAE8E3 11px, transparent 11px, transparent 14px, #CAE8E3 11px, #CAE8E3 29px, transparent 29px, transparent 32px, #CAE8E3 32px, #CAE8E3 36px, transparent 36px, transparent 57px), repeating-linear-gradient(90deg, transparent, transparent 7px, #CAE8E3 7px, #CAE8E3 11px, transparent 11px, transparent 14px, #CAE8E3 11px, #CAE8E3 29px, transparent 29px, transparent 32px, #CAE8E3 32px, #CAE8E3 36px, transparent 36px, transparent 57px);
	background-size: 57px 57px;
}

.menu__item {
	width: calc(100vw - 13.5rem);
	height: auto;
	padding: 2em;
	margin: 1.6rem auto;
	border-radius: 0.5rem;
	text-align: center;
	font-weight: 600;
	font-size: 2rem;
	letter-spacing: 0.9rem;
	color: #604E20;
	background-color: var(--lightyellow);
}


/*----------------------------
* ★メニュー画面のアニメーション
*----------------------------*/

/* アニメーション前のメニューの状態 */
.menu {
	transform: translateX(-100vw);
	transition: all 0.5s ease-in-out;
}

/* アニメーション後のメニューの状態 */
.menu.is-active {
	transform: translateX(0vw);
}

/*-------------------------
* munuボタン、topへ戻るボタン共通
-------------------------*/

/* 非表示 */
.menu-btn,
.scrollTop {
	opacity: 0;
	visibility: hidden;
}

/*このクラスが付与されると表示する*/
.is-show {
	opacity: 1;
	visibility: visible;
}

/*このクラスが付与されるとabsolute,footerにrelative*/
.absolute {
	position: absolute;
	top: -6rem;
}

@media screen and (min-width:668px) {
	.menu {
		width: 50vw;
	}

	.menu__item {
		width: calc(50vw - 13.5rem);
	}
}

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

	.menu-btn.is-show {
		display: none;
	}
}


/*-------------------------
* section h2 見出し
-------------------------*/

.title {
	width: 20rem;
	height: 7.5rem;
	margin: 5rem auto 3rem;
	padding-top: 2rem;
	padding-bottom: 2rem;
	background: var(--brown);
	color: var(--white);
	font-size: 2.4rem;
	text-align: center;
	border-radius: 2.4rem;

	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;

}

/* 疑似要素でクマにする */
.title::before,
.title::after {
	content: "";
	position: absolute;
	width: 2.9rem;
	height: 2.4rem;
	background: var(--brown);
	border-radius: 50%;
	top: -1rem;
	z-index: 1;
}

.title::before {
	left: 1rem;
}

.title::after {
	right: 1rem;
}

/*-------------------------
* works
-------------------------*/

li[class*="card"] {
	width: 28rem;
	height: auto;
	margin: 0 auto 3rem;
	border: double 10px var(--mint);
	border-radius: 0.5rem;
	/* padding: 2rem; */
}

li[class*="card"]:hover {
	transform: translateY(2px);
}

.card-contents {
	width: 100%;
	height: 100%;
	/* border-radius: 0.5rem; */
	/* background: #FFFEEC; */
	background: var(--mint);
	padding-bottom: 1rem;
}

.works-img1 {
	background: url(../img/works-wave.png) no-repeat center;
}

.works-img2 {
	background: url(../img/works-float.png) no-repeat center;
}

.works-img3 {
	background: url(../img/summer.png) no-repeat center;
}

[class*="works-img"] {
	width: 100%;
	height: 19rem;
	border-radius: 0.5rem 0.5rem 0 0;
	background-size: cover;
}

[class*="works-img"],
.used-tools {
	margin-bottom: 1rem;
}

.used-tools dt {
	display: inline-block;
	font-weight: normal;
}

.used-tools dd {
	display: inline-block;
	background: var(--pink);
	border-radius: 0.5rem;
	padding: 0.2rem;
}

.used-tools>dd+dd {
	margin-left: 0.5rem;
}

@media screen and (min-width:668px) {
	.pc-flex {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}
}

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

	.pc-flex {
		justify-content: center;
		flex-wrap: wrap;
		gap: 5%;
	}
}


/*-------------------------
* footer
-------------------------*/

footer {
	width: 100%;
	height: 6.4rem;
	background: var(--brown);
	position: relative;
	/* overflow : hidden;の横だけver. */
	overflow-x: clip;

	padding-top: 3rem;
	text-align: center;
}

footer::before {
	content: "";
	background: url(../img/wave-half-brown.svg) no-repeat center;
	background-size: auto 100%;
	display: block;
	width: 100%;
	height: 5rem;
	transform: rotate(179deg) scale(1.1);
	position: absolute;
	top: -35px;
	left: 10px;
}
