@charset "utf-8";

/* grid */
.top-bousai-cta-wrap {
	width: 100%;
	max-width: 736px;
	margin: 6.5em auto 0;
	padding: 0 var(--padding);
}

.top-bousai-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.4em;
	background: var(--orange);
	color: var(--white);
	border-radius: var(--radius);
	font-size: 1.15em;
	font-weight: 700;
	text-decoration: none;
}

#grid {
	width: 100%;
	max-width: 736px;
	margin: 6.5em auto 0;
	padding: var(--padding);
	display: grid;
	grid-gap: 1em;
	grid-template-columns: 1fr 1fr 1fr;
}

#grid.has-bousai-cta {
	margin-top: 1em;
}

/* ニュース */
#grid .news-container {
	grid-column: 1 / -1;
	grid-row: 1 / 2;
	background: var(--white);
	border-radius: var(--radius);
	padding: 1em 1.5em;
}

#grid .news-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5em;
	color: var(--green);
}

#grid .news-header h2 {
	font-size: 1.75em;
	font-weight: 700;
}

#grid .news-header .btn-more {
	background: var(--green);
	color: var(--white);
	padding: 0.4em 2em 0.4em 1.5em;
	border-radius: 1.5em;
	font-weight: 700;
	font-size: 1em;
	text-decoration: none;
}

ul.news {
	width: 100%;
}

ul.news span {
	font-size: 0.85em;
	color: var(--green);
}

ul.news li {
	border-top: var(--green) dashed 0.125em;
	padding: 0.5em 0;
}

ul.news li:nth-child(1) {
	border: none;
}

/* お手伝い */
#grid ul.support {
	grid-column: 1 / -1;
	grid-row: auto;
	display: grid;
	grid-gap: 0.5em;
	grid-template-columns: 1fr 2fr;
	background: #d9ddd5;
	border-radius: var(--radius);
	padding: var(--padding);
	filter: grayscale(1);
	position: relative;
}

#grid ul.support li:first-of-type {
	grid-column: 1 / 2;
	grid-row: 1 / 3;
}

#grid ul.support a,
#grid ul.support > li:not(:first-of-type) {
	background: var(--green);
	border-radius: var(--radius);
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	align-items: center;
	color: #fff;
	position: relative;
}

#grid ul.support h2 {
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	align-items: center;
	height: calc((550px - 9em) / 3);
	padding-right: 1em;
}

#grid ul.support h2 img {
	width: 70%;
}

#grid .iconBox.is-disabled {
	background: #d9ddd5;
	color: #7d8577;
	filter: grayscale(1);
}

#grid ul.support.is-disabled > li:not(:first-of-type)  {
	background: #aaaea6;
	color: #d9ddd5;
}
#grid ul.support.is-disabled h2 {
	filter: grayscale(1);
}

#grid ul.support.is-disabled > li:not(:first-of-type) {
	border: 1px solid #c9d0c2;
}

#grid .iconBox.is-disabled p,
#grid ul.support.is-disabled li {
	color: #7d8577;
}

#grid .iconBox.is-disabled .badge,
#grid ul.support.is-disabled .badge {
	display: none;
}

#grid .is-coming-soon::before {
	position: absolute;
	content: "準備中";
	top: 0.6em;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.8em;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	background: rgba(125, 133, 119, 0.9);
	color: var(--white);
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.08em;
	z-index: 1;
}

#grid ul.support.is-coming-soon::before {
	top: 0.75em;
}

/* iconBox */
#grid .iconBox {
	height: calc((736px - 6em) / 3);
	background: var(--white);
	border-radius: var(--radius);
	padding: var(--padding);
	text-align: center;
	position: relative;
}

#grid .iconBox img {
	width: 80%;
}

/* バッジ */
.badge {
	position: absolute;
	top: -0.65em;
	right: -0.65em;
	background: var(--orange);
	color: var(--white);
	font-weight: 700;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	width: 2.5em;
	height: 2.5em;
	line-height: 1;
	z-index: 10;
}

#grid .iconBox .badge {
	top: 0.325em;
	right: 0.325em;
}

/* about */
.about {
	width: 100%;
	max-width: 736px;
	margin: 0 auto;
	padding: 0 var(--padding);
	color: var(--white);
	font-size: 0.825em;
}


@media all and (max-width: 736px) {
	/* grid & page layout */
	#grid {
		margin: 4.5em auto 0;
	}
	#content {
		margin: 5em auto 1em;
	}

	#grid {
		grid-template-columns: 1fr 1fr;
	}

	#grid .news-header h2 { font-size: 1em; }
	#grid .news-header .btn-more { font-size: 0.85em; }

	#grid ul.support h2 {
		height: calc((100vw - 4em) / 3);
		padding-right: 0;
	}

	#grid .iconBox {
		height: calc((100vw - 4em) / 2);
	}

	#grid .is-coming-soon::before {
		top: 0.5em;
		font-size: 0.65em;
	}

	#grid .iconBox.bousai {
		grid-column: 1 / 2;
		grid-row: 3 / 4;
	}

	#grid .iconBox.letter {
		grid-column: 2 / 3;
		grid-row: 3 / 4;
	}

	#grid ul.support h2 img {
		width: 90%;
	}


	/* バッジ */
	.badge {
		width: 2.5em;
		height: 2.5em;
	}
}
