@charset "utf-8";

/* 基本レイアウト ここから↓ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Noto Sans JP", sans-serif;
	background: #EAEAEA;
	color: #454552;
	line-height: 1.7;
}

header {
	max-width: 2000px;
	margin: 0 auto;
	padding: 80px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.header-image {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.header-image img {
	width: 100%;
	height: auto;
	display: block;
}

section {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px;
}

hr {
	margin-top: 20px;
	border: none;
	border-bottom: 1px solid #999;
}

h2 {
	font-size: 32px;
	font-family: 'Poppins';
	margin-bottom: 20px;
	text-align: center;
}

h4 {
	font-family: 'Poppins';
	text-align: center;
}

.works-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 900px;
	margin: 0 auto;
}

.work-card {
	border: 1px solid #ddd;
	padding: 20px;
	transition: 0.3s;
}

.work-card:hover {
	transform: translateY(-5px);
}

.work-image {
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 16px;

	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.work-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.work-card h3 {
	margin-bottom: 10px;
}

/* works仕様↓　*/
.container{
    display:grid;
    grid-template-columns:100px 1fr;
    row-gap:5px;
}

.container dt{
    position: relative;
    padding-right: 12px;
}

.container dt::after{
    content:"";
    position:absolute;
    right:8px;
    top:0;
    width:1px;
    height:100%;
    background:#999;
}

.container dd{
    margin:0;
    padding-left:10px;
}
/* works仕様↑ */

.thumb {
	width: 100%;
	height: 200px;
	object-fit: cover;
	cursor: pointer;
}

.about {
	max-width: 2000px;
	margin: 0 auto;
	padding: 80px 20px;
	text-align: center bottom;
	color: #4d4398;

	background-image: url("../images/about-05.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.about p {
	color: #4d4398;
	text-align: center;
}

.contact {
	max-width: 1000px;
	margin: 0 auto;
	padding: 80px 20px;
	text-align: center;
	color: #454552;
}

.contact p {
	color: #454552;
	text-align: center;
}

/* contact仕様↓ */
.contact-info{
	display:grid;
	grid-template-columns:80px 1fr;
	row-gap:5px;

	width:fit-content;
	margin:0 auto;
	text-align:left;
	font-size: large;
}

.contact-info dt{
	position:relative;
	padding-right:12px;
}

.contact-info dt::after{
	content:"";
	position:absolute;
	right:8px;
	top:0;
	width:1px;
	height:100%;
	background:#999;
}

.contact-info dd{
	margin:0;
	padding-left:10px;
}
/* contact仕様↑ */

footer {
	padding: 40px 20px;
	text-align: center;
	color: #454552;
	border-top: 1px solid #e5e5e5;
}

@media (max-width: 600px) {
	header h1 {
		font-size: 36px;
	}

	h2 {
		font-size: 26px;
	}
	.works-grid {
		grid-template-columns: 1fr;
	}
}

.modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: 0.3s;
}

.modal.open {
	opacity: 1;
	pointer-events: auto;
}

.modal img {
	max-width: 90%;
	max-height: 90%;
}

/* 全体の横幅 */
:root {
	--content-width: 900px;
}

header,
section,
.about,
.contact {
	max-width: var(--content-width);
}

.works-grid {
	max-width: var(--content-width);
}

/* 基本レイアウト　ここまで↑ */	
