@charset "utf-8";

.anime {
	opacity: 0;
	will-change: opacity, transform;
}

/* ----------------------------------------------------------------
animation pattern
----------------------------------------------------------------- */

@keyframes slideToRight {
	0% { opacity: 0; transform: translateX(-3.472vw); }
	100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideToLeft {
	0% { opacity: 0; transform: translateX(3.472vw); }
	100% { opacity: 1; transform: translateX(0); }
}

@keyframes kotoKotoKawara {
	0% { transform: rotate(0);}
	92% { transform: rotate(0);}
	94% { transform: rotate(3deg);}
	98% { transform: rotate(-1.7deg);}
	100% { transform: rotate(0);}
}

@keyframes climbUp {
	0% { opacity: 0; transform: translateY(1.389vw); }
	100% { opacity: 1; transform: translateY(0); }
}

@keyframes breakIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

/* ----------------------------------------------------------------
common(general)
----------------------------------------------------------------- */

/* js-text */

.akfj-top .text__main-catch.js-text span:not(.text__yellow) {
	display: inline-block;
	opacity: 0;
	transform: translateY(1em);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: calc(var(--char-index) * 0.08s);
}

.akfj-top .text__sub-catch.js-text span:not(.text__yellow) {
	display: inline-block;
	opacity: 0;
	transform: translateY(1em);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: calc(1.2s + calc(var(--char-index) * 0.08s));
}

.on.akfj-top .text__main-catch.js-text span:not(.text__yellow),
.on.akfj-top .text__sub-catch.js-text span:not(.text__yellow) {
	opacity: 1;
	transform: translateY(0);
}

.text__underpage-head-contents-flex--right span {
	display: inline-block;
    opacity: 0;
    transform: translateY(1em);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--char-index) * 0.08s);
}

.text__underpage-head-contents-flex--right.active span {
    opacity: 1;
    transform: translateY(0);
}

/* js-row */

.akfj-about .text__about-contents-01 span.line,
.akfj-service .text__service-contents-01 span.line,
.akfj-contact .text__contact-lead span.line {
    display: inline-block;
    opacity: 0;
    transform: translateY(1em);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.akfj-about .text__about-contents-01 span.line-0 {
    transition-delay: 0.6s;
}

.akfj-about .text__about-contents-01 span.line-1,
.akfj-about .text__about-contents-01 span.line-2 {
    transition-delay: 0.8s;
}

.akfj-about .text__about-contents-01 span.line-3,
.akfj-about .text__about-contents-01 span.line-4 {
    transition-delay: 1s;
}

.akfj-about .text__about-contents-01 span.line-5,
.akfj-about .text__about-contents-01 span.line-6 {
    transition-delay: 1.2s;
}

.akfj-about .text__about-contents-01 span.line-7,
.akfj-about .text__about-contents-01 span.line-8 {
    transition-delay: 1.4s;
}

.akfj-about .text__about-contents-01 span.line-9,
.akfj-about .text__about-contents-01 span.line-10,
.akfj-about .text__about-contents-01 span.line-11 {
    transition-delay: 1.6s;
}

.akfj-about .text__about-contents-01 span.line-12 {
    transition-delay: 1.8s;
}

.akfj-about .text__about-contents-01 span.line-13 {
    transition-delay: 2s;
}

.akfj-about .text__about-contents-01 span.line-14 {
    transition-delay: 2.2s;
}

.akfj-about .text__about-contents-01 span.line-15 {
    transition-delay: 2.4s;
}

.akfj-service .text__service-contents-01 span.line-0,
.akfj-service .text__service-contents-01 span.line-1 {
	transition-delay: 0.5s;
}

.akfj-service .text__service-contents-01 span.line-2 {
	transition-delay: 0.7s;
}

.akfj-service .text__service-contents-01 span.line-3,
.akfj-service .text__service-contents-01 span.line-4 {
	transition-delay: 0.9s;
}

.akfj-contact .text__contact-lead span.line-0,
.akfj-contact .text__contact-lead span.line-1 {
	transition-delay: 0.5s;
}

.akfj-contact .text__contact-lead span.line-2 {
	transition-delay: 0.7s;
}

.akfj-contact .text__contact-lead span.line-3,
.akfj-contact .text__contact-lead span.line-4 {
	transition-delay: 0.9s;
}

.akfj-about .text__about-contents-01.active span.line,
.akfj-service .text__service-contents-01.active span.line,
.akfj-contact .text__contact-lead.active span.line {
    opacity: 1;
    transform: translateY(0);
}

/* animation */

.wrapper__underpage-head-contents-flex--left,
.wrapper__underpage-head-contents-flex--right figure {
	opacity: 1;
}

.box__footer-works .block__title-eng.active,
.box__footer-works .block__title-jp.active,
.latest-posts-slider.active,
.works-slider.active,
.btn__works-viewmore.active,
.box__instagram.active,
.box__footer-blog .block__title-eng.active,
.box__footer-blog .block__title-jp.active,
.btn__blog-viewmore.active,
.on.akfj-top .wrapper__top-service.active,
.akfj-about .item__about-strong-point.active,
.akfj-service .wrapper__service-ladder.active,
.akfj-service .text__underpage-h2.active,
.akfj-service .text__service-detail.active,
.akfj-service .image__service-photo.active,
.akfj-service .btn__service.active,
.akfj-roof-leak .text__lead.active,
.akfj-roof-leak .image__roof-leak-02.active,
.akfj-roof-leak .text__roof-leak-detail-01.active,
.akfj-roof-leak .wrapper__roof-leak-point.active,
.akfj-roof-leak .image__roof-leak-03.active,
.akfj-roof-leak .image__roof-leak-04.active,
.akfj-roof-leak .text__roof-leak-green.active,
.text__underpage-h1.active,
.container__funny-kawara-03.active,
.text__underpage-h2.active,
.akfj-contact .section__contact-01 h1.active {
	animation: climbUp 0.5s ease-in-out 0.4s forwards;
}

.on.akfj-top .section__top-contents-01 .text__section-top-flex-text.active,
.on.akfj-top .section__top-contents-01 .btn__top-content.active,
.on.akfj-top .section__top-contents-01 .wrapper__section-top-flex-photo.active,
.on.akfj-top .section__top-contents-03 .text__section-top-flex-text.active,
.on.akfj-top .section__top-contents-03 .btn__top-content.active,
.on.akfj-top .section__top-contents-03 .wrapper__section-top-flex-photo.active,
.on.akfj-top .wp-block-columns.container__funny-kawara-01.active {
	animation: slideToRight 0.5s ease-in-out 0.4s forwards;
}

.on.akfj-top .section__top-contents-02 .text__section-top-flex-text.active,
.on.akfj-top .section__top-contents-02 .btn__top-content.active,
.on.akfj-top .section__top-contents-02 .wrapper__section-top-flex-photo.active,
.on.akfj-top .wp-block-columns.container__funny-kawara-02.active {
	animation: slideToLeft 0.5s ease-in-out 0.4s forwards;
}

.akfj-contact .wrapper__contact-row.active,
.akfj-contact .wrapper__contact-area.active,
.wrapper__notice .text__title.active,
.wrapper__notice .text__body.active,
.wrapper__notice li.active,
.wrapper__accept.active,
.wrapper__button.active,
.wrapper__page-title-blog.active {
	animation: breakIn 0.5s ease-in-out 0.4s forwards;
}

.on.akfj-top .wp-block-columns.container__funny-kawara-01.active .container__kawara-01,
.on.akfj-top .wp-block-columns.container__funny-kawara-02.active .container__kawara-03,
.image__funny-kawara-03--01 {
	animation: kotoKotoKawara 4s ease-in-out 2s infinite;
}

.on.akfj-top .wp-block-columns.container__funny-kawara-01.active .container__kawara-02,
.on.akfj-top .wp-block-columns.container__funny-kawara-02.active .container__kawara-02,
.image__funny-kawara-03--02 {
	animation: kotoKotoKawara 4s ease-in-out 2.2s infinite;
}

.on.akfj-top .wp-block-columns.container__funny-kawara-01.active .container__kawara-03,
.on.akfj-top .wp-block-columns.container__funny-kawara-02.active .container__kawara-01,
.image__funny-kawara-03--03 {
	animation: kotoKotoKawara 4s ease-in-out 2.4s infinite;
}

/*-- blog & works --*/

.wrapper__page-title-blog.active,
.widget-categories .widget-title.active,
.widget-categories .category-list__item.active,
.wrapper__post-flex-box-right .post-item.active,
.wrapper__post-flex-box-right .pagination.active {
	animation: breakIn 0.5s ease-in-out 0.4s forwards;
}

.single-post .wrapper__page-title-blog,
.single-post .widget-categories .widget-title,
.single-post .widget-categories .category-list__item,
.single-post .wrapper__post-flex-box-right .post-item,
.single-post .wrapper__post-flex-box-right .pagination,
.single-works .wrapper__page-title-blog,
.single-works .widget-categories .widget-title,
.single-works .widget-categories .category-list__item,
.single-works .wrapper__post-flex-box-right .post-item,
.single-works .wrapper__post-flex-box-right .pagination,
.single-post .wrapper__page-title-blog.active,
.single-post .widget-categories .widget-title.active,
.single-post .widget-categories .category-list__item.active,
.single-post .wrapper__post-flex-box-right .post-item.active,
.single-post .wrapper__post-flex-box-right .pagination.active,
.single-works .wrapper__page-title-blog.active,
.single-works .widget-categories .widget-title.active,
.single-works .widget-categories .category-list__item.active,
.single-works .wrapper__post-flex-box-right .post-item.active,
.single-works .wrapper__post-flex-box-right .pagination.active {
	opacity: 1;
	animation: none;
}

/* ----------------------------------------------------------------
common(SP)
----------------------------------------------------------------- */

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

	/* ----------------------------------------------------------------
	animation pattern
	----------------------------------------------------------------- */

	@keyframes climbUp {
		0% { opacity: 0; transform: translateY(5.128vw); }
		100% { opacity: 1; transform: translateY(0); }
	}

	/* ----------------------------------------------------------------
	common(general)
	----------------------------------------------------------------- */

	/* js-text */

	.text__underpage-head-contents-flex--right span {
		transition-delay: calc(0.4s + calc(var(--char-index) * 0.08s));
	}

	/* js-row */

	.akfj-top .text__section-top-flex-text span.line {
		display: inline-block;
		opacity: 0;
		transform: translateY(1em);
		transition: opacity 0.7s ease, transform 0.7s ease;
	}

	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-0 {
		transition-delay: 0.5s;
	}

	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-1,
	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-2 {
		transition-delay: 0.7s;
	}

	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-3 {
		transition-delay: 0.9s;
	}

	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-4 {
		transition-delay: 1.1s;
	}

	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-5 {
		transition-delay: 1.3s;
	}

	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-6 {
		transition-delay: 1.5s;
	}

	.akfj-top .section__top-contents-01 .text__section-top-flex-text span.line-7 {
		transition-delay: 1.7s;
	}

	.akfj-top .text__section-top-flex-text.active span.line {
		opacity: 1;
		transform: translateY(0);
	}

	.akfj-top .section__top-contents-02 .text__section-top-flex-text span.line,
	.akfj-top .section__top-contents-03 .text__section-top-flex-text span.line {
		transition-delay: calc(0.5s + calc(var(--line-index) * 0.2s));
	}

	.akfj-about .text__about-contents-01 span.line-0,
	.akfj-about .text__about-contents-01 span.line-1,
	.akfj-about .text__about-contents-01 span.line-2,
	.akfj-about .text__about-contents-01 span.line-3,
	.akfj-about .text__about-contents-01 span.line-4,
	.akfj-about .text__about-contents-01 span.line-5,
	.akfj-about .text__about-contents-01 span.line-6,
	.akfj-about .text__about-contents-01 span.line-7,
	.akfj-about .text__about-contents-01 span.line-8,
	.akfj-about .text__about-contents-01 span.line-9,
	.akfj-about .text__about-contents-01 span.line-10,
	.akfj-about .text__about-contents-01 span.line-11,
	.akfj-about .text__about-contents-01 span.line-12,
	.akfj-about .text__about-contents-01 span.line-13,
	.akfj-about .text__about-contents-01 span.line-14,
	.akfj-about .text__about-contents-01 span.line-15,
	.akfj-service .text__service-contents-01 span.line-0,
	.akfj-service .text__service-contents-01 span.line-1,
	.akfj-service .text__service-contents-01 span.line-2,
	.akfj-service .text__service-contents-01 span.line-3,
	.akfj-service .text__service-contents-01 span.line-4,
	.akfj-contact .text__contact-lead span.line-0,
	.akfj-contact .text__contact-lead span.line-1,
	.akfj-contact .text__contact-lead span.line-2,
	.akfj-contact .text__contact-lead span.line-3,
	.akfj-contact .text__contact-lead span.line-4 {
		transition-delay: 0s;
	}

	.akfj-about .text__about-contents-01.active span.line,
	.akfj-service .text__service-contents-01.active span.line,
	.akfj-contact .text__contact-lead.active span.line {
		transition-delay: calc(0.4s + calc(var(--line-index) * 0.3s));
	}

	/* animation */

	.wrapper__underpage-head-contents-flex--left,
	.wrapper__underpage-head-contents-flex--right figure {
		opacity: 0;
	}

	.on.akfj-top .section__top-contents-01 .text__section-top-flex-text.active,
	.on.akfj-top .section__top-contents-02 .text__section-top-flex-text.active,
	.on.akfj-top .section__top-contents-03 .text__section-top-flex-text.active {
		opacity: 1;
		animation: none;
	}

	.on.akfj-top .section__top-contents-01 .btn__top-content.active,
	.on.akfj-top .section__top-contents-01 .wrapper__section-top-flex-photo.active,
	.on.akfj-top .section__top-contents-02 .btn__top-content.active,
	.on.akfj-top .section__top-contents-02 .wrapper__section-top-flex-photo.active,
	.on.akfj-top .section__top-contents-03 .btn__top-content.active,
	.on.akfj-top .section__top-contents-03 .wrapper__section-top-flex-photo.active,
	.on.akfj-top .wp-block-columns.container__funny-kawara-01.active,
	.on.akfj-top .wp-block-columns.container__funny-kawara-02.active,
	.on.akfj-top .wrapper__top-service.active,
	.wrapper__underpage-head-contents-flex--left.active {
		animation: climbUp 0.5s ease-in-out 0.4s forwards;
	}

	.wrapper__underpage-head-contents-flex--right figure.active {
			animation: climbUp 0.5s ease-in-out 1.2s forwards;
	}

	.akfj-contact .section__contact-01 h1.active,
	.text__underpage-h1.active {
		animation: climbUp 0.5s ease-in-out 1.6s forwards;
	}

	/*-- blog & works --*/
	
	.wrapper__page-title-blog,
	.widget-categories .widget-title,
	.widget-categories .category-list__item,
	.wrapper__post-flex-box-right .post-item,
	.wrapper__post-flex-box-right .pagination,
	.wrapper__page-title-blog.active,
	.widget-categories .widget-title.active,
	.widget-categories .category-list__item.active,
	.wrapper__post-flex-box-right .post-item.active,
	.wrapper__post-flex-box-right .pagination.active {
		opacity: 1;
		animation: none;
	}

}
