@charset "UTF-8";
/* ==========================================================================
   いがみ建築工房 イベント個別ページ（single-eventinfo.php）
   - このファイルだけで完結（既存テーマのCSSに依存しません）
   - クラスはすべて .ev- で始まり、.ev / .ev-spbar の中だけに効きます
   - ブレークポイント：767px以下＝スマホ
   ========================================================================== */

.ev, .ev-spbar {
	--bg: #f3f0ea;          /* ページ背景 */
	--bg-sub: #e9e4da;      /* 中間CTA背景 */
	--ink: #24201c;         /* 文字・ボタン */
	--text-sub: #4a443d;    /* 本文 */
	--grey: #7d746a;        /* 補足文字 */
	--line: #d8d1c5;        /* 罫線 */
	--accent: #a3927a;      /* MAPバー・アイコン */
	--serif: 'Noto Serif JP', serif;
	--sans: 'Noto Sans JP', sans-serif;
	--italic: 'Libre Baskerville', serif;
}

/* ---------- 基本（.ev 内のみ）----------
   :where() で詳細度を0にしているため、下の各パーツの指定が必ず優先されます */
:where(.ev, .ev *, .ev-spbar, .ev-spbar *), :where(.ev, .ev-spbar) *::before, :where(.ev, .ev-spbar) *::after { box-sizing: border-box; }
/* ページ背景：イベント個別ページのみベージュに（テーマの背景色を上書き） */
body.single-eventinfo { background: #f3f0ea; }
:where(.ev) { font-family: var(--sans); font-weight: 400; color: var(--ink); -webkit-text-size-adjust: 100%; }
:where(.ev) :where(h1, h2, h3, p, dl, dd, figure, ol, ul) { margin: 0; }
:where(.ev, .ev-spbar) a { color: var(--ink); text-decoration: none; }
:where(.ev) a:hover { opacity: .7; }
:where(.ev) img { display: block; max-width: 100%; }
:where(.ev) [id] { scroll-margin-top: 80px; } /* 固定ヘッダー分。テーマのヘッダー高さに合わせて調整 */

.ev {
	max-width: 760px; margin: 0 auto;
	padding: 20px 20px clamp(80px, 10vw, 140px);
	--ev-gap: clamp(72px, 10vw, 120px);
	--ev-field: #fbfaf7;
	--ev-border: #cfc6ba;
}

/* パンくず */
.ev-crumb {
	display: flex; gap: 8px; align-items: center;
	font-size: 12px; letter-spacing: .06em; color: var(--grey);
	white-space: nowrap; overflow: hidden;
}
.ev-crumb a { color: var(--grey); }
.ev-crumb span[aria-current] { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 01 ファーストビュー ---------- */
.ev-hero__img {
	margin: 16px calc(50% - min(540px, 50vw - 20px)) 0;
	aspect-ratio: 16 / 10; overflow: hidden; background: #e6e0d5;
}
.ev-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.ev-hero__body { margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.ev-badge { margin-bottom: 18px; }
.ev-badge span {
	display: inline-flex; align-items: center; gap: 14px;
	font: 500 clamp(17px, 2vw, 20px)/1.4 var(--serif); letter-spacing: .2em;
}
.ev-badge span::before, .ev-badge span::after { content: ""; width: 28px; height: 1px; background: var(--ink); }
.ev-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ev-tag {
	font-size: 13px; letter-spacing: .1em; line-height: 1;
	border: 1px solid var(--ink); padding: 6px 12px;
}
.ev-tag.is-open { background: var(--ink); color: #fff; }
.ev-tag.is-closed { border-color: var(--grey); background: var(--grey); color: #fff; }
.ev-catch {
	margin-top: 24px;
	font: 400 clamp(24px, 3.6vw, 34px)/1.7 var(--serif); letter-spacing: .12em;
}
.ev-catch__copy { display: block; }
.ev-catch__type {
	display: inline-flex; align-items: center; gap: 14px; margin-top: 10px;
	font-weight: 500; font-size: .92em; letter-spacing: .26em;
}
.ev-catch__type::before, .ev-catch__type::after { content: ""; width: 1.2em; height: 1px; background: currentColor; }
.ev-lead {
	margin-top: 14px;
	font: 400 clamp(15px, 1.6vw, 17px)/2 var(--serif); letter-spacing: .1em; color: var(--text-sub);
}

/* 開催概要（FV内） */
.ev-summary {
	margin-top: clamp(32px, 4vw, 44px);
	background: #fff; padding: clamp(24px, 4vw, 40px);
}
.ev-summary__list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ev-summary__list > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ev-summary__list dt { display: flex; align-items: center; gap: 6px; font: 400 14px/1.8 var(--serif); letter-spacing: .1em; color: var(--grey); }
.ev-summary__list dt svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.ev-hero__img { position: relative; }
.ev-hero__bar { display: none; }
.ev-summary__list dd { margin: 0; font-size: 16px; line-height: 1.8; letter-spacing: .06em; }
.ev-dates span { display: block; }


/* MAP */
.ev-map { margin-top: 28px; }
.ev-map__bar {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 16px; background: var(--accent); color: #fff; cursor: pointer;
	font-size: 15px; letter-spacing: .14em; list-style: none;
}
.ev-map__bar::-webkit-details-marker { display: none; }
.ev-map__bar::before {
	content: ""; width: 0; height: 0;
	border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid #fff;
	transition: transform .3s;
}
.ev-map:not([open]) .ev-map__bar::before { transform: rotate(-90deg); }
.ev-map__frame { aspect-ratio: 16 / 9; background: #e6e0d5; }
.ev-map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ev-map__open { margin-top: 10px; text-align: right; font-size: 14px; letter-spacing: .06em; }
.ev-map__open a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ev-map__note { margin-top: 12px; font-size: 14px; line-height: 1.9; letter-spacing: .04em; color: var(--text-sub); }

/* 予約ボタン（FV・中間CTA・フォーム送信 共通） */
.ev-btn {
	display: flex; align-items: center; justify-content: center; gap: 16px;
	width: 100%; max-width: 420px; margin: 28px auto 0;
	padding: 20px 28px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--ink); color: #fff;
	font: 400 17px/1.4 var(--serif); letter-spacing: .14em;
	-webkit-appearance: none; appearance: none;
	transition: opacity .2s;
}
a.ev-btn:hover, .ev-btn:hover { opacity: .85; color: #fff; }
.ev-closed { margin-top: 24px; padding: 16px; border: 1px solid var(--line); text-align: center; color: var(--grey); font-size: 15px; }

/* ---------- 共通：セクション ---------- */
.ev-sec { margin-top: var(--ev-gap); }
.ev-label {
	display: flex; align-items: center; gap: 12px;
	font-size: 13px; letter-spacing: .2em; color: var(--grey);
}
.ev-label::before { content: ""; width: 32px; height: 1px; background: var(--grey); }
.ev-h2 { margin: 14px 0 28px; font: 400 clamp(22px, 3vw, 28px)/1.6 var(--serif); letter-spacing: .12em; }
.ev-text, .ev-text p { font-size: 16px; line-height: 2.1; letter-spacing: .06em; color: var(--text-sub); }
.ev-text p + p { margin-top: 1.4em; }
.ev-tel { font: 400 22px/1.6 var(--serif); letter-spacing: .08em; color: var(--ink); }
.ev-fig { margin: 32px 0 0; }
.ev-fig img { width: 100%; height: auto; }
.ev-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--grey); }
.ev-fig .ev-fig__note { margin-top: 6px; font-size: 11px; letter-spacing: .04em; text-align: right; }
.ev-num { font: italic 400 1.45em/1 var(--italic); letter-spacing: 0; margin: 0 .08em; }
.sp-br { display: none; }
/* 日本語の文節で改行（対応ブラウザのみ。非対応でも通常の改行） */
.ev-catch, .ev-lead, .ev-h2, .ev-point__ttl, .ev-cta__txt { word-break: auto-phrase; }

/* 見どころ */
.ev-points { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ev-point { padding: clamp(32px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.ev-point:last-child { border-bottom: 1px solid var(--line); }
.ev-point__no { font: italic 400 30px/1 var(--italic); color: var(--ink); }
.ev-point__ttl { margin: 12px 0 14px; font: 400 clamp(19px, 2.2vw, 22px)/1.6 var(--serif); letter-spacing: .1em; }
.ev-point__txt { font-size: 16px; line-height: 2.1; letter-spacing: .06em; color: var(--text-sub); }
.ev-point .ev-fig { margin-top: 24px; }

/* 中間CTA */
.ev-cta {
	margin-top: clamp(56px, 8vw, 88px);
	padding: clamp(36px, 5vw, 56px) 20px;
	background: var(--bg-sub); text-align: center;
}
.ev-cta__txt { font: 400 16px/2 var(--serif); letter-spacing: .1em; }
.ev-cta .ev-btn { margin-top: 24px; }
.ev-cta__note { margin-top: 12px; font-size: 13px; letter-spacing: .1em; color: var(--grey); }

/* 開催概要テーブル */
.ev-table { margin: 0; border-top: 1px solid var(--line); }
.ev-table > div {
	display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px;
	padding: 20px 0; border-bottom: 1px solid var(--line);
}
.ev-table dt { font: 400 15px/1.9 var(--serif); letter-spacing: .1em; }
.ev-table dd { margin: 0; font-size: 16px; line-height: 1.9; letter-spacing: .06em; }
.ev-table small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.8; color: var(--grey); }
.ev-table small a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ご確認ください（トグル） */
.ev-check {
	margin-top: 28px; background: #fff; border: 1px solid var(--line);
	padding: clamp(20px, 4vw, 32px) clamp(20px, 4vw, 36px) clamp(8px, 2vw, 16px);
}
.ev-check__head {
	display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
	font: 400 18px/1.6 var(--serif); letter-spacing: .12em;
}
.ev-check__icon {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%;
	font: italic 400 15px/1 var(--italic); padding-right: 1px;
}
.ev-check__item { border-top: 1px solid var(--line); }
.ev-check__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 0; cursor: pointer; list-style: none;
	font: 400 16px/1.7 var(--serif); letter-spacing: .08em;
}
.ev-check__item summary::-webkit-details-marker { display: none; }
.ev-check__item summary:hover { opacity: .7; }
.ev-check__pm { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.ev-check__pm::before, .ev-check__pm::after {
	content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink); transform: translate(-50%, -50%);
}
.ev-check__pm::before { width: 14px; height: 1px; }
.ev-check__pm::after { width: 1px; height: 14px; transition: transform .3s; }
.ev-check__item[open] .ev-check__pm::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.ev-check__body { padding: 0 0 24px; }
.ev-check__body p { font-size: 15px; line-height: 2; letter-spacing: .04em; color: var(--text-sub); }
.ev-check__body p + p { margin-top: 14px; }
.ev-check__tel a { font: 400 20px/1.6 var(--serif); letter-spacing: .08em; color: var(--ink); }
.ev-check__tel span { display: block; font-size: 13px; color: var(--grey); }
.ev-check__link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 06 予約フォーム（Contact Form 7 想定） ---------- */
.ev-reserve { background: #fff; padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 48px); }
.ev-form { margin-top: 8px; }
.ev-field { margin-top: 28px; }
.ev-field__label {
	display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
	font: 400 15px/1.6 var(--serif); letter-spacing: .08em;
}
.ev-req, .ev-opt { font: 400 11px/1 var(--sans); letter-spacing: .08em; padding: 4px 7px; }
.ev-req { background: var(--ink); color: #fff; }
.ev-opt { border: 1px solid var(--ev-border); color: var(--grey); }

.ev-form .wpcf7-form-control-wrap { display: block; }
.ev-form .wpcf7-text, .ev-form .wpcf7-email, .ev-form .wpcf7-tel,
.ev-form .wpcf7-textarea, .ev-form .wpcf7-select {
	width: 100%; padding: 14px 16px;
	border: 1px solid var(--ev-border); border-radius: 2px; background: var(--ev-field);
	font: 400 16px/1.6 var(--sans); color: var(--ink); /* 16px 未満だと iOS で拡大されるため */
	-webkit-appearance: none; appearance: none;
}
.ev-form .wpcf7-textarea { min-height: 120px; resize: vertical; }
.ev-form input:focus, .ev-form textarea:focus, .ev-form select:focus {
	outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(36,32,28,.1);
}
.ev-form ::placeholder { color: #b3aa9d; }

/* ラジオ（日付・時間）をボタン状に */
.ev-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-form .wpcf7-list-item { margin: 0; }
.ev-form .wpcf7-radio label { position: relative; display: block; cursor: pointer; }
.ev-form .wpcf7-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-form .wpcf7-radio .wpcf7-list-item-label {
	display: block; padding: 11px 16px; min-width: 5.5em; text-align: center;
	border: 1px solid var(--ev-border); background: var(--ev-field);
	font-size: 15px; letter-spacing: .04em; transition: background .2s, color .2s;
}
.ev-form .wpcf7-radio input:checked + .wpcf7-list-item-label { background: var(--ink); border-color: var(--ink); color: #fff; }
.ev-form .wpcf7-radio input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 人数 */
.ev-people { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ev-people label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ev-people .wpcf7-form-control-wrap { display: inline-block; }
.ev-people .wpcf7-select {
	width: auto; min-width: 84px; padding-right: 36px;
	background: var(--ev-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2324201c' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 14px center;
}

/* 同意 */
.ev-field--agree { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ev-field--agree label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.ev-field--agree input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
.ev-field--agree a { text-decoration: underline; text-underline-offset: 3px; }

.ev-submit { margin-top: 32px; }
.ev-submit .ev-btn { margin-top: 0; }
.ev-submit .ev-btn:disabled { opacity: .35; cursor: not-allowed; }
.ev-form .wpcf7-spinner { display: block; margin: 12px auto 0; }

/* CF7 メッセージ */
.ev-reserve .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #a8452f; }
.ev-reserve .wpcf7-response-output { margin: 24px 0 0 !important; padding: 14px 16px !important; font-size: 14px; line-height: 1.8; }

.ev-back { margin-top: 64px; text-align: center; font-size: 14px; letter-spacing: .1em; }
.ev-back a { color: var(--grey); }

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
	.ev { padding-top: 0; padding-bottom: 120px; } /* 写真を最上部に／下部固定ボタンの分 */
	.ev-crumb { display: none; }
	/* FV写真：画面幅いっぱい（テーマ側の余白に関係なく全幅） */
	.ev-hero__img { margin: 0 calc(50% - 50vw); aspect-ratio: 3 / 2.3; }
	/* 写真の上のロゴ（ikh_ev_hero_overlay で有効化した場合のみ出力） */
	.ev-hero__bar {
		display: flex; align-items: center; justify-content: space-between;
		position: absolute; top: 0; left: 0; right: 0; height: 56px; padding: 0 6px 0 16px;
		background: linear-gradient(180deg, rgba(30,24,18,.45), rgba(30,24,18,0));
	}
	.ev-hero__logo img { height: 20px; width: auto; max-width: none; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
	.ev-hero__tel { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
	/* FV見出しまわり：コンパクトに */
	.ev-hero__body { text-align: center; margin-top: 22px; }
	.ev-meta { display: flex; align-items: center; justify-content: center; gap: 10px; }
	.ev-badge { margin: 0; }
	.ev-badge span { gap: 0; font-size: 15px; letter-spacing: .12em; }
	.ev-badge span::before, .ev-badge span::after { display: none; }
	.ev-tags { justify-content: center; }
	.ev-tag { font-size: 12px; padding: 5px 9px; }
	.ev-catch { margin-top: 14px; line-height: 1.5; }
	.ev-catch__copy { white-space: nowrap; font-size: min(24px, calc((100vw - 40px) / 15.6)); letter-spacing: .02em; }
	.ev-catch__type { margin-top: 4px; gap: 0; font-size: 17px; letter-spacing: .3em; }
	.ev-catch__type::before, .ev-catch__type::after { display: none; }
	.ev-lead { margin-top: 10px; white-space: nowrap; font-size: min(15px, calc((100vw - 40px) / 23)); letter-spacing: .03em; line-height: 1.8; }
	.sp-br { display: inline; }
	.pc-br { display: none; }
	.ev-summary, .ev-cta, .ev-reserve { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
	.ev-summary, .ev-reserve { padding-left: 20px; padding-right: 20px; }
	/* 開催概要：ラベルはアイコンのみ */
	.ev-summary__list > div { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
	.ev-summary__list dt { padding-top: 3px; }
	.ev-summary__list dt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ev-summary__list dt svg { width: 22px; height: 22px; }
	.ev-map__frame { aspect-ratio: 4 / 3; }
	.ev-table > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
	.ev-table dt { font-size: 13px; color: var(--grey); }
	.ev-form .wpcf7-radio .wpcf7-list-item { flex: 1 1 calc(50% - 4px); }
	.ev-form .wpcf7-radio .wpcf7-list-item-label { padding: 12px 8px; }
}

/* ---------- スマホ下部固定：電話＋予約ボタン ---------- */
.ev-spbar { display: none; }
@media (max-width: 767px) {
	.ev-spbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: grid; grid-template-columns: 1fr 3fr;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--ink); box-shadow: 0 -2px 10px rgba(0,0,0,.1);
		transition: transform .3s ease;
	}
	.ev-spbar.is-hidden { transform: translateY(110%); }
	.ev-spbar a { display: flex; align-items: center; justify-content: center; text-decoration: none; }
	.ev-spbar__tel { flex-direction: column; gap: 2px; padding: 9px 4px; background: var(--bg); color: var(--ink); font-size: 11px; }
	.ev-spbar__tel svg { width: 22px; height: 22px; }
	.ev-spbar__btn { padding: 12px 8px; color: #fff; font: 400 15px/1.4 var(--serif); letter-spacing: .12em; }
}
