@charset "utf-8";

/* ============================================
   モバイル・タブレット用スタイルシート

   ブレークポイント（peace-landing.css と整合）:
   - モバイル: 〜768px
   - タブレット: 769px〜899px（ハンバーガー・float-tel 表示）
   - デスクトップ: 900px〜
   ============================================ */

/* ----- 全画面サイズ共通（レスポンシブ安全策） ----- */
.entry-content img,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video,
.peace-case-entry img,
.peace-landing-main .entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* モバイル・タブレット（float-tel 表示時: 900px 未満） */
@media screen and (max-width: 899px) {
	/* フローティング TEL ボタンと本文末尾の重なりを軽減 */
	#peace-landing-main,
	body.single-column .column-page-wrap #main-contents,
	body.post-type-archive-column .column-page-wrap #main-contents,
	body.tax-column_category .column-page-wrap #main-contents,
	body.tax-column_tag .column-page-wrap #main-contents,
	body.single-realty_listing .column-page-wrap #main-contents,
	body.single-realty_reference .column-page-wrap #main-contents,
	body.post-type-archive-realty_listing .column-page-wrap #main-contents,
	body.post-type-archive-realty_reference .column-page-wrap #main-contents,
	body.tax-realty_property_type .column-page-wrap #main-contents,
	body.tax-realty_area .column-page-wrap #main-contents,
	body.tax-realty_station .column-page-wrap #main-contents,
	.peace-case-landing.peace-landing-main {
		padding-bottom: 7rem;
	}

	/* iOS: フォーム入力フォーカス時の自動ズーム防止 */
	.peace-landing-main .wpcf7-form input[type='text'],
	.peace-landing-main .wpcf7-form input[type='email'],
	.peace-landing-main .wpcf7-form input[type='tel'],
	.peace-landing-main .wpcf7-form input[type='url'],
	.peace-landing-main .wpcf7-form select,
	.peace-landing-main .wpcf7-form textarea,
	.peace-contact-forms .wpcf7-form input[type='text'],
	.peace-contact-forms .wpcf7-form input[type='email'],
	.peace-contact-forms .wpcf7-form input[type='tel'],
	.peace-contact-forms .wpcf7-form input[type='url'],
	.peace-contact-forms .wpcf7-form select,
	.peace-contact-forms .wpcf7-form textarea {
		font-size: 16px;
	}

	/* ノッチ端末の safe area */
	.peace-float-tel {
		bottom: max(20px, env(safe-area-inset-bottom, 0px));
		right: max(16px, env(safe-area-inset-right, 0px));
	}

	/* グローバルヘッダー: デスクトップナビ非表示 */
	header.peace-header .peace-nav-desktop {
		display: none;
	}

	header.peace-header .peace-hamburger {
		display: flex;
	}
}

/* モバイル（768px 以下） */
@media screen and (max-width: 768px) {
	body {
		overflow-x: hidden;
	}

	.column-category-nav {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.single-column .column-page-wrap #main-contents,
	body.post-type-archive-column .column-page-wrap #main-contents,
	body.tax-column_category .column-page-wrap #main-contents,
	body.tax-column_tag .column-page-wrap #main-contents,
	body.single-realty_listing .column-page-wrap #main-contents,
	body.single-realty_reference .column-page-wrap #main-contents,
	body.post-type-archive-realty_listing .column-page-wrap #main-contents,
	body.post-type-archive-realty_reference .column-page-wrap #main-contents,
	body.tax-realty_property_type .column-page-wrap #main-contents,
	body.tax-realty_area .column-page-wrap #main-contents,
	body.tax-realty_station .column-page-wrap #main-contents {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* タブレット（769px〜899px） */
@media screen and (min-width: 769px) and (max-width: 899px) {
	.peace-sp-menu {
		padding-left: 32px;
		padding-right: 32px;
	}
}

/* デスクトップ（900px 以上） */
@media screen and (min-width: 900px) {
	header.peace-header .peace-nav-desktop {
		display: flex;
		align-items: center;
		gap: 20px;
	}

	header.peace-header .peace-hamburger {
		display: none;
	}
}
