/*
Theme Name: theme_child
Theme URI: http://example.com/
Description: Child theme for the Xeory
Author: バズ部
Author URI: http://bazubu.com/
Template: xeory_base
Version: 0.6.0
*/


/* ========================================
	基本設定
======================================== */
.post-content p,
.post-content pre {
	line-height: 1.8 !important;
	margin: 0 0 16px !important;
}
a:hover {
	text-decoration: none !important;
}

/* ========================================
	見出しスタイル
======================================== */
/* 見出し */
.post-content h2 {
	border-left: none !important;
	padding: 0;
	padding: 20px 20px 10px;
	display: block;
	position: relative;
	padding-left: 25px;
	margin: 2em 0 1em !important;
}
.post-content h2::before {
	position: absolute;
	content: "";
	bottom: -3px;
	left: 0;
	width: 0;
	height: 0;
	border: none;
	border-left: 10px solid transparent;
	border-bottom: 10px solid #FFCB11;
}
.post-content h2::after {
	position: absolute;
	content: "";
	bottom: -3px;
	left: 10px;
	width: 100%;
	border-bottom: 2px solid #FFCB11;
}
.post-content h3 {
	border-left: none !important;
	background: linear-gradient(transparent 70%, #a7d6ff 70%);
}
.post-content h4 {
	padding: 0.25em 0.5em;
	background: transparent;
	border-left: solid 5px #7E7BD9;
}

/* ========================================
	ヘッダー
======================================== */
#gnav ul {
	display: flex;
	justify-content: space-between;
}
#header #logo a {
	padding-bottom: 5px;
	position: relative;
}
#header #logo a::before {
	background: #F0A522;
	content: "";
	width: 100%;
	height: 2px;
	position: absolute;
	left: 0;
	bottom: 2px;
	transform-origin: right top;
	transform: scale(0, 1);
	transition: transform .3s;
}
#header #logo a:hover::before {
	transform-origin: left top;
	transform: scale(1, 1);
}

/* ========================================
	ボタン
======================================== */
.more-link {
	border-radius: 5px;
	margin: 10px;
}
form input[type="submit"] {
	border: 1px #1877BD solid !important;
	border-radius: 5px;
	padding: 12px 24px !important;
	line-height: 26px;
	margin-bottom: 64px;
	box-sizing: border-box;
	clear: both;
	color: #1877BD !important;
	background: #fff !important;
	font-size: 14px;
	transition: all ease-in-out .3s;
}
form input[type="submit"]:hover {
	background: #1877BD !important;
	color: #fff !important;
}


/* ========================================
	記事一覧レイアウト
======================================== */
/* 共通スタイル */
.post-first-featured,
.post-grid-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s, box-shadow 0.3s;
}
.post-first-featured:hover,
.post-grid-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.post-first-featured .post-link,
.post-grid-item .post-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.post-first-featured .post-link:hover,
.post-grid-item .post-link:hover {
	text-decoration: none !important;
}

/* タイトル共通設定 */
.post-first-featured .post-title,
.post-grid-item .post-title {
	font-weight: 600;
	line-height: 1.6;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	text-decoration: none !important;
	writing-mode: horizontal-tb !important;
	text-orientation: mixed !important;
	word-break: break-word;
	overflow-wrap: break-word;
	white-space: normal;
	display: block;
	width: 100%;
}
.post-first-fearured .post-title::before,
.post-first-fearured .post-title::after,
.post-grid-item .post-title::before,
.post-grid-item .post-title::after {
	display: none !important;
}
/* 抜粋共通設定 */
.post-first-featured .post-excerpt,
.post-grid-item .post-excerpt {
	line-height: 1.7;
	color: #666;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}
/* 続きを読むボタン共通設定 */
.post-first-featured .read-more-btn,
.post-grid-item .read-more-btn {
	display: inline-block;
	color: #0073aa;
	font-weight: 600;
	text-decoration: none !important;
	border: none !important;
	background: none !important;
	transition: 1ll 0.3s;
	align-self: flex-start;
	margin-top: auto;
}
.post-first-featured:hover .read-more-btn,
.post-grid-item:hover .read-more-btn {
	color: #005177;
	transform: translateX(3px);
}
/* 最新記事（1件目） */
.post-first-featured {
	width: 100%;
	margin-bottom: 50px;
}
.post-first-featured .post-link {
	display: block;
	height: auto;
}
.post-first-featured .post-thumbnail {
	flex: 0 0 40%;
	max-width: 40%;
	margin: 0 !important;
	width: 100% !important;
	float: left !important;
}
.post-first-featured .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.post-first-featured .post-content {
	flex: 1;
	padding: 30px 35px !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	writing-mode: horizontal-tb !important;
	width: 100%;
}
.post-first-featured .post-title {
	font-size: 24px;
	margin: 12px 0;
}
.post-first-featured .post-excerpt {
	font-size: 14px;
	margin-bottom: 18px;
	flex-grow: 1;
}
.post-first-featured .read-more-btn {
	font-size: 14px;
}
/* 2件目以降（3列グリッド） */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	margin-top: 30px;
}
.post-grid-item {
	display: flex;
	flex-direction: column;
}
.post-grid-item img {
	width: 100%;
}
.post-grid-item .post-link {
	height: 100%;
}
.post-grid-item .post-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
	flex-shrink: 0;
	margin: 0 !important;
}
.post-grid-item .post-thumbnail img {
	width: 100% !important;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}
.post-grid-item:hover .post-thumbnail img {
	transform: scale(1.1);
}
.post-grid-item .post-content {
	padding: 22px !important;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	writing-mode: horizontal-tb !important;
	width: 100%;
}
.post-grid-item .post-title {
	font-size: 17px;
	margin: 10px 0;
}
.post-grid-item .post-excerpt {
	font-size: 13px;
	margin-bottom: 15px;
	flex-grow: 1
}
.post-grid-item .read-more-btn {
	font-size: 13px;
}

/* ========================================
	ハンバーガーメニュー
======================================== */
#header-menu-tog {
	display: flex;
	align-items: center;
	justify-content: center;
}
#header-menu-tog .menu-toggle-btn {
	position: relative;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none !important;
}
#header-menu-tog .menu-toggle-btn:hover {
	background-color: rgba(0, 115, 170, 0.1);
}
#header-menu-tog .menu-toggle-btn:actve {
	background-color: rgba(0, 115, 170, 0.2);
}
.hamburger-icon {
	position: relative;
	width: 28px;
	height: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.hamburger-icon .line {
	width: 100%;
	height: 3px;
	background-color: #7E7BD9;
	border-radius: 3px;
	transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	display: block;
}
.hamburger-icon .line:nth-child(1) {
	transition-delay: 0s;
}
.hamburger-icon .line:nth-child(2) {
	transition-delay: 0.05s;
}
.hamburger-icon .line:nth-child(3) {
	transition-delay: 0.1s;
}
#header-menu-tog .menu-toggle-btn:hover .line:nth-child(1) {
	transform: translateY(-2px);
}
#header-menu-tog .menu-toggle-btn:hover .line:nth-child(3) {
	transform: translateY(2px);
}
#header-menu-tog.active .hamburger-icon .line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
#header-menu-tog.active .hamburger-icon .line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
#header-menu-tog.active .hamburger-icon .line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ========================================
	その他
======================================== */
h2.post-title {
	margin: 0 0 20px;
}
.scroll {
	overflow: auto;
	height: 200px;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 10px;
	margin-bottom: 15px;
}
.scroll ol li p {
	margin: 0;
}

/* ========================================
	レスポンシブ対応
======================================== */
/* タブレット以下 */
@media (max-width: 1024px) {
	/* 最新記事を縦並びに */
	.post-first-fearured .post-link {
		flex-direction: column;
	}
	.post-first-featured .post-thumbnail {
		flex: none;
		max-width: 100%;
		height: 250px;
	}
	.post-first-featured .post-content {
		padding: 25px !important;
	}
	.post-first-featured .post-title {
		font-size: 22px;
	}
	.post-grid {
		gap: 20px;
	}

	/* ナビゲーションメニュー */
	#gnav.active {
		float: none !important;
		margin-bottom: 0;
	}
	#gnav ul {
		display: block;
	}
	body.menu-open #gnav-ul li {
		animation: slideInMenuItem 0.4s ease forwards;
	}
}

/* スマホ（大） */
@media (max-width: 600px) {
	.post-first-featured {
		margin-bottom: 30px;
	}
	.post-first-featured .post-thumbnail {
		height: 200px !important;
		width: 100% !important;
	}
	.post-first-featured .post-content {
		padding: 20px !important;
	}
	.post-first-featured .post-title {
		font-size: 20px;
		line-height: 1.5;
	}
	.post-first-featured .post-excerpt {
		font-size: 14px;
		margin-bottom: 15px;
	}
	.post-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	.post-grid-item {
		margin-bottom: 30px !important;
	}
	.post-grid-item .post-thumbnail {
		height: 160px;
	}
	.post-grid-item .post-content {
		padding: 16px !important;
	}
	.post-grid-item .post-title {
		font-size: 16px;
	}
	.post-grid-item .post-excerpt {
		font-size: 13px;
	}
}

/* スマホ（小） */
@media (max-width: 480px) {
	.post-first-fearured .post-content {
		padding: 18px !important;
	}
	.post-first-featured .post-title {
		font-size: 18px;
	}
	.post-first-featured .post-thumbnail {
		height: 140px;
	}
}


/* ========================================
	アニメーション
======================================== */
@keyframes slideInMenuItem {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}