@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* パンくずナビを非表示 */
#breadcrumb {
	display: none;
}

/*---------------------
ハンバーガーメニュー
---------------------*/
/* ×印を左側へ寄せる／閉じるボタンと項目の間を約1.2倍に */
#navi-menu-content .navi-menu-close-button.menu-close-button {
	text-align: left;
	padding-left: 1em;
	margin-bottom: 0.4em;
}
/* 項目毎に区切り線 */
#navi-menu-content .menu-drawer > li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
#navi-menu-content .menu-drawer > li:last-child {
	border-bottom: none;
}

/*---------------------
マジシャン
---------------------*/
/*
.entry-magicians-card-thumb{
	width:150px;
	float: left;
	margin-top: 3px;
	position: relative;
	margin-bottom: 0.4em;
}

.card-magicians-thumb img{
	aspect-ratio: 1/1;
	object-fit: cover;
}

.entry-magicians-card-content{
	margin-left: 220px;
	padding-bottom: 1.2em;
}
*/
/*---------------------
インタビュー
---------------------*/
/*
.entry-interviews-card-thumb{
	width:300px;
	float: left;
	margin-top: 3px;
	position: relative;
	margin-bottom: 0.4em;
}

.card-interviews-thumb img{
	aspect-ratio: 16/9;
	object-fit: cover;
}

.entry-interviews-card-content{
	margin-left: 310px;
	padding-bottom: 1.2em;
}
*/

/*---------------------
フォーム
---------------------*/


.contact-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
}

.contact-form-wrapper label {
	display: block;
	margin-bottom: 20px;
	font-weight: 600;
}

.required {
	color: #e74c3c;
	margin-left: 8px;
	font-size: 0.85em;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 12px;
	margin-top: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: #3498db;
}

.form-textarea {
	min-height: 150px;
	resize: vertical;
}

.form-checkbox {
	margin-right: 8px;
}

.form-submit {
	background-color: #2c3e50;
	color: #fff;
	padding: 15px 50px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

.form-submit:hover {
	background-color: #34495e;
}

/* エラー表示 */
.wpcf7-not-valid-tip {
	color: #e74c3c;
	font-size: 0.9em;
	margin-top: 5px;
}

.wpcf7-validation-errors {
	border: 2px solid #e74c3c;
	padding: 15px;
	margin-top: 20px;
	border-radius: 4px;
}

.wpcf7-mail-sent-ok {
	border: 2px solid #27ae60;
	padding: 15px;
	margin-top: 20px;
	border-radius: 4px;
	color: #27ae60;
}

/*---------------------
インタビューフォーム
---------------------*/

.interview-request-form {
	max-width: 700px;
	margin: 0 auto;
	padding: 40px 20px;
}

.form-intro {
	background-color: #f8f9fa;
	padding: 20px;
	margin-bottom: 40px;
	border-left: 4px solid #2c3e50;
	border-radius: 4px;
}

.form-intro p {
	margin: 0;
	line-height: 1.8;
}

.form-section-title {
	font-size: 1.2em;
	font-weight: 700;
	color: #2c3e50;
	margin: 40px 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #2c3e50;
}

.interview-request-form label {
	display: block;
	margin-bottom: 25px;
	font-weight: 600;
	color: #333;
}

.required {
	color: #e74c3c;
	margin-left: 8px;
	font-size: 0.85em;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 12px 15px;
	margin-top: 8px;
	border: 2px solid #e0e0e0;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.3s;
	background-color: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: #2c3e50;
	box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-textarea {
	min-height: 120px;
	resize: vertical;
	line-height: 1.6;
}

.form-checkbox {
	margin-right: 8px;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

.form-submit {
	background-color: #2c3e50;
	color: #fff;
	padding: 18px 60px;
	border: none;
	border-radius: 4px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	display: block;
	margin: 0 auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-submit:hover {
	background-color: #34495e;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

/* エラー・成功メッセージ */
.wpcf7-not-valid-tip {
	color: #e74c3c;
	font-size: 0.9em;
	margin-top: 8px;
	display: block;
}

.wpcf7-validation-errors {
	background-color: #fee;
	border: 2px solid #e74c3c;
	padding: 20px;
	margin-top: 30px;
	border-radius: 4px;
	color: #c0392b;
	font-weight: 600;
}

.wpcf7-mail-sent-ok {
	background-color: #d4edda;
	border: 2px solid #27ae60;
	padding: 20px;
	margin-top: 30px;
	border-radius: 4px;
	color: #155724;
	font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.interview-request-form {
		padding: 20px 15px;
	}
	
	.form-section-title {
		font-size: 1.1em;
	}
	
	.form-submit {
		width: 100%;
		padding: 15px 20px;
		font-size: 16px;
	}
}

/*---------------------
LATEST INTERVIEWS セクション
---------------------*/

.latest-interviews-section {
	margin: 40px 0;
	padding: 30px 0;
	border-top: 2px solid #e0e0e0;
	border-bottom: 2px solid #e0e0e0;
}

.latest-interviews-title {
	font-size: 1.8em;
	font-weight: 700;
	text-align: center;
	margin-bottom: 30px;
	color: #2c3e50;
	letter-spacing: 0.05em;
}

.latest-interviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

/* グリッド内のカード調整 */
.latest-interviews-grid .entry-card-wrap {
	display: block;
}

.latest-interviews-grid .entry-interviews-card-thumb {
	width: 100%;
	float: none;
	margin-bottom: 10px;
}

.latest-interviews-grid .entry-interviews-card-content {
	margin-left: 0;
	padding: 15px;
}

.latest-interviews-grid .entry-card-title {
	font-size: 1em;
	line-height: 1.5;
	margin-bottom: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
	.latest-interviews-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.latest-interviews-grid {
		grid-template-columns: 1fr;
	}
	
	.latest-interviews-title {
		font-size: 1.5em;
	}
}

/*---------------------
インタビュー背景ショートコード
---------------------*/

.interview-bg {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: clamp(24px, 4vw, 48px);
	border-radius: 12px;
	overflow: hidden;
	color: #fff;
	margin: 40px 0;
}

.interview-bg--no-image {
	background: #1f1f1f;
}

.interview-bg__overlay {
	position: absolute;
	inset: 0;
	display: block;
}

.interview-bg__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1.2em;
}

.interview-bg__body > *:first-child {
	margin-top: 0;
}

.interview-bg__body > *:last-child {
	margin-bottom: 0;
}


/* ヘッダー追従メニュー内の検索ボタンだけ非表示（スペースは確保） */
.mobile-header-menu-buttons .search-menu-button {
	visibility: hidden !important;
	pointer-events: none;
}

/* スマホ時は #content の余白をなくす */
@media (max-width: 834px) {
	#content {
	  margin-top: 0 !important;
	}
}

/* 固定ページのメインタイトル（page-content.php の h2）をマジシャン一覧と揃える */
.page .article-header.entry-header .page-main-title {
	font-size: 2.4rem;
	font-weight: 900;
}

/* スキン側の .article h2 装飾が page-main-title にかからないようにリセット */
.article h2.page-main-title {
	background: none;
	border: none;
	box-shadow: none;
	line-height: 1.8;
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
	position: static;
}
.article h2.page-main-title::before,
.article h2.page-main-title::after {
	content: none;
}

/* 検索結果ページ（list-search.php）用メインタイトル */
.search-main-title {
	font-size: 2.4rem;
	font-weight: 900;
}
.article h2.search-main-title {
	background: none;
	border: none;
	box-shadow: none;
	line-height: 1.8;
	padding: 0;
	margin-top: 0;
	margin-bottom: 1.25em;
	position: static;
}
.article h2.search-main-title::before,
.article h2.search-main-title::after {
	content: none;
}

/* 検索フォーム（テキストとボタンを横並び・入力幅を最大に） */
.search #feas-searchform-0 {
	padding-left: 0;
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5em;
	position: relative;
}
/* script はレイアウトに参加させない（入力欄とボタンの横並びを保つ） */
.search #feas-searchform-0 script {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}
.search #feas-searchform-0 input[type=text],
.search #feas-searchform-0 .feas_archive_freeword {
	width: calc(100% - 8em); /* フォーム幅 - ボタン幅(7.5em) - gap(0.5em) */
	min-width: 0;
	box-sizing: border-box;
}
.search #feas-searchform-0 input[type=submit] {
	width: 7.5em;
	flex-shrink: 0;
	box-sizing: border-box;
	text-align: center;
	padding-left: 0.5em;
	padding-right: 0.5em;
}
@media (max-width: 768px) {
	.search #feas-searchform-0 {
		width: 90%;
		max-width: 90%;
	}
	/* interviews.css の width: 10em を上書きし、フォーム幅いっぱいに */
	.search #feas-searchform-0 input[type=text],
	.search #feas-searchform-0 .feas_archive_freeword {
		width: calc(100% - 8em);
	}
}

/* 検索結果件数表示の下余白 */
.search-result-summary {
	margin-bottom: 1.5em;
}

.wpcf7-turnstile{ text-align: center; }