/*
Theme Name: Romanuke Theme
Theme URI: https://romanuke.com
Author: osmak
Author URI: https://romanuke.com
Version: 1.0
Text Domain: romanuke
*/

:root {
	--color1: #ffffff;
	--color2: #22242F;
	--color3: #F3F4F6;
	--color4: #c6c7c9;
	
	/*
	--color3: #0A794B;
	--color4: #14F294;
	--color5: #333333;
	--color6: #7A7C85;
	--color7: #ccc;
	--color8: #EB5757;
	--color9: #1A1A1A;
	--color10: #000000; */
}

::-webkit-scrollbar-button {
	background-color: var(--color4);
	background-repeat: no-repeat;
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background-color: var(--color3);
}
::-webkit-scrollbar-thumb {
	-webkit-border-radius: 0;
	border-radius: 0;
	background-color: var(--color4);
	-webkit-transition: background-color .2.2s ease-out 0s;
	transition: background-color .2s ease-out 0s;
}
::-webkit-scrollbar-thumb:hover {
	background-color: var(--color2);
}
::-webkit-resizer {
	background-repeat: no-repeat;
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

/* default css */
html {
	font-family: Inter, sans-serif;
	font-weight: 400;
	color: var(--color2);
	line-height: 1.6;
	background-color: var(--color1);
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	-o-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
@media(min-width: 551px) and (max-width: 650px) { /* 600 */
	html {
		font-size: 2.67vw;
	}
}
@media(max-width: 550px) { /* 540 */
	html {
		font-size: 16px;
	}
}

body {
	margin: 0;
}
body.vism {
	overflow: hidden;
}

*,
*:before,
*:after {
	box-sizing: border-box;
	-webkit-tap-highlight-color: unset;
}
a {
	display: inline-block;
	background-color: transparent;
	text-decoration: none;
}
a:not([class]) {
	-webkit-transition: color .2s ease-out 0s;
	transition: color .2s ease-out 0s;
}
svg *:not([class]) {
	-webkit-transition: fill .2s ease-out 0s, stroke .2s ease-out 0s;
	transition: fill .2s ease-out 0s, stroke .2s ease-out 0s;
}
:focus,
:active {
	outline: none;
}
a:active,
a:hover {
	text-decoration: none;
} /*
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--color4);
	outline-offset: 3px;
} */
b,
strong {
	font-weight: 600;
}
img {
	display: inline-block;
	border: 0;
	vertical-align: middle;
	max-width: 100%;
	height: auto;
}
svg {
	display: block;
	max-width: 100%;
	height: auto;
}
p {
	padding: 0;
	margin-top: 0;
}
p:not(:last-child) {
	margin-bottom: 1.3333em;
}
p:last-child {
	margin-bottom: 0;
}
p:empty {
	display: none;
	margin: 0;
	padding: 0;
}
ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
ul ul,
ol ul,
ul ol,
ol ol {
	margin-bottom: 0;
}
iframe {
	width: 100%;
	max-width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	margin-bottom: 0;
}

/* class */
.container {
	margin-right: auto;
	margin-left: auto;
}
@media(max-width: 650px) {
	.container {
		padding-right: 1.5rem;
		padding-left: 1.5rem;
	}
}
.text-right {
	text-align: right;
}
.text-center {
	text-align: center;
}
.text-justify {
	text-align: justify;
}
.oh {
	overflow: hidden;
}
.pr {
	position: relative;
}

/* content (button, others) */
.button {
	text-align: center;
	display: inline-block;
	padding: .5em 1.5em;
	line-height: 1.5;
	border: 1px solid;
}
.button svg {
	display: inline-block;
	vertical-align: middle;
}
.button.style1 {
	border-color: var(--color2);
	transition: color .2s ease-in-out, background-color .2s ease-in-out;
}
.button.style1:not(.big){
	font-weight: 300;
	border-radius: .5rem;
}
.button.style1.big{
	font-size: .875em;
	border-radius: 4px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.button.style1:not(:hover){
	color: var(--color1);
	background-color: var(--color2);
}
.button.style1:hover{
	color: var(--color2);
	background-color: var(--color3);
}
.button .arrow{
	width: auto;
	height: .5em;
	margin-left: .5em;
}
.button:hover .arrow *{
	fill: var(--color2);
}

@media(max-width: 992px) {
	.for_desk {
		display: none;
	}
}
@media(max-width: 650px) {
	.for_desk_tab,
	.for_tab {
		display: none;
	}
}

/* header */
#header {
	position: fixed;
	left: 0;
	width: 100%;
}
#header{
	transition: padding .36s ease-in-out;
}
#header::before{
	transition: opacity .36s ease-in-out;
}
#header .logoImage {
	transition: height .36s ease-in-out;
}
#header .logoBox{
	transition: opacity .36s ease-in-out;
}
#header a {
	transition: color .36s ease-in-out;
}
#header menu svg *{
	transition: fill .36s ease-in;
}
#header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000000DB;
}
#header .flx {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#header .logosBox{
	position: relative;
}
#header .logoBox{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 1em;
}
#header .logoText{
	padding-left: 1em;
	font-weight: 500;
	letter-spacing: -.04em;
	line-height: 1.5;
	position: relative;
	border-left: 1px solid var(--color2);
}

#header .logoImage {
	width: auto;
}
body:not(.fixm) #header .logoImage {
	height: 2.25em;
}
body.fixm #header .logoImage {
	height: 1.75em;
}
#header .logoShortBox{
	position: absolute;
	left: 0;
}
#header .menu a {
	line-height: 1;
	letter-spacing: .02em;
}
@media(max-width: 992px) {
	#header {
		z-index: 10;
	}
	body:not(.fixm) #header{
		padding-top: 1em;
		padding-bottom: 1em;
	}
	body.fixm #header{
		padding-top: .75em;
		padding-bottom: .75em;
	}
	body:not(.fixm) #header::before {
		opacity: 0;
	}
	body.fixm #header::before {
		backdrop-filter: blur(2rem);
	}
	body.fixm #header .logoBox,
	body.vism #header .logoBox{
		opacity: 0;
	}
	#header .logoShortBox{
		transition: opacity .36s ease-in-out;
	}
	body:not(.fixm):not(.vism) #header .logoShortBox{
		opacity: 0;
	}
	#header .logoShortBox{
		top: 0;
	}
	
	#header .logosBox{
		z-index: 10;
	}
	
	#header .menuBox {
		background: #000000DB;
		backdrop-filter: blur(2rem);
		right: 0;
		position: fixed;
		width: 100dvw;
		overflow: auto;
		transition: opacity .36s ease-in, transform .36s ease-in;
		overflow-y: auto;
		overflow-x: hidden;
	}
	#header .menuBoxShadow{
		height: 100%;
	}
	body:not(.vism) #header .menuBox {
		transform: translateX(100%);
		opacity: 0;
	}

	#header .menuBoxShadow nav{
		border-radius: 2em;
		background-color: var(--color3);
		min-height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	#header .menu a{
		color: var(--color2);
	}
	#header .menu > li > a,
	#header .menu > li > div > a{
		font-size: 1.5em;
	}
	#header .menu-item-has-children > .pr > svg{
		transition: transform .2s ease-in;
		display: inline-block;
		width: .75em;
		margin-left: .625em;
		vertical-align: .125em;
	}
	#header .menu-item-has-children > .pr.open > svg{
		transform: rotate(-180deg);
	}
	#header .menu-item-has-children > .pr > a + svg *{
		transition: fill .2s ease-in;
	}
	#header .menu-item-has-children > .pr > a:hover + svg *{
		fill: var(--color4);
	}
	#header .sub-menu{
		overflow: hidden;
		height: 0;
  		transition: height .4s ease;
	}
	#header .sub-menu > li:first-child{
		margin-top: 1.5em;
	}
	#header .sub-menu > li:not(:last-child){
		margin-bottom: 1em;
	}
	#header .sub-menu a{
		font-size: 1.125em;
	}

	#header .motion_js {
		padding: 1px;
		margin-top: -1px;
		margin-bottom: -1px;
	}
	#header .menuIcon {
		position: relative;
		margin: .75em;
		cursor: pointer;
		width: 1.625em;
		height: 1.125em;
	} 
	
	#header .menuIcon span{
        transition: .5s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
        height: 2px;
        position: absolute;
        right: 0;
        left: 0;
        margin: 0 auto;
	}
	body:not(.fixm):not(.vism) #header .menuIcon span{
		background-color: var(--color2);
	}
	body.fixm #header .menuIcon span,
	body.vism #header .menuIcon span{
		background-color: var(--color1);
	}
	#header .menuIcon span:nth-child(1),
	#header .menuIcon span:nth-child(3){
		width: 100%;
	}
	body:not(.vism) #header .menuIcon span:nth-child(1){
		top: 0;
	}
	body.vism #header .menuIcon span:nth-child(1){
		top: calc(50% - 1px);
        transform: rotate(-45deg);
	}
	#header .menuIcon span:nth-child(2){
		top: 50%;
		margin-top: -1px;
	}
	body:not(.vism) #header .menuIcon span:nth-child(2){
		width: 100%;
	}
	body.vism #header .menuIcon span:nth-child(2){
		width: 0;
	}
	body:not(.vism) #header .menuIcon span:nth-child(3){
		bottom: 0;
	}	
	body.vism #header .menuIcon span:nth-child(3){
		bottom: calc(50% - 1px);
        transform: rotate(45deg);
	}
}
@media(min-width: 601px) and (max-width: 782px) {
	/* header */
	body:not(.admin-bar) #header {
		top: 0;
	}
	body.admin-bar #header {
		top: 46px;
	}
	body:not(.admin-bar) #header .menuBox {
		top: 0;
		height: 100dvh;
	}
	body.admin-bar #header .menuBox {
		top: 46px;
		height: calc(100dvh - 46px);
	}
}
@media(max-width: 650px) {
	main{
		padding-top: 4.25em;
	}

	body:not(.fixm) #header .menuBox {
		padding-top: calc(4.25rem - 1px);
	}
	body.fixm #header .menuBox {
		padding-top: calc(3.25rem - 1px);
	}
	#header .menuBoxShadow{
		padding: .5rem 1.5rem 1.5rem;
	}
	#header .menuBoxShadow nav{
		padding: 3rem 1.5rem;
	}

	#header .menu > li:not(:last-child) {
		margin-bottom: 2em;
	}
	
	#header .buttonBox {
		position: absolute;
		right: .75em;
		top: 50%;
        transform: translateY(-50%);
	}
}
@media(max-width: 600px) {
	body:not(.admin-bar) #header,
	body.admin-bar.fixm #header {
		top: 0;
	}
	body.admin-bar:not(.fixm) #header {
		top: 46px;
	}

	body:not(.admin-bar) #header .menuBox,
	body.admin-bar.fixm #header .menuBox{ 
		height: 100dvh;
		top: 0;
	}
	body.admin-bar:not(.fixm) #header .menuBox{ 
		height: calc(100dvh - 46px);
		top: 46px;
	}
}
