/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
*/

/* 余白（背景）をメインと同じクリームに統一（theme.json accent-5 相当） */
html,
body,
.wp-site-blocks {
	background-color: #fbfaf3 !important;
}

/* メンバー・ギャラリー（Swiper）は member-gallery.css を参照（メンバー個別で読み込み） */

/* ヘッダー先頭ロゴ（wp_body_open で .wp-site-blocks の直前に出力） */
.site-header-brand-logo-wrap {
	box-sizing: border-box;
	width: 100%;
	background-color: #fbfaf3;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.site-header-brand-logo {
	box-sizing: border-box;
	width: 100%;
	text-align: center;
	padding: 0.75rem var(--wp--preset--spacing--50, 1.25rem) 0.25rem;
}

.site-header-brand-logo__img {
	max-width: min(100%, 320px);
	width: auto;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

/* ヘッダー（ロゴ）とメインの間の区切り線を消す */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part {
	border-bottom: 0 !important;
	box-shadow: none !important;
}

/* メンバー詳細のみ: ヘッダー内コアナビ（オーバーレイ開くハンバーガー）を非表示 */
body.single-member .wp-site-blocks .wp-block-navigation,
body.single.post-type-member .wp-site-blocks .wp-block-navigation {
	display: none !important;
}

/* メンバー詳細: ギャラリー下「家族ページへ戻る」「ログアウト」を横並び（body クラス差に備え複数指定） */
body.single-member .member-single-bottom-actions,
body.single.post-type-member .member-single-bottom-actions,
body.post-type-member .member-single-bottom-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	width: fit-content;
	max-width: 100%;
	margin: 28px auto 0;
}

body.single-member .member-single-bottom-actions__btn,
body.single.post-type-member .member-single-bottom-actions__btn,
body.post-type-member .member-single-bottom-actions__btn {
	flex: 0 1 11rem;
	width: 11rem;
	/* 2ボタンの見た目を完全に揃える */
	height: 4.25rem;
	max-height: 4.25rem;
	min-height: 4.25rem;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 14px 18px;
	overflow: hidden;
	font-size: 1.1rem;
	line-height: 1.35;
	text-decoration: none;
	color: #1a1a1a;
	border: 1px solid #d4d4c8;
	border-radius: 12px;
	background: #fbfaf3;
}

body.single-member .member-single-bottom-actions__label,
body.single.post-type-member .member-single-bottom-actions__label,
body.post-type-member .member-single-bottom-actions__label {
	display: block;
}

/*
 * body クラス差・theme.json 由来のリンク用 min-height 等より後勝ちにする（nav 直下のみ）。
 */
nav.member-single-bottom-actions > a.member-single-bottom-actions__btn {
	box-sizing: border-box !important;
	height: 4.25rem !important;
	min-height: 4.25rem !important;
	max-height: 4.25rem !important;
	width: min(100%, 11rem) !important;
	display: inline-flex !important;
	align-self: flex-start !important;
	align-items: center;
	justify-content: center;
	margin-top: 0 !important;
	padding: 14px 18px !important;
	overflow: hidden;
	line-height: 1.35;
}
