/* 全体設定 */

* {
	font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 90;
	font-style: normal;
	margin: 0;
	padding: 0;

}
body {
	background-color: #fff5d3;
}
h1 {
	font-size: 3.5em;
	font-family: "baskerville-urw", serif;
	font-weight: 700;
	font-style: normal;
	color: #111e45;
}
h2 {
	font-size: 3em;
	margin: 0.5em 0;
	text-align: center;
	font-family: "baskerville-urw", serif;
	font-weight: 700;
	font-style: normal;
	color: #111e45;
}
h3 {
	text-align: center;
	font-weight: 100;
	font-size: 2em;
	font-family: "baskerville-urw", serif;
	font-weight: 700;
	font-style: normal;
	color: #111e45;
}
h4 {
	font-size: 1.2em;
	text-align: center;
	font-family: "baskerville-urw", serif;
	font-weight: 700;
	font-style: normal;
	color: #111e45;
}
.gnav a {
	color: #fff5d3;
	text-decoration: none;
	display: block;
	margin: 1em;
	font-size: 1.5em;
}
a {
	text-decoration: none;
	color: inherit;
	font-family: "baskerville-urw", serif;
	font-weight: 700;
	font-style: normal;
}
.buttonUnderline {
	position: relative;
	padding: 0 1em;
	overflow: hidden;
	text-align: center;
	overflow-wrap: anywhere;
	background: transparent;
}
.buttonUnderline::after {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 2px;
	content: "";
	background-color: #fff5d3;
	transform: scaleX(0);
	transform-origin: right top;
}
p {
	font-size: 1.2em;
	color: #111e45;
}
html {
	scroll-behavior: smooth;
	min-height: 100vh;
	position: relative;
	box-sizing: border-box;
	padding-bottom: 120px
}
/*ヘッダーとフッター*/

header, .top-box {
	background-color: #111e45;
}
ul {
	display: flex;
	justify-content: center;
}
li {
	list-style: none;
}
.nav p {
	color: #fff5d3;
	text-align: center;
	font-size: 0.8em;
	padding-bottom: 1em;
}
#top {
	width: 100%;
	position: relative;
}
#top h1 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 0;
	margin: 0;
}
footer {
	position: absolute;
	width: 100%;
	bottom: 0;
}
.container-a, .container-b {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 10%;
	padding: 0 1em;
	justify-content: center;
}
.text-works {
	margin: 0 1em;
}
.button-position{
	width: 40%;
	margin:10% auto;
}
/*プロフィール*/

.profile-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 10%;
}
.text-profile p {
	padding: 0 0 0.3em 1em;
}
/*作品欄*/

#works p {
	margin: 1em 0;
}
.caption {
	text-align: center;
}
.work-text p {
	padding: 0 1em;
	text-align: justify;
}
.work-box-web {
	display: flex;
	justify-content: center;
	margin: 0 10% 5% 10%;
}
.work-box-web img {
	margin: 0 auto;
}
.work-box-banner {
	display: flex;
	flex-flow: column;
	justify-content: space-between;
}
.work-img-banner {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	justify-content: space-between;
	margin: 1em;
}
.wrap-web {
	background-color: #ffe993;
	width: 300px;
	text-align: center;
	padding: 1em;
}
.wrap-banner {
	width: 80%;
	padding: 1em;
	margin: 5% auto;
}
.img {
	width: 800px;
	height: auto;
	object-fit: cover;
}
#contact {
	background: url(./images/contact.jpg) no-repeat scroll 0;
	height: 1000px;
	margin-top: 1em;
	position: relative;
}
.contact-container {
	position: absolute;
	top: 25%;
	padding: 0 30%;
	background-color: rgba(255,245, 211, 0.5);
}
/*プロフィールページ*/

#gnav {
	padding: 0;
	font-family: "baskerville-urw", serif;
	font-weight: 400;
	font-style: italic;
	appearance: none;
	cursor: pointer;
	background-color: transparent;
	border: none;
}
table {
	margin: 1em 20%;
}
.profile-table tr {
	margin: 1em;
}
td {
	padding: 1em;
}
.profile-table p {
	text-align: center;
}
details  {
    margin-left: 15px;
}
summary  {
    padding: 10px;
    background-color: #ffe993;
    font-weight: bold;
}
details p  {
    margin-left: 26px;
}
a {
	color: inherit;
	text-decoration: none;
	font-family: "baskerville-urw", serif;
	font-weight: 700;
	font-style: normal;
	color: #111e45;
  }
  
  button {
	padding: 0;
	font-family: "baskerville-urw", serif;
	font-weight: 700;
	font-style: normal;
	appearance: none;
	cursor: pointer;
	background-color: transparent;
	border: none;
  }
  
  /* ボタンのスタイル */
  .buttonRound {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 500px;
	height: 64px;
	padding: 8px 24px;
	font-family: sans-serif;
	font-size: 16px;
	color: #fff5d3;
	text-align: center;
	overflow-wrap: anywhere;
	background-color: #111e45;
	border-radius: 32px; 
  }
  @media (any-hover: hover) {
	.buttonUnderline::after {
		transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
	}
	.buttonUnderline:hover::after {
		transition: transform 0.4s cubic-bezier(0.9, 0, 0, 1);
		transform: scaleX(1);
		transform-origin: left top;
	}
}
  @media (any-hover: hover) {
	.buttonRound {
	  transition: background-color 0.2s;
	}
  
	.buttonRound:hover {
	  background-color: #ffe993;
	  color: #111e45;
	}
}
@media screen and (max-width: 840px) {
	header{
		font-size: 0.4em;
	}
	footer{
		font-size: 0.4em;
		bottom: 0;
	}
	.container-a, .profile-container {
		display: flex;
		flex-wrap: wrap;
		margin: 0 10%;
	}
	.container-b {
		display: flex;
		flex-wrap: wrap-reverse;
		margin: 0 10%;
	}
	h1 {
		font-size: 2em;
	}
	h2{
		font-size: 1.8em;
	}
	a{
		font-size: 0.4em;
	}
	.text-profile {
		margin-top: 1em;
	}
	.work-img-banner {
		display: flex;
		flex-wrap: wrap;
	}
	.work-img-banner img{
		margin: 0 1%;
	}
	#contact {
		position: relative;
	}
	.contact-container {
		position: absolute;
		top: 30%;
		padding: 0 20%;
	}
}