/*
 * f-create Home
 * Floating J.League club field
 */

/* =========================================================
   TOP PAGE BASE
   ========================================================= */

html {
	margin: 0;
	padding: 0;
}

body.home {
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #fff;
}

/* SWELL側の余白をTOPだけ解除 */
body.home #body_wrap,
body.home #content,
body.home .l-content,
body.home .l-container,
body.home .l-mainContent,
body.home .l-mainContent__inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* TOPではSidebar / Footer類をすべて出さない */
body.home aside,
body.home #sidebar,
body.home .l-sidebar,
body.home footer,
body.home #footer,
body.home .l-footer,
body.home .w-footer {
	display: none !important;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

body.home #header {
	background: #fff !important;
	color: #111 !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* ヘッダー本体 */
body.home #header .l-header__inner {
	min-height: 72px !important;
	height: 72px !important;
	background: #fff !important;
}

/* f-createロゴ */
body.home #header .fcreate-header-logo {
	width: auto !important;
	max-height: 46px !important;
}

/* PC navigation */
body.home #header #gnav,
body.home #header .c-gnav,
body.home #header .c-gnav a,
body.home #header .fcreate-nav__search {
	color: #111 !important;
}

/* ヘッダー内button/icon */
body.home #header button,
body.home #header .c-iconBtn {
	color: #111 !important;
}

/* 固定ヘッダー */
body.home #fix_header {
	background: rgba(255, 255, 255, 0.96) !important;
	color: #111 !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.home #fix_header .fcreate-header-logo {
}

body.home #fix_header .c-gnav a {
	color: #111 !important;
}


/* =========================================================
   HOME CANVAS
   ========================================================= */

.fcreate-home {
	position: relative;
	width: 100vw !important;
	max-width: none !important;

	margin-top: 0 !important;
	margin-bottom: 0 !important;

	/*
	 * SWELLのcontent幅に入っていても
	 * 強制的にviewportいっぱいへ広げる
	 */
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;

	padding: 0 !important;
	background: #fff;
}

.fcreate-home-stage {
	position: relative;

	width: 100vw !important;
	max-width: none !important;

	height: var(
		--fcreate-home-stage-height,
		calc(100svh - 72px)
	);

	min-height: 300px;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden;

	background:
		radial-gradient(
			circle at 50% 45%,
			rgba(0, 0, 0, 0.018),
			transparent 52%
		),
		#fff;

	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	overscroll-behavior: contain;

	cursor: grab;
	isolation: isolate;
}

.fcreate-home-stage.is-dragging {
	cursor: grabbing;
}


/* =========================================================
   CLUB LOGOS
   ========================================================= */

.fcreate-home-logo {
	position: absolute;

	top: 0;
	left: 0;

	width: var(--fcreate-logo-size, 72px);
	height: var(--fcreate-logo-size, 72px);

	display: flex;
	align-items: center;
	justify-content: center;

	transform: translate3d(0, 0, 0);
	transform-origin: center;

	will-change: transform;

	pointer-events: auto;
	touch-action: none;

	cursor: grab;
	z-index: 1;
}

.fcreate-home-logo.is-dragging {
	cursor: grabbing;
	z-index: 100;
}

.fcreate-home-logo__image {
	display: block;

	width: 100%;
	height: 100%;

	padding: 4%;

	object-fit: contain;

	pointer-events: none;

	user-select: none;
	-webkit-user-drag: none;

	filter: none;
/*		drop-shadow(
			0 5px 9px rgba(0, 0, 0, 0.10)
		);*/
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	body.home #header .l-header__inner {
		min-height: 58px !important;
		height: 58px !important;
	}

	body.home #header .fcreate-header-logo {
		max-height: 38px !important;
	}

	.fcreate-home-stage {
		min-height: 300px;
	}

	.fcreate-home-logo__image {
		filter: none;
/*			drop-shadow(
				0 4px 7px rgba(0, 0, 0, 0.09)
			);*/
	}
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.fcreate-home-stage {
		cursor: default;
	}

	.fcreate-home-logo {
		cursor: default;
	}
}

/* =========================================================
   f-create HOME hard override
   ========================================================= */

/* TOP専用body */
body.fcreate-home-page {
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #fff !important;
}


/* =========================================================
   HEADER
   ========================================================= */

body.fcreate-home-page #header {
	background: #fff !important;
	color: #111 !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.fcreate-home-page #header .l-header__inner {
	height: 72px !important;
	min-height: 72px !important;
	background: #fff !important;
}

/* ロゴを黒へ */
body.fcreate-home-page #header .fcreate-header-logo {
	max-height: 44px !important;
	width: auto !important;
}

/* メニュー文字 */
body.fcreate-home-page #header #gnav,
body.fcreate-home-page #header #gnav *,
body.fcreate-home-page #header .c-gnav,
body.fcreate-home-page #header .c-gnav *,
body.fcreate-home-page #header .fcreate-nav__search {
	color: #111 !important;
}


/* =========================================================
   SWELL LAYOUT RESET
   ========================================================= */

body.fcreate-home-page #body_wrap,
body.fcreate-home-page #content,
body.fcreate-home-page .l-content,
body.fcreate-home-page .l-container,
body.fcreate-home-page .l-mainContent,
body.fcreate-home-page .l-mainContent__inner,
body.fcreate-home-page .post_content {
	width: 100% !important;
	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;
}


/* =========================================================
   不要要素をTOPから完全除去
   ========================================================= */

body.fcreate-home-page #sidebar,
body.fcreate-home-page .l-sidebar,
body.fcreate-home-page .c-sidebar,
body.fcreate-home-page aside,

body.fcreate-home-page #footer,
body.fcreate-home-page .l-footer,
body.fcreate-home-page footer,

body.fcreate-home-page .w-widget,
body.fcreate-home-page .widget,
body.fcreate-home-page .widget_search,

body.fcreate-home-page .c-widget,
body.fcreate-home-page .l-footer__widgetArea {
	display: none !important;
}


/* =========================================================
   HOME FIELD
   ========================================================= */

body.fcreate-home-page .fcreate-home {
	position: fixed !important;

	top: 72px !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;

	width: 100vw !important;
	height: calc(100vh - 72px) !important;

	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;

	background: #fff !important;
}

body.fcreate-home-page .fcreate-home-stage {
	position: absolute !important;

	inset: 0 !important;

	width: 100% !important;
	height: 100% !important;

	min-height: 0 !important;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	body.fcreate-home-page #header .l-header__inner {
		height: 58px !important;
		min-height: 58px !important;
	}

	body.fcreate-home-page .fcreate-home {
		top: 58px !important;
		height: calc(100vh - 58px) !important;
	}
}


body.fcreate-home-page #content.l-content.l-container,
body:has(.fcreate-home) #content.l-content.l-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* =========================================================
   HOME LAYOUT
   今後コンテンツを下へ追加できる通常スクロール構造
   ========================================================= */

body.fcreate-home-page {
	overflow-x: hidden !important;
	overflow-y: auto !important;
}

/* 浮遊エリアを固定配置しない */
body.fcreate-home-page .fcreate-home {
	position: relative !important;

	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;

	width: 100% !important;
	height: auto !important;

	margin: 0 !important;
	padding: 0 !important;
}

/* PC：画面高の約70% */
body.fcreate-home-page .fcreate-home-stage {
	position: relative !important;

	inset: auto !important;

	width: 100% !important;
	height: 70vh !important;

	min-height: 520px !important;
	max-height: 760px !important;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden !important;
}


/* スマホは今の1画面感を維持 */
@media (max-width: 767px) {

	body.fcreate-home-page .fcreate-home-stage {
		height: calc(100dvh - 58px) !important;

		min-height: 0 !important;
		max-height: none !important;
	}
}

body.fcreate-home-page #header,
body.fcreate-home-page #fix_header {
	background: #fff !important;
	color: #111 !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
	box-shadow: none !important;
}

body.fcreate-home-page #header .l-header__inner,
body.fcreate-home-page #fix_header .l-fixHeader__inner {
	background: #fff !important;
}

body.fcreate-home-page #header #gnav,
body.fcreate-home-page #header #gnav *,
body.fcreate-home-page #fix_header #gnav,
body.fcreate-home-page #fix_header #gnav * {
	color: #111 !important;
}


/* TOP：スマホ検索ボタンを一時非表示 */
@media (max-width: 767px) {
	body.fcreate-home-page #header .l-header__customBtn {
		display: none !important;
	}
}

/* =========================================================
   TOP HEADER - actual selector
   ========================================================= */

/* TOPだけヘッダーを白にする */
body:has(.fcreate-home) #header,
body:has(.fcreate-home) #header .l-header__inner,
body:has(.fcreate-home) #header .l-header__body {
	background: #fff !important;
	background-color: #fff !important;
	color: #111 !important;
	box-shadow: none !important;
	border-color: transparent !important;
}

/* ナビ文字を黒 */
body:has(.fcreate-home) #header #gnav,
body:has(.fcreate-home) #header #gnav *,
body:has(.fcreate-home) #header .c-gnav,
body:has(.fcreate-home) #header .c-gnav * {
	color: #111 !important;
}

/* 白ロゴを黒く見せる */
body:has(.fcreate-home) #header .fcreate-header-logo {
}

/* 固定ヘッダーが出た時も白 */
body:has(.fcreate-home) #fix_header,
body:has(.fcreate-home) #fix_header * {
	background-color: #fff !important;
	color: #111 !important;
}


/* =========================================================
   TOP MOBILE SEARCH HIDE
   ========================================================= */

@media (max-width: 767px) {

	body:has(.fcreate-home) #header .l-header__customBtn,
	body:has(.fcreate-home) #header [data-onclick="toggleSearch"],
	body:has(.fcreate-home) #header .fcreate-mobile-inline-search,
	body:has(.fcreate-home) #header .fcreate-mobile-inline-search__button {
		display: none !important;
	}
}

body:has(.fcreate-home) #header .fcreate-header-logo,
body:has(.fcreate-home) #fix_header .fcreate-header-logo {
	filter: brightness(0.7);
	opacity: 0.15;
}


/* =========================================================
   HOME LEAGUE FILTER
   ========================================================= */

.fcreate-home-league-filter {
	position: absolute;
	top: 20px;
	right: 28px;
	z-index: 1000;

	display: flex;
	align-items: center;
	gap: 6px;

	padding: 5px;

	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 999px;

	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	pointer-events: auto;
}

.fcreate-home-league-filter__button {
	appearance: none;
	border: 0;
	background: transparent;

	min-width: 42px;
	height: 34px;
	padding: 0 12px;

	border-radius: 999px;

	color: rgba(0, 0, 0, 0.42);

	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;

	cursor: pointer;

	transition:
		background-color 180ms ease,
		color 180ms ease;
}

.fcreate-home-league-filter__button:hover {
	color: #111;
}

.fcreate-home-league-filter__button.is-active {
	background: #111;
	color: #fff;
}

.fcreate-home-logo {
	transition:
		width 420ms cubic-bezier(0.22, 1, 0.36, 1),
		height 420ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {

	.fcreate-home-league-filter {
		top: 12px;
		right: 12px;

		gap: 2px;
		padding: 4px;
	}

	.fcreate-home-league-filter__button {
		min-width: 36px;
		height: 30px;
		padding: 0 9px;

		font-size: 11px;
	}
}


