@charset "UTF-8";
/* =====================================================================
 *  【検証用 test CSS / 2026-06-24】
 *  トップ メインビジュアル（キービジュアル）を画面いっぱいに（PC）。
 *  本番 style.css の後に読み込んで後勝ちで上書きする検証ファイル。
 *  確認OK後に下記ルールを style.css 本体へマージし、本ファイルと
 *  mu-plugins/zz_mv_test_20260624.php は削除する。
 *  ※スマホ（959px 以下）は元々 100vh で全画面のため変更しない。
 * ===================================================================== */
/* --- ヘッダー透過：KV を背景にメニューを重ねる（#main_visual を含むトップのみ） --- */
/* ※このCSSはトップページのみ読み込む（mu-plugin で is_front_page() 限定）ため、
 *   ヘッダー系は :has() を使わず直接指定でOK（body にクラスが付かない環境への対策）。*/

/* トップのヘッダーを透過してKV帯に重ねる */
.l-header[data-spfix="1"] {
	position: absolute;
	left: 0;
	right: 0;
	background: transparent;
	box-shadow: none;
}
/* 上部の細いバー（RSS/検索）はトップでは隠してスッキリさせる */
.l-header__bar {
	display: none;
}
/* ロゴを左端・メニューを右端へ（通常ヘッダー＋スクロール時ヘッダーの内側を全幅化） */
.l-header__inner,
.l-fixHeader__inner {
	max-width: none !important;
	width: 100%;
	padding-left: 24px;
	padding-right: 24px;
}

/* トップのコンテンツ幅：中身を実寸 1100px に統一（1100＋左右16px＝1132px）
 * SWELL の既定コンテンツ幅(=900px相当)に負けないよう !important で強制。*/
#content.l-content {
	max-width: 1132px !important;
	width: 100% !important;
	padding-left: 16px !important;
	padding-right: 16px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
#content.l-content .l-mainContent,
#content.l-content .l-mainContent__inner {
	max-width: none !important;
	width: 100% !important;
}

/* --- KV 本体：フレーム型（少し余白＋四隅角丸）＋全画面高さ＋画像差し替え --- */
.p-mainVisual.-height-set {
	/* 上：ヘッダー帯ぶんの余白 ／ 左右下：細枠の角丸フレーム */
	padding: 88px 16px 16px;
	background: #ffffff;
	box-sizing: border-box;
}
.p-mainVisual.-height-set .p-mainVisual__inner {
	position: relative;
	/* 上(88)+下(16)padding ぶんを引いて画面内に収める */
	height: calc(100svh - 104px);
	border-radius: 24px;
	overflow: hidden;
	/* 背景画像は下寄せ（地面・湖・人物を残し、空側をトリミング） */
	background: url("assets/img/kv_img.webp") center bottom / cover no-repeat;
}
/* 既定の画像レイヤーとキャッチコピー（「さぁ、始めよう。」）を隠す */
.p-mainVisual.-height-set .p-mainVisual__imgLayer,
.p-mainVisual.-height-set .p-mainVisual__textLayer {
	display: none;
}
/* SWELL の薄暗いフィルター（.c-filterLayer::before ＝ 20%黒オーバーレイ）を解除して
 * 背景画像をクリアに表示する */
.p-mainVisual.-height-set .p-mainVisual__slide::before {
	display: none !important;
}
/* 左上のタイトル画像（kv_title.webp） */
.p-mainVisual.-height-set .p-mainVisual__inner::after {
	content: "";
	position: absolute;
	top: 9%;
	left: 6%;
	width: min(40vw, 420px);
	aspect-ratio: 766 / 532;
	background: url("assets/img/kv_title.webp") center / contain no-repeat;
	z-index: 2;
	pointer-events: none;
}

@media screen and (max-width: 768px) {
	.p-mainVisual.-height-set { padding: 64px 10px 10px; }
	.p-mainVisual.-height-set .p-mainVisual__inner {
		height: calc((100svh - 74px) / 2); /* SP: KV高さを約半分に */
		border-radius: 16px;
	}
	.p-mainVisual.-height-set .p-mainVisual__inner::after {
		/* SP: タイトル画像を右上に小さく */
		top: 6%;
		left: auto;
		right: 5%;
		width: min(38vw, 160px);
	}
}

/* =====================================================================
 *  ① モーダル（ポップアップ）をヘッダーより前面に表示
 *  原因: SWELL の #content.l-content が position:relative; z-index:1 で
 *  スタッキングコンテキストを作り、その内側の modal(z-index:99999) が
 *  header(z-index:100) / fix_header(z-index:101) の下に閉じ込められていた。
 *  → モーダルを開いている間だけ content 層を最前面へ引き上げて被りを解消。
 *  （閉じれば body のクラスが外れ z-index:1 に戻る／他ページへの影響なし）
 * ===================================================================== */
body.machizemi-modal-open .l-content {
	z-index: 100000;
}

/* =====================================================================
 *  ② スマホ表示のモーダル項目順を変更
 *  ①ゼミ番号 ②タイトル ③開催店舗名 ④講師名 ⑤店舗外観写真 → 以下現状のまま
 *  左右2カラム（modal-left / modal-right）の子を display:contents で
 *  1列のフレックスに流し込み、order で並べ替える。
 * ===================================================================== */
@media screen and (max-width: 768px) {
	.machizemi-modal-inner {
		display: flex;
		flex-direction: column;
		/* 左右カラムの padding が display:contents で消える分、inner 側に余白を付与 */
		padding: 28px 22px 32px;
	}
	.machizemi-modal-left,
	.machizemi-modal-right {
		display: contents;
	}

	/* 先頭5項目（指定順） */
	.machizemi-modal-num   { order: 1; align-self: flex-start; } /* ① ゼミ番号（ピルは content 幅のまま） */
	.machizemi-modal-title { order: 2; }                          /* ② タイトル */
	.machizemi-shop-name   { order: 3; }                          /* ③ 開催店舗名 */
	.machizemi-modal-inst  { order: 4; }                          /* ④ 講師名 */
	.machizemi-modal-photo { order: 5; }                          /* ⑤ 店舗外観写真 */

	/* 以下、現状の相対順を維持 */
	.machizemi-shop-info   { order: 6; }   /* 住所・TEL・FAX・URL */
	.machizemi-mapimg      { order: 7; }   /* 地図画像 */
	.machizemi-map-btn     { order: 8; }   /* Google Map ボタン */
	.machizemi-modal-sub   { order: 9; }   /* サブタイトル */
	.machizemi-schedule    { order: 10; }  /* 開催日時 */
	.machizemi-detail      { order: 11; }  /* 定員・参加費・予約方法・備考 */
	.machizemi-qr          { order: 12; }  /* QRコード */
	.machizemi-pdf-btn     { order: 13; }  /* PDF資料ボタン */

	/* ④ クローズボタン(×)が画面上端（ブラウザUI/ノッチ）に隠れないよう、モーダルを上から開ける */
	.machizemi-modal {
		align-items: flex-start;
		padding-top: calc(env(safe-area-inset-top, 0px) + 54px) !important;
	}
	.machizemi-modal-box {
		max-height: calc(100svh - env(safe-area-inset-top, 0px) - 70px);
	}
}

/* =====================================================================
 *  ③ クローズボタン（×）の見た目
 *  円＝オレンジ / × ＝白 / 30px・太字 / × を円の中央に配置（flex 中央寄せ）
 * ===================================================================== */
.machizemi-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--machizemi-accent, #e8662a);
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}
.machizemi-modal-close:hover {
	background: var(--machizemi-accent-dark, #c8501a);
}

/* =====================================================================
 *  ④ カテゴリーカラー（フィルターボタン＋カード No. バッジ）
 *     きれい=ピンク／たべる=オレンジ／まなぶ=水色／健康=紫／つくる=黄緑／すべて=オレンジ
 * ===================================================================== */
.machizemi-filter-btn[data-term="all"]     { --c: #e8662a; }
.machizemi-filter-btn[data-term="kirei"]   { --c: #e95295; }
.machizemi-filter-btn[data-term="taberu"]  { --c: #e8662a; }
.machizemi-filter-btn[data-term="manabu"]  { --c: #36a9c8; }
.machizemi-filter-btn[data-term="kenko"]   { --c: #8b5fb5; }
.machizemi-filter-btn[data-term="tsukuru"] { --c: #93c01f; }

.machizemi-filter .machizemi-filter-btn {
	background: #fff;
	border-color: var(--c, #e6e6e6);
	color: var(--c, #2b2b2b);
}
.machizemi-filter .machizemi-filter-btn:hover {
	background: var(--c, #e8662a);
	color: #fff;
}
.machizemi-filter .machizemi-filter-btn.is-active {
	background: var(--c, #e8662a);
	border-color: var(--c, #e8662a);
	color: #fff;
}

/* カードの No. バッジを各カテゴリー色に */
.machizemi-card[data-terms~="kirei"]   .machizemi-card-num { background: #e95295; }
.machizemi-card[data-terms~="taberu"]  .machizemi-card-num { background: #e8662a; }
.machizemi-card[data-terms~="manabu"]  .machizemi-card-num { background: #36a9c8; }
.machizemi-card[data-terms~="kenko"]   .machizemi-card-num { background: #8b5fb5; }
.machizemi-card[data-terms~="tsukuru"] .machizemi-card-num { background: #93c01f; }

/* --- モーダル：カテゴリーごとにアクセント色を切替（data-cat は seminar-list.php で付与） ---
 * モーダル内の No.バッジ・×ボタン・TEL/URL・講師ラベル・各項目見出し・日時見出し・
 * ボタンはすべて var(--machizemi-accent / -dark) を参照するため、ここで上書きすると一括連動する。*/
.machizemi-modal[data-cat="kirei"]   { --machizemi-accent: #e95295; --machizemi-accent-dark: #c43c77; }
.machizemi-modal[data-cat="taberu"]  { --machizemi-accent: #e8662a; --machizemi-accent-dark: #c8501a; }
.machizemi-modal[data-cat="manabu"]  { --machizemi-accent: #36a9c8; --machizemi-accent-dark: #2a8aa3; }
.machizemi-modal[data-cat="kenko"]   { --machizemi-accent: #8b5fb5; --machizemi-accent-dark: #6f4a94; }
.machizemi-modal[data-cat="tsukuru"] { --machizemi-accent: #93c01f; --machizemi-accent-dark: #75991a; }

/* =====================================================================
 *  フィルターボタンを各カテゴリ色に（既定＝枠線・文字／hover・active＝塗り潰し）
 *  色はモーダルの data-cat と同一パレット。
 * ===================================================================== */
.machizemi-filter-btn[data-term="kirei"]   { --fc: #e95295; }
.machizemi-filter-btn[data-term="taberu"]  { --fc: #e8662a; }
.machizemi-filter-btn[data-term="manabu"]  { --fc: #36a9c8; }
.machizemi-filter-btn[data-term="kenko"]   { --fc: #8b5fb5; }
.machizemi-filter-btn[data-term="tsukuru"] { --fc: #93c01f; }
.machizemi-filter-btn[data-term="all"]     { --fc: #777777; }
.machizemi-filter-btn[data-term] { border-color: var(--fc); color: var(--fc); }
.machizemi-filter-btn[data-term]:hover,
.machizemi-filter-btn[data-term].is-active { background: var(--fc); border-color: var(--fc); color: #fff; }

/* 「講師」ラベルをカテゴリー色（白文字）に */
.machizemi-modal .machizemi-modal-inst span {
	background: var(--machizemi-accent);
	color: #fff;
}
/* 各項目の見出し（住所/TEL/URL・定員/参加費/予約方法/備考）もカテゴリー色に */
.machizemi-modal .machizemi-shop-info dt,
.machizemi-modal .machizemi-detail dt {
	color: var(--machizemi-accent-dark);
}

/* =====================================================================
 *  ③ 第24回 まちゼミ諏訪 イベント概要セクション（「開催中のゼミ」の上）
 * ===================================================================== */
.mz-event {
	--mz-accent: #e8662a;
	max-width: 1100px;
	margin: 8px auto 56px;
	padding: 0; /* コンテンツ内幅(1100)いっぱい＝ゼミ一覧と左右を揃える */
}
.mz-event__inner {
	background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
	border: 1px solid #f0e2d8;
	border-radius: 20px;
	padding: 40px 36px;
	box-shadow: 0 12px 40px rgba(232, 102, 42, .07);
	text-align: left;
}
.mz-event__badge {
	display: inline-block;
	background: var(--mz-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	padding: 5px 16px;
	border-radius: 999px;
}
.mz-event__title {
	font-size: clamp(22px, 4vw, 30px);
	font-weight: 800;
	line-height: 1.4;
	margin: 14px 0 8px;
	color: var(--mz-accent);
}
.mz-event__lead {
	font-size: 15px;
	color: #444;
	line-height: 1.85;
	margin: 0 0 28px;
}
.mz-event__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	text-align: left;
	margin: 0 0 28px;
}
.mz-event__card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 18px;
}
.mz-event__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: var(--mz-accent);
	letter-spacing: .04em;
	border-bottom: 2px solid var(--mz-accent);
	padding-bottom: 3px;
	margin-bottom: 10px;
}
.mz-event__date {
	font-size: 17px;
	font-weight: 800;
	color: #2b2b2b;
	line-height: 1.5;
	margin: 0;
}
.mz-event__date small { font-size: 13px; font-weight: 700; color: #888; }
.mz-event__note { font-size: 11px; color: #999; margin: 8px 0 0; }
/* 大きな日付表示（開催期間・予約受付開始） */
.mz-event__year { font-size: 13px; font-weight: 800; color: #2b2b2b; letter-spacing: .06em; margin: 0 0 2px; }
.mz-event__bigdate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; line-height: 1.1; }
.mz-event__bigdate .mz-d { display: inline-flex; align-items: center; font-size: 16px; font-weight: 700; color: #2b2b2b; }
.mz-event__bigdate .mz-d__n { font-size: 27px; font-weight: 800; padding: 0 1px; }
.mz-event__bigdate .mz-dow { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; background: var(--mz-accent); color: #fff; font-size: 11px; font-weight: 700; }
.mz-event__bigdate .mz-til { font-size: 18px; font-weight: 700; color: #bbb; }
.mz-event__bigdate .mz-after { font-size: 14px; font-weight: 700; color: #555; margin-left: 2px; }
.mz-event__text { font-size: 13.5px; color: #444; line-height: 1.7; margin: 0; }
.mz-event__text strong { color: var(--mz-accent); }
.mz-event__desc {
	font-size: 15px;
	line-height: 1.9;
	color: #333;
	margin: 0 0 18px;
	text-align: center;
}
.mz-event__desc strong { color: var(--mz-accent); font-size: 1.15em; }
.mz-event__desc small { display: block; font-size: 12px; color: #888; margin-top: 6px; }
.mz-event__safe {
	display: block;
	width: fit-content;
	max-width: 100%;
	background: #fff3ec;
	color: #c8501a;
	font-size: 13px;
	font-weight: 700;
	border-radius: 10px;
	padding: 10px 18px;
	margin: 0 auto 24px;
	text-align: center;
}
.mz-event__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
	border-top: 1px dashed #e6d5c8;
	padding-top: 20px;
	font-size: 13px;
	color: #666;
}
.mz-event__tel {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--mz-accent);
	color: #fff !important;
	font-weight: 700;
	padding: 9px 20px;
	border-radius: 999px;
	text-decoration: none;
}
.mz-event__tel:hover { background: #c8501a; }
@media (max-width: 768px) {
	.mz-event__inner { padding: 28px 18px; border-radius: 16px; }
	.mz-event__grid { grid-template-columns: 1fr; gap: 12px; }
}
