@charset "utf-8";

/* ローディング画面 */
#splash {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 9999999;
	text-align:center;
	color:#fff;
}

#splash-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#splash-logo img{
	width:50px;
}

/* 画面遷移アニメーション */

.splashbg{
	display: none;
}

body.appear .splashbg{
    display: block;
    position:fixed;
	z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
	left: 0;
    transform: scaleY(0);
    background-color: var(--color-primary);/*伸びる背景色の設定*/
	animation-name:PageAnime;
	animation-duration:1.2s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;

}

/* オープニングを省略して即表示する場合（2回目以降）：
   ワイプと本文フェードを無効化してそのまま表示する */
body.splash-skip .splashbg{
	display: none;
	animation: none;
}
body.splash-skip #wrapper{
	animation: none;
	opacity: 1;
}

@keyframes PageAnime{
	0% {
		transform-origin:bottom;
		transform:scaleY(0);
	}
	50% {
		transform-origin:bottom;
		transform:scaleY(1);
	}
	50.001% {
		transform-origin:top;
	}
	100% {
		transform-origin:top;
		transform:scaleY(0);
	}
}

/*画面遷移の後現れるコンテンツ設定*/

#wrapper{
	opacity: 0;/*はじめは透過0に*/
}

/*bodyにappearクラスがついたら出現*/
body.appear #wrapper{
	animation-name:PageAnimeAppear;
	animation-duration:1s;
	animation-delay: 0.8s;
	animation-fill-mode:forwards;
	opacity: 0;
}

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


/* ナビゲーション（下から上に出現） */
#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
	bottom:-120%;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background: var(--color-primary);
    /*動き*/
	transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    bottom: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

/*リストのレイアウト設定*/

#g-nav li{
	list-style: none;
    text-align: center;
}

#g-nav li a{
	color: #fff;
	text-decoration: none;
	padding:10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
}

/* ハンバーガーメニューボタン */

.openbtn{
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top:0;
	right: 0;
	cursor: pointer;
    width: 80px;
    height:70px;
    /*button要素の既定スタイルをリセット（左ボーダーのみ残す）*/
    padding: 0;
    background: transparent;
    border: none;
    border-left:2px solid var(--color-text);
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.openbtn::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform: translateY(100%);
    transition: transform 0.6s;
}

.openbtn.active{
    border-left-color: #fff;
    transition: border-color 0.3s ease 0.2s;
}

.openbtn.active::before{
    transform: translateY(0);
}

/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    z-index: 1;
  }

.openbtn span:nth-of-type(1),
.openbtn span:nth-of-type(3) {
    height: 2px;
	background: var(--color-text);
  	width:30%;
    opacity: 0;
    top:22px;
    left:20px;
 }

.openbtn span:nth-of-type(2) {
	top:22px;
	left:18px;
	text-transform: uppercase;
	color: var(--color-text);
    font-size: 0.9rem;
}

@media screen and (max-width:550px) {
.openbtn span:nth-of-type(2) {
    font-size: 0.8rem;
    }

}

.openbtn span:nth-of-type(3) {
    top:35px;
}


/*activeクラスが付与されると線が回転して×になり、Menu表記をしている2つ目の要素が透過して消える*/

.openbtn.active span{
    transition: all 0.4s, color 0.3s ease 0.2s, background-color 0.3s ease 0.2s;
}

.openbtn.active span:nth-of-type(1),
.openbtn.active span:nth-of-type(3) {
    opacity:1;
    background: #fff;
}

.openbtn.active span:nth-of-type(1) {
    top: 28px;
    left: 30px;
    transform: translateY(6px) rotate(-45deg);
}

.openbtn.active span:nth-of-type(2) {
	opacity:0;
	color: #fff;
}

.openbtn.active span:nth-of-type(3){
    top: 40px;
    left: 30px;
    transform: translateY(-6px) rotate(45deg);
}



/* ヘッダー現在地ハイライト */

#header{
	position: fixed;/*header固定*/
	top: 0;
	left: 0;
	height: var(--header-height);/*Headerの高さ設定*/
	width:100%;
    z-index: 9;
	display: flex;
	justify-content: center;
	align-items: center;
    background: var(--color-surface);
}

@media screen and (max-width:990px) {
#header{
    height: var(--header-height);
    }
}

#pc-nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
    text-transform: uppercase;
    margin: 0 0 0 5%;
}

#pc-nav li a{
	display: block;
	text-decoration: none;
	color: var(--color-text);
	padding:0 15px;
	transition:all 0.3s;
	white-space: nowrap;
}

#pc-nav li.current a,
#pc-nav li a:hover{
	color: var(--color-primary);
}

#pc-nav li.current a{
	border-bottom: 2px solid var(--color-accent-2);
}

/* スクロール進捗バー */

#scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 5px;
	background: var(--color-primary);
	z-index: 99;
	width: 0%;
	pointer-events: none;
}

/* 下線が伸びて背景になるボタン */


.btnlinestretches3{
    /*線の基点とするためrelativeを指定*/
	position:relative;
    /*ボタンの形状*/
	color: var(--color-primary);
    padding: 5px 30px;
	display:inline-block;
    text-decoration: none;
    outline: none;
}

/*テキストの設定*/
.btnlinestretches3 span{
    /*テキストを前面に出すためz-indexの値を高く設定*/
	position:relative;
	z-index: 2;
}

.btnlinestretches3:hover span{
	color: #fff;
}

/*線の設定*/
.btnlinestretches3::after {
	content:'';
    /*絶対配置で線の位置を決める*/
	position:absolute;
	z-index:1;
	bottom:0;
	left:0;
    /*線の形状（ホバーで伸びて背景になる色＝文字選択色と同系の紫）*/
	background: var(--color-primary);
	width:100%;
	height:3px;
    /*アニメーションの指定*/
	transition:all 0.3s ease-in-out;
}

/*線が伸びて背景に*/
.btnlinestretches3:hover::after {
	height:100%;
}

/* トップへ戻るボタン */

/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background: var(--color-primary);
	width: 60px;
	height: 50px;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	font-size:0.6rem;
	transition:all 0.3s;
}

#page-top a:hover{
	background: var(--color-text-muted);
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 0;
	bottom:0;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateX(100px);
}

/*　左の動き　*/

#page-top.LeftMove{
	animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime{
  from {
    opacity: 0;
	transform: translateX(100px);
  }
  to {
    opacity: 1;
	transform: translateX(0);
  }
}

/*　右の動き　*/

#page-top.RightMove{
	animation: RightAnime 0.5s forwards;
}
@keyframes RightAnime{
  from {
  	opacity: 1;
	transform: translateX(0);
  }
  to {
  	opacity: 1;
	transform: translateX(100px);
  }
}

/* アコーディオン */

/*アコーディオン全体*/
.accordion-area{
    list-style: none;
    width: 96%;
    max-width: 900px;
    margin:0 auto;
}

.accordion-area li{
    margin: 6px 0;
}

.accordion-area section {
	border: 1px solid var(--color-border);
}

/*アコーディオンタイトル*/
.title {
    position: relative;/*+マークの位置基準とするためrelative指定*/
    cursor: pointer;
    font-size:1rem;
    font-weight: normal;
    padding: 10px 3% 10px 40px;
    transition: all .5s ease;
    display: flex;
    align-items: center;
}

@media screen and (max-width:768px) {
.title {
    font-size:0.9rem;
}
}

/*アイコンの＋と×*/
.title::before,
.title::after{
    position: absolute;
    content:'';
    width: 15px;
    height: 2px;
    background-color: var(--color-text);

}
.title::before{
    top:48%;
    left: 12px;
    transform: rotate(0deg);

}
.title::after{
    top:48%;
    left: 12px;
    transform: rotate(90deg);

}

/*　closeというクラスがついたら形状変化　*/

.title.close::before{
	transform: rotate(45deg);
}

.title.close::after{
	transform: rotate(-45deg);
}

/*アコーディオンで現れるエリア*/
.box {
    overflow: hidden;
    max-height: 0;
    background: var(--color-bg-tint);
	margin: 0 3%;
    padding: 0 3%;
    transition: max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
}

.box.open {
    max-height: 2000px;
    padding: 3%;
    margin: 0 3% 3% 3%;
}


/* スクロール連動アニメーション */

/* 背景色が左から伸びて消える */
.bgextend{
	animation-name:bgextendAnimeBase;
	animation-duration:1s;
	animation-fill-mode:forwards;
	position: relative;
	overflow: hidden;/*　はみ出た色要素を隠す　*/
	opacity:0;
}

@keyframes bgextendAnimeBase{
  from {
    opacity:0;
  }

  to {
    opacity:1;
}
}

/*中の要素*/
.bgappear{
	animation-name:bgextendAnimeSecond;
	animation-duration:1s;
	animation-delay: 0.6s;
	animation-fill-mode:forwards;
	opacity: 0;
}

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

.bgLRextend::before{
	animation-name:bgLRextendAnime;
	animation-duration:1s;
	animation-fill-mode:forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);/*伸びる背景色の設定*/
}
@keyframes bgLRextendAnime{
	0% {
		transform-origin:left;
		transform:scaleX(0);
	}
	50% {
		transform-origin:left;
		transform:scaleX(1);
	}
	50.001% {
		transform-origin:right;
	}
	100% {
		transform-origin:right;
		transform:scaleX(0);
	}
}

/* 下からふわっと出現 */

.fadeUp{
animation-name: fadeUpAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity:0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }

  to {
    opacity: 1;
	transform: translateY(0);
  }
}


/* 左へパタッと回転出現 */
.flipLeft{
animation-name: flipLeftAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
perspective-origin: left center;
opacity:0;
}

@keyframes flipLeftAnime{
  from {
   transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
 	opacity: 0;
  }

  to {
  transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
  opacity: 1;
  }
}

/* スマホ表示用。flipLeftTriggerを指定している親要素に指定しないとうまく動かない*/
#philosophy,
.service-area{
    transform:  translate3d(0, 0, 0);
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.bgLRextendTrigger,
.bgappearTrigger,
.fadeUpTrigger,
.flipLeftTrigger{
    opacity: 0;
}


/* ヒーロー視差効果 */

#top-main{
	width:100%;
	height: 100vh;
	position: relative;
}

#top-main:before{
	content: '';
	position:fixed;
	top:10vh;
	left:5%;
	z-index:-1;
	width:90%;
	height: 80vh;
	/*背景画像設定*/
	background-color: var(--color-hero-bg);
	background-image: url("../img/hero/hero-main1.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transition: opacity 0.8s ease;
}

#top-main::after{
	content: '';
	position: fixed;
	top: 10vh;
	left: 5%;
	z-index: -1;
	width: 90%;
	height: 80vh;
	pointer-events: none;
	display: none;
}

#top-main.hero-fade:before{
	opacity: 0;
}

@media screen and (max-width:768px) {
#top-main{
    /* 100vh予約をやめ、ヒーロー写真の下にできる巨大な余白を解消。
       固定ヘッダー分だけ下げて写真がヘッダーに潜らないようにする */
    height: auto;
    padding-top: var(--header-height);
    }
#top-main:before{
    /* 固定の浮遊パネルをやめ、通常フローの横長画像ブロックにする。
       横長写真がトリミングされすぎず、下の余白も出ない */
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    z-index: 0;
    background-position: center;
    background-size: cover;
    }
}

#container{
	position: relative;
	z-index:1;
	background: var(--color-surface);
	overflow-x: hidden;
}

/* ========================================
   背景浮遊図形アニメーション
   ======================================== */
@keyframes bgFloat1 {
	0%   { transform: translate(0, 0) rotate(0deg); }
	25%  { transform: translate(30px, -50px) rotate(90deg); }
	50%  { transform: translate(-20px, -100px) rotate(180deg); }
	75%  { transform: translate(40px, -60px) rotate(270deg); }
	100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes bgFloat2 {
	0%   { transform: translate(0, 0) rotate(45deg); }
	33%  { transform: translate(-40px, -70px) rotate(165deg); }
	66%  { transform: translate(25px, -30px) rotate(285deg); }
	100% { transform: translate(0, 0) rotate(405deg); }
}

@keyframes bgFloat3 {
	0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
	50%  { transform: translate(20px, -80px) rotate(180deg) scale(1.1); }
	100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.bg-shape {
		animation: none !important;
	}
	.splashbg {
		animation: none !important;
	}
	#wrapper {
		animation: none !important;
		opacity: 1 !important;
	}
	.bgextend,
	.bgappear,
	.fadeUp,
	.flipLeft {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.bgLRextend::before {
		animation: none !important;
	}
	.wave-bg,
	.wave-lines-overlay {
		opacity: 1 !important;
		transition: none !important;
		animation: none !important;
	}
	.wave-bg svg path,
	.wave-lines-overlay svg path {
		animation: none !important;
	}
}

/* ========================================
   フォーカス・アクティブ・無効状態
   ======================================== */

/* フォーカス可視状態（アクセシビリティ） */
.btnlinestretches3:focus-visible,
.recruit-tab:focus-visible,
#page-top a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

#pc-nav li a:focus-visible,
#g-nav li a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* アクティブ状態（クリックフィードバック） */
.recruit-tab:active {
	transform: scale(0.97);
}

.btnlinestretches3:active {
	transform: scale(0.97);
}

/* ========================================
   常時表示フローティング エントリーボタン（Entry FAB）
   ======================================== */

.entry-fab {
	position: fixed;
	right: 16px;
	bottom: 78px; /* 右下の #page-top（高さ50px）の上に重ならず載せる */
	z-index: 60;  /* 全画面メニュー #g-nav(999)・ハンバーガー(9999) より下に保つ */
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	/* 透明な余白部分が背後のクリックを奪わないよう、コンテナ自体は無効化し
	   実体のある子要素（ランチャー・展開時のパネル）でのみ受け取る */
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* エントリー導線に到達したら隠す */
.entry-fab--hidden {
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	pointer-events: none;
}

/* ランチャー（常時表示のピル / フォームへの直接リンク） */
.entry-fab__toggle {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: none;
	border-radius: 50px;
	background: var(--color-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(107, 29, 142, 0.25);
	transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.entry-fab__toggle:hover {
	background: var(--color-accent);
	box-shadow: 0 10px 24px rgba(139, 26, 43, 0.35);
}

.entry-fab__toggle:active {
	transform: scale(0.97);
}

.entry-fab__icon {
	font-size: 1.1rem;
	line-height: 1;
}

.entry-fab__label {
	font-size: 0.95rem;
	white-space: nowrap;
}

/* スマホ */
@media screen and (max-width: 550px) {
	.entry-fab {
		right: 12px;
		bottom: 70px;
	}
	.entry-fab__toggle {
		padding: 11px 18px;
	}
	.entry-fab__label {
		font-size: 0.9rem;
	}
}

/* フォーカス可視（アクセシビリティ） */
.entry-fab__toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(107, 29, 142, 0.5);
}

/* 動きを抑える設定（prefers-reduced-motion） */
@media (prefers-reduced-motion: reduce) {
	.entry-fab,
	.entry-fab__toggle {
		transition: none !important;
	}
}