/*
Theme Name: 2chiikipf2026
Author URI: https://www.mlit.go.jp/2chiiki_pf/
Description: 2Chiiki Platform Theme
Version: 1.0.0
*/

@charset "utf-8";

/*=========================================*/
/* news detail */
/*=========================================*/

.news-detail-contents {
	overflow-x: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.news-detail-contents img,
.news-detail-contents video,
.news-detail-contents iframe,
.news-detail-contents embed,
.news-detail-contents object {
	max-width: 100%;
	height: auto;
}

.news-detail-contents table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.content_head {
	display: flex;
	justify-content: space-between;
}

.news-detail-contents h1 {
	margin: 48px;
	font-weight: 700;
	font-size: 24px;
	line-height: 42px;
}

.news-detail-contents .bar {
	padding: 17px 20px 15px 20px;
	font-size: 20px;
	font-weight: 700;
	background-color: var(--c-bar_title);
}

.news-detail-contents .box {
	margin: 35px 0 40px 0;
}

.news-detail-contents .data {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin: 0px 0 50px 0;
}

.news-detail-contents .day {
	font-size: 14px;
	margin-right: 20px;
}

.news-detail-contents .favorite {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
}

.news-detail-contents button.favorite {
	display: flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: 14px;
	width: auto;
}

.news-detail-contents button.favorite img {
	width: 24px;
	margin-right: 5px;
}

.news-detail-contents .read {
	margin: 35px 0;
	font-size: 18px;
	font-weight: 700;
	text-decoration: underline;
}

.news-detail-contents .text {}

.news-detail-contents .img {}

.news-detail-contents .img img {
	width: 100%;
	height: auto;
}

.news-detail-contents .figure {
	margin: 20px 0;
	text-align: center;
}

.news-detail-contents .figure img {
	max-width: 100%;
	height: auto;
	display: block;
}

.news-detail-contents .download_list {
	margin-bottom: 20px;
}

.news-detail-contents .download {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 30px;
}

.news-detail-contents .download a {
	flex: 0 0 auto;
}

.news-detail-contents .download img {
	max-width: 300px;
	width: auto;
	height: auto;
	max-height: 300px;
	display: block;
	border: solid 2px var(--c-line_color);
}

.news-detail-contents .box-login {
	position: relative;
	margin: 50px 0;
	border-top: 2px solid transparent;
	border-image: repeating-linear-gradient(to right,
			var(--c-secondary) 0 6px,
			transparent 2px 8px) 1;
}

.news-detail-contents .box-login .text-login {
	position: absolute;
	width: 100%;
	margin-top: -12px;
	text-align: center;
}

.news-detail-contents .box-login .text-login .white {
	display: inline-block;
	box-sizing: border-box;
	padding: 0 30px;
	background-color: var(--c-white);
	text-align: center;
}

.news-detail-contents .box-login .btn-area {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 60px 0 50px 0;
	border-bottom: 2px solid transparent;
	border-image: repeating-linear-gradient(to right,
			var(--c-secondary) 0 6px,
			transparent 2px 8px) 1;
}

.news-detail-contents .box-login .btn a {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 136px;
	height: 36px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	-webkit-transition: opacity 0.5s ease-out;
	-moz-transition: opacity 0.5s ease-out;
	-ms-transition: opacity 0.5s ease-out;
	transition: opacity 0.5s ease-out;
	transition: all 0.2s;
}

.news-detail-contents .box-login .btn a:hover {
	opacity: 0.7;
	transition: all 0.2s;
}

.news-detail-contents .box-login .btn-login a {
	padding-left: 30px;
	border: solid 2px var(--c-primary);
	background-image: url("../images/icon-login.svg");
	background-position: center left 24px;
	background-repeat: no-repeat;
	background-size: 24px;
	background-color: var(--c-white);
	color: var(--c-primary);
}

.news-detail-contents .box-login .btn-application a {
	border: solid 2px var(--c-government);
	background-color: var(--c-government);
	color: var(--c-white);
}

@media screen and (max-width:1130px) {
	.news-detail-contents h1 {
		font-size: 18px;
		line-height: 150%;
		margin: 48px auto;
	}

	.news-detail-contents .bar {
		padding: 17px 20px 15px 20px;
	}

	.news-detail-contents .box {
		margin: 20px 0 40px 0;
	}

	.news-detail-contents .data {
		justify-content: flex-start;
		margin: -25px 0 30px 0;
	}

	.news-detail-contents .day {
		font-size: 12px;
	}

	.news-detail-contents button.favorite {
		font-size: 12px;
	}

	.news-detail-contents button.favorite img {
		margin-right: 0px;
	}

	.news-detail-contents .read {
		margin: 18px 0;
		font-size: 16px;
	}

	.news-detail-contents .img {
		margin: 10px 0 0 0;
	}

	.news-detail-contents .download {
		justify-content: center;
		flex-direction: column;
		gap: 20px;
	}

	.news-detail-contents .download a {
		flex: auto;
		margin: auto;
	}

	.news-detail-contents .box-login {
		margin: 40px 0 50px 0;
	}

	.news-detail-contents .box-login .btn-area {
		justify-content: center;
		flex-direction: column;
		padding: 40px 0 35px 0;
	}

	.news-detail-contents .box-login .btn a {
		margin: auto;
	}
}