/*-----------
header
-----------*/
header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 24px;
	height: 80px;
	padding: 0 20px;
	background: #fff;
}
.header-logos { display: flex; align-items: center; gap: 20px; flex: none; }
.header-logos a { display: flex; }
.logo-gsc { width: 149px; }
.logo-funs { width: 94px; }
.header-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(16px, 2.2vw, 44px);
	flex: 1;
	line-height: 1.5;
}
.header-menu a { border-bottom: 1px solid transparent; }
.header-menu a:hover { border-color: currentColor; opacity: 1; }
.header-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex: none; }

.language { position: relative; font-family: var(--font-kv); color: var(--orange); line-height: 1.5; }
.language summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 155px;
	height: 50px;
	border: 1px solid var(--orange);
	cursor: pointer;
	list-style: none;
}
.language summary::-webkit-details-marker { display: none; }
.language summary::after {
	content: "";
	border: 5px solid transparent;
	border-top: 7px solid currentColor;
	border-bottom: 0;
}
.language-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--orange);
	border-top: 0;
	background: #fff;
	text-align: center;
}
.language-list > * { padding: 8px 0; }
.language-list .active { background: var(--orange); color: #fff; }

.share { position: relative; }
.share summary {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--navy);
	position: relative;
	cursor: pointer;
	list-style: none;
}
.share summary::-webkit-details-marker { display: none; }
.share-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 10px;
}
.share-list img { display: block; width: 100%; }
/* the icon file is black: painted white through a mask */
.share summary::before {
	content: "";
	position: absolute;
	inset: 12px;
	background: #fff;
	-webkit-mask: url("../images/icon_share.svg") center / contain no-repeat;
	mask: url("../images/icon_share.svg") center / contain no-repeat;
}

/* hamburger (SP / tablet): opens the menu, language and share as a panel under the header.
   final.js flips aria-expanded; the bars turn into a cross while it is open. */
.menu-button {
	display: none;
	position: relative;
	flex: none;
	width: 50px;
	height: 50px;
	margin-left: auto;
	border: 0;
	border-radius: 50%;
	background: var(--navy);
	cursor: pointer;
}
.menu-button::before, .menu-button::after {
	content: "";
	position: absolute;
	left: 28%;
	right: 28%;
	height: 2px;
	background: #fff;
	transition: 0.2s;
}
.menu-button::before { top: calc(50% - 8px); box-shadow: 0 7px 0 #fff; }
.menu-button::after { top: calc(50% + 6px); }
.menu-button[aria-expanded="true"]::before { top: calc(50% - 1px); box-shadow: none; rotate: 45deg; }
.menu-button[aria-expanded="true"]::after { top: calc(50% - 1px); rotate: -45deg; }
@media screen and (max-width: 1100px) {
	/* the open panel overflows the fixed-height header, so it lies over the page instead of pushing it down */
	header { flex-wrap: wrap; align-content: flex-start; row-gap: 0; }
	.header-logos { height: 80px; }
	.menu-button { display: block; }
	.header-menu, .header-nav { display: none; flex: 0 0 calc(100% + 40px); margin: 0 -20px; padding: 0 20px; background: #fff; }
	.menu-button[aria-expanded="true"] ~ .header-menu { display: flex; flex-direction: column; border-top: 1px solid #eee; }
	.menu-button[aria-expanded="true"] ~ .header-nav { display: flex; justify-content: center; padding: 16px 20px 20px; box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.25); }
	.header-menu a { padding: 12px 4px; border-bottom: 1px solid #eee; font-weight: 700; }
}
@media screen and (max-width: 768px) {
	header { height: 60px; padding: 0 12px; column-gap: 12px; }
	.header-menu, .header-nav { flex-basis: calc(100% + 24px); margin: 0 -12px; }
	.header-logos { height: 60px; gap: 10px; }
	.menu-button { width: 38px; height: 38px; }
	.menu-button::before { top: calc(50% - 7px); box-shadow: 0 6px 0 #fff; }
	.menu-button::after { top: calc(50% + 5px); }
	.logo-gsc { width: 100px; }
	.logo-funs { width: 60px; }
	.header-nav { gap: 10px; }
	.language summary { width: 112px; height: 38px; font-size: 13px; gap: 6px; }
	.share summary { width: 38px; height: 38px; }
	.share summary::before { inset: 9px; }
}

/*-----------
mv
-----------*/
#mv {
	position: relative;
	display: flex;
	flex-direction: column;
	/* fills the first view under the 80px header (1920x1080 full screen), never taller than the design's proportions */
	min-height: min(calc(100svh - 80px), 51.5vw);
	padding-top: clamp(24px, 2.5vw, 48px);
	background:
		url("../images/kv_dots.webp") center / cover no-repeat,
		var(--orange-bg) url("../images/kv_bg.svg") center / cover no-repeat;
	overflow: hidden;
	/* lifts the hero off the orange section below it (z-index so the shadow lands on top of it) */
	z-index: 1;
	box-shadow: 0 10px 30px rgba(120, 50, 0, 0.35);
}
/* squiggles and sparkles around the panel: the 1920 design scaled to fit the hero
   (object-fit keeps its proportions), so none are cut off */
.mv-deco {
	position: absolute;
	left: 50%;
	top: 1.35vw;
	width: min(1858px, 96.8vw);
	height: calc(100% - 2.7vw);
	object-fit: contain;
	max-width: none;
	margin-left: max(-937px, -48.8vw);
	z-index: 1; /* the squiggles overlap the panel corners, as in the design */
	pointer-events: none;
}
.mv-panel {
	position: relative;
	width: min(1290px, 67.2vw); /* leaves the sides free for the decorations */
	margin: auto; /* centred in the space above the countdown */
	padding: clamp(24px, 2.9vw, 56px) clamp(16px, 2.9vw, 56px) clamp(24px, 2.5vw, 48px);
	border-radius: clamp(20px, 3vw, 56px);
	background: #fff;
	text-align: center;
}
.mv-mascot {
	position: absolute;
	top: 2.5vw;
	right: max(-103px, -5.4vw);
	width: clamp(120px, 14.4vw, 276px);
}
.mv-ribbon {
	width: min(775px, 100%);
	margin: 0 auto;
	padding: 7px 8px;
	background: var(--navy);
	color: #fff;
	font-family: "M PLUS Rounded 1c", sans-serif;
	font-weight: 700;
	font-size: clamp(15px, 2.1vw, 32px);
	line-height: 1.5;
	letter-spacing: 0.4em;
	text-indent: 0.4em;
	border-radius: clamp(6px, 0.7vw, 12px);
}
.mv-title {
	margin: clamp(16px, 1.9vw, 36px) 0 clamp(16px, 1.7vw, 32px);
}
.mv-title {
	color: var(--orange);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(22px, 3.2vw, 62px);
	line-height: 1.25;
	letter-spacing: 0.04em;
}
.mv-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 3.4vw, 66px);
}
.mv-logo { flex: 0 0 32%; width: 32%; }
.mv-detail { font-family: var(--font-kv); }
.mv-when {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	padding-bottom: clamp(16px, 1.5vw, 28px);
	border-bottom: 2px solid var(--navy);
	text-align: center;
}
.mv-date {
	font-family: var(--font-num);
	font-weight: 700;
	font-size: clamp(44px, 5vw, 96px);
	line-height: 1.1;
}
.mv-date span { font-size: 0.375em; }
.mv-start { font-weight: 900; font-size: clamp(20px, 1.7vw, 32px); line-height: 1.2; }
.mv-start small { font-size: 0.625em; }
.mv-lead {
	font-family: "M PLUS Rounded 1c", sans-serif;
	margin-top: clamp(16px, 1.6vw, 30px);
	font-weight: 700;
	font-size: clamp(15px, 1.2vw, 23px);
	line-height: 1.4;
}
.mv-thanks { padding: clamp(8px, 2vw, 40px) 0 clamp(24px, 4vw, 80px); }
.mv-thanks .thanks { font-weight: 900; font-size: clamp(24px, 3.2vw, 48px); line-height: 1.5; }
.mv-thanks .ended { font-weight: 700; font-size: clamp(16px, 1.6vw, 24px); }

.countdown {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 20px;
	width: min(1200px, calc(100% - 48px));
	margin: clamp(24px, 2.5vw, 48px) auto 0;
	padding: 11px 22px 11px 34px;
	border-radius: 20px 20px 0 0;
	background: var(--orange-bg);
	color: #fff;
	font-family: var(--font-kv);
	font-weight: 900;
}
.countdown-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(18px, 2vw, 32px);
	line-height: 1.2;
}
.countdown-label::before {
	content: "";
	flex: none;
	width: 0.9em;
	height: 0.9em;
	background: currentColor;
	-webkit-mask: url("../images/icon_clock.svg") center / contain no-repeat;
	mask: url("../images/icon_clock.svg") center / contain no-repeat;
}
.countdown-time { font-size: clamp(20px, 2.2vw, 36px); line-height: 1.2; }
.countdown-time .num {
	font-family: var(--font-num);
	font-weight: 700;
	font-size: 1.78em;
	font-variant-numeric: tabular-nums;
}
/* the button sits above the squiggles (the bar itself stays under them) */
.countdown .pill { position: relative; z-index: 2; flex: 0 1 355px; margin-left: auto; color: var(--orange); }

.mv-buttons {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 48px;
	width: min(1048px, calc(100% - 48px));
	margin: clamp(24px, 3.2vw, 62px) auto 0;
	padding-bottom: clamp(32px, 3.2vw, 60px);
}
.mv-buttons .pill { flex: 1 1 320px; }

/* motion: the mascot floats, the down arrows bob.
   The squiggles / sparkles / rays move inside their own SVG files (kv_deco, sparkles, kv_bg). */
.mv-mascot, #seeyou img { animation: float 5s ease-in-out infinite; }
.pill.arrow::after { animation: bob 1.4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; rotate: -4deg; } }
@keyframes bob { 50% { translate: 0 5px; } }
@media (prefers-reduced-motion: reduce) {
	.mv-mascot, #seeyou img, .pill.arrow::after { animation: none; }
}

@media screen and (max-width: 768px) {
	.mv-deco { display: none; }
	.mv-panel { width: calc(100% - 48px); }
	.mv-title { font-size: 6.4vw; }
	.mv-mascot { top: -24px; right: -6px; width: 84px; }
	.mv-ribbon { letter-spacing: 0.1em; text-indent: 0.1em; }
	.mv-info { flex-direction: column; }
	.mv-logo { flex: none; width: min(260px, 70%); }
	.countdown { padding: 14px 16px 18px; }
	.countdown .pill { flex: 1 1 100%; min-height: 54px; font-size: 16px; margin: 6px 0 0; }
	.pill { min-height: 54px; font-size: 16px; }
}

/*-----------
products
-----------*/
.product-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* columns per row */
	gap: 40px;
}
.product {
	display: flex;
	gap: 24px;
	padding: 16px;
	border: 3px solid var(--line);
	border-radius: 10px;
	background: #fff;
}
.product-img {
	flex: 0 0 45%;
	aspect-ratio: 240 / 340;
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.product-img img, .dev-img img, .news-img img, .campaign-img img, .lineup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* logo: whatever size is uploaded, at most 130×46 in the design's 240-wide box */
.product-img .product-logo { flex: none; width: auto; height: auto; max-width: 54%; max-height: 46px; object-fit: contain; }
.product-img .product-shot { flex: 1; min-height: 0; object-fit: contain; }
.product-body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 20px; }
.series { color: var(--grey); font-size: 14px; line-height: 1.5; }
.name { font-weight: 700; font-size: 16px; line-height: 1.5; }
.price { font-weight: 700; line-height: 1.5; margin-bottom: auto; }

@media screen and (max-width: 900px) {
	.product-list { grid-template-columns: 1fr; gap: 20px; }
}
@media screen and (max-width: 768px) {
	.product { gap: 14px; padding: 12px; }
	.product-img { flex-basis: 38%; }
}

/*-----------
development
-----------*/
.kana {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	margin-bottom: clamp(32px, 4vw, 64px);
}
.kana ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.kana a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 40px;
	border: 1px solid var(--orange);
	border-radius: 100px;
	background: #fff;
	color: var(--orange);
	font-size: 20px;
}
.group-label {
	margin: clamp(32px, 4vw, 64px) 0 clamp(20px, 2.2vw, 36px);
	border-bottom: 2px solid var(--orange);
	line-height: 1.4;
}
.group-label span {
	display: inline-block;
	min-width: 228px;
	padding: 8px 24px;
	border-radius: 10px 10px 0 0;
	background: var(--orange);
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	text-align: center;
	vertical-align: bottom;
}
.dev-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* columns per row */
	gap: 40px;
}
.dev {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border: 3px solid var(--line);
	border-radius: 10px;
	background: #fff;
}
.dev-img { aspect-ratio: 16 / 9; margin-bottom: 8px; background: var(--placeholder); }
.dev .btn-pv { min-height: 50px; margin-top: auto; font-size: 16px; }

@media screen and (max-width: 768px) {
	.kana a { width: 54px; height: 36px; font-size: 16px; }
	.dev-list { grid-template-columns: 1fr; gap: 20px; }
	.dev { padding: 12px; }
	.group-label span { min-width: 0; font-size: 16px; }
}

/*-----------
movie
-----------*/
.video {
	aspect-ratio: 16 / 9;
	background: #d9d9d9;
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* teaser placeholder: the FUNS logo as the thumbnail, darkened, with the channel link on top */
.stream-guide {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background: #fff;
	color: #fff;
	text-align: center;
	text-decoration: none;
}
.stream-guide > img { width: 50%; }
.stream-guide-text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 1.2vw, 20px);
	background: rgba(0, 0, 0, 0.6);
	font-family: var(--font-kv);
	font-weight: 900;
	font-size: clamp(16px, 2.4vw, 36px);
	line-height: 1.5;
}
.stream-guide-text img { width: 2.8em; border-radius: 50%; } /* the YouTube channel icon */

/*-----------
news
-----------*/
.news-list, .schedule-list { display: grid; gap: clamp(12px, 2vw, 34px); }
.news {
	display: flex;
	align-items: center;
	gap: clamp(16px, 4vw, 60px);
	padding: clamp(12px, 2vw, 25px);
	border: 3px solid var(--line);
	border-radius: 10px;
}
.news-img { flex: 0 0 34%; aspect-ratio: 360 / 214; background: #b3b3b3; }
.news-body { flex: 1; min-width: 0; }
.news-body h3 { font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.5; margin-bottom: 12px; }
.news-body p { line-height: 2.5; overflow-wrap: anywhere; }

@media screen and (max-width: 768px) {
	.news { flex-direction: column; align-items: stretch; }
	.news-body p { line-height: 1.8; }
}

/*-----------
schedule
-----------*/
.schedule-list { gap: 16px; }
/* a row: the date (which can be a range) and the 終了 badge on one line, the text under them */
.schedule-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 32px;
	padding: clamp(14px, 2vw, 30px);
	border: 3px solid var(--line);
	border-radius: 10px;
	line-height: 1.6;
}
/* optional image above the rows; a click enlarges it in .zoom (final.js) */
.schedule-list .schedule-img { display: block; padding: 0; border: 0; }
.schedule-img a { display: block; cursor: zoom-in; }
.schedule-img img { display: block; width: 100%; border-radius: 10px; }
.zoom { margin: auto; padding: 0; border: 0; outline: 0; background: none; max-width: 96vw; max-height: 96vh; cursor: zoom-out; }
.zoom::backdrop { background: rgba(0, 0, 0, 0.8); }
.zoom img { display: block; max-width: 96vw; max-height: 96vh; }
.schedule-list .date { flex: 1; font-weight: 700; }
.schedule-list .text { flex: 0 0 100%; order: 3; overflow-wrap: anywhere; }
.badge-end {
	flex: none;
	min-width: 100px;
	padding: 5px 16px;
	border-radius: 100px;
	background: #d9d9d9;
	color: #000;
	font-size: 14px;
	text-align: center;
}

/*-----------
campaign
-----------*/
.campaign-body { position: relative; display: grid; gap: clamp(20px, 2.4vw, 35px); }
.campaign-body > .sub-title { margin-bottom: 0; }
.campaign-img, .lineup-img { aspect-ratio: 16 / 9; background: var(--placeholder); }
.campaign-about {
	padding: clamp(20px, 3.6vw, 50px);
	border: 3px solid var(--orange);
	border-radius: 10px;
	background: #fff;
}
.campaign-about p { overflow-wrap: anywhere; }
/* shown (remove hidden) when the campaign has ended: darkens the whole block */
.campaign-ended {
	position: absolute;
	inset: -30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-weight: 700;
	font-size: clamp(20px, 2.4vw, 36px);
	text-align: center;
}

@media screen and (max-width: 768px) {
	.campaign-ended { inset: -12px; }
}

/*-----------
preview
-----------*/
.preview-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 50px; }
.preview-nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 12px 48px;
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	font-size: clamp(16px, 1.7vw, 24px);
	line-height: 1.4;
	text-align: center;
}
#preview .box { margin-top: clamp(32px, 4vw, 60px); scroll-margin-top: 100px; }
.lineup-img { width: min(1001px, 100%); margin: 0 auto; }
.silhouette-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* columns per row */
	gap: clamp(10px, 2.4vw, 40px) clamp(10px, 1.2vw, 20px);
	width: min(1020px, 100%);
	margin: 0 auto;
}
.silhouette-list li { aspect-ratio: 240 / 320; background: var(--placeholder); }

@media screen and (max-width: 768px) {
	.preview-nav { grid-template-columns: 1fr; }
	.preview-nav a { min-height: 64px; }
	.silhouette-list { grid-template-columns: repeat(2, 1fr); }
}

/*-----------
seeyou
-----------*/
#seeyou {
	/* navy band with the white circle cut out of the middle */
	background: radial-gradient(circle 439px at 50% 53%, #fff 99.8%, var(--navy));
	text-align: center;
}
#seeyou img { display: block; width: 207px; margin: 24px auto 16px; }
.seeyou-en {
	color: var(--orange);
	font-family: var(--font-num);
	font-weight: 800;
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.2;
}
.seeyou-text { font-weight: 700; font-size: clamp(16px, 1.7vw, 24px); line-height: 1.6; }

@media screen and (max-width: 768px) {
	#seeyou { background: #fff; border-block: 12px solid var(--navy); }
}

/*-----------
links
-----------*/
.x-card {
	display: flex;
	align-items: center;
	gap: 20px;
	width: min(580px, 100%);
	margin: 0 auto clamp(32px, 4vw, 60px);
	padding: 22px 20px;
	border: 3px solid var(--orange);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 5px 0 var(--orange);
}
.x-card img { flex: none; width: 100px; border-radius: 50%; }
.x-name { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; }
.x-name small { display: block; margin-top: 4px; color: var(--grey); font-weight: 500; font-size: 14px; }
.x-follow {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
	padding: 0 18px;
	border-radius: 100px;
	background: var(--orange);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	line-height: 32px;
}
.x-follow::before {
	content: "";
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("../images/icon_plus.svg") center / contain no-repeat;
	mask: url("../images/icon_plus.svg") center / contain no-repeat;
}
.link-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.link-buttons a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	padding: 12px 52px;
	border: 3px solid var(--orange);
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}
.link-buttons .arrow::after { color: var(--orange); }

@media screen and (max-width: 768px) {
	.x-card { flex-wrap: wrap; gap: 12px; padding: 16px; }
	.x-card img { width: 64px; }
	.x-name { flex-basis: calc(100% - 76px); }
	.x-follow { margin-left: auto; }
	.link-buttons { grid-template-columns: 1fr; }
	.link-buttons a { min-height: 64px; }
}

/*-----------
footer
-----------*/
footer {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 121px;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-num);
	font-weight: 400;
	font-size: 14px;
}

/* English: Latin text runs longer than the Japanese and needs no kana-style tracking */
:lang(en) .mv-ribbon { letter-spacing: 0.04em; text-indent: 0.04em; }
:lang(en) .mv-start small { display: inline-block; margin-left: 0.5em; } /* "(Japan Standard Time)": spaced from the text, wraps as one piece */
:lang(en) .sec-title { font-size: clamp(22px, 3.6vw, 52px); line-height: 1.2; letter-spacing: 0.02em; text-indent: 0; }
:lang(en) .countdown-label, :lang(en) .countdown-time { font-size: clamp(16px, 1.7vw, 28px); }
/* "14 Days  03 Hours": a gap after each number, a wider one between the groups */
:lang(en) .countdown-time { word-spacing: 0.35em; }
:lang(en) .countdown-time .num { margin-right: 0.12em; }
