/* Styles added in the replacement (not in the old theme). */

/*
 * Tidying the old layout (2026-11-19): only the arrangement and spacing; colors, words and images as before.
 */

/* 1. The square menu banners (footer and top page): one row whatever their number (5, or 6 with マイページ). */
@media only screen and (min-width: 1025px) {
	.main_container2 .main_container2_sub {
		flex-wrap: nowrap;
		padding: 0 10px;
	}
	.main_container2 .main_container2_sub a {
		flex: 0 1 262px;
		min-width: 0;
		margin: 18px 10px;
	}
	.main_container2 .main_container2_sub a img {
		display: block;
		width: 100%;
		height: auto;
	}
}

/* 2. SNS icons and the HF24 BOX banner: one centered row (wraps on narrow screens). */
#footer .area2 .area2_container .footer-banners {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px 48px;
	margin: 16px 0 8px;
}
#footer .area2 .area2_container .footer-banners .banner_sns,
#footer .area2 .area2_container .footer-banners .banner_tv {
	float: none;
	width: auto;
	margin: 0;
}
#footer .area2 .area2_container .footer-banners .banner_tv img {
	margin: 0;
	vertical-align: middle;
}
#footer .area2 .area2_container .footer-banners .banner_sns img {
	vertical-align: middle;
}

/* 3. Space between the page and the footer. */
#footer {
	margin-top: 32px;
}
/* Not on smartphones: the blocks above the footer there have their own background (a white band showed). */
@media only screen and (max-width: 1024px) {
	#footer {
		margin-top: 0;
	}
}

/* 4. A short page: the footer's color goes on to the bottom of the window (the shadow does not add scrolling). */
#footer .area2 {
	box-shadow: 0 100vh 0 100vh #f6f5f3;
}

/* Share links on the video page (stage 1 spec §8.9: links instead of the X / Facebook scripts). */
.snss .share-link {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 3px;
	color: #fff !important;
	font-size: 12px;
	line-height: 20px;
	text-decoration: none;
}
.snss .share-x { background: #000; }
.snss .share-facebook { background: #1877f2; }

/* 5. The share links and the LINE button side by side, the same height and spacing (old fixed widths off). */
#moviearea .snss {
	display: flex;
	align-items: center;
	gap: 8px;
}
#moviearea .snss > div {
	float: none !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
}
#moviearea .snss .share-link {
	min-width: 64px;
	text-align: center;
	box-sizing: border-box;
}
#moviearea .snss img {
	display: block;
	width: 20px;
	height: 20px;
}

/* Messages and notes on the nickname page (stage 1 spec §7.6). */
.hf24-message { margin: 0 0 12px; padding: 8px 12px; background: #fff; border-left: 4px solid #00a0d2; }
.hf24-message-error { border-left-color: #dc3232; }
.hf24-note { margin: 8px 0 12px 1.5em; list-style: disc; font-size: 90%; }
