body.offme-new-feature-archive .offme-feature-main,
body.offme-new-feature-detail .offme-feature-main {
	width: min(960px, calc(100% - 32px));
	max-width: 960px;
	margin: 12px auto 60px;
	padding: 26px 28px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	color: #313131;
}

.offme-feature-main a {
	text-underline-offset: 0.18em;
}

.offme-feature-title {
	margin: 0;
	color: #10132b;
	font-family: "M PLUS 1p", "ヒラギノ角ゴ Pro W3", sans-serif;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.offme-feature-rainbow {
	height: 8px;
	margin: 10px 0 14px;
	background: url("../../../../themes/offme/assets/img/rainbow-border.png") repeat-x;
	background-size: auto 8px;
}

.offme-feature-summary {
	margin: 16px 0 4px;
	padding: 14px 16px;
	border: 1px solid #f0e6a0;
	border-radius: 4px;
	background: #fffde7;
	color: #313131;
	font-size: 14.5px;
	line-height: 1.7;
}

.offme-feature-band {
	position: relative;
	margin: 30px 0 16px;
	padding: 13px 8px;
	background: #333;
	color: #fff;
	font-size: 1.3em;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
}

.offme-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.offme-feature-card {
	display: flex;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

.offme-feature-card-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-bottom: 1px solid #ddd;
	background: #f4f4f4;
}

.offme-feature-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.offme-feature-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 13px 14px;
}

.offme-feature-card h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.offme-feature-card h3 a {
	color: #10132b;
	text-decoration: none;
}

.offme-feature-card h3 a:hover,
.offme-feature-card h3 a:focus-visible {
	color: #1a6bb8;
	text-decoration: underline;
}

.offme-feature-card p {
	display: -webkit-box;
	margin: 8px 0 0;
	overflow: hidden;
	color: #777;
	font-size: 12.5px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.offme-feature-card-link {
	display: inline-block;
	margin-top: auto;
	padding-top: 10px;
	color: #1a6bb8;
	font-size: 13px;
	font-weight: bold;
}

.offme-feature-hero {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	margin: 0 0 14px;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f4f4f4;
}

.offme-feature-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.offme-feature-content {
	display: flow-root;
	min-width: 0;
	font-size: 14px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.offme-feature-content::after {
	display: block;
	clear: both;
	content: "";
}

.offme-feature-content img {
	max-width: 100%;
	height: auto;
}

.offme-feature-content iframe,
.offme-feature-content video {
	max-width: 100%;
}

.offme-feature-content > :first-child {
	margin-top: 0;
}

.offme-feature-content > :last-child {
	margin-bottom: 0;
}

.offme-feature-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
}

.offme-feature-related-card {
	display: block;
	padding: 12px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	text-decoration: none;
}

.offme-feature-related-card:hover,
.offme-feature-related-card:focus-visible {
	border-color: #ec6ba2;
	background: #fdf0f6;
}

.offme-feature-related-card strong {
	display: block;
	color: #10132b;
	font-size: 14px;
}

.offme-feature-related-card strong::after {
	float: right;
	color: #ec6ba2;
	content: "→";
}

.offme-feature-related-card span {
	display: block;
	margin-top: 2px;
	color: #777;
	font-size: 12px;
}

.offme-feature-main .offme-empty {
	margin: 0;
	padding: 18px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f7f7f7;
	color: #666;
	text-align: center;
}

@media (max-width: 640px) {
	body.offme-new-feature-archive .offme-feature-main,
	body.offme-new-feature-detail .offme-feature-main {
		width: 100%;
		margin-top: 0;
		padding: 16px 12px;
		border-radius: 0;
	}

	.offme-feature-title {
		font-size: 20px;
	}

	.offme-feature-band {
		padding: 11px 6px;
		font-size: 1.12em;
	}

	.offme-feature-summary {
		padding: 11px 12px;
		font-size: 13.5px;
	}

	.offme-feature-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.offme-feature-card-body {
		padding: 11px 12px;
	}

	.offme-feature-content {
		font-size: 13.5px;
	}

	.offme-feature-related-grid {
		grid-template-columns: 1fr;
	}
}
