/*
Theme Name: Oshiumi News
Theme URI: https://example.com
Author: Oshiumi
Description: Oshiumi news theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oshiumi
*/

/* WordPress admin bar spacing */
.admin-bar header {
	top: 32px !important;
}

/* .admin-bar #pageheader {
	margin-top: 32px !important;
} */

@media screen and (max-width: 768px) {
	.admin-bar header {
		top: 46px !important;
	}
}

/* News Archive */
/* .news-archive .inner,
.news-single .inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px;
} */

.news-page #pageheader.visual {
	background-image: url(/img/newsheader_bg.png);
}

@media screen and (max-width: 768px) {
	.news-page #pageheader.visual {
		background-image: url(/img/newsheader_bg_sp.png);
	}
}

.news-main {
	margin: 80px 0 100px;
}

@media screen and (max-width: 768px) {
	.news-main {
		margin: 56px 0 65px;
	}
}

.news-list {
	list-style: none;
	padding: 0;
	margin: 0;
	/* border-top: 1px solid #e0e0e0; */
}

.news-list li {
	font-size: 1.6rem;
	padding: 30px 0;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	gap: 2rem;

}

@media screen and (max-width: 768px) {
	.news-list li {
		flex-direction: column;
		gap: 1rem;
	}
}

.news-list .date {
	font-size: 1.8rem;
	display: block;
	min-width: 8.5rem;
	color: #757575;
}

.news-list .txt {
	display: block;
	font-weight: bold;
	line-height: 2;
}

.news-list .txt a {
	color: #333;
	text-decoration: none;
}

.news-list .txt a:hover {
	text-decoration: underline;
}

/* News Single */
.news-single .entry-header {
	margin-bottom: 56px;
}

.news-single .entry-header .date {
	/* color: #666; */
	font-size: 1.8rem;
	margin-top: 2rem;
	display: block;
}

.news-single .entry-title {
	font-size: 3.2rem;
	margin: 10px 0 0;
}

.news-single .btn {
	margin-top: 40px;
	text-align: center;
}

.news-single .btn a {
	display: inline-block;
	padding: 10px 30px;
	background: #333;
	color: #fff;
	text-decoration: none;
}

.news-single .entry-content {
	display: flex;
	flex-direction: column;
	row-gap: 5.6rem;
	line-height: 2;
	margin-bottom: 5.6rem;
}

.news-single .entry-content p+p {
	margin-top: -2.6rem;
}

.news-single .entry-content .wp-block-heading {
	font-size: 2.4rem;
}

.news-single .entry-content p {
	font-size: 1.6rem;
}

/* 内部リンク */
.news-single .entry-content a:not(.wp-block-button__link) {
	text-decoration: underline;
}

/* 外部リンク（target="_blank"のみ）にアイコン */
.news-single .entry-content a[target="_blank"]:not(.wp-block-button__link) {
	text-decoration: underline;
	background: url(/common/img/icon_blank.png) no-repeat right center;
	background-size: 12px auto;
	display: inline-block;
	padding: 0 20px 0 0;
}

.news-single .entry-content a[href$=".pdf"]:not(.wp-block-button__link) {
	background: url(/common/img/icon_pdf.png) no-repeat right center;
	background-size: 16px auto;
	display: inline-block;
	padding: 0 24px 0 0;
}

.news-single .entry-content .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	row-gap: 4rem;
}

.news-single .entry-content .wp-block-button__link {
	font-size: 1.6rem;
	padding: 0.5em 2em;
	font-weight: bold;
	text-decoration: none;
	background-color: #325077;
	min-width: 220px;
	background: url(/common/img/icon_chevron-right-white.png) no-repeat right 15px center #27507a;
	background-size: 7px auto;
	border: none;
	border-radius: 20px;
	height: 40px;
	line-height: 1;
	color: #fff;
}

.news-single .entry-content .wp-block-button__link[target="_blank"] {
	padding: 0.5em 2.5em 0.5em 2em;
	background: url(/common/img/icon_blank-white.png) no-repeat right 15px center #27507a;
	background-size: 12px auto;
}

.news-single .entry-content .wp-block-button__link[href$=".pdf"] {
	padding: 0.5em 2.5em 0.5em 2em;
	background: url(/common/img/icon_pdf-white.png) no-repeat right 15px center #27507a;
	background-size: 16px auto;
}

.news-single .entry-content .wp-block-button__link:hover {
	opacity: 0.8;
}

.news-single .news-back__btn{
	display: block;
	width: 200px;
	margin: 0 auto;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.4rem;
	/* padding-bottom: 2.3rem; */
	/* border-bottom: 1px solid #27507A; */
	position: relative;
	color: #27507A;
}

.news-single .news-back__btn::before{
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	border-top: 1px solid #27507A;
	border-right: 1px solid #27507A;
	left: 0;
	top: 50%;
	transform: translate(50%, -50%) rotate(-135deg);
}

.news-single .news-back__btn::after{
	content: "";
	position: absolute;
	width: 100%;
	height: 1px;
	background-color: #27507A;
	left: 0;
	bottom: -2.5rem;
}

@media screen and (max-width: 768px) {
	.news-single .entry-title {
		font-size: 2rem;
	}

	.news-single .entry-content .wp-block-heading {
		font-size: 1.8rem;
	}

	.news-single .entry-content {
		row-gap: 4rem;
	}
}

/* Pagination */

.news-page .navgation .pagination{
	width: 100%;
	position: relative;
}

.nav-links {
	margin: 80px auto 0;
	width: fit-content;
	margin-top: 80px;
	display: flex;
	column-gap: 2rem;
	align-items: center;
	height: 4.3rem;

}

.nav-links .page-numbers {
	display: block;
	text-align: center;
	/* height: 2em; */
	font-family: 'Montserrat', sans-serif;
	font-size: 2rem;
	font-weight: normal;
	color: #27507A;
}

.nav-links .page-numbers:hover {
	opacity: 0.8;
}

.nav-links .page-numbers.current {
	font-weight: bold;
}

.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
	display: block;
	width: 150px;
	margin: 0 auto;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.4rem;
	/* padding-bottom: 2.3rem; */
	/* border-bottom: 1px solid #27507A; */
	position: relative;
	color: #27507A;
	align-self: flex-start;
}

.nav-links .page-numbers.prev{
	margin-right: 1.5rem;
}

.nav-links .page-numbers.next{
	margin-left: 1.5rem;
}

.nav-links .page-numbers.prev::before,
.nav-links .page-numbers.next::before{
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	border-top: 1px solid #27507A;
	border-right: 1px solid #27507A;
	left: 0;
	top: 50%;
	transform: translate(50%, -50%) rotate(-135deg);
	line-height: 1;
}

.nav-links .page-numbers.next::before{
	left: auto;
	right: 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

.nav-links .page-numbers.prev::after,
.nav-links .page-numbers.next::after{
	content: "";
	position: absolute;
	width: 100%;
	height: 1px;
	background-color: #27507A;
	left: 0;
	bottom: -2.3rem;
}

.nav-links .page-numbers.disabled {
	opacity: 0.6;
	pointer-events: none;
	cursor: default;
}

@media screen and (max-width: 768px) {
	/* .nav-links{
		width: 100%;
	} */

	.nav-links .page-numbers.prev,
	.nav-links .page-numbers.next {
		width: calc(100vw * (100 / 390));
	}
}