@charset "utf-8";

/* ヘッダー
-------------------------------------*/
header {
	width: 100%;
	background-color: var(--white);
	position: -webkit-sticky;
	position: sticky;
	top: 0;
    left: 0;
	z-index: 7;
}

header .head-area {
	max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: .5rem clamp(1rem, 4vw, 3rem);
}

.head-logo {width: clamp(100px,20vw,160px);}

header .head-nav {
	position: relative;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex: 1 1 auto;
    min-width: 0;
}

.nav-area ul {
	display: flex; justify-content: center;
	gap: 1.5rem;
	font-size: 18px; font-weight: 600;
}
.nav-area ul li {
	width: 100%;
	padding: 0 .5rem;
}
.nav-area ul li a:not([class]) {
	display: inline-flex; align-items: center;
	white-space: nowrap; padding-bottom: .5rem;
	position: relative; overflow: hidden;
}
.nav-area ul li a:hover {opacity: 1;}
.nav-area ul li a:not([class])::before {
	content: "";
	display: inline-block;
	width: 16px;
	aspect-ratio: 3 / 7;
	background: url("../images/common/icon-spark.svg") no-repeat center / contain;
	margin-right: .5rem;
	flex-shrink: 0;
	/*transform: translateX(-120%);
	opacity: 0;*/
}
.nav-area ul li a:not([class])::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 4px;
	border-radius: var(--rounded-200);
	background-color: var(--sub-color_01);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .25s;
}
.nav-area ul li a:not([class]):hover::after,
.nav-area ul li a:not([class]):focus-visible::after {
	transform-origin: left center;
  transform: scaleX(1);
}

/*.nav-area ul li a:not([class]):hover::before,
.nav-area ul li a:not([class]):focus-visible::before {
  animation: nav-icon-in .25s ease-out forwards;
}
@keyframes nav-icon-in {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}*/

.head-cnt {
	background-color: var(--sub-color_01); color: var(--white);
	width: clamp(200px,42vw,220px);max-width: 100%;border-radius: var(--rounded-200);
	padding: 1rem 1.5rem 1rem 46px;margin: 0 auto 1rem;
	position: relative;
}
.head-cnt img {
	max-width: 24px;
	position: absolute;
    left: 20px; top: 50%; transform: translateY(-50%);
}
.head-cnt:hover {color: var(--white); opacity: 1;}


/* ハンバーガーボタン */
.sp-hamburger-inner,.hamburger {display: none;}
#mobile-nav {display: none;}

/* オーバーレイ */
.overlay {display: none;}

@media screen and (max-width: 960px) {
	
	header .head-area {padding-top: 1rem; padding-bottom: 1rem;}
	header .head-nav {padding-bottom: 1rem;}
	
	#mobile-nav {display: block;}
	#desktop-nav {display: none;}
	
	.nav-area {
		display: block;
		position: fixed;
		right: 0; top: 0;
		width: 100%; max-width: 340px;
		height: 100%;
		background-color: var(--main-color);
        padding: 2rem;
		transform: translateX(200%);
		transition: transform 0.3s ease;
		z-index: 9;
	}
	.nav-area.is-open {
		transform: translateX(0);
	}
	
	.head-nav__logo {
		max-width: clamp(190px,42vw,220px);
		margin-left: auto; margin-right: auto;
	}
	
	.nav-area ul {
		display: block;
		height: 90%;
		background-color: var(--white);
		border-radius: var(--rounded-5-10);
		margin-top: 4rem; padding: 1rem;
		overflow-y: scroll;scrollbar-width: none;-ms-overflow-style: none;
	}
	
	.nav-area ul li {
		text-align: center;
		padding: clamp(.5rem, 2.5vw, 1rem) 1rem;
	}
			
	.nav-area ul li a {justify-content: center;}
	.nav-area ul li a:not([class]) {
		width: 100%; max-width: 140px;
		justify-content: flex-start;
	}
	
	/* ハンバーガーボタン */
	.sp-hamburger-inner {
		display: block;
		width: 100%; margin-top: 1rem;
		position: fixed; top: 0;
		z-index: 10;
	}
	
	.hamburger {
		display: block;
		position: absolute;
		right: clamp(1rem, 4vw, 3rem);
		top: 0;
		/*transform: translateY(-50%);*/
		background-color: var(--main-color);
		border-radius: 50%;
		cursor: pointer;
		width: clamp(50px,10vw,70px); height: clamp(50px,10vw,70px);
		transition: background-color .3s ease;
	}
	.hamburger.active {background-color: var(--white);}
	
	.hamburger span {
		display: inline-block;
		position: absolute;left: 50%;
		transform: translate(-50%, -50%);
		width: 50%;height: 3px;
		background-color: var(--white);
		border-radius: var(--rounded-200);
		transition: all .4s;
	}
	.hamburger span:nth-of-type(1) {top:32%;}
	.hamburger span:nth-of-type(2) {top:50%;}
	.hamburger span:nth-of-type(3) {top:68%;}

	/*activeクラスが付与されると線が回転して×になり、Menu表記をしている2つ目の要素が透過して消える*/
	.hamburger.active span {background-color: var(--sub-color_01);}
	.hamburger.active span:nth-of-type(1) {
		top: 50%; left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
		width: 50%;
	}
	.hamburger.active span:nth-of-type(2) {opacity: 0;}
	.hamburger.active span:nth-of-type(3){
		top: 50%; left: 50%;
		transform: translate(-50%, -50%) rotate(45deg);
		width: 50%;
	}
	
	/* オーバーレイ */
	.overlay {
		display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(31, 41, 55, 0.5);
		backdrop-filter: blur(4px);
		-webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
		z-index: 8;
        }
	.overlay.active {
		opacity: 1;
		visibility: visible;
        }
	body.menu-open {overflow: hidden;}
}

@media screen and (max-width: 560px) {
	.nav-area {
		max-width: 100%;
	}
}

/* フッター
-------------------------------------*/
footer {
	background: url("../images/common/foot-bg.jpg") no-repeat center / cover;
	color: var(--white);
}

.foot-logo {max-width: clamp(160px,25vw,250px);}

footer table :is(th,td) {
	padding: .5rem 0;
}
footer table th {text-align: left;}
footer table th::before,
footer table td::before {
	content: "";
    display: inline-block;
	vertical-align: middle;
}
footer table th::before {
    width: 10px;
    aspect-ratio: 3 / 7;
    background: url(../images/common/icon-spark-w.svg) no-repeat center / contain;
    margin-right: .5rem;
}
footer table td::before {
	width: 35px;
	border-bottom: 1px dotted var(--white);
	margin-right: 1rem;
}

footer .map-container {
	padding-top: 68.5714%;
}

.copyright {
	background-color: var(--main-color);
	padding: 1rem;
	font-size: 14px;text-align: center;margin: 0;
}


/* トップページ
-------------------------------------*/
/* FV */
.fv {
	max-width: 1500px;
    margin: 0 auto; padding: 0 3rem;
    text-align: center;
    position: relative;
}
.fv__slider-item img {border-radius: var(--rounded-10-20);}

.dots-wrap {
	display: flex; justify-content: flex-end; align-items: center; gap: 1rem;
	margin: 1rem 0;
}
.dots-wrap li {
	width: clamp(40px,8vw,60px);
	aspect-ratio: 6 / 1;
	background-color: var(--gray);
	cursor: pointer;
	transition: background-color .3s ease;
}
.dots-wrap li:hover,
.dots-wrap li.slick-active {background-color: var(--sub-color_01);}
.dots-wrap li button {
	display: none;
	font-size: 0; line-height: 0; padding: 0; margin: 0;
}

.fv__ttl {
	line-height: 1.8em;
    white-space: nowrap;
	font-size: clamp(30px, 3vw, 32px);
	color: var(--white);
	position: absolute;
	right: 6%; bottom: 12%; z-index: 1;
}
.fv__ttl span {
	display: inline-block;
	position: relative;
	padding: 0 .5rem;
	filter: drop-shadow(4px 6px clamp(5px,1vw,10px) rgba(0, 0, 0, 0.6));
}
.fv__ttl span:first-of-type {
	margin-bottom: .5rem;
	padding-left: clamp(1.5rem,6vw,2.5rem); padding-right: clamp(.25rem,1vw,.5rem);
}
.fv__ttl span:last-of-type {
	margin-left: 4em;
	padding-left: clamp(.75rem,3vw,1.5rem); padding-right: clamp(.75rem,3vw,1.5rem);
}
.fv__ttl span::before {
	content: "";
	position: absolute; inset: 0;
	background-color: var(--sub-color_01);
	z-index: -1;
}
.fv__ttl span:first-of-type::before {
	clip-path: polygon(16% 0%, 100% 0%, 94% 100%, 0% 100%);
}
.fv__ttl span:last-of-type::before {
	clip-path: polygon(6% 0%, 100% 0%, 84% 100%, 0% 100%);
}

/* はせでんについて */
.overlap {
	position: relative;
	width: 100%;
}
.overlap__img {
	position: absolute;
	left: 0; top: -120px;
	width: 50%; max-width: 770px;
	border-radius: 0 var(--rounded-10-20) var(--rounded-10-20) 0;
	z-index: 2;
}
.overlap__inner {
	position: relative;
	background-color: var(--light-blue);
	margin-left: 40%;
	padding-left: 15%; padding-right: clamp(3rem, 7.25vw, 4rem);
	border-radius: var(--rounded-10-20) 0 0 var(--rounded-10-20);
	z-index: 1;
}

.overlap__inner .ttl-content {
	margin-top: -6rem;
}
.outline-filter-defs {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.outline-text {
	display: block;
	color: var(--main-color);
	filter: url(#text-outline);
}
.ttl-content__sub {
	display: inline-block;
}
.ttl-content__sub::before {
	content: "";
	display: block;
	border-top: 3px solid var(--main-color);
	margin: clamp(1rem, 3vw, 2rem) 0 clamp(.5rem, 1.5vw, 1rem);
}

.btn-square {
	display: inline-flex;
	justify-content: space-between; align-items: center;
	width: 100%; max-width: 260px;
	background-color: var(--sub-color_01); border-radius: 5px;
	color: var(--white); font-size: clamp(16px,2vw,18px); font-weight: bold; text-align: center;
	padding: 1rem;
	position: relative; overflow: hidden; z-index: 1;
}
.btn-square::after {
	content: "";
	position: absolute; inset: 0;
	background-color: var(--main-color);
	transform: scaleX(0);
	transform-origin: left top;
	transition: transform .2s cubic-bezier(0.45, 0, 0.55, 1);
	z-index: -1;
}
.btn-square:hover {
	opacity: 1; color: var(--white);
}
.btn-square:hover::after {transform: scaleX(1);}
.btn-square__txt {
	flex: 1 1 auto;
	position: relative;
    margin-right: .75rem;
}
.btn-square__txt::after {
	content: "";
	display: block;
	width: 1.5px; height: 120%;
	background-color: var(--white);
	position: absolute; right: 0;
    top: 50%; transform: translateY(-50%);
}
.btn-square__arrow {
	display: inline-flex; justify-content: center; align-items: center;
	width: 28px; aspect-ratio: 1 / 1;
	background-color: var(--white); border-radius: 5px;
}
.btn-square__arrow span,
.btn-square__arrow span::before,
.btn-square__arrow span::after {
	display: inline-block;
	height: 3px;
	background-color: var(--sub-color_01);
	border-radius: 20px;
	transition: background-color .3s ease;
}
.btn-square:hover .btn-square__arrow span,
.btn-square:hover .btn-square__arrow span::before,
.btn-square:hover .btn-square__arrow span::after {
	background-color: var(--main-color);
}
.btn-square__arrow span {
	width: 14px;
	position: relative;
}
.btn-square__arrow span::before,
.btn-square__arrow span::after {
	content: "";
	width: 8px;
	position: absolute; right: 0;
}
.btn-square__arrow span::before {
	transform: rotate(55deg);
    bottom: 100%;
}
.btn-square__arrow span::after {
	transform: rotate(-55deg);
    top: 100%;
}

@media screen and (min-width: 1501px) {
	/* はせでんについて */
	.overlap__img, .overlap__inner {border-radius: var(--rounded-10-20);}
}

@media screen and (max-width: 960px) {
	/* FV */
	.fv {padding: 0 1rem;}
}

@media screen and (max-width: 768px) {
	/* FV */
	.fv {padding: 0;}
	.fv__slider-item img {
		border-radius: 0;
		aspect-ratio: 384 / 425;
        object-fit: cover;
        object-position: 30% center;
	}
	
	.dots-wrap {
		justify-content: center;
		margin: clamp(1rem, 3vw, 2rem) 0;
	}
	
	.fv__ttl {
		left: -4%; right: auto;
		top: 4%; bottom: auto;
		font-size: clamp(18px, 4.75vw, 30px);
	}
	
	/* はせでんについて */
	.overlap__img {
		position: initial;
		width: 100%; border-radius: 0;
	}
	.overlap__inner {
		margin-left: 0; border-radius: 0;
		padding-left: clamp(1rem, 4vw, 3rem);
		padding-right: clamp(1rem, 4vw, 3rem);
	}
	.overlap__inner .ttl-content {margin-top: 0;}
	
}

/* 下層ページ
-------------------------------------*/
/* FV */
.sub-fv img {border-radius: var(--rounded-10-20);}
.sub-fv__ttl {
	font-size: clamp(30px, 4.5vw, 44px);
    color: var(--white); letter-spacing: .2em;
	position: absolute;
	left: 50%; top: 50%; transform: translate(-50%,-50%);
	margin: 0;
	filter: drop-shadow(2px 3px 5px rgba(0, 0, 0, 0.6));
}
.sub-fv__ttl span {
	display: block;
	font-family: "Montserrat", sans-serif;
	font-size: .45em; letter-spacing: .05em;
}

@media screen and (max-width: 768px) {
	/* FV */
	.sub-fv img {border-radius: 0;}
}

/* 会社概要
-------------------------------------*/
/* ギャラリー用 カルーセルスライダー */
.scroll-carousel__container {overflow: hidden;}
.scroll-carousel__inner {width: 100%;}
.carousel-row {
	position: relative;
	margin-bottom: clamp(1rem, 2.75vw, 1.5rem);
}
.carousel-track {
	display: flex; align-items: center; gap: clamp(1rem, 2.75vw, 1.5rem);
	will-change: transform;
}
.carousel-track li {flex: 0 0 auto;}
.carousel-track li img {border-radius: var(--rounded-10-20);}
.row__top li,
.row__bottom li {max-width: clamp(200px,42vw,340px);}
.row__middle li {max-width: clamp(146px,28vw,226px);}

@media screen and (min-width: 1921px) {
	/* ギャラリー用 カルーセルスライダー */
	.row__top li,
	.row__bottom li {max-width: clamp(420px,18vw,460px);}
	.row__middle li {max-width: clamp(286px,14vw,326px);}
	
}


/* 業務案内
-------------------------------------*/
/* 電気がお客様に届くまで */
.service-scroll {
	position: relative;
	height: 100vh;
	min-height: 100vh;
}
.service-scroll__container {
	position: -webkit-sticky;
	position: sticky;
    top: 42px;
	height: 100vh;
	width: 220vw;
	display: grid;
    grid-template-columns: 1.7fr 1fr 1.7fr 1fr 1.7fr 1fr 1.7fr;
	align-items: center;
}

.service-scroll__container .box {
	background-color: var(--white);
	border: 4px solid var(--sub-color_01);
    border-radius: clamp(10px, 3.5vw, 25px);
	min-height: calc(220vw / 5);
}
.service-scroll__container .box h3 {
	background-color: var(--sub-color_01);
    border-radius: clamp(6px, 1.5vw, 12px) clamp(6px, 1.5vw, 12px) 0 0;
    color: var(--white);
    margin: 0; padding: 1.25rem clamp(.5rem, 1.5vw, 1rem);
	display: flex; justify-content: center; align-items: center;
}
.service-scroll__container .box h3 > span {white-space: nowrap;}
.service-scroll__container .box:last-of-type {
	border-color: var(--main-color);
}
.service-scroll__container .box:last-of-type h3 {
	background-color: var(--main-color);
}
.service-scroll__container .box .flow-img::before,
.service-scroll__container .box .flow-img::after {
	content: "";
	background: url("../images/service/icon-arrow-s.svg") no-repeat center / contain;
	width: clamp(20px,2.5vw,28px); height: 42px;
	position: absolute; top: 100%;
}
.service-scroll__container .box .flow-img::before {
	transform: rotate(25deg);
	left: -2.75rem;
}
.service-scroll__container .box .flow-img::after {
	transform: rotate(-25deg);
	right: -2.75rem;
}

.service-scroll__container .relay {
	display: flex; flex-direction: column; justify-content: center;
}
.icon__relay {
	width: auto; margin-left: auto; margin-right: auto;
	max-height: 76px;
}

/* 主な業務内容 */
.service-num h4 {margin-left: -1rem;}
.service-num .outline-text {
	display: inline-block;
	vertical-align: text-top;
    line-height: .5;
}

@media screen and (min-width: 1921px) {
	/* 電気がお客様に届くまで */
	.service-scroll__container {
		width: 160vw;
	}
	.service-scroll__container .box {
		min-height: calc(160vw / 5);
	}
}

@media screen and (min-width: 1601px) {
	/* 電気がお客様に届くまで */
	.service-scroll__container {
		width: 180vw;
	}
	.service-scroll__container .box {
		min-height: calc(180vw / 5);
	}
}

@media screen and (max-width: 1200px) {
	/* 電気がお客様に届くまで */
	.service-scroll__container {
		width: 256vw;
	}
}

@media screen and (max-width: 960px) {
	/* 電気がお客様に届くまで */
	.service-scroll {
		height: auto; min-height: 0;
		padding: 0 1rem; margin-bottom: clamp(4rem, 10vw, 6rem);
	}
	.service-scroll__container {
		position: static;
		height: auto;
		width: 100%;
		max-width: 500px;
        margin-left: auto; margin-right: auto;
		grid-template-columns: minmax(0, 1fr);
		transform: none;
	}
	.service-scroll__container .box {min-height: 0;}
	
	.relay {
		position: relative;
		z-index: 0;
	}
	.relay::after {
		content: "";
		position: absolute;
		left: 50%; top: 50%; transform: translate(-50%,-50%);
		background: url("../images/service/icon-arrow-l.svg") no-repeat center / contain;
		width: 30px; height: 140%;
		z-index: -1;
	}
	.relay__box {
		display: flex; justify-content: center; align-items: center;
	}
	.icon__relay {margin-left: .5rem; margin-right: .5rem;}
	.relay__box p {flex-shrink: 0;}
	.relay__volt {
		display: inline-flex; justify-content: center; align-items: center;
		width: auto; margin-left: auto; margin-right: auto;
	}
	.relay__volt::before {
		content: "";
		display: inline-block;
		width: 14px; height: 32px;
		margin-right: .25rem;
		background: url("../images/common/icon-spark.svg") no-repeat center / contain;
	}
	.icon__flow-pc {display: none;}
}

@media screen and (max-width: 560px) {
	/* 電気がお客様に届くまで */
	.service-scroll__container .box .flow-img::before {
		left: -3rem;
	}
	.service-scroll__container .box .flow-img::after {
		right: -3rem;
	}
}


/* その他
-------------------------------------*/
/* ページトップへ戻るボタン */
#page-top {
	position: fixed;
	right: 15px;
	bottom: -100px;
	z-index: 4;
	transition: bottom 0.3s ease-in-out;
}

#page-top.show {
    bottom: 20px; /* 表示時の位置 */
}

#page-top a {
	display: block;
	width: 70px;
	font-weight: bold;
	text-align: center;
	filter: drop-shadow(1px 0px 0 var(--white)) drop-shadow(-1px 0px 0 var(--white)) drop-shadow(0px 1px 0 var(--white)) drop-shadow(0px -1px 0 var(--white));
}

