/*
Theme Name: Yaese AIZOME Child
Template: aizome
Version: 1.0.0
Text Domain: yaese-aizome
*/

.yaese-editor-box {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	margin: 1.5rem 0 2rem;
	padding: 1rem 1.125rem;
	background: #f4f7fa;
	border: 1px solid #d8e2ed;
	border-left: 4px solid var(--ai, #16467b);
	border-radius: 8px;
}

.yaese-editor-box__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	border: 1px solid #cfd9e4;
}

.yaese-editor-box__label,
.yaese-editor-box__name,
.yaese-editor-box__bio {
	margin: 0;
}

.yaese-editor-box__label {
	font-size: .75rem;
	letter-spacing: .08em;
	color: var(--ink-faint, #8a9099);
}

.yaese-editor-box__name {
	margin-top: .15rem;
	font-family: var(--font-display, serif);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ink, #1c1e21);
}

.yaese-editor-box__bio {
	margin-top: .3rem;
	font-size: .88rem;
	line-height: 1.75;
	color: var(--ink-soft, #4b5259);
}

@media (max-width: 480px) {
	.yaese-editor-box {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: .75rem;
		padding: .875rem;
	}
	.yaese-editor-box__avatar { width: 48px; height: 48px; }
}

/* CTAのホバー時に背景と文字が同化しないよう、子テーマ側でコントラストを固定する。 */
.aizome-box--point .wp-block-button__link,
.aizome-btn .wp-block-button__link {
	color: #fff;
	background: #16467b;
}

.aizome-box--point .wp-block-button__link:hover,
.aizome-box--point .wp-block-button__link:focus-visible,
.aizome-btn .wp-block-button__link:hover,
.aizome-btn .wp-block-button__link:focus-visible {
	color: #fff !important;
	background: #0b2f59 !important;
	box-shadow: 0 3px 0 #061f3d;
}

.yaese-mobile-vendor-cta {
	display: none;
}

@media (max-width: 767px) {
	body:has(.yaese-mobile-vendor-cta) {
		padding-bottom: 5.25rem;
	}

	.yaese-mobile-vendor-cta {
		display: block;
		position: fixed;
		z-index: 1000;
		left: 0;
		right: 0;
		bottom: 0;
		padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		border-top: 1px solid #cfd9e4;
		box-shadow: 0 -4px 16px rgba(18, 42, 67, .14);
	}

	.yaese-mobile-vendor-cta a {
		display: block;
		padding: .8rem 1rem;
		border-radius: 7px;
		background: #16467b;
		color: #fff !important;
		font-weight: 700;
		line-height: 1.35;
		text-align: center;
		text-decoration: none;
	}

	.yaese-mobile-vendor-cta a:hover,
	.yaese-mobile-vendor-cta a:focus-visible {
		background: #0b2f59;
		color: #fff !important;
	}
}
