@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.copyright {
	color: #fff;
}

.page-title {
	font-size: 2em;
	margin-block-start: 0.83em;
	margin-block-end: 0.83em;
}

/* Hide default page title on static pages (since we use Hero) */
.page .entry-title {
	display: none;
}

.archive-title {
	text-align: center;
	margin-bottom: 3rem;
}

.navi-footer-in .menu-footer li {
	border-left: none;
	border-right: none;
}

.navi-footer-in .menu-footer li:last-child {
	border-right: none;
}

.navi-footer-in a:hover {
	background-color: #000;
	transition: all 0.3s ease-in-out;
}

.copyright {
	margin-top: 30px;
}

table tr:nth-of-type(2n+1) {
	background-color: initial;
}

#sidebar .card-title {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.click-btn {
	background-color: orange;
	border-radius: 30px;
}

.click-btn a {
	display: block;
	text-align: center;
	text-decoration: none;
	color: #fff;
	padding: 10px 0;
}

.induction_btn {
	display: flex;
	justify-content: space-around;
	margin: 2rem 0;
}

.induction_btn .click-btn {
	width: 250px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {

	/*必要ならばここにコードを書く*/
	#search-menu-open {
		color: #fff;
	}

	#navi-menu-open {
		color: #fff;
	}

	/************************************
**モバイル表示　ヘッダーメニュー・検索アイコン
************************************/
	.mobile-menu-buttons {
		background-color: #000;
		height: 50px;
		box-shadow: none;
	}

	.mobile-menu-buttons>li {
		padding-top: 0;
	}

	.menu-button {
		margin: auto;
	}

	span.fas.fa-search::before {
		color: #fff;
		/*検索マーク色変更はこちら*/
		margin-left: 1em;
	}

	span.fas.fa-bars::before {
		color: #fff;
		/*ハンバーガーメニュー色変更はこちら*/
		margin-right: 1em;
	}

	.navi-menu-caption.menu-caption,
	.home-menu-caption.menu-caption,
	.search-menu-caption.menu-caption,
	.top-menu-caption.menu-caption,
	.sidebar-menu-caption.menu-caption {
		display: none;
	}

	.navi-menu-content {
		left: auto;
		right: 0;
		transform: translateX(101%);
		background-color: rgba(0, 0, 0, 0.7);
	}

	.menu-drawer a {
		color: #fff;
		padding: 15px;
	}

	.menu-close-button {
		color: #fff;
	}
}

/*834px以下*/
@media screen and (max-width: 834px) {

	/*必要ならばここにコードを書く*/
	.navi-footer-in .menu-footer {
		flex-flow: column;
		align-items: center;
	}

	.archive-title {
		margin-top: 2rem;
	}

	.top-article .widget-entry-card-title {
		font-size: initial;
	}

	.top-article .widget-entry-card-snippet {
		font-size: initial;
	}
}

@media screen and (max-width: 600px) {
	.induction_btn {
		flex-direction: column;
		align-items: center;
	}

	.induction_btn .click-btn {
		width: 100%;
		margin-bottom: 2rem;
	}
}

/*480px以下*/
@media screen and (max-width: 480px) {

	/*必要ならばここにコードを書く*/
	.breadcrumb span {
		display: inline-block;
		padding: 0;
		margin-top: -3px;
		vertical-align: middle;
		max-width: 130px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.navi-footer-in>.menu-footer li.menu-item {
		width: 60%;
	}
}

/* ==============================================
   5. Sidebar & Widgets (Modern Design)
   ============================================== */

/* Sidebar Layout (Sticky) */
#sidebar {
	position: sticky;
	top: 20px;
	height: fit-content;
}

/* Common Widget Style */
.widget {
	background: #fff;
	border: 1px solid #eee;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #333;
	/* Tech/Sharp Underline */
	letter-spacing: 0.05em;
	color: #333;
}

/* 1. Search Widget (Minimalist) */
.search-box .search-edit {
	width: 100%;
	height: 40px;
	padding: 0 15px;
	background: #f5f5f5;
	border: none;
	border-radius: 4px;
	font-size: 0.9rem;
}

.search-button {
	display: none;
	/* Hide default button if icon is inside input (Cocoon default) */
}

/* 2. Categories (Clean List) */
.widget_categories ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget_categories ul li {
	border-bottom: 1px solid #f0f0f0;
	position: relative;
}

.widget_categories ul li a {
	display: block;
	padding: 12px 0;
	color: #555;
	text-decoration: none;
	transition: color 0.3s;
	font-weight: 600;
}

.widget_categories ul li a:hover {
	color: #e67e22;
	/* Accent Color */
	padding-left: 5px;
	/* Slide effect */
}

.widget_categories ul li .post-count {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #eee;
	color: #888;
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 10px;
}

/* 3. Tag Cloud (Modern Pills) */
.widget_tag_cloud .tagcloud a {
	display: inline-block;
	background: #f5f5f5;
	color: #555;
	padding: 6px 14px;
	margin: 0 6px 8px 0;
	font-size: 0.8rem !important;
	/* Force normalized size */
	border-radius: 20px;
	/* Pill Shape */
	text-decoration: none;
	transition: all 0.3s;
	border: 1px solid transparent;
}

.widget_tag_cloud .tagcloud a:hover {
	background: #fff;
	border-color: #e67e22;
	color: #e67e22;
}

/* 4. Popular Posts (Ranking List) */
.widget_popular_entries {
	counter-reset: ranking-num;
}

.widget_popular_entries .widget-entry-cards .a-wrap {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	text-decoration: none;
	position: relative;
	counter-increment: ranking-num;
}

/* Ranking Badge */
.widget_popular_entries .widget-entry-cards .a-wrap::before {
	content: counter(ranking-num);
	position: absolute;
	top: -5px;
	left: -5px;
	background: #444;
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	text-align: center;
	line-height: 24px;
	font-size: 0.7rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Gold/Silver/Bronze Colors */
.widget_popular_entries .widget-entry-cards .a-wrap:nth-child(1)::before {
	background: #d4af37;
}

/* Gold */
.widget_popular_entries .widget-entry-cards .a-wrap:nth-child(2)::before {
	background: #c0c0c0;
}

/* Silver */
.widget_popular_entries .widget-entry-cards .a-wrap:nth-child(3)::before {
	background: #cd7f32;
}

/* Bronze */

.widget_popular_entries .card-thumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
	margin-right: 15px;
	flex-shrink: 0;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.widget_popular_entries .card-content {
	font-size: 0.9rem;
	line-height: 1.4;
	font-weight: 700;
	color: #333;
}

/* 5. New Arrivals (Thumbnail List) */
.widget_new_entries .widget-entry-cards .a-wrap {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	text-decoration: none;
}

.widget_new_entries .card-thumb {
	width: 80px;
	height: 60px;
	/* 4:3 ratio approx */
	object-fit: cover;
	margin-right: 15px;
	flex-shrink: 0;
}

.widget_new_entries .card-content {
	font-size: 0.9rem;
	line-height: 1.4;
	color: #333;
}

.widget_new_entries .card-date {
	display: block;
	font-size: 0.75rem;
	color: #999;
	margin-top: 4px;
}

/* ==============================================
   6. Archive Page Design (Magazine Style) - FIXED
   ============================================== */

/* Hero Section - Dynamic Diagonal Design */
.archive-hero {
	position: relative;
	width: 100%;
	min-height: 350px;
	/* Taller for impact */
	/* Deep Gradient Background */
	background: linear-gradient(135deg, #1f232a 0%, #121212 100%);
	color: #fff;
	display: flex;
	align-items: center;
	/* Vertical Center */
	justify-content: flex-start;
	/* Left Align */
	overflow: hidden;
	margin-bottom: 60px;
	/* Space for the diagonal cut */
	padding-left: 10%;
	/* Dynamic Left Padding */
	padding-right: 5%;

	/* The "Not Just A Box" Feature: Diagonal Cut */
	clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
	-webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Diagonal Stripe Pattern Overlay (Optional) */
.archive-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Subtle diagonal stripe pattern */
	background-image: repeating-linear-gradient(45deg,
			rgba(255, 255, 255, 0.03),
			rgba(255, 255, 255, 0.03) 1px,
			transparent 1px,
			transparent 10px);
	pointer-events: none;
}

.archive-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05), transparent 60%);
	pointer-events: none;
}

.archive-hero-content {
	position: relative;
	z-index: 2;
	text-align: left;
	/* Left Align */
	max-width: 800px;
}

.archive-label {
	display: inline-block;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.2rem;
	color: #eebb00;
	/* Accent Color Text */
	margin-bottom: 15px;
	font-family: "Montserrat", sans-serif;
	text-transform: uppercase;
	border-bottom: 2px solid #eebb00;
	padding-bottom: 5px;
}

.archive-title {
	font-size: 3.5rem;
	/* Large Impact */
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.02em;
	font-family: "Noto Sans JP", sans-serif;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	text-transform: uppercase;
}

.archive-desc {
	margin-top: 25px;
	font-size: 1rem;
	opacity: 0.8;
	line-height: 1.8;
	max-width: 600px;
}

/* Grid Layout */
.archive-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

/* Archive Card */
.archive-card {
	display: block;
	text-decoration: none;
	color: #333;
	background: #fff;
	border: 1px solid #eee;
	transition: transform 0.3s, box-shadow 0.3s;
	overflow: hidden;
}

.archive-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.archive-thumb {
	position: relative;
	width: 100%;
	padding-top: 60%;
	/* Aspect Ratio 5:3 */
	overflow: hidden;
}

.archive-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.archive-card:hover .archive-thumb img {
	transform: scale(1.05);
}

.archive-card-cat {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 0.7rem;
	padding: 3px 8px;
	border-radius: 2px;
}

.archive-info {
	padding: 20px;
}

.archive-date {
	display: block;
	font-size: 0.75rem;
	color: #999;
	margin-bottom: 8px;
	letter-spacing: 0.05em;
}

.archive-card-title {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
	/* Line Clamp 2 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Pagination - Stylish Squares */
.archive-pagination {
	margin-top: 60px;
	text-align: center;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.archive-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #ddd;
	/* Light border */
	color: #333;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	background: #fff;
	border-radius: 2px;
	/* Slight rounding */
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
	background: #333;
	/* Dark background */
	color: #fff;
	border-color: #333;
	transform: translateY(-2px);
	/* Slight lift */
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.archive-pagination .next,
.archive-pagination .prev {
	font-size: 0.9rem;
	padding: 0 15px;
	width: auto;
	/* Allow width to fit icon/text */
}

/* Responsive */
@media screen and (max-width: 768px) {
	.archive-grid {
		grid-template-columns: 1fr;
		/* 1 Column on Mobile */
		gap: 20px;
	}

	.archive-title {
		font-size: 2.2rem;
	}

	.archive-hero {
		min-height: 250px;
		padding-left: 20px;
		clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
		-webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
	}
}