/*
 * erogate お問い合わせ・運営者情報（mu-plugin）の見た目。
 * 外部フォント・画像・読み込みは使わない。文字の大きさや書体はテーマ（Twenty Twenty-Five）に任せる。
 */

/* フッターのリンク（テーマのフッターの下に出る） */
.eg-site-links {
	box-sizing: border-box;
	width: 100%;
	padding: 8px 16px 24px;
	font-size: 0.875rem;
	text-align: center;
}

.eg-site-links__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eg-site-links__list a {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
	color: inherit;
}

/* お問い合わせ */
.eg-contact {
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
}

.eg-contact__form {
	display: grid;
	gap: 20px;
	margin-top: 16px;
}

.eg-contact__note {
	margin: 0;
	font-size: 0.875em;
}

.eg-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.eg-required {
	margin-left: 4px;
	font-size: 0.85em;
	font-weight: normal;
	color: #a1001b;
}

.eg-field input[type="text"],
.eg-field input[type="email"],
.eg-field textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #767676;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 16px; /* iOS で入力時に拡大されない大きさ */
	line-height: 1.6;
}

.eg-field textarea {
	min-height: 180px;
	resize: vertical;
}

.eg-field input:focus-visible,
.eg-field textarea:focus-visible,
.eg-contact__submit:focus-visible {
	outline: 3px solid #1a5fb4;
	outline-offset: 2px;
}

.eg-field [aria-invalid="true"] {
	border: 2px solid #a1001b;
}

.eg-field__error {
	margin: 6px 0 0;
	font-size: 0.9em;
	color: #a1001b;
}

.eg-field--agree {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
}

.eg-field--agree input[type="checkbox"] {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
}

.eg-field--agree label {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	font-weight: normal;
}

.eg-field--agree .eg-field__error {
	flex-basis: 100%;
}

/* ハニーポット（人には見せない。インラインの style と二重に指定） */
.eg-field--hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.eg-contact__submit {
	min-width: 160px;
	min-height: 48px;
	padding: 10px 24px;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.eg-notice {
	margin: 16px 0;
	padding: 12px 16px;
	border-left: 4px solid;
	color: #111;
}

.eg-notice p,
.eg-notice ul {
	margin: 0;
}

.eg-notice ul {
	margin-top: 8px;
	padding-left: 1.2em;
}

.eg-notice a {
	color: inherit;
}

.eg-notice--error {
	border-color: #a1001b;
	background: #fdecee;
}

.eg-notice--success {
	border-color: #1b7f3b;
	background: #e9f6ee;
}

.eg-notice--success p + p {
	margin-top: 8px;
}

/* 運営者情報 */
.eg-operator__table {
	width: 100%;
	border-collapse: collapse;
}

.eg-operator__table th,
.eg-operator__table td {
	padding: 10px 12px;
	border-bottom: 1px solid #d0d0d0;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.eg-operator__table th {
	width: 34%;
	font-weight: 600;
}

.eg-placeholder {
	font-weight: 600;
	color: #a1001b;
}

@media (max-width: 480px) {
	.eg-operator__table th,
	.eg-operator__table td {
		display: block;
		width: auto;
	}

	.eg-operator__table th {
		padding-bottom: 0;
		border-bottom: 0;
	}
}
