/* ==========================================================
   住宅博テーマ
   - 共通
   - LP（開催情報）: 枠 / 本文 / カルーセル / メニュー / 追従ボタン / フォーム / 完了表示
   - LP以外の簡易ページ
   ========================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: #1a2023;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	line-height: 1.8;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- LP: 枠 ---------- */

.jh-lp .l-frame {
	background-color: #fff;
}

@media screen and (min-width: 768px) {
	.jh-lp .l-frame {
		max-width: 500px;
		margin: 0 auto;
		box-shadow: 0 0 30px 0 rgba(0, 0, 0, .2);
	}
}

/* ---------- LP: 本文（画像を隙間なく積む） ---------- */

.c-entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.c-entry-content figure {
	margin: 0;
}

.c-entry-content .wp-block-image img,
.c-entry-content .wp-block-image a {
	display: block;
	width: 100%;
	height: auto;
}

.c-entry-content .wp-block-image a:hover {
	opacity: .85;
}

.c-entry-content iframe {
	display: block;
	width: 100%;
	border: 0;
}

.c-entry-content .wp-block-group {
	padding: 0;
}

/* アンカーへ移動したとき、見出し画像の上端が画面の上端に来るようにする */
.c-entry-content [id] {
	scroll-margin-top: 0;
}

/* ---------- LP: カルーセル（ギャラリーブロックのスタイル「カルーセル」） ---------- */

.jh-carousel {
	position: relative;
}

.c-entry-content .wp-block-gallery.is-style-carousel {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	margin: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.c-entry-content .wp-block-gallery.is-style-carousel::-webkit-scrollbar {
	display: none;
}

.c-entry-content .wp-block-gallery.is-style-carousel.is-animating {
	scroll-snap-type: none;
}

.c-entry-content .wp-block-gallery.is-style-carousel > figure.wp-block-image {
	flex: 0 0 100% !important;
	width: 100% !important;
	margin: 0 !important;
	scroll-snap-align: start;
}

.c-entry-content .wp-block-gallery.is-style-carousel > figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	object-fit: fill;
}

.jh-carousel__arrow {
	position: absolute;
	top: calc(50% - 16px);
	z-index: 2;
	width: 36px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transform: translateY(-50%);
}

.jh-carousel__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 3px solid #8a8d8d;
	border-right: 3px solid #8a8d8d;
	filter: drop-shadow(0 0 2px #fff);
}

.jh-carousel__arrow--prev {
	left: 0;
}

.jh-carousel__arrow--prev::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.jh-carousel__arrow--next {
	right: 0;
}

.jh-carousel__arrow--next::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.jh-carousel__arrow:hover::before,
.jh-carousel__arrow:focus-visible::before {
	border-color: #026992;
}

.jh-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 2px;
	margin: 0;
	padding: 4px 0 6px;
	list-style: none;
}

.jh-carousel__dot {
	display: block;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.jh-carousel__dot::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 auto;
	border-radius: 50%;
	background-color: #ccc;
}

.jh-carousel__dot[aria-current="true"]::before {
	background-color: #178582;
}

/* ---------- LP: メニュー ---------- */

.l-navsp {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 31;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	padding: 56px 0 24px;
	overflow-y: auto;
	background-color: rgba(48, 48, 48, .9);
	visibility: hidden;
	transform: translateX(100%);
	transition: transform .6s, visibility 0s .6s;
}

.l-navsp.js-menu {
	visibility: visible;
	transform: none;
	transition: transform .6s, visibility 0s;
}

.l-navsp ul {
	width: 100%;
	max-height: 100%;
	margin: auto 0;
	padding: 0;
	list-style: none;
}

.l-navsp li a {
	display: block;
	width: fit-content;
	max-width: 90%;
	margin: 0 auto;
	padding: .85em 1em;
	color: #fff;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .1em;
	text-align: center;
	text-decoration: none;
}

.l-navsp li a:hover {
	text-decoration: underline;
}

.l-navsp__button {
	position: fixed;
	top: 16px;
	right: 8px;
	z-index: 33;
	width: 54px;
	height: 32px;
	padding: 0;
	border: 0;
	background-color: transparent;
	cursor: pointer;
}

.l-navsp__button span {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 38px;
	height: 2px;
	border-radius: 2px;
	background-color: #a2a29d;
	transform: translate(-50%, -50%);
	transition: all .4s;
}

.l-navsp__button span:nth-of-type(1) {
	margin-top: -6px;
}

.l-navsp__button span:nth-of-type(2) {
	margin-top: 6px;
}

.l-navsp__button.js-button span {
	margin-top: 0;
	background-color: #fff;
}

.l-navsp__button.js-button span:nth-of-type(1) {
	transform: translate(-50%, -40%) rotate(-30deg);
}

.l-navsp__button.js-button span:nth-of-type(2) {
	transform: translate(-50%, -40%) rotate(30deg);
}

.l-navpc {
	display: none;
}

@media screen and (min-width: 992px) {
	.l-navsp__button {
		right: calc(50% - 235px);
	}

	.l-navpc {
		display: block;
		position: fixed;
		top: 100px;
		left: calc(50% + 280px);
		max-height: calc(100vh - 200px);
		overflow-y: auto;
	}

	.l-navpc ul {
		display: flex;
		flex-direction: column;
		gap: 24px;
		margin: 0;
		padding: 2px 24px 2px 20px;
		list-style: none;
	}

	.l-navpc a {
		display: block;
		position: relative;
		color: #6f7272;
		font-size: 12px;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
	}

	.l-navpc a:hover {
		text-decoration: underline;
	}

	.l-navpc a::before {
		content: "";
		position: absolute;
		top: 0;
		left: -20px;
		width: 12px;
		height: 12px;
		border: 1px solid #8a8d8d;
		border-radius: 50%;
	}

	.l-navpc a.navpc-active::before {
		background-color: #8a8d8d;
	}
}

/* ---------- LP: フッターと追従ボタン ---------- */

.l-footer {
	/* 追従ボタン（幅の半分 × 2個、縦横比 250:96 相当）の分だけ下を空ける */
	padding-bottom: clamp(4rem, .421rem + 17.9vw, 9rem);
}

.l-footer img {
	display: block;
	width: 100%;
	height: auto;
}

.l-footer__link {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 30;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(100px);
	transition: opacity .5s, transform .5s, visibility 0s .5s;
}

.l-footer__link.is-shown {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .5s, transform .5s, visibility 0s;
}

.l-footer__list {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.l-footer__item {
	flex: 0 1 50%;
}

.l-footer__item a {
	display: block;
}

.l-footer__item a:hover {
	opacity: .8;
}

.l-footer .copy {
	margin: 0;
	padding: 12px 8px;
	font-size: clamp(.625rem, .446rem + .89vw, .875rem);
	line-height: 1.5;
	text-align: center;
}

@media screen and (min-width: 768px) {
	.l-footer {
		padding-bottom: 96px;
	}

	.l-footer__item {
		flex: 0 0 250px;
	}
}

/* ---------- LP: 来場予約フォーム ---------- */

.jh-lp .wpcf7 {
	color: #000;
}

.jh-lp .wpcf7 form {
	width: 86%;
	margin: 3em auto 0;
	padding-bottom: 3em;
}

.jh-lp .wpcf7 fieldset.hidden-fields-container {
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
}

.jh-form {
	font-size: 16px;
}

.jh-form__item {
	margin-bottom: 28px;
}

/* バッジの横で項目名だけが折り返すように、横並びにする */
.jh-form__label,
.jh-form__label label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.jh-form__label {
	margin: 0 0 12px;
	font-weight: 700;
	line-height: 28px;
}

.jh-form .must,
.jh-form .free {
	flex: none;
	padding: 6px 20px;
	color: #fff;
	font-size: 16px;
	line-height: 1;
}

.jh-form .must {
	background: #026992;
}

.jh-form .free {
	background: #424242;
}

.jh-form__note {
	margin: 48px 0 28px;
	color: #026992;
	font-weight: 700;
}

.jh-form .wpcf7-form-control-wrap {
	display: block;
}

.jh-form input[type="text"],
.jh-form input[type="email"],
.jh-form input[type="tel"],
.jh-form select,
.jh-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 50px;
	margin: 0;
	padding: 8px 15px;
	border: 1px solid #d0d5d8;
	border-radius: 3px;
	background-color: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.jh-form textarea {
	height: 200px;
}

.jh-form select {
	appearance: none;
	padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, #6f7272 50%), linear-gradient(135deg, #6f7272 50%, transparent 50%);
	background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.jh-form input:focus-visible,
.jh-form select:focus-visible,
.jh-form textarea:focus-visible {
	outline: 2px solid #42a9d2;
	outline-offset: 1px;
}

.jh-form .wpcf7-checkbox,
.jh-form .wpcf7-radio {
	display: block;
}

.jh-form .wpcf7-list-item {
	display: block;
	margin: 0;
}

.jh-form .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	cursor: pointer;
}

.jh-form .wpcf7-list-item input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #42a9d2;
}

.jh-form .wpcf7-list-item-label {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.jh-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #c34b38;
	font-size: 90%;
	font-weight: 700;
}

.jh-lp .wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.6;
}

.jh-form .domainmsg {
	margin-top: 32px;
	padding: 20px;
	background-color: rgba(172, 174, 174, .2);
}

.jh-form .domainmsg p,
.jh-form .consent p {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
}

.jh-form .domainmsg p + p,
.jh-form .consent p + p {
	margin-top: 1em;
}

.jh-form .consent {
	margin-top: 40px;
	text-align: center;
}

.jh-form .consent p {
	line-height: 1.5;
}

.jh-form .domainmsg a,
.jh-form .consent a {
	border-bottom: 1px solid currentColor;
	color: #4f7d12;
	text-decoration: none;
}

.jh-form .br--sp {
	display: none;
}

@media screen and (max-width: 767px) {
	.jh-form .br--sp {
		display: inline;
	}
}

.jh-form .contact-submit {
	margin-top: 30px;
	text-align: center;
}

.jh-form .wpcf7-submit {
	display: block;
	width: 100%;
	max-width: 300px;
	height: 70px;
	margin: 0 auto;
	border: 0;
	background: #ff9d00;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .3s;
}

.jh-form .wpcf7-submit:hover {
	opacity: .8;
}

.jh-form .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

/* ---------- LP: 送信完了の表示 ---------- */

.jh-modal {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 9999;
	padding: 16px;
	background: rgba(0, 0, 0, .6);
}

.jh-modal[hidden] {
	display: none;
}

.jh-modal .modal-inner {
	width: 100%;
	max-width: 400px;
	max-height: 100%;
	padding: 40px 20px;
	overflow-y: auto;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	font-weight: 700;
}

.jh-modal .modal-inner p {
	margin: 0;
}

.jh-modal .modal-inner p + p {
	margin-top: .8em;
}

.jh-modal #close-modal {
	display: block;
	margin: 30px auto 0;
	padding: .6em 1.6em;
	border: 0;
	background-color: #555;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	cursor: pointer;
}

/* ---------- 全ページ共通の背景（LP先頭画像の絵柄：放射状の線と風船） ----------
   色のついていない線の部分には body の背景色（LP設定の背景色）が見える。
   iPhoneで background-attachment:fixed が効かないため、固定した疑似要素に描く。 */

body::before,
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

body::before {
	background: repeating-conic-gradient(from -3deg at 50% 40%, rgba(249, 182, 45, .55) 0 6deg, rgba(255, 255, 255, .7) 6deg 12deg);
}

body::after {
	background:
		url(../img/bg-balloons-left.svg) left top / clamp(120px, 24vw, 330px) auto repeat-y,
		url(../img/bg-balloons-right.svg) right top / clamp(120px, 24vw, 330px) auto repeat-y;
}

/* 絵柄の上でもPCメニューが読めるよう、白い台に載せる */
@media screen and (min-width: 992px) {
	.l-navpc {
		padding: 18px 0;
		border-radius: 12px;
		background: rgba(255, 255, 255, .94);
		box-shadow: 0 0 20px 0 rgba(0, 0, 0, .15);
	}

	.l-navpc a {
		color: #3d4040;
	}
}

/* ---------- トップページ・開催情報の一覧 ---------- */

.jh-top {
	font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.jh-top__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
}

.jh-top__hero {
	padding: clamp(28px, 6vw, 56px) 0 clamp(20px, 4vw, 36px);
	text-align: center;
}

.jh-top__hero p,
.jh-top__logo {
	margin: 0;
}

/* 「プロと話せる2日間!!」の青い帯 */
.jh-top__burst {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	padding: .3em 1.1em .35em;
	background: #0169b8;
	color: #fff;
	font-weight: 800;
	line-height: 1.1;
	transform: rotate(-2deg);
	clip-path: polygon(0 12%, 4% 0, 9% 10%, 15% 0, 21% 9%, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 55%);
}

.jh-top__burst span {
	font-size: clamp(14px, 2.6vw, 20px);
}

.jh-top__burst strong {
	font-size: clamp(26px, 5.2vw, 44px);
	letter-spacing: .02em;
}

.jh-top__badges {
	display: flex;
	justify-content: center;
	gap: clamp(8px, 2vw, 16px);
	margin-top: clamp(12px, 2.4vw, 20px) !important;
}

.jh-top__badge {
	display: grid;
	place-items: center;
	width: clamp(84px, 16vw, 132px);
	height: clamp(84px, 16vw, 132px);
	border: 4px solid #fff;
	border-radius: 50%;
	color: #fff;
	font-size: clamp(18px, 3.4vw, 28px);
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.jh-top__badge--new {
	background: #e8550f;
}

.jh-top__badge--reform {
	background: #0d8a3c;
	font-size: clamp(15px, 2.9vw, 24px);
}

/* 「住宅博」：赤い文字に白い縁取り */
.jh-top__logo {
	margin-top: clamp(4px, 1vw, 8px);
	color: #e2241b;
	font-size: clamp(84px, 21vw, 200px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .02em;
	-webkit-text-stroke: clamp(10px, 2.4vw, 22px) #fff;
	paint-order: stroke fill;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .28));
}

.jh-top__lead {
	color: #1d2088;
	font-size: clamp(20px, 4.4vw, 40px);
	font-weight: 800;
	line-height: 1.3;
	-webkit-text-stroke: clamp(5px, 1vw, 9px) #fff;
	paint-order: stroke fill;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}

/* 開催情報：日付の帯と同じオレンジの台 */
.jh-top__band {
	padding: clamp(20px, 4vw, 40px) clamp(14px, 3vw, 36px) clamp(28px, 4vw, 44px);
	border: 4px solid #fff;
	border-radius: 20px;
	background: #f9b62d;
	box-shadow: 0 0 24px 0 rgba(0, 0, 0, .2);
}

.jh-top__band-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
}

.jh-top__heading {
	margin: 0;
	color: #1d2088;
	font-size: clamp(30px, 5.4vw, 48px);
	font-weight: 800;
	line-height: 1.2;
	-webkit-text-stroke: clamp(6px, 1vw, 9px) #fff;
	paint-order: stroke fill;
}

.jh-top__free {
	margin: 0;
	padding: .15em .7em .2em;
	border: 3px solid #d7141a;
	border-radius: 10px;
	outline: 3px solid #fff200;
	outline-offset: -8px;
	background: #fff200;
	color: #d7141a;
	font-size: clamp(22px, 3.6vw, 32px);
	font-weight: 800;
	line-height: 1.3;
}

.jh-top__note,
.jh-top__empty {
	margin: 14px 0 0;
	color: #1d2088;
	font-size: clamp(16px, 2.4vw, 20px);
	font-weight: 800;
	line-height: 1.6;
	text-align: center;
}

/* イベントのブロック：LP先頭の画像（タイトル〜日付・会場）を1ブロックとして並べる */
.jh-events {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(18px, 2.4vw, 28px);
	max-width: 420px;
	margin: clamp(18px, 3vw, 28px) auto 0;
	padding: 0;
	list-style: none;
}

@media screen and (min-width: 600px) {
	.jh-events {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 780px;
	}
}

@media screen and (min-width: 1100px) {
	.jh-events {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		max-width: none;
	}
}

.jh-events__link {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	color: #1a2023;
	text-decoration: none;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
	transition: transform .2s, box-shadow .2s;
}

.jh-events__link:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 0 rgba(0, 0, 0, .18);
}

.jh-events__link:focus-visible {
	outline: 4px solid #1d2088;
	outline-offset: 3px;
}

.jh-events__link img {
	display: block;
	width: 100%;
	height: auto;
}

.jh-events__text {
	display: block;
	padding: 24px 16px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.6;
}

.jh-events__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 14px 10px;
	background: #fff200;
	color: #1a2023;
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 800;
	line-height: 1.3;
}

.jh-events__more::after {
	content: "";
	flex: none;
	width: .55em;
	height: .55em;
	border-top: 3px solid currentColor;
	border-right: 3px solid currentColor;
	transform: rotate(45deg);
}

.jh-top__footer .copy {
	margin: 0;
	padding: 28px 8px 32px;
	color: #1a2023;
	font-size: clamp(11px, 3vw, 14px);
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	-webkit-text-stroke: 4px #fff;
	paint-order: stroke fill;
}

/* ---------- 固定ページなどの簡易表示（絵柄の上に白い台） ---------- */

.jh-plain__inner {
	max-width: 760px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 24px 20px 64px;
	background: #fff;
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, .2);
}

.jh-plain__site {
	margin: 0 0 32px;
	font-weight: 700;
}

.jh-plain__site a {
	color: #026992;
}

.jh-plain__title {
	margin: 0 0 24px;
	font-size: 24px;
	line-height: 1.4;
}

.jh-plain__content img {
	max-width: 100%;
	height: auto;
}
