/*
Theme Name: 4193
Theme URI: https://www.4193honpo.jp/
Version: 1.0.2
Author: Tsukasa Chinen
Author URI: https://www.4193honpo.jp/
Description: 更新日：2022/03/15 グローバルナビメガメニュー改修
*/

/* ==========================================================================
   検索機能のスタイル
   ========================================================================== */

/* サイドバー検索ブロック */
.menu_search {
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 8px;
}

.menu_search__title {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin-bottom: 15px;
	padding: 0;
	position: relative;
}

.menu_search__title span {
	display: inline-block;
}

/* 検索アイコン（タイトル用） */
.menu-search:before {
	content: "🔍";
	margin-right: 8px;
	font-size: 16px;
}

.menu_search__form {
	padding: 0;
}

/* カスタム検索フォーム */
.custom-search-form {
	width: 100%;
}

.search-input-wrapper {
	display: flex;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: border-color 0.3s ease;
}


.search-input {
	flex: 1;
	padding: 12px 15px;
	border: none;
	outline: none;
	font-size: 16px;
	background: transparent;
	color: #333;
	font-family: inherit;
}

.search-input::placeholder {
	color: #999;
	font-style: italic;
}

.search-input:focus {
	outline: none;
}

.search-button {
	padding: 12px 16px;
	background: linear-gradient(135deg, #85bf23, #70a01d);
	border: none;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-button:hover {
	background: linear-gradient(135deg, #70a01d, #5d8a17);
	transform: translateY(-1px);
}

.search-button:active {
	transform: translateY(0);
}

.search-icon {
	font-size: 16px;
	display: inline-block;
}



/* アクセシビリティ */
.search-input:focus + .search-button {
	background: linear-gradient(135deg, #70a01d, #5d8a17);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
	.menu_search {
		margin-bottom: 15px;
		padding: 12px;
	}
	
	.search-input {
		font-size: 16px; /* prevents zoom on iOS */
		padding: 14px 15px;
	}
	
	.search-button {
		padding: 14px 16px;
	}
	
	.menu_search__title {
		font-size: 15px;
		margin-bottom: 12px;
	}
}

/* ==========================================================================
   モバイル用検索フォーム
   ========================================================================== */

/* モバイル用検索フォーム */
.mobile-search-form {
	display: none;
	margin-bottom: 30px;
}

.mobile-search-container {
	padding: 20px;
	border-radius: 8px;
}

.mobile-search-title {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin-bottom: 15px;
	margin-top: 0;
}

.mobile-search-wrapper {
	display: flex;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: border-color 0.3s ease;
}


.mobile-search-input {
	flex: 1;
	padding: 12px 15px;
	border: none;
	outline: none;
	font-size: 16px;
	background: transparent;
	color: #333;
	font-family: inherit;
}

.mobile-search-input::placeholder {
	color: #999;
	font-style: italic;
}

.mobile-search-input:focus {
	outline: none;
}

.mobile-search-button {
	padding: 12px 16px;
	background: linear-gradient(135deg, #85bf23, #70a01d);
	border: none;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-search-button:hover {
	background: linear-gradient(135deg, #70a01d, #5d8a17);
	transform: translateY(-1px);
}

.mobile-search-button:active {
	transform: translateY(0);
}

/* スマホ時のモバイル検索フォーム表示 */
@media (max-width: 768px) {
	.mobile-search-form {
		display: block;
	}
}

/* ==========================================================================
   モバイルメニュー内検索フォーム
   ========================================================================== */

.modal_search {
	padding: 15px;
	border-bottom: 1px solid #ddd;
}

.modal_search_container {
	max-width: 100%;
}

.modal_search_wrapper {
	display: flex;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal_search_input {
	flex: 1;
	padding: 12px 15px;
	border: none;
	outline: none;
	font-size: 16px;
	background: transparent;
	color: #333;
	font-family: inherit;
}

.modal_search_input::placeholder {
	color: #999;
	font-style: italic;
}

.modal_search_input:focus {
	outline: none;
}

.modal_search_button {
	padding: 12px 16px;
	background: linear-gradient(135deg, #85bf23, #70a01d);
	border: none;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal_search_button:hover {
	background: linear-gradient(135deg, #70a01d, #5d8a17);
	transform: translateY(-1px);
}

.modal_search_button:active {
	transform: translateY(0);
}

.modal_search .search-icon {
	font-size: 16px;
	display: inline-block;
}

/* ==========================================================================
   ページレイアウト
   ========================================================================== */

/* 記事ページ・固定ページ共通 */
.single-page,
.page-content {
	padding: 40px 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.content-area {
	display: flex;
	gap: 30px;
}

.main-content {
	flex: 1;
}

.sidebar-area {
	width: 300px;
	flex-shrink: 0;
}

.entry-header {
	margin-bottom: 30px;
}

.entry-title {
	font-size: 2.2em;
	margin-bottom: 15px;
	color: #333;
}

.entry-meta {
	color: #666;
	font-size: 0.9em;
	margin-bottom: 10px;
}

.entry-meta span {
	margin-right: 15px;
}

.entry-content {
	line-height: 1.8;
	margin-bottom: 30px;
}

.entry-footer {
	border-top: 1px solid #eee;
	padding-top: 20px;
}

.post-tags {
	color: #666;
	font-size: 0.9em;
}

/* モバイル対応 */
@media (max-width: 768px) {
	.content-area {
		flex-direction: column;
	}
	
	.sidebar-area {
		width: 100%;
		order: -1;
	}
	
	.entry-title {
		font-size: 1.8em;
	}
}

/* ==========================================================================
   検索結果ページ
   ========================================================================== */

.search-results-page {
	padding: 40px 0;
}

.page-header {
	margin-bottom: 30px;
	text-align: center;
}

.page-title {
	font-size: 1.8em;
	margin-bottom: 10px;
	color: #333;
}

.search-results-count {
	color: #666;
	font-size: 1.1em;
}

.search-results-list {
	margin-bottom: 40px;
}

.search-result-item {
	background: #fcfcfc;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid #f0f0f0;
}

.search-result-item:last-child {
	margin-bottom: 0;
}

.search-result-item .entry-title {
	font-size: 1.3em;
	margin-bottom: 10px;
}

.search-result-item .entry-title a {
	color: #70b304;
	text-decoration: none;
}

.search-result-item .entry-title a:hover {
	text-decoration: underline;
	color: #5a8f03;
}

.search-result-item .entry-summary {
	margin-bottom: 15px;
	line-height: 1.6;
	color: #333;
}

.search-result-item .entry-summary mark {
	background-color: #ffeb3b;
	padding: 2px 4px;
	border-radius: 3px;
}

.entry-footer {
	text-align: right;
}

.read-more {
	color: #70b304;
	text-decoration: none;
	font-weight: bold;
}

.read-more:hover {
	text-decoration: underline;
	color: #5a8f03;
}

.no-results {
	text-align: center;
	padding: 60px 20px;
}

.search-suggestions {
	margin: 30px 0;
	text-align: left;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.search-suggestions ul {
	list-style-type: disc;
	padding-left: 20px;
}

.search-form-retry {
	margin: 40px 0;
}

/* 再検索フォームのスタイル統一 */
.search-form-retry .search-form-container {
	max-width: 100%;
}

.search-form-retry .search-field-wrapper {
	display: flex;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form-retry .search-field {
	flex: 1;
	padding: 12px 15px;
	border: none;
	outline: none;
	font-size: 16px;
	background: transparent;
	color: #333;
	font-family: inherit;
}

.search-form-retry .search-field::placeholder {
	color: #999;
	font-style: italic;
}

.search-form-retry .search-submit {
	padding: 12px 16px;
	background: linear-gradient(135deg, #85bf23, #70a01d);
	border: none;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-form-retry .search-submit:hover {
	background: linear-gradient(135deg, #70a01d, #5d8a17);
	transform: translateY(-1px);
}

.search-form-retry .search-submit:active {
	transform: translateY(0);
}

.search-form-retry .search-icon {
	font-size: 16px;
	display: inline-block;
}

.pagination-nav {
	text-align: center;
	margin-top: 40px;
}

/* 検索結果ページのモバイル対応 */
@media (max-width: 768px) {
	.page-title {
		font-size: 1.5em;
	}
	
	.search-result-item .entry-title {
		font-size: 1.2em;
	}
	
	.search-result-item {
		padding: 20px;
		margin-bottom: 20px;
	}
}