@charset "utf-8";

@font-face {
	font-display: swap;
	font-family: "Noto Sans JP";
	font-style: normal;
	font-weight: 400;
	src: url("webfont/NotoSansJP-Regular.woff2") format("woff2"),
	url("webfont/NotoSansJP-Regular.woff") format("woff"),
	url("webfont/NotoSansJP-Regular.otf") format("opentype");
}

@font-face {
	font-display: swap;
	font-family: "Noto Sans JP";
	font-style: normal;
	font-weight: 500;
	src: url("webfont/NotoSansNavi.woff2") format("woff2"),
	url("webfont/NotoSansNavi.woff") format("woff"),
	url("webfont/NotoSansNavi.ttf") format("truetype");
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

@media (max-width: 540px) {
	html {
		font-size: 15px;
	}
}

body {
	background-color: lightsteelblue;
	color: #222;
	font-family: sans-serif;
}

header, main, footer {
	margin-left: 40px;
	padding: 1.5rem;
	max-width: 700px;
}

/*ヘッダー
------------------------------*/
header {
	background-color: whitesmoke;
	display: flex;
	flex-direction: column;
}

h1 {
	margin-bottom: 1.5rem;
	line-height: normal;
}

h1 img {
	height: 30px;
	vertical-align: middle;
}

nav a:link, nav a:visited {
	text-decoration: none;
	color: black;
}

nav ul {
	list-style: none;
	font-size: .9rem;
	text-align: center;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	gap: .625em;
}

nav li {
	padding: 0 .375em 1px;
	border-bottom: solid 2px tomato;
	font-family: "Noto Sans JP", sans-serif;
	font-weight: 500;
}

nav i {
	font-size: 1.25rem;
	position: relative;
	top: 1px;
	right: 3px;
}

/*メイン
------------------------------*/
.top-banner {
	margin-left: 40px;
	max-width: 700px;
	aspect-ratio: 3/1;
	background: whitesmoke no-repeat 0 top/cover url(top0.webp);
}

main {
	background-color: whitesmoke;
	border-top: dashed 3px lightsteelblue;
}

.main-top {
	border: none;
}

h2 {
	margin: 3rem 0 2.5rem;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 1.625rem;
	font-weight: 500;
	color: black;
	display: flex;
	flex-direction: column;
	align-items: end;
}

.h2_sub {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: #222;
	align-items: center;
	display: flex;
	position: relative;
	bottom: 4px;
}

.h2_sub::before {
	background-color: #222;
	content: "";
	height: 1px;
	width: 2em;
	margin-left: .5em;
	position: relative;
	top: 2px;
}

h3 {
	margin: 3rem 0 1.5rem;
	border-bottom: solid 2px lightsteelblue;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 1.25rem;
	font-weight: 400;
}

h4 {
	display: inline-block;
	margin: 2.5rem 0 1.5rem;
	padding: 0 4px;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	border-bottom: double 3px lightsteelblue;
}

main a {
	color: #222;
	text-decoration-line: underline;
	text-decoration-color: tomato;
	text-decoration-thickness: 2px;
	text-decoration-skip-ink: none;
}

p {
	margin-bottom: 1rem;
	line-height: 1.75;
}

.gallery_top {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	gap: 12px;
	text-align: center;
}

.gallery_top img {
	display: block;
	border: solid #999 1px;
}

.gallery_top a {
	text-decoration-line: none;
}

.gallery {
	margin: 3rem 0 1rem;
}

.gallery_top img, .gallery img {
	max-width: 100%;
	object-fit: cover;
}

.books {
	margin-top: 1.5rem;
	padding-left: 1rem;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
}

p.page_end {
	margin-top: 3rem;
	text-align: right;
}

a.gray {
	color: #666;
	text-decoration-color: #666;
	text-decoration-thickness: 1px;
}

strong {
	font-weight: bold;
	color: black;
}

article ul {
	list-style: none;
	line-height: 1.75;
}
article li {
	text-indent: -1.5rem;
	padding-left: 1.5rem;
}
article li::before {
	font-family: "Line Awesome Free";
	content: '\f14a';
	padding-right: .5rem;
	font-weight: bold;
	color: tomato;
}
article li ul li::before {
	color: lightsteelblue;
}

table{
	border-collapse: separate;
	border-spacing: 2px 4px;
	-webkit-text-size-adjust: 100%;
}
th, td{	padding: 4px 8px;}
th{
	font: bold .875rem sans-serif;
	background-color: lightsteelblue;
}

.quote {
	display: block;
	margin: 1rem 0;
	padding-left: 2rem;
	font-family: serif;
}

.sp_br {display: none;}

/*フッター
------------------------------*/
footer {
	background-color: whitesmoke;
	border-top: dashed 3px lightsteelblue;
	font-size: .875rem;
	text-align: center;
}


/*margin-rightが20px以下
------------------------------*/
@media (max-width: 840px) {

	header, main, footer, .top-banner {
		margin: 0 auto;
	}

}


/*メイン部のwidthを可動にして、左右に固定margin
------------------------------*/
@media (max-width: 732px) {

	header, main, footer, .top-banner {
		margin: 0 16px;
	}

}


/*スマホ閲覧
------------------------------*/
@media (max-width: 540px) {

	header, main, footer {
		margin: 0;
		padding: 1.25rem;
		width: 100%;
	}

	header {padding-top: 1.5rem;}

	h1 img {
		height: 26px;
	}	

	nav ul {
		font-size: .75rem;
		justify-content: space-around;
	}

	nav li {
		width: 52px;
		padding: 0 0 1px;
	}

	nav i {
		font-size: 1.33rem;
		position: relative;
		top: 3px;
		right: 0;
	}	

	.top-banner {
		margin: 0;
		width: 100%;
	}

	.gallery_top {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
		gap: 8px;
	}
	

	.books {
		flex-direction: column;
		align-items: normal;
	}	

	.sp_br {display: block;}
}