@charset "utf-8";

/*========= ローディング画面のためのCSS ===============*/
#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;
}

/*========= 画面遷移のためのCSS ===============*/

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

.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: #3f647c;/*伸びる背景色の設定*/
	animation-name:PageAnime;
	animation-duration:1.2s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;

}

@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:#fff;
    /*動き*/
	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: left; 
}

#g-nav li a{
	color: #243263;
	text-decoration: none;
	padding:10px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
  font-size: 1.4em;
}

@media screen and (max-width:550px) {
#g-nav li a{ font-size: 1.3em;

}
}
.openbtn{
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  cursor: pointer;
  width: 80px;
  height: 80px;
  border-left: 2px solid #fff;
}

#header{
	position: fixed;/*header固定*/
	height: 150px;/*Headerの高さ設定*/
	width:100%;
    z-index: 9;
	display: flex;
	justify-content: right;
	align-items: center;
  background-color: #3f647c;
	background-position: center;
}

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

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

#pc-nav li a{
	display: block;
	text-decoration: none;
	color: #fff;
	padding:0 15px;
	transition:all 0.3s;
}

#pc-nav li.current a,
#pc-nav li a:hover{
	color:rgb(219, 176, 77);	
}


.scrollgress{
	z-index:99;/*他のposition指定しているエリアより前に出すためz-indexの数字を大きく*/
}


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

/*テキストの設定*/
.btnlinestretches3 span{
	position:relative;
	z-index: 2;
}

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

/*線の設定*/
.btnlinestretches3::after {
	content:'';
	position:absolute;
	z-index:1;
	bottom:0;
	left:0;
    /*線の形状*/
	background:#333;
	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:#243263;
	width: 60px;
	height: 50px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
	transition:all 0.3s;
  font-weight: 700;
}

#page-top a:hover{
	background: #777;
}

/*リンクを右下に固定*/
#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: 0 0;
}

.accordion-area section {
	border: 1px solid #f7f7f7;
	  border-top-width: 1px;  
  border-top-color: #728b9f; 
}

.title {
    position: relative;
    cursor: pointer;
    font-size:1.2rem;
    font-weight: bold;
     padding: 3% 50px 3% 3%;
    transition: all .5s ease;
	background: #f7f7f7;
}

@media screen and (max-width:768px) {
.title {
    font-size:0.9rem;
}
}
.title.close::before{
	transform: rotate(45deg);
}

.title.close::after{
	transform: rotate(-45deg);
}
/* 右側にアイコンを置く余白（必要なら調整） */
.accordion-area .title{
  padding: 3% 50px 3% 3%;
  position: relative;
}

/* 以前のライン（×やー）を無効化 */
.accordion-area .title::before{ content: none !important; }

/* デフォルト：下向き矢印 ▼（閉じている時など） */
.accordion-area .title::after{
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;     /* 大きさお好みで */
  line-height: 1;
  color: #333;
}

/* 開いている時（.close が付いたら）：上向き矢印 ▲ */
.accordion-area .title.close::after{
  content: "▲";
}



.box {
    display: none;/*はじめは非表示*/
    background: #f7f7f7;
    padding: 3%;
}
.slider a{
    display: block;
    background:#fff;
    padding:10px 0;
}

/*日付*/
.slider time{
    display:inline-block;
    font-size:0.8rem;
    margin-right:10px;
    color:#777;
}

/*768px以下の見た目*/
@media screen and (max-width:768px) {
    .slider {
        padding:20px;
        background:#fff;
    }

    .slider li {
        border-bottom:1px dashed #ccc;
    }

    .slider li:last-child {
        border-bottom:none;
    }
    .slider time {
        display:block;
		padding-bottom:10px;
    }
}


.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: #243263;/*伸びる背景色の設定*/
}
@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;
  }
}

.fadeRightTrigger{ opacity: 0; }
.fadeRight{ animation: fadeRightAnime .5s forwards; }
@keyframes fadeRightAnime{
  from{ opacity:0; transform: translateX(100px); }
  to  { opacity:1; transform: translateX(0); }
}


#vision,
.service-area{
    transform:  translate3d(0, 0, 0);
}




/* #top-main{
	width:100%;
	height: 100vh;
	position: relative;
	padding-top: 150px;
}  */


@media screen and (max-width:768px) {
#top-main:before{
    background-position: top center;
    background-size:auto 90%;
    }
}

#container{
	position: relative;
	z-index:1;
	background:#fff;
}


.midashi_title {
  font-size: 115px; 
    background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 5px;
padding-left: .5em;
    padding-top: .5em;
}
.midashi_title span {
    font-size: 20px;
    padding-left: 20px;
}


.underline {
  position: relative; /* 擬似要素を基準にする */
  padding-bottom: 1em; /* テキストと線の間隔 */
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;       /* ボックスいっぱい */
  height: 1px;       /* 線の太さ */
  background: #728b9f;  /* 線の色 */
}

.message-slider img {
    width:100%;
    height:auto;
}
.message-slider .slick-slide {
    margin:0 1em;/*スライド左右の余白調整*/
}
#Message .message-slider { margin:0; padding:2em 0 0; }
#Message .message-slider img { display:block; width:100%; height:auto; }

#Message .message-slider .slick-slide {
  height: 300px;
  overflow: hidden;
}
#Message .message-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 収まり優先なら contain でもOK */
  display: block;
}

/* ===== Scroll-in：初期状態 → 表示状態（競合しないミニマル版） ===== */
.fadeRightTrigger,
.fadeLeftTrigger,
.fadeUpTrigger,
.flipLeftTrigger{
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
  will-change: transform, opacity;
}

/* 初期位置（reveal-init が先に入る） */
.reveal-init.fadeRightTrigger { transform: translateX(60px); }
.reveal-init.fadeLeftTrigger  { transform: translateX(-60px); }
.reveal-init.fadeUpTrigger    { transform: translateY(40px); }
.reveal-init.flipLeftTrigger  {
  transform-origin: left center;
  transform: perspective(600px) rotateY(30deg);
}

/* 画面内に入ったら最終位置へ */
.fadeRightTrigger.is-inview,
.fadeLeftTrigger.is-inview,
.fadeUpTrigger.is-inview,
.flipLeftTrigger.is-inview{
  opacity: 1;
  transform: none; /* translate(0) と同義 */
}
/* ==== ハンバーガー：四角い濃紺ボタン → クリックで×に変形 ==== */
.openbtn{
  position: fixed;
  z-index: 9999;
  top: 0;        

  /* background: #243263; */
  border: none;      
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 3本線の共通 */
.openbtn span{
  position: absolute;
  left: 50%;
  width: 28px;        /* 線の長さ */
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .28s ease, opacity .2s ease, width .28s ease;
}

/* 上・中・下の位置 */
.openbtn span:nth-of-type(1){ transform: translate(-50%, 26px); }
.openbtn span:nth-of-type(2){ transform: translate(-50%,  36px);  }
.openbtn span:nth-of-type(3){ transform: translate(-50%,  46px); }

/* クリック後（.active）でXに変形 */
.openbtn.active span:nth-of-type(1){
  transform: translate(-50%, 0) rotate(45deg);
}
.openbtn.active span:nth-of-type(2){
  opacity: 0;         /* 真ん中の線は消す */
  width: 0;           /* 視覚的にも消える */
}
.openbtn.active span:nth-of-type(3){
  transform: translate(-50%, 0) rotate(-45deg);
}

/* フォーカス枠を出したくない場合（任意） */
.openbtn:focus{ outline: none; }

/* 動きを弱めたい人の環境配慮（任意） */
@media (prefers-reduced-motion: reduce){
  .openbtn span{ transition: none; }
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: #243263;              /* ← ブランドカラー濃紺でくっきり */
  text-shadow: 0 0 6px rgba(255,255,255,0.8); /* 薄い背景にも映える */
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.recruit-btn {
  text-align: center;
  margin: 2em auto;
}
/* リクルートボタン */
.recruit-banner {
  max-width: 500px;
  background: linear-gradient(90deg, #243263, #2f417d); /* ネイビーグラデ */
  text-align: center;
  margin: 3em auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.recruit-banner a {
  display: block;
  padding: 1em 1em;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.08em;
  border-top: 3px solid #d4af37;  /* ゴールドライン */
  border-bottom: 3px solid #d4af37;
  transition: all 0.3s ease;
}

.recruit-banner a .main-text {
  display: block;
  font-size: 1.6rem;
}

.recruit-banner a .sub-text {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.1em;
  color: #d4af37; /* ゴールドでアクセント */
}

.recruit-banner a:hover {
  background: #d4af37;
  color: #243263;
}

.recruit-banner a:hover .sub-text {
  color: #243263;
}
@media screen and (max-width:550px) {
.recruit-banner {
  max-width: 300px;
}}

  /* PC/タブレット：右上20% */
.hero-text.right {
  position: absolute;
  top: 20%;
  right: 3%;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}

/* 縦書き3列（右→左に並ぶ） */
.typewriter.vertical-lines {
  display: flex;
  flex-direction: row-reverse;
  gap: clamp(12px, 1.8vw, 24px);
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,.35), 0 0 2px rgba(0,0,0,.6);
}

/* 各列 */
.typewriter.vertical-lines .line {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: pre;
  padding-inline-end: .45em;
  position: relative;
}

/* 疑似要素で罫線 */
.typewriter.vertical-lines .line::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  background-color: rgba(255,255,255,.9);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 全行終わったら罫線アニメ */
.typewriter.vertical-lines.line-done .line::after {
  opacity: 1;
  animation: lineGrow 0.8s ease forwards;
}

@keyframes lineGrow {
  from { height: 0; }
  to   { height: 100%; }
}

/* スマホ：右上配置（フォントだけ大きめ） */
@media (max-width: 768px) {
  .hero-text.right {
    top: 15%;   /* スマホ時は少し上寄せ */
    right: 5%;
    transform: none; /* 中央寄せ解除 */
    justify-content: flex-end;
  }

  .typewriter.vertical-lines {
    gap: 12px;
    font-size: clamp(24px, 7vw, 32px); /* ←大きめ */
  }

  .typewriter.vertical-lines .line::after {
    width: 1.5px;
  }
}

/* 汎用：アニメ対象の描画最適化 */
.ani-gpu {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0); /* iOSのちらつき抑制 */
}

/* フェード系の初期状態（左/右/上） */
.fadeRightTrigger,
.fadeLeftTrigger,
.fadeUpTrigger,
.flipLeftTrigger {
  opacity: 0;
  transition: transform .7s ease, opacity .7s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 方向ごとの初期オフセットは transform に寄せる（left/right操作は使わない）*/
.fadeRightTrigger   { transform: translate3d(30px, 0, 0); }
.fadeLeftTrigger    { transform: translate3d(-30px, 0, 0); }
.fadeUpTrigger      { transform: translate3d(0, 30px, 0); }
/* flipLeft は “回転＋透明” ではなく、まず透明→transform で軽く回す程度に */
.flipLeftTrigger    { transform: translate3d(-30px, 0, 0) rotate(-2deg); }

/* 表示時（IOで .is-show を付与してるので既存JSのままOK）*/
.is-show {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* スライド内の画像も再描画を抑える */
.fadeRightTrigger img,
.fadeLeftTrigger img,
.fadeUpTrigger img,
.flipLeftTrigger img,
.message-slider img {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ペイント領域を閉じて再描画の波及を防ぐ（対応ブラウザで効く）*/
.fadeRightTrigger,
.fadeLeftTrigger,
.fadeUpTrigger,
.flipLeftTrigger,
.message-slider {
  contain: layout style paint;
}

/* iOSでの“点滅”をさらに抑える（テキスト影が重いとき）*/
.hero-text *,
.tategaki *,
.tategaki_2 * {
  -webkit-font-smoothing: antialiased;
}

/* ユーザー設定を尊重：動きを軽く */
@media (prefers-reduced-motion: reduce) {
  .fadeRightTrigger,
  .fadeLeftTrigger,
  .fadeUpTrigger,
  .flipLeftTrigger,
  .is-show {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* スクロールは瞬間ジャンプ。見切れは段差吸収で解決（Slickと非干渉） */
html { scroll-behavior: auto; }
:target { scroll-margin-top: 88px; } /* ヘッダーの実高さに合わせて調整 */

/* ボディのスクロールロックは overflow で行う（position:fixed は使わない） */
body.drawer-locked { overflow: hidden; }

/* inert の保険（古めのブラウザ対策） */
[inert] { pointer-events: none; }



/* 画面遷移の演出は見た目だけにして、タッチを邪魔しない */
.splashbg { pointer-events: none; }
body.appear .splashbg { pointer-events: none; }
