@charset "UTF-8";

/* 基本 */
:root {
	--v-space: clamp(48px, 6vw, 64px);
}

body {
	color: #000000;
	font-size: clamp(14px, 1em, 16px);
	margin: 0;
/*	background-color: #c0c0c0; */
	background-color: #ffffff;
/*	font-family: 'BIZ UDMincho', serif; */
	font-family: 'Montserrat', 'Shippori Antique', sans-serif;
}

/* 太字の設定 */
h1, h2, h3, h4, h5, h6, b {
	font-family: 'Montserrat', 'Zen Kaku Gothic New', sans-serif;
}
/*
p {
	font-family: 'Zen Old Mincho', serif;
}
*/
ul {
	list-style: none;
	padding: 0;
}

/* ドロップシャドウ */
.sdw { text-shadow: 0px 1px 1px white; }

/* 余白をなくす */
h1, h2, h3, h4, h5, h6, p {
	margin: 0;
}

img {
	display: block;
}

/* ヘッダー */
.bar {
	border-bottom: 1px solid #000000;
/*	background: #ffffff; */
	position: sticky;
	top: 0;
	z-index: 1;
}
.header {
/*	background-color: #ffffff; */
	background: transparent;
	height: 90px;
}

.header-container {
	display: flex;
/*	justify-content: space-between;*/
	align-items: center;
	height: 100%;
}
.header-container > .site {
	margin-right: auto;
}

/* 画面が広いとき"screen-wide"のclassがついた画像が表示される */
.screen-wide { display: block; }
.screen-middle { display: none; }
.screen-narrow { display: none; }
 
/* 画面が狭いとき"screen-middle"のclassがついた画像が表示される */
@media (max-width: 700px) {
	.screen-wide { display: none; }
	.screen-middle { display: block; }
	.screen-narrow { display: none; }
}
/* 画面がめちゃ狭いとき"screen-narrow"のclassがついた画像が表示される */
@media (max-width: 500px) {
	.screen-wide { display: none; }
	.screen-middle { display: none; }
	.screen-narrow { display: block; }
}

/* 横幅と左右の余白 */
.w-container {
	width: min(92%, 1166px);
	margin: auto;
}

/* ナビゲーションボタン */
.navbtn {
	padding: 10px;
	outline: none;
/*	border-style: outset;
	border-color: #303030; */
	border-style: solid;
	border-color: #606060 #000000 #000000 #606060;
	border-width: 1px;
	border-radius: 20px;
	background: #ffffff;
	cursor: pointer;
	color: #000000;
	font-family: montserrat;
	font-size: 14px;
}
.navbtn:hover {
/*	border-style: inset;
	border-color: #303030; */
	border-style: solid;
	border-color: #000000 #606060 #606060 #000000;
}
.navbtn:onclick{
/*	border-style: inset;
	border-color: #303030; */
	border-style: solid;
	border-color: #000000 #606060 #606060 #000000;
}
.navbtn:active {
/*	border-style: inset;
	border-color: #303030; */
	border-style: solid;
	border-color: #000000 #606060 #606060 #000000;
}


/* 検索フォーム */
.form-box{
	height: 18px;
	display: flex;
	padding: 10px;
	border: 1px solid;
	border-color:	#000000 #606060 #606060 #000000;
	border-radius: 20px;
	width: 250px;
	margin-right: 4%;
	margin-left: 16%;
	background: #ffffff;
}
.form-input{
	font-family: 'Montserrat', 'Shippori Antique', sans-serif;
	border: none;
	width: 100%;
	outline: 0;
	margin: 0;
	background: transparent;
}
.form-button{
	border: none;
	background: transparent;
}

/* ヒーロー */
.hero {
	height: 650px;
	background-color: rgba(255,255,255,0.5);
	background-image: url(img/hero.jpg);
	background-color: rgba(255,255,255,0.6);
	background-blend-mode:lighten;
	background-position: center;
	background-size: cover;
}
.hero-container {
	display: grid;
	justify-items: center;
	align-content: center;
	height: 100%;
}
.hero h1 {
	margin-bottom: 42px;
	font-size: clamp(48px, 5vw, 68px);
	min-height; 0vw;
	line-height: 1.3;
	text-align: center;
}
/*
.hero img.chara {
	width: clamp(160px, 33%, 180px);
	margin-bottom: 20px;
} */
.hero img/*.logo */ {
	width: clamp(275px, 50%, 300px);
	margin-bottom: 10px;
}
.hero p {
	font-size: 18px;
	margin-top: 24px;
	margin-bottom: 48px;
}

/* ボタン */
.btn {
	display: block;
	text-decoration: none;
	width: 80px;
	padding: 20px;
	border-radius: 40px;
	background-color: #000000;
	color: #ffffff;
	font-size: 20px;
	text-align: center;
	cursor: pointer;
}
a.btn:hover {
	background-color: #333333;
}
a.btn:onclick {
	background-color: #333333;
}
a.btn:active {
	background-color: #333333;
}

/* テキストと画像 */
.text p {
	padding-left: 0.5em;
	text-indent: 1em;
}
/* テキストの1文字目を大きくして回り込み */
.text p.firstletter {
	text-indent: 0;
}
.text p.firstletter:first-letter {
	text-indent: 0;
	font-size: 2.4em;
	padding: 0 0.125em;
	float: left;
	line-height: 1.2;
}

figure {
	margin: 0;
}
.imgtext {
	padding: clamp(48px, 6vw, 64px) 0;
}
.imgtext + .imgtext {
	padding-top: 0;
}
h2 {
	font-size: clamp(24px, 3vw, 30px);
	min-height: 0vw;
	margin-bottom: 0.5vw;
}

h2 > span { /* 蛍光ペン */
	background: linear-gradient(transparent 66%, #e0e0e0 66%);
	padding: clamp(4px, 0.5vw, 5px);
}

.imgtext-container {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 3vw, 36px);
}
.imgtext img {
	display: block;
	height: auto;
	width: max(400px, 100%);
	margin: 0;
	padding: 0;
}
.imgtext-container > .img { /* はみ出た画像の中央寄せ */
	display: flex;
	align-items: center;
    justify-content: center;
	max-height: 400px;
	overflow: hidden;
}


@media (min-width: 800px) {
	.imgtext-container {
		flex-direction: row;
		align-items: center;
	}
	.imgtext-container > .text {
		flex: 1;
		min-width: 30em;
	}
	.imgtext-container > .img {
		flex: 1;
	}
	.imgtext-container.reverse {
	flex-direction: row-reverse;
	}
}

section {
	padding: 0;
	margin: 0;
}

/* 記事一覧 */
.posts {
	padding: 0 0 var(--v-space) 0;
}
.posts img {
	width: 100%;
	height: auto;
}

.posts-container {
	margin-top: 2vw;
	display: grid;
	grid-template-columns: repeat(2, 1fr) /* repeat(auto-fit, minmax(300px, 1fr)) */;
	gap: 32px 25px;
}
@media (min-width: 800px) {
	.posts-container {
		grid-template-columns: repeat(3, 1fr);
	}
}


/* 記事一覧の記事 */
.post p {
	text-indent: 1em;
	margin-left: 0.5em;
	margin-top: 0.5em;
	font-size: clamp(14px, 2vw, 16px);
}
.post img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}

/* フッター */
.footer-container {
	display: grid;
	grid-column: 2;
	grid-template-columns: auto auto;
	gap: 24px;
	justify-content: center;
	align-content: center;
	align-items: center;
	padding-bottom: 24px;
}
.footer-menu {
	display: grid;
	gap: 0.5em;
}
@media (min-width: 800px) {
	.footer-container {
		display: flex;
		gap: 42px;
		justify-items: center;
	}
	.footer-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px;
		max-width: 500px;
	}
}

/* フッター・テキストメニュー */
.footer-copy {
	padding-bottom: 42px;
	display: grid;
	justify-items: center;
}

/* KaTeX の環境をいじるならここ… */
span.katex-html {
}

/*　ナビゲーションメニュー */
.nav {
	position: fixed;
	inset: -91px 0 0 0;
	z-index: 1;
	background-color: #ffffff;
	border-bottom: solid 1px #000000;
	height: 90px;
	transition: transform 0.3s;
}
.open .nav {
		transform: translate(0, 100%);
}
.open .navbtn {
	z-index: 2;
	}
.open .navbtn .menu {
	display: none;
}
.navbtn .times {
	display: none;
}
.open .navbtn .times {
	display: revert;
}
.nav ul {
	display: flex;
	height: 100%;
	margin: 0;
	flex-direction: row;
	justify-content: left;
	align-items: center;
	gap: 32px;
	margin-left: 4%;
/*	font-size: 14px; */
}
.nav ul li img {
	display: inline;
	vertical-align: middle;
}