/*!
 *	theme.
 */

/*------------------------------------------------------------
	elements
------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--wp--custom--spacing--gap);
	/* -webkit-hyphens: auto; */
	/* hyphens: auto; */
}

body {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	text-rendering: geometricPrecision;
}

:focus {
	outline: none !important;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

a img {
	text-decoration: none;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

blockquote {
	margin: 0;
}

sup,
sub {
	position: relative;
	vertical-align: baseline;
	top: -0.4rem;
}
sub {
	top: 0.4rem;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/*	forms
--------------------------------------------- */
input,
select,
textarea {
	width: 100%;
	padding: .5rem 1rem;
	font-size: var(--wp--preset--font-size--regular);
	font-weight: var(--wp--custom--font-weight--regular);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--light);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

button {
	padding: .4rem 1.5em;
	font-size: var(--wp--preset--font-size--regular);
}

/*------------------------------------------------------------
	responsive / wordpress
------------------------------------------------------------*/
@media (max-width: 781px) {
	.is-layout-flow > .alignright {
		margin-inline-start: 0;
	}
}

/*------------------------------------------------------------
	main wrapper
------------------------------------------------------------*/
.site-wrapper {
	position: relative;
	width: 1700px;
	max-width: 100%;
	min-height: 100vh;
	margin: 0 auto;
	box-shadow: rgba(17, 17, 26, 0.08) 0px 8px 24px,
		rgba(17, 17, 26, 0.08) 0px 16px 56px,
		rgba(17, 17, 26, 0.08) 0px 24px 80px;
	overflow: hidden;
}

/*------------------------------------------------------------
	count up
------------------------------------------------------------*/
.count-up {
	position: relative;
	display: inline-block;
	z-index: 0;
}

.count-up::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 160px;
	height: 21px;
	border-radius: 50px;
	background: linear-gradient(
		130deg,
		var(--wp--preset--color--accent-1) 1%,
		var(--wp--preset--color--accent-2) 100%
	);
	z-index: -1;
}

/*------------------------------------------------------------
	box service
------------------------------------------------------------*/
.box-service {
	position: relative;
	z-index: 0;
	overflow: hidden;
	border: 0;
	border-left: 6px solid transparent;
	border-image-source: linear-gradient(180deg, #006FB9, #5ACBC2);
	border-image-slice: 1;
}

.box-service::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, #006FB9 55%, #33A4BE 100%);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.28s ease;
	z-index: -1;
}

.box-service.has-light-background-color:hover {
	color: #fff;
}

.box-service.has-light-background-color:hover a {
	color: #fff;
}

.box-service.has-light-background-color:hover::before {
	transform: scaleX(1);
}

.box-service .wp-block-image img {
	transition: filter 0.2s ease;
}

.box-service:hover .wp-block-image img {
	filter: brightness(0) invert(1);
}

/*------------------------------------------------------------
	accordion
------------------------------------------------------------*/
.acc {
	position: relative;
	margin: 0 auto;
}

.acc .acc-title {
	position: relative;
	padding: 1.15rem;
	padding-left: 0;
	padding-right: 4rem;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.6;
	cursor: pointer;
	background-image: url("../images/acc-off.svg");
	background-repeat: no-repeat;
	background-position: 97% 50%;
	border-bottom: 1px solid var(--wp--preset--color--base);
	transition: 0.5s ease-in-out;
}

.acc .is-active .acc-title {
	background-image: url("../images/acc-on.svg");
	border-bottom: 0;
}

.acc .acc-content {
	display: none;
	padding: 0 0 1.75rem;
	padding-right: 1.5rem;
	margin-block-start: 0;
	line-height: 1.8;
	border-bottom: 1px solid var(--wp--preset--color--base);
}

@media (min-width: 782px) {
	.acc .acc-title {
		padding-right: 8rem;
	}

	.acc .acc-content {
		padding-right: 3rem;
	}
}

.acc.home .acc-title {
	background-image: url("../images/acc-home-off.svg");
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.acc.home .is-active .acc-title {
	background-image: url("../images/acc-home-on.svg");
	border-bottom: 0;
}

/*------------------------------------------------------------
	tabs horizontal
------------------------------------------------------------*/
.tabs .tab {
	display: none;
	margin-top: 0;
}

.tabs .active {
	display: block;
}

.tabs .tab-link {
	display: block;
	width: 100%;
	padding-right: 5rem !important;
	margin-block-start: 0.25rem;
	background-color: transparent;
	background-image: url("../images/tab-off.svg");
	background-repeat: no-repeat;
	background-position: 90% 50%;
	cursor: pointer;
	border-radius: 1rem;
	transition: all 0.3s ease-in-out;
}

.tabs .tab-link:last-child {
	border-bottom: 2px solid transparent;
}

.tabs .tab-link:hover,
.tabs .tab-link.active {
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--accent-1);
	background-image: url("../images/tab-on.svg");
}

@media (min-width: 782px) {
	.tabs .tab-link {
		width: 90%;
		padding-left: 3.5rem !important;
		padding-right: 6rem !important;
		border-radius: 5rem;
	}
}

.tabs.box-blue .tab-link {
	display: block;
	width: 100%;
	padding-right: 5rem !important;
	margin-top: 1.5vh !important;
	margin-block-start: 0.25rem;
	background-color: transparent;
	background-image: url("../images/tab-on.svg");
	background-repeat: no-repeat;
	background-position: 90% 50%;
	cursor: pointer;
	border-radius: 50rem;
	transition: all 0.3s ease-in-out;
}

.tabs.box-blue .tab-link:hover,
.tabs.box-blue .tab-link.active {
	color: var(--wp--preset--color--accent-1);
	background-color: var(--wp--preset--color--base);
	background-image: url("../images/tab-off.svg");
}
