/* ========================
TOPページ
======================== */
.p-global-nav {
	width: 100%;
}

.p-global-nav li a {
	padding-inline: 17px;
	font-weight: bold;
	font-size: 17px;
}

.p-header-blog__item-info {
	padding-inline: 20px;
}

.p-header-blog__item-thumbnail.p-article-slider__item-thumbnail {
	height: 100%;
}


.p-header-blog[data-division] .p-header-blog__item-thumbnail {
    padding-top: 400px !important;
}


/* .p-header-blog .slick-list {
	width: 88.8888%;
	max-width: 1500px;
	margin-inline: auto;
}
 */
/* .p-header-blog {
	max-width: 1600px;
	margin-inline: auto;
} */

@media only screen and (max-width: 991px) {
	.p-header-blog .slick-list {
		width: 100%;
	}
}

.p-index-slider {
	margin-bottom: 60px;
}

.p-index-blog--type1 {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.p-index-blog--type1 .p-subcategory-meta {
	display: none;
}

.p-index-blog--type1 .p-blog-archive__item {
	width: 47%;
}

@media only screen and (max-width: 767px) {
	.p-index-blog--type1 .p-blog-archive__item {
		width: 100%;
	}
}

.p-index-blog--type1 .p-blog-archive__item-excerpt {
	display: none;
}

.p-index-blog--type1 .p-blog-archive__item-thumbnail {
	display: none;
}

.p-index-blog--type1 .p-blog-archive__item-info {
	float: none;
	width: 100%;
}

.p-index-blog--type1 .p-category-meta {
	display: block;
	margin-top: 3px;
}

.p-index-blog--type1 .p-category-meta [class*='p-category-item--'] {
	background-color: transparent !important;
}

.p-cb__item-header__has-button .p-cb__item-archive-link__button {
	background-color: #F9A825;
}

.p-cb__item-header__has-button .p-cb__item-archive-link__button:hover {
	color: white !important;
	opacity: 0.8;
}

#cb_1 .p-cb__item-header {
	border-color: #F9A825 !important;
}

.p-cb__item-headline {
	font-size: 22px
}

.p-cb__item-headline {
	font-weight: 600;
}

@media only screen and (max-width: 767px) {
.p-cb__item-headline {
		font-size: 18px
	}
}

.p-cb__item-header__has-border {
	padding-bottom: 14px
}


@media only screen and (max-width: 767px) {
.p-cb__item-header__has-border {
		padding-bottom: 16px
	}
}

/* ========================
ヘッダー
======================== */
body.blog .p-header-band {
	background-color: #F9A825;
}

body.blog .p-header-band h1 span {
	color: #F9A825;
}

.p-cb__item-header__has-border--materials {
	border-color: #0D47A1 !important;
}

#menu-item-35971 a:hover,
#menu-item-35971.current-menu-item>a {
	color: #0D47A1;
}

.page-id-35676 .p-header-band {
	background-color: #0D47A1;
}

.page-id-35676 .p-header-band h1 span {
	color: #0D47A1;
}

#menu-item-40993 a:hover,
#menu-item-40993.current-menu-item>a {
	color: #00ACC1;
}

.page-id-40741 .p-header-band {
	background-color: #00ACC1;
}

.page-id-40741 .p-header-band h1 span {
	color: #00ACC1;
}


.p-header-search form {
	margin-left: 20px;
	width: 300px;
	height: 45px;
	display: flex;
	align-items: center;
}

.p-header-search__input {
	height: 45px;
}

.p-header-search .p-search-button {
	flex-shrink: 0;
	float: right;
	line-height: 1 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	height: 45px;
}

.p-header-search .c-search-button {
	display: grid;
	place-content: center;
	background: #000;
	color: white;
	cursor: pointer;
	font-size: 0;
	position: static;
	width: 45px !important;
	height: 45px !important;
}

.p-header__ad {
	width: 468px;
	padding: 15px 0 15px 20px;
}

.p-header__ad img {
	object-fit: cover;
}

.p-logo a {
	display: block;
	width: fit-content;
}

.p-logo__header img {
	width: 250px;
	object-fit: cover;
}

.p-header__logo .p-logo {
	padding: 0;
}

.p-logo__header--mobile img {
	width: 170px;
	object-fit: cover;
}

#js-global-nav > li:nth-last-child(1),
#js-global-nav > li:nth-last-child(2) {
   display: none;
}

@media only screen and (max-width: 991px) {
	#js-global-nav li:nth-last-child(1),
	#js-global-nav li:nth-last-child(2) {
  		 display: block;
	}
}

.p-global-nav li a {
	font-weight: 600;
}

/* ========================
サイドバー
======================== */
.l-secondary__inner {
	width: 350px;
}

/* ========================
フッター
======================== */
.l-footer {
	margin-top: 50px;
}

.p-logo__footer img {
	width: 250px;
	object-fit: cover;
}

.p-logo__footer--mobile a {
	margin-inline: auto;
}

.p-logo__footer--mobile img {
	width: 170px;
	object-fit: cover;
}

/* ========================
固定ページ
======================== */
a {
	transition: all 0.3s ease-out;
}

.wp-block-image > a:hover {
	filter: brightness(0.8);
}

.wp-block-heading > a:hover {
	opacity: 0.7;
}

.wp-block-buttons .wp-block-button__link {
	color: white;
	font-weight: 600;
	border-radius: 2px;
}

.wp-block-buttons .wp-block-button__link:hover {
	opacity: 0.7;
}

.wpcf7 input[type='checkbox'],
.wpcf7 input[type='radio'] {
	width: auto !important;
	translate: 0 1px;
}

.wpcf7 select {
	width: 100% !important;
}

/* メインのp-download-patternコンテナ */
.p-download-pattern {
	display: flex;
	flex-direction: column;
	height: 100%; /* 親の高さを継承 */
}

/* 各カラム */
.p-download-pattern .wp-block-column {
	display: flex;
	flex-direction: column;
	flex: 1; /* 高さを均等に */
}

/* ボタンエリアを下部に固定 */
.p-download-pattern .wp-block-buttons {
	margin-top: auto; /* 上部の余白を自動で最大化 */
}

/* オプション: ボタン自体のスタイル調整 */
.p-download-pattern .wp-block-button__link {
	display: inline-block;
	width: 100%;
	text-align: center;
}

/* 親のカラム調整 */
.wp-block-columns .wp-block-column:has(.p-event-pattern) {
	display: flex;
	flex-direction: column;
}

/* p-event-patternコンテナ */
.p-event-pattern {
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: space-between; /* コンテンツを上下に分散 */
}

/* 内部のinner-container調整 */
.p-event-pattern > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* 画像エリア（コンテンツ部分） */
.p-event-pattern .wp-block-image,
.p-event-pattern .wp-block-group:not(:last-child) {
	flex-grow: 1;
}

/* ボタンエリアを下部固定 */
.p-event-pattern .wp-block-buttons {
	margin-top: auto;
}


/* ========================
カテゴリー一覧
======================== */
.p-blog-archive__item-thumbnail {
	width: 36%;
}

@media only screen and (max-width: 768px) {
	.p-blog-archive__item-thumbnail {
		width: 46.875%;
	}
}

.p-blog-archive__item-info {
	width: 59%;
}

@media only screen and (max-width: 768px) {
	.p-blog-archive__item-info {
		width: 49.218%;
	}
}

/* ========================
記事
======================== */
@media only screen and (min-width: 450px) {
	.p-entry__thumbnail {
		max-width: 450px;
		margin-inline: auto !important;
	}
}

/* ========================
記事詳細
======================== */
.p-entry__meta {
	padding: 0;
}

.p-entry__thumbnail {
	margin-block: 40px;
}

@media only screen and (max-width: 767px) {
    .p-entry__thumbnail {
        margin-block: 20px 30px !important;
    }
}

.c-meta-box__item {
	border-right: none;
	line-height: 1.8;
	margin-bottom: 16px;
}

.c-meta-box__item:last-child {
	margin-bottom: 0;
}

.wp-block-table td {
	vertical-align: middle;
}

.wp-block-columns-is-layout-flex {
	gap: 40px;
}

@media only screen and (min-width: 782px) and (max-width: 991px) {
	.wp-block-columns-is-layout-flex {
		gap: 100px;
	}
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
	.wp-block-columns-is-layout-flex {
		gap: 40px;
	}
}

@media only screen and (min-width: 1201px) {
	.wp-block-columns-is-layout-flex {
		gap: 100px;
	}
}

.wp-block-group figure img {
	width: 100%;
}
