/*
Theme Name: epismile2050
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epismile2050
Tags: 
*/


/* ---- 追加css ---- */

/* -- header -- */
.p-header-navList {
	gap: 30px;
}

.p-header-navList a {
	font-size: 1.4rem;
}

@media screen and (min-width: 1190px) {
    .en .p-header-navList {
		gap: 30px;
    }
}

/* -- top -- */
.p-top-topics__btn {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-top: 60px;
}

@media screen and (max-width: 820px) {
	.p-top-topics__btn {
		justify-content: flex-end;
		margin-top: 0;
	}
}

@media screen and (min-width: 1440px) {
    .en .p-top-main__catch {
        flex-basis: 56vw;
    }
}


.p-top-organizations__item a {
	padding: 0;
}

@media screen and (max-width: 768px) {
	.p-top-organizations__item a {
		padding: 10px;
	}
}

/* -- topics -- */
.c-topics-item__detail {
	align-items: center;
}

/* -- ページャー -- */
.c-pager {
	gap: 20px;
}

.c-pager .wp-block-query-pagination-numbers {
	display: flex;
	gap: 20px;
}

.c-pager .wp-block-query-pagination-numbers .page-numbers {
	font-size: 1.4rem;
    padding: 10px 15px;
    border: 1px solid #C8C8CA;
    border-radius: 5px;
}

.c-pager .wp-block-query-pagination-numbers .current {
	background: #333;
	color: #fff;
}

.c-pager .wp-block-query-pagination-previous-arrow {
    color: transparent !important;
    position: relative;
    display: inline-block;
    width: 1em;
}

.c-pager .wp-block-query-pagination-previous-arrow::before {
    content: "\25C0\FE0E"; /* ◀ テキスト形式 */
    color: #333;           /* サイトの色に合わせて変更してください */
    position: absolute;
    left: 0;
    top: 0;
}

.c-pager .wp-block-query-pagination-next-arrow {
    color: transparent !important;
    position: relative;
    display: inline-block;
    width: 1em;
}

.c-pager .wp-block-query-pagination-next-arrow::before {
    content: "\25B6\FE0E"; /* ▶ テキスト形式 */
    color: #333;           /* サイトの色に合わせて変更してください */
    position: absolute;
    left: 0;
    top: 0;
}

/* -- ボタン -- */
.c-btn--blank {
	position: relative;
}

.c-btn--blank:after {
	content: "";
	background-image: url(https://epismile2050.org/cms/wp-content/uploads/2026/01/icon_blank_white.png);
	background-size: contain;
	background-repeat: no-repeat;
	display: inline-block;
	width: 16px;
	height: 16px;
	position: absolute;
    top: 50%;
    transform: translateY(-50%);
	margin-left: 10px;
}

.c-btn--blank.c-btn--orange:hover {
	background-color: #e67e22;
    color: #fff;
    opacity: 0.6;
}

/* -- 研究業績 -- */
.c-topics-item__cat--green {
	background-color: #3F7540;
}

.c-topics-item__cat--gray {
	background-color: #C8C8CA;
}

.c-achievements-cat {
	display: flex;
	align-content: center;
	gap: 10px;
}

.c-achievements-links {
	max-width: 860px;
    margin-inline: auto;
}

.c-achievements-3col {
	display: grid;
    grid-template-columns: repeat(3, 240px);
	gap: 30px;
	margin-top: 20px;
}

.c-achievements-3col a {
	width: 100%;
}

.c-achievements-3col br {
	display: none;
}


@media screen and (max-width: 820px)  {
	.c-achievements-3col {
		grid-template-columns: 1fr;
		margin-top: 40px;
	}
}


/* --  研究業績 一覧 -- */
.c-achievements-list__link {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* -- セレクトボックス -- */
.c-filter {
	display: flex;
	justify-content: flex-end;
	gap: 40px;
	padding-bottom: 65px;
}

.c-filter__item {
	display: flex;
	align-items: center;
	gap: 20px;
}

.c-filter__item p {
	font-weight: bold;
}

.c-filter__item-select select {
	width: 250px;
    border: none;
    border-radius: 10px;
	background-color: #fff;
    color: #747476;
    padding: 10px 20px;
	appearance: none; /* デフォルトの矢印を消す */
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}

.c-filter__item-select {
	position: relative;
}

.c-filter__item-select:after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
	border-top: 6px solid #747476;
	border-bottom: 0;
	pointer-events: none;
}

@media screen and (max-width: 1140px) {
	.c-filter__item {
		font-size: 1.4rem;
	}
	
	.c-filter__item-select select {
		width: 240px;
	}
}

@media screen and (max-width: 1020px) {
	.c-filter {
		flex-direction: column;
		gap: 15px;
		padding-bottom: 60px;
	}
	
	.c-filter__item {
		display: grid;
		grid-template-columns: 100px 240px;
		justify-content: flex-end;
		gap: 15px;
	}
	
	.c-filter__item-select select {
		width: 100%;
	}
}

@media screen and (max-width: 500px) {
	.c-filter__item {
		grid-template-columns: auto 240px;
		justify-content: space-between;
	}
}

/* -- ブロック 上書き -- */
.wp-block-list {
	list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-list li {
	padding-left: 1em;
    text-indent: -1em;
}

.wp-block-list li::before {
    content: "・";
}

.wp-block-image.aligncenter > figcaption {
	color: #747476;
    font-size: 1.4rem;
    text-align: left;
}

.justify-content-center {
	justify-content: center;
}