@charset "UTF-8";
/* TOPページスタイルシート */


/* ======================================= */
/* ファーストビュー */
/* ======================================= */
section#first-view {
	height: 85svh;
	max-height: 800px;
	min-height: 400px;
	padding: 0;
	position: relative;
}
section#first-view .section-wrapper {
	width: 100%;
	height: 100%;
	background: var(--blue);
	position: relative;
}
section#first-view {
	& div#fv-h1 {
		position: absolute;
		width: 95%;
		top: 30%;
		left: 50%;
		transform: translate(-50%) skew(-10deg);
		z-index: 1;
		font-feature-settings: "palt";
	}
	& div#fv-h1 span.text span.text-inner {
		color: #fff;
		font-size: 36px;
		font-weight: 700;
		letter-spacing: 0.1em;
		text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
	}
	&::before,
	&::after {
		position: absolute;
		content: '';
		width: 5%;
		height: 100%;
		top: 50%;
		transform: translateY(-50%);
		opacity: 40%;
		mix-blend-mode: multiply;
		z-index: 2;
	}
	&::before {
		left: 0;
		background: linear-gradient(90deg,rgba(25, 16, 121, 1) 0%, rgba(25, 16, 121, 0) 100%);
	}
	&::after {
		right: 0;
		background: linear-gradient(90deg,rgba(25, 16, 121, 0) 0%, rgba(25, 16, 121, 1) 100%);
	}
}

section#first-view .text-wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%);
	gap: 64px;
	z-index: 1;
	& div {
		flex-flow: column;
		align-items: stretch;
		gap: 24px;
	}
	& div p {
		text-align: center;
		padding: 2px 24px;
		color: #fff;
		border: 1px solid #fff;
		font-size: 18px;
		font-family: var(--zen);
		white-space: nowrap;
		text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
	}
	& div:first-child::after {
		position: absolute;
		content: '';
		left: calc(50% - 40px);
		width: 24px;
		height: 24px;
		background-image: url('./assets/img/top/kakeru.svg');
		background-repeat: no-repeat;
	}
}
section#first-view .img-wrapper {
	height: 100%;
	z-index: 0;
	position: relative;
	&::after {
		position: absolute;
		content: '';
		width: 100%;
		height: 40px;
		background: linear-gradient(0deg,rgba(25, 16, 121, 1) 0%, rgba(25, 16, 121, 0) 100%);
		bottom: 0;
		left: 0;
		z-index: 4;
	}
	& img {
		object-fit: cover;
		object-position: 50% 75%;
	}
}
section#first-view .anchor-link {
	position: absolute;
	width: 48px;
	height: 48px;
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
	transition: all 500ms cubic-bezier(0.455, 0.030, 0.515, 0.955);
	opacity: 0;
	animation-name: arrow;
	animation-duration: 4s;
	animation-delay: 3.5s;
	animation-iteration-count: infinite;
	& a {
		display: block;
		width: 100%;
		height: 100%;
	}
	& a::before {
		content: '\e313';
		width: 100%;
		height: 100%;
		font-family: var(--ggl-ico);
		font-size: 48px;
		color: #fff;
	}
}
@keyframes arrow {
	0% {
		opacity: 0;
		transform: translateX(-50%) translateY(0);
	}
	80% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translateX(-50%)  translateY(80%);
	}
}

/* アニメーション */
div#fv-h1 {
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	&.is-active {
		--X: 0;
	}
}
div#fv-h1 .text {
	display: inline-block;
	vertical-align: bottom;
	overflow: hidden;
}
div#fv-h1 .text-inner {
	display: inline-block;
	transform: translateX(var(--X, 110%));
	transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
	transition-delay: calc(0.04s * var(--char-index));
}
.visuallyHidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
p.fv-p {
	transform: translateY(var(--y), 100%);
	transition: all .5s;
	transition-delay: calc(0.5s * var(--char-index));
	opacity: 0;
	&.is-active {
		--y: 0;
		opacity: 1;
	}
}


@media print, screen and (min-width: 764px) {
	section#first-view {
		height: calc(100svh - 60px);
	}
	section#first-view {
		& div#fv-h1 {
			top: 28%;
		}
		& div#fv-h1 span.text span.text-inner {
			font-size: 48px;
		}
	}
	section#first-view .text-wrapper {
		top: 47%;
		& div p {
			padding-bottom: 2px;
			font-size: 28px;
		}
		& div:first-child::after {
			left: calc(50% - 54px);
		}
	}
}

/* ======================================= */
/* 株式会社セイトクは土木建築資材の総合商社です */
/* ======================================= */
section#top-seitoku {
	background: var(--blue);
	position: relative;
}
section#top-seitoku::before {
	position: absolute;
	content: '';
	left: 0;
	bottom: 40px;
	width: 100%;
	height: 100%;
	background: url('./assets/img/top/top-city.webp') no-repeat;
	background-position: 15% 0%;
}
section#top-seitoku::after {
	position: absolute;
	content: '';
	width: 100%;
	height: 28px;
	top: calc(100% - 1px);
	left: 0;
	background: var(--blue);
	clip-path: polygon(50% 100%, 0 0, 100% 0);
	z-index: 1;
}
section#top-seitoku {
	padding: 80px 12px;
	& h2,
	& p {
		text-align: center;
		color: #fff;
	}
	& h2 {
		margin-bottom: 40px;
		font-family: var(--zen);
		font-size: 1.7em;
		font-weight: 600;
	}
	& p {
		text-align: left;
		margin: 12px;
		line-height: 2;
	}
	& br.pc-only {
		display: none;
	}
}
div.top-bg {
	background: var(--lt-blue);
	position: relative;
	&::before {
		position: absolute;
		content: '';
		width: 100%;
		height: 100%;
		background-image: url(./assets/img/top/top-bg-pattern.svg);
		background-size: 42px;
		left: 0;
		z-index: 0;
	}
}

@media print, screen and (min-width: 764px) {
	section#top-seitoku {
		& p {
			text-align: center;
		}
		& br.pc-only {
			display: inherit;
		}
	}
	section#top-seitoku::after {
		height: 40px;
	}
	section#top-seitoku .section-wrapper {
		width: 100%;
	}
}

/* ======================================= */
/* 取扱製品 */
/* ======================================= */
section#top-product {
	padding: 0 12px;
}
section#top-product .section-wrapper {
	/* ↓背景より手前に持ってくるためのrelative */
	/* 他のabsoluteとは関連しない */
	position: relative;
	z-index: 1;
}
section#top-product .flex-wrapper {
	flex-flow: column;
	align-items: start;
	padding: 80px 0;
}
section#top-product .flex-wrapper .title-wrapper {
	justify-content: space-between;
	width: 100%;
	margin-bottom: 16px;
	padding: 0 12px;
	color: #fff;
	& .title {
		flex-flow: column;
	}
	& .title p.en {
		font-family: var(--zen);
		font-size: 12px;
		font-weight: 700;
		color: var(--yellow);
	}
	& .title h2 {
		font-size: 24px;
		font-weight: 700;
		color: #fff;
	}
	& a {
		display: inline-block;
		padding: 12px 52px;
		background-color: #4F4893; 
		color: #fff;
		border-radius: 2px;
		white-space: nowrap;
		box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
		transition: all .3s;
		position: relative;
	}
	& a::after {
		position: absolute;
		content: '\e313';
		width: 1em;
		height: 1em;
		font-family: var(--ggl-ico);
		top: 50%;
		right: 6px;
		transform: rotate(-90deg) translate(50%);
		transition: all .3s;
	}
}
/* ホバーアニメーション */
@media (hover: hover) and (pointer: fine) {
	section#top-product .flex-wrapper .title-wrapper {
		& a:hover {
			background-color: #7975AB;
		}
		& a:hover::after {
			right: 2px;
		}
	}
}
/* グリッドレイアウト */
section#top-product .flex-wrapper .grid-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 8px; 
	width: 100%;
	& .item1 {
		grid-column: 1 / -1;
	}
	& .item2 {
		grid-column: 1 / 2;
	}
	& .item3 {
		grid-column: 2 / 3;
	}
	& .item4 {
		grid-column: 1 / -1;
	}
}
section#top-product .flex-wrapper .grid-container {
	& .item1,
	& .item2,
	& .item3 {
		height: 160px;
	}
	& .img-wrapper img {
		object-fit: cover;
	}
	/* .item4個別 */
	& .item4 {
		height: 200px;
		position: relative;
	}
	
	& .item4 a {
		display: block;
		width: 100%;
		height: 100%;
		position: relative;
	}
	& .item4 a > * {
		position: absolute;
		z-index: 2;
	}
	& .item4 .img-wrapper {
		width: 100%;
		height: 100%;
		top: 50%;
		left: 50%;
		transform: translateX(-50%) translateY(-50%);
		z-index: 0;
	}
	& .item4 .img-wrapper::before {
		position: absolute;
		content: '';
		width: 100%;
		height: 100%;
		left: 50%;
		transform: translate(-50%);
		background: linear-gradient(180deg,rgba(25, 16, 121, 0) 0%, rgba(25, 16, 121, 0.8) 100%);
		mix-blend-mode: multiply;
		z-index: 1;
	}
	& .item4 .img-wrapper img {
		object-position: 50% 0;
	}
	& .item4 h3 {
		display: inline-block;
		top: 2px;
		left: 2px;
		padding: 6px 12px;
		font-family: var(--zen);
		font-size: 1.5em;
		font-weight: 700;
		color: #fff;
		background: var(--blue);
	}
	& .item4 p.title,
	& .item4 p.text {
		display: inline-block;
		left: 12px;
		padding: 0 2px;
		color: var(--blue);
		background: #fff;
	}
	& .item4 p.title {
		top: 80px;
		font-family: var(--zen);
		font-weight: 700;
		font-size: 1.2em;
	}
	& .item4 p.text {
		top: 112px;
	}
	& .item4 p.arrow {
		bottom: 28px;
		left: 12px;
		color: #fff;
	}
	& .item4 p.arrow::before {
		position: absolute;
		content: '';
		width: 30px;
		height: 30px;
		top: 56%;
		left: calc(100% - 5px);
		transform: translateY(-50%);
		background: url(./assets/img/common/arc.svg) no-repeat;
	}
	& .item4 p.arrow::after {
		position: absolute;
		content: '';
		width: 22px;
		height: 4px;
		top: 50%;
		right: -28px;
		background: url(./assets/img/common/arc-arrow.svg) no-repeat;
		transition: all .3s;
	}
}
/* ホバーアニメーション */
@media (hover: hover) and (pointer: fine) {
	section#top-product .flex-wrapper .grid-container {
		& .item4:hover p.arrow::after {
			right: -34px;
		}
	}
}

@media print, screen and (min-width: 854px) {
	section#top-product .flex-wrapper {
		flex-flow: row;
		align-items: center;
		gap: 72px;
		padding: 100px 0;
		height: 540px;
	}
	section#top-product .flex-wrapper .title-wrapper {
		flex-flow: column;
		align-items: start;
		width: 25%;
		padding: 0;
		gap: 20px;
		& .title p.en {
			margin-bottom: -4px;
			font-size: 14px;
		}
		& .title h2 {
			font-size: 36px;
		}
	}
	/* grid */
	section#top-product .flex-wrapper .grid-container {
		grid-template-rows: .8fr 1.2fr;
		grid-template-columns: 1fr .5fr .5fr;
		width: calc(75% - 72px);
		height: 100%;
		gap: 8px 6px;
		& .item1 {
			grid-row: 1 / 3;
			grid-column: 1 / 2;
		}
		& .item2 {
			grid-row: 1 / 2;
			grid-column: 2 / 3;
		}
		& .item3 {
			grid-row: 1 / 2;
			grid-column: 3 / 4;
		}
		& .item4 {
			grid-row: 2 / 3;
			grid-column: 2 / 4;
		}
		& .item1, 
		& .item2, 
		& .item3,
		& .item4 {
			width: 100%;
			height: inherit;
		}
		/* .item1個別 */
		& .item1 .img-wrapper img {
			object-position: center 80%;
		}
		/* .item4個別 */
		& .item4 h3 {
			font-size: 1.2em;
		}
		& .item4 p.title {
			top: 68px;
		}
		& .item4 p.text {
			top: 104px;
		}
		& .item4 p.arrow {
			bottom: 20px;
		}
	}
}


/* ======================================= */
/* 納品実績 */
/* ======================================= */
section#record-top {
	padding: 0 12px;
	padding-bottom: 100px;
}
section#record-top .section-wrapper {
	/* ↓背景より手前に持ってくるためのrelative */
	/* 他のabsoluteとは関連しない */
	position: relative;
	z-index: 1;
}
section#record-top .flex-wrapper .title-wrapper {
	justify-content: space-between;
	width: 100%;
	margin-bottom: 16px;
	padding: 0 12px;
	color: #fff;
	& .title {
		flex-flow: column;
	}
	& .title p.en {
		font-family: var(--zen);
		font-size: 12px;
		font-weight: 700;
		color: var(--yellow);
	}
	& .title h2 {
		font-size: 24px;
		font-weight: 700;
		color: #fff;
	}
	& a {
		display: inline-block;
		padding: 12px 52px;
		background-color: #4F4893; 
		color: #fff;
		border-radius: 2px;
		white-space: nowrap;
		box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
		transition: all .3s;
		position: relative;
	}
	& a::after {
		position: absolute;
		content: '\e313';
		width: 1em;
		height: 1em;
		font-family: var(--ggl-ico);
		top: 50%;
		right: 6px;
		transform: rotate(-90deg) translate(50%);
		transition: all .3s
	}
}
/* ホバーアニメーション */
@media (hover: hover) and (pointer: fine) {
	section#record-top .flex-wrapper .title-wrapper {
		& a:hover {
			background-color: #7975AB;
		}
		& a:hover::after {
			right: 2px;
		}
	}
}
/* splideスタイル */
section#record-top #splide1 {
	& .splide__arrows.splide__arrows--ltr {
		position: absolute;
		display: flex;
		justify-content: space-between;
		top: 50%;
		left: 50%;
		transform: translate(-50%);
		width: calc(100% - 36px);
		z-index: 1;
	}
	& .splide__arrow {
		position: relative;
	}
	& .splide__arrow::before {
		position: absolute;
		content: '\e313';
		width: 48px;
		height: 48px;
		font-family: var(--ggl-ico);
		top: 50%;
		right: 0;
		transform: translateY(-50%) rotate(270deg);
		font-size: 48px;
		font-weight: 200;
		color: #fff;
	}
	& .splide__arrow.splide__arrow--prev {
		transform: scale(-1, 1);
	}
	& .splide__list {
		align-items: center;
	}
	& .splide__slide {
		align-content: center;
		height: 180px;
		transition: height 0.3s ease; 
	}
	& .splide__slide.is-height-active {
		height: 200px;
	}
	& .splide__slide.is-active {
		height: 200px;
	}
	& .splide__slide .img-wrapper {
		height: 100%;
		position: relative;
		& img {
			height: 100%;
			object-fit: cover;
		}
		&::before {
			position: absolute;
			content: '';
			width: 100%;
			height: 100%;
			background: rgba(0, 0, 0, 0.5);
			top: 0;
			left: 0;
			opacity: 1; 
			transition: opacity 0.3s ease; 
			z-index: 1;
		}
	}
	& .splide__slide.is-height-active .img-wrapper::before,
	& .splide__slide.is-active .img-wrapper::before {
		opacity: 0;
	}
	& .splide__pagination {
		display: none;
	}
}
section#record-top #splide1.is-focus-in {
	border: 3px solid var(--black);
	outline: 3px solid #fff;
	outline-offset: 3px;
}

@media print, screen and (min-width: 854px) {
	section#record-top .flex-wrapper {
		display: flex;
		flex-flow: row;
		gap: 72px;
		align-items: center;
	}
	section#record-top .flex-wrapper .title-wrapper {
		width: 25%;
		flex-flow: column;
		align-items: start;
		gap: 20px;
		padding: 0;
		& .title p.en {
			margin-bottom: -4px;
			font-size: 14px;
		}
		& .title h2 {
			font-size: 36px;
		}
	}
	section#record-top #splide1 {
		width: calc(75% - 72px);
		& .splide__slide {
			height: 320px;
		}
		& .splide__slide.is-height-active {
			height: 360px;
		}
		& .splide__slide.is-active {
			height: 360px;
		}
	}
}
