@charset "UTF-8";

/* --------------- common --------------- */
* {
	color: #222;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}


html,
body {
	height: 100%;
	line-height: 1.65;
}


body {
	background: #fafafa;
	min-width: 380px;
	height: 100%;
}


.wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
}

/* --------------- header --------------- */

header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	width: 100%;
	height: 64px;
	line-height: 64px;
	z-index: 100;

	h1 {
		font-size: 0.9rem;
	}

	.pcNav {
		display: flex;
		gap: 16px;
	}

}

.textArea {
	display: flex;
	justify-content: space-between;
	max-width: 1080px;
	margin: 0 auto;
	padding: 14px 16px;
}

ul li {
	list-style: none;
	font-size: 14px;
}

ul li a {
	text-decoration: none;
	padding: 8px 10px;
	text-align: center;
}

ul li a:hover {
	background: rgba(37, 99, 235, .08);
	color: #2563eb;
	border-radius: 10%;
}

/* --------------- HamburgerMenu --------------- */
#openMenu {
	font-size: 32px;
	line-height: 64px;
	cursor: pointer;
}

#openMenu.hideMenu {
	visibility: hidden;
}

.overlayMenu {
	background: rgba(255,255,255,0.95);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity .6s;
}

.overlayMenu li {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .3s,transform .3s;
}

.overlayMenu.showMenu li {
	opacity: 1;
	transform:none
}

.overlayMenu.showMenu li:nth-child(1) {
	transition-delay: .1s;
}

.overlayMenu.showMenu li:nth-child(2) {
	transition-delay: .2s;
}

.overlayMenu.showMenu li:nth-child(3) {
	transition-delay: .3s;
}

.overlayMenu.showMenu li:nth-child(4) {
	transition-delay: .4s;
}

.overlayMenu.showMenu {
	opacity: 1;
	pointer-events: auto;
}

.closeContents {
	max-width: 1080px;
	margin: 0 auto;
	padding: 10px 16px;
	text-align: right;
}

#closeMenu {
	font-size: 32px;
	cursor: pointer;
	top: 16px;
	right: 16px;
}


/* --------------- main --------------- */

main {
	max-width: 1080px;
	margin: 0 auto;
	z-index: 10;
}

.breadcrumb {
	padding: 12px 0;
	font-size: 1rem;

	ol {
		display: flex;

		li {
			list-style: none;
			font-size: 0.8rem;
			color: #666;

			&:not(:first-child)::before {
				content: "›";
				margin: 0 6px;
			}

			a {
				text-decoration: none;
				color: #666;
			}
		}
	}
}

.articleList {
	padding: 20px 0;

	h2 {
		font-size: clamp(22px, 4vw, 34px);
	}
}

.sample {
	margin: 6px 0 0 0;
	font-weight: 350;
	color: #666;
}

.articleArea {
	display: grid;
	gap: 0 16px;
	grid-template-columns: 1fr 1fr 1fr;
	padding: 16px 0 40px;
	width: 100%;
}

.article {
	background: #fff;
	border-radius: 16px;
	margin: 10px 0;
	box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.04);

	&:hover {
		transform: translateY(-2px);
		box-shadow: 0 .5px .5px .5px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
	}

	h3 {
		font-size: 16px;
	}
}

.articleImg {
	background-image: url(../../asset/bg.png);
	text-align: center;
	width: 100%;
	border-radius: 16px 16px 0 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;

	img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}

.card-body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.date {
	display: flex;
	gap: 8px;
	font-size: 12px;

	p {
		font-size: 12px;
		color: #666;
	}
}

time {
	color: #666;
	font-size: 12px;
}

.explanation p {
	font-size: 14px;
}

.tag {
	display: flex;
	gap: 8px;
	padding: 4px 0 0 0;

	span {
		border: 1px #e5e7eb solid;
		border-radius: 14px;
		padding: 4px 8px;
		font-size: 12px;
	}
}

.more {
	display: flex;
	margin: 6px 0 0 0;

	a {
		text-decoration: none;
		color: #2563eb;
		font-weight: bold;
	}
}

/* --------------- footer --------------- */

footer {

	padding: 16px 0;
	background: #fff;
	border-top: 1px solid #e5e7eb;
}

.copyright {
	max-width: 1080px;
	margin: 0 auto;
	font-size: 0.9rem;
	font-weight: 300;
	color: #666;
}

/* --------------- 記事詳細 --------------- */

.hero {
	padding: 20px 0;
}

.mainVisual {
	background-image: url(../../asset/bg.png);
	background-repeat: no-repeat;
	background-size: 100%;
	max-width: 1080px;
	height: 50%;
	text-align: center;
	border-radius: 20px;
	aspect-ratio: 16 / 9;
	margin: 20px 0;

	img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}

.titleArea {
	max-width: 1080px;
	background: #fff;
	margin: 16px 0 0 0;
	padding: 16px;
	border-radius: 20px;

	h2 {
		margin: 8px 0 0 0;
		font-size: clamp(1.4rem, 4vw, 2.1rem);
	}
}

.title {
	display: flex;

	time {
		margin: 0 16px 0 0
	}

	p {
		font-size: 0.8rem;
		margin: 0 16px 0 0;
		color: #666;
	}
}

.author {
	margin: 6px 0 0 0;
	font-size: 0.8rem;
	color: #666;
}

.mainArea {
	background: #fff;
	padding: 28px;
	border-radius: 20px;
	margin: 0 0 16px;

	dl {
		border-bottom: 1px solid #e5e7eb;
		padding: 0 0 16px 0;
	}

	dt {
		margin: 24px 0 0 0;
		font-size: 1.3rem;
		font-weight: bold;
	}

	dd {
		margin: 10px 0 0 0;
	}

	h3 {
		margin: 24px 0 0 0;
		font-size: 20px;
	}
}

.summary p {
	margin: 16px 0 0 0;
}

.function {
	display: flex;
	margin: 16px 0 0 0;

	span {
		border: 1px solid #e5e7eb;
		border-radius: 24px;
		padding: 10px;
		margin: 0 10px 0 0;
	}
}

.backOrNext {
	display: flex;
	justify-content: space-between;
	margin: 16px 0 0 0;

	p {
		font-size: 0.9rem;
	}

	a {
		text-decoration: none;
	}
}

/* --------------- レスポンシブ --------------- */

/* 1列（～589px） */
@media screen and (max-width: 590px) {
	ul li {
		a {
			margin: 0 0 0 16px;
		}

		&:first-child {
			margin-right: 0;
		}
	}

	
.pcNav li a {
    display: none;
}


	.articleArea {
			display: grid;
			grid-template-columns: 1fr;
			margin: 32px auto 3rem;
			width: 100%;
			gap: 0;
		}

	.article {
		margin: 16px 0;
	}

	.textArea {
		padding: 0 16px;
	}

	main {
		padding: 0 16px;
	}

	.copyright {
		padding: 0 0 0 16px;
	}
}

/* 2列（590～899px） */
@media screen and (min-width: 590px) and (max-width: 900px) {
	ul li {
		a {
			margin: 0 0 0 16px;
		}

		&:first-child {
			margin-right: 0;
		}
	}

	.articleArea {
		display: grid;
		grid-template-columns: 1fr 1fr;
		margin: 32px auto 3rem;
		width: 100%;
		gap: 0 16px;
	}

	.textArea {
		padding: 0 16px;
	}

	main {
		padding: 0 16px;
	}

	.copyright {
		padding: 0 0 0 16px;
	}
}


/* 3列（900px～） */
@media screen and (min-width: 900px) {
	.articleArea {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		width: 100%;
	}

	.textArea {
		padding: 0 16px;
	}

	main {
		padding: 0 16px;
	}

	.copyright {
		padding: 0 0 0 16px;
	}
}