/*
Theme Name: My Block
Theme URI:
Author:
Author URI:
Description:
Requires at least: 6.0
Tested up to: 6.4.1
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myblock
Tags:
*/

:is( h1, h2, h3, h4, h5, h6 ).is-style-decoration-line {
	padding-bottom: .5em;
	border: solid 12px transparent;
	border-image: url( assets/images/line.svg ) 12;
}

.wp-block-categories.is-style-no-listmark {
	list-style: none;
	padding-left: 0;
}

.wp-block-post-date.is-style-clock-icon::before {
	content: url( assets/images/clock-regular.svg );
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -.125em;
	margin-right: .4em;
	font-size: 1.25em;
	opacity: .3;
}

.wp-block-post-navigation-link.is-style-reverce {
	display: flex;
	flex-direction: row-reverse;
	gap: .3em;
}

.wp-block-template-part.is-style-rm-margin-top {
	margin-top: 0;
}

p.is-style-scroll-down {
	position: relative;
	height: 144px;
	border-right: solid 1px var( --wp--preset--color--dark-gray );
	writing-mode: vertical-rl;
}

p.is-style-scroll-down::before {
	content: '';
	position: absolute;
	top: 0;
	right: -7px;
	width: 12px;
	height: 12px;
	border: solid 1px var( --wp--preset--color--dark-gray );
	border-radius: 50%;
	background-color: var( --wp--preset--color--primary );
	animation: scroll 4s infinite;
}

@keyframes scroll {
	0% {
		top: 0;
		opacity: 0;
	}
	20% {
		opacity: 1;
	}
	80% {
		opacity: 1;
	}
	100% {
		top: 100%;
		opacity: 0;
	}
}

@media ( max-width: 781px ) {

	.wp-block-columns.is-style-reverce {
		flex-direction: column-reverse;
	}
}



/*
----------------------------------------

block-ttl

----------------------------------------
*/

.is-style-block-ttl {
	text-align: center;
}

.is-style-block-ttl .ttl {
	text-align: center;
	position: relative;
	padding-bottom: 75px;
}

.is-style-block-ttl .ttl::after {
	content: '';
	width: 2px;
	height: 60px;
	background: var( --wp--preset--color--secondary );
	position: absolute;
	bottom: 0;
	left: calc( 50% - 1px );
}

.is-style-block-ttl .ttl p {
	font-size: 60px;
	font-family: Josefin Sans;
	line-height: 1.2;
	text-transform: capitalize;
	color: var( --wp--preset--color--secondary );
	margin-top: 0;
}

.is-style-block-ttl .ttl .wp-block-heading {
	font-size: 20px;
	font-weight: normal;
	text-align: center;
	line-height: 1.6;
	letter-spacing: 2.4px;
	margin-top: 0;
}

/* 1160 */

@media screen and ( max-width: 1160px ) {

	.is-style-block-ttl {
		padding: 40px 0;
	}

	.is-style-block-ttl .ttl {
		padding-bottom: 60px;
	}

	.is-style-block-ttl .ttl::after {
		height: 50px;
	}

	.is-style-block-ttl .ttl p {
		font-size: 50px;
	}

}

/* 768 */

@media screen and ( max-width: 768px ) {

	.is-style-block-ttl {
		padding: 20px 0;
	}

	.is-style-block-ttl .ttl {
		padding-bottom: 40px;
		margin-bottom: 10px
	}

	.is-style-block-ttl .ttl::after {
		height: 30px;
	}

	.is-style-block-ttl .ttl p {
		font-size: 36px;
	}

	.is-style-block-ttl .ttl .wp-block-heading {
		font-size: 16px;
	}

}


/*
----------------------------------------

block-column

----------------------------------------
*/

.is-style-block-column {
	padding-bottom: 60px;
}

.is-style-block-column .wp-block-image {
	text-align: center;
	margin: 0;
}

.is-style-block-column .wp-block-heading {
	font-size: 20px;
	font-weight: normal;
	text-align: center;
	letter-spacing: 1.5px;
	line-height: 1.5;
	color: var( --wp--preset--color--secondary );
	background: transparent;
	justify-content: center;
	align-items: center;
	padding-bottom: 20px;
	margin-bottom: 18px;
	width: 100%;
	position: relative;
}

.is-style-block-column .wp-block-heading::after {
	content: '';
	width: 40px;
	height: 2px;
	background: var( --wp--preset--color--secondary );
	position: absolute;
	bottom: 0;
	left: calc( 50% - 20px );
}

.is-style-block-column .read {
	margin: 0;
	letter-spacing: 1.5px;
}

/* 1000 */

@media screen and ( max-width: 1000px ) {

	.is-style-block-column .wp-block-heading {
		font-size: 16px;
	}

}


/*
----------------------------------------

block-bnr

----------------------------------------
*/

.is-style-block-bnr {
	padding-bottom: 60px;
}

.is-style-block-bnr a {
	min-height: 240px;
}

.is-style-block-bnr .wp-block-heading {
	font-size: 32px;
	font-weight: normal;
	line-height: 1.5;
	letter-spacing: 3px;
	margin-bottom: 15px;
}

.is-style-block-bnr p {
	letter-spacing: 2px;
	margin: 0;
}

/* 1000 */

@media screen and ( max-width: 1000px ) {

	.is-style-block-bnr .wp-block-heading {
		font-size: 26px;
	}

}

/* 768 */

@media screen and ( max-width: 768px ) {

	.is-style-block-bnr a {
		min-height: 160px;
	}

	.is-style-block-bnr .wp-block-heading {
		font-size: 18px;
		letter-spacing: .8px;
		margin-bottom: 10px;
	}

	.is-style-block-bnr p {
		letter-spacing: .4px;
	}

}
