/* menesale core */
:root {
	--ms-accent: #e0457b;
	--ms-accent-dark: #b8325f;
	--ms-sale: #d62d2d;
	--ms-ink: #222;
	--ms-muted: #6b6b6b;
	--ms-line: #e7e2e4;
	--ms-card: #fff;
	--ms-soft: #fff4f7;
}

/* ---------- 年齢確認 ---------- */
#age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 16, 18, .92);
	backdrop-filter: blur(6px);
}
html.age-ok #age-gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }

.age-gate__box {
	width: 100%;
	max-width: 420px;
	padding: 32px 24px;
	border-radius: 14px;
	background: #fff;
	color: var(--ms-ink);
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.age-gate__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border: 3px solid var(--ms-sale);
	border-radius: 50%;
	color: var(--ms-sale);
	font-weight: 800;
	font-size: 22px;
}
.age-gate__box h2 { margin: 0 0 12px; font-size: 22px; }
.age-gate__box p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--ms-muted); }
.age-gate__box .age-gate__q { color: var(--ms-ink); font-weight: 700; font-size: 16px; }
.age-gate__buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.age-gate__buttons a {
	display: block;
	padding: 14px;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}
.age-gate__yes { background: var(--ms-accent); color: #fff; }
.age-gate__yes:hover { background: var(--ms-accent-dark); color: #fff; }
.age-gate__no { background: #f1eff0; color: var(--ms-muted); }

/* ---------- PR表記 ---------- */
.site-pr-bar {
	padding: 6px 16px;
	background: #f6f4f5;
	color: var(--ms-muted);
	font-size: 12px;
	text-align: center;
}
.pr-notice {
	padding: 10px 14px;
	border-left: 4px solid var(--ms-line);
	background: #faf9f9;
	color: var(--ms-muted);
	font-size: 13px;
}

/* ---------- セール作品カード（ツールが出力する .sale-card） ---------- */
.entry-content h2 {
	margin-top: 2em;
	padding: 10px 14px;
	border-left: 5px solid var(--ms-accent);
	background: var(--ms-soft);
	font-size: 1.2em;
}
.sale-card {
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid var(--ms-line);
	border-radius: 12px;
	background: var(--ms-card);
}
/* 画像があるときだけ2カラム（画像｜情報） */
.sale-card:has(> a:first-child img) {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 4px 16px;
	align-content: start;
}
.sale-card:has(> a:first-child img) > a:first-child { grid-column: 1; grid-row: 1 / span 6; }
.sale-card:has(> a:first-child img) > :not(a:first-child) { grid-column: 2; }
.sale-card img { width: 100%; height: auto; border-radius: 8px; display: block; }
.sale-card h3 { margin: 0 0 4px; font-size: 1em; line-height: 1.5; }
.sale-card h3 a { color: var(--ms-ink); text-decoration: none; }
.sale-card h3 a:hover { color: var(--ms-accent); }
.sale-card p { margin: 0; font-size: .9em; color: var(--ms-muted); }
.sale-card p strong { color: var(--ms-sale); font-size: 1.15em; }
.sale-card .note { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--ms-soft); color: var(--ms-ink); }

@media (max-width: 600px) {
	.sale-card { padding: 10px; }
	.sale-card:has(> a:first-child img) { grid-template-columns: 110px 1fr; gap: 4px 10px; }
}

/* ---------- 記事タイトル ---------- */
.entry-title { line-height: 1.4; }
@media (max-width: 600px) {
	.entry-title { font-size: 24px; }
	.entry-content h2 { font-size: 1.1em; }
}

/* ---------- お問い合わせフォーム ---------- */
.ms-contact { max-width: 640px; }
.ms-contact label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.ms-contact input[type="text"],
.ms-contact input[type="email"],
.ms-contact select,
.ms-contact textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ms-line);
	border-radius: 8px;
	background: #fff;
	font-size: 16px; /* iOSで拡大されないように */
}
.ms-contact textarea { resize: vertical; }
.ms-contact__req,
.ms-contact__opt {
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	vertical-align: 1px;
}
.ms-contact__req { background: var(--ms-accent); color: #fff; }
.ms-contact__opt { background: #eee; color: var(--ms-muted); }
.ms-contact__agree label { font-weight: 400; }
.ms-contact__submit {
	padding: 12px 40px;
	border: 0;
	border-radius: 10px;
	background: var(--ms-accent);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.ms-contact__submit:hover { background: var(--ms-accent-dark); }
.ms-contact__error { padding: 10px 14px; border-radius: 8px; background: #fdecec; color: #a21d1d; }
.ms-contact__done { padding: 16px; border-radius: 10px; background: var(--ms-soft); }
.ms-contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ms-contact__agree { display: flex; align-items: center; gap: 8px; }
.ms-contact__agree label { display: inline; margin: 0; }

/* ---------- 記事テンプレート共通 ---------- */
.ms-summary {
	margin: 1.5em 0;
	padding: 16px 18px;
	border: 2px solid var(--ms-accent);
	border-radius: 12px;
	background: var(--ms-soft);
}
.ms-summary p:last-child, .ms-summary ul:last-child { margin-bottom: 0; }
.ms-spec table { width: 100%; border-collapse: collapse; font-size: .95em; }
.ms-spec th, .ms-spec td { padding: 8px 12px; border: 1px solid var(--ms-line); text-align: left; }
.ms-spec th { width: 32%; background: #faf7f8; font-weight: 700; }
.ms-cta .wp-block-button__link {
	padding: 14px 32px;
	border-radius: 999px;
	background: var(--ms-accent);
	color: #fff;
	font-weight: 700;
}
.ms-cta .wp-block-button__link:hover { background: var(--ms-accent-dark); }
.ms-faq {
	margin: 0 0 10px;
	padding: 12px 16px;
	border: 1px solid var(--ms-line);
	border-radius: 10px;
}
.ms-faq summary { font-weight: 700; cursor: pointer; }
.ms-faq summary::before { content: "Q. "; color: var(--ms-accent); }
.ms-faq p { margin: 10px 0 0; }

/* ---------- 価格履歴ボックス ---------- */
.ms-price {
	margin: 1.5em 0;
	padding: 16px 18px;
	border: 1px solid var(--ms-line);
	border-radius: 12px;
	background: #fff;
}
.ms-price--best { border: 2px solid var(--ms-sale); background: #fff6f6; }
.ms-price--sale { border: 2px solid var(--ms-accent); }
.ms-price--empty { color: var(--ms-muted); font-size: .9em; }
.ms-price__title { margin: 0 0 6px; font-weight: 800; }
.ms-price__verdict { margin: 0 0 12px; font-weight: 700; color: var(--ms-ink); }
.ms-price--best .ms-price__verdict { color: var(--ms-sale); }
.ms-price__table { width: 100%; border-collapse: collapse; font-size: .92em; }
.ms-price__table th, .ms-price__table td { padding: 6px 4px; border-bottom: 1px solid var(--ms-line); text-align: left; }
.ms-price__table th { width: 40%; color: var(--ms-muted); font-weight: 400; }
.ms-price__was, .ms-price__date { margin-left: 4px; color: var(--ms-muted); font-size: .9em; }
.ms-price__cta { margin: 14px 0 6px; text-align: center; }
.ms-price__cta a {
	display: inline-block;
	padding: 10px 28px;
	border-radius: 999px;
	background: var(--ms-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.ms-price__note { margin: 0; color: var(--ms-muted); font-size: 12px; }
.entry-content h3 {
	margin-top: 1.6em;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--ms-line);
	font-size: 1.1em;
}
.ms-updated { color: var(--ms-muted); font-size: 13px; text-align: right; }
.ms-table th { background: var(--ms-soft); }
.ms-table td, .ms-table th { font-size: .9em; }
.ms-sources { margin-top: 2em; color: var(--ms-muted); font-size: 12px; }
@media (max-width: 600px) { .ms-table { overflow-x: auto; } .ms-table table { min-width: 560px; } }
.ms-note { padding: 10px 14px; border-radius: 8px; background: #f4f7fb; color: #44546a; font-size: 13px; }
