
/* =========================================
   右から左へ、緩やかな斜めで伸びるライン
========================================= */
/* --- 共通：アニメーション前は隠す --- */
.__line-left, .__line-right {
  position: absolute;
  height: 1rem; /* 太さ */
  width: 20rem;
  background-color: #fff; /* 白ライン */
  opacity: 0;
  z-index: 10;
  
}

/* --- 左から右へ伸びるライン (__line-left) --- */
.__line-left {
  left: 5rem;
  transform-origin: left center;  
  transform: rotate(12deg) scaleX(0); /* 最初は幅0 */
}

.is-animated.__line-left {
  opacity: 1;
  animation: lineExtendLeft 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes lineExtendLeft {
  0% {  transform: rotate(12deg) scaleX(0); }
  100% {transform: rotate(12deg) scaleX(1); }
}

/* --- 右から左へ伸びるライン (__line-right) --- */
.__line-right {
  right: 5rem;
  --r: -10deg;
  transform-origin: right center;
  /* transform: rotate(-10deg) scaleX(0); 最初は幅0 */
}

.is-animated.__line-right {
  opacity: 1;
  animation: lineExtendRight 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes lineExtendRight {
  /*
  0% {  transform: rotate(-10deg) scaleX(0); }
  100% { transform: rotate(-10deg) scaleX(1); }*/
  0% { transform: rotate(var(--r)) scaleX(0); }
    100% { transform: rotate(var(--r)) scaleX(1); }
}


/* --- 画像の出現アニメーションも連動させる場合 --- */
.is-animated.__bg_img.__cover {
  opacity: 1;
}


/* --- 色のバリエーション --- */
.--darkblue { background-color: #0B2E74 !important; }
.--blue { background-color: #0066B9 !important; }
.--white  { background-color: #fff !important; }

/* --- 角度のバリエーション --- */
/* 右から出るライン用 */
.--angle-flat-right {   transform: rotate(-25deg)  scaleX(0); } 
.--angle-steep-right {   transform: rotate(-12deg) scaleX(0) ; } 

/* 左から出るライン用 */
.--angle-flat-left {   transform: rotate(12deg)  scaleX(0); } 
.--angle-steep-left { transform: rotate(10deg) scaleX(0); }

/* アニメーション発火時の角度も上書きする必要があるため、下記も用意 */
.is-animated.--angle-flat-left  { transform: rotate(12deg)  scaleX(1) !important; }
.is-animated.--angle-steep-left { transform: rotate(-12deg) scaleX(1) !important; }
/* 左から右に伸びるラインの場合 */




/**======================
btn arrow
====================**/

.arrow_right {
  position: relative;
  display: inline-block;
  border-bottom: 1px dashed #fff;
  line-height: 2;
}
.arrow_right .arrow {
  overflow: hidden;
  position: absolute;
  top: 7px;
  right: 0;
  bottom: 7px;
  width: 2.3rem;
  height :2.3rem;
  margin: auto 0;
  line-height: 1;
  border-radius: 5px;
  border: 1px solid #fff;
}
.arrow_a {
  padding-right: 5.5rem;
}
@media screen  and (max-width:991px) {
  .arrow_a {
    padding-right: 3.5rem;
  }
}
.arrow:before,
.arrow:after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
background-position: center;
background-repeat: no-repeat;
background-size: 1rem;
animation-fill-mode: forwards;
animation-duration: 0.3s;
}
.arrow:before {
  background-image: url("../img/arrow_wh.png");
}
.arrow:after {
  background-image: url("../img/arrow_bu.png");
  background-color: #fff;
}
.arrow {
  margin-bottom: 15px !important;
}
.arrow_bu {
  border: 1px solid #092354 !important;
  margin-bottom: 5px !important;
}
.arrow_bu:before {
  background-image: url("../img/arrow_bu.png");
  background-color: #fff;
}
.arrow_bu:after {
  background-image: url("../img/arrow_wh.png");
  background-color: #092354;
}
.arrow_sky {
  border: 1px solid #fff !important;
  margin-bottom: 5px !important;
}
.arrow_sky::before {
  background-image: url("../img/arrow_bu.png");
  background-color: #fff;
}
.arrow_sky:after {
  background-image: url("../img/arrow_wh.png");
  background-color: #0066B9;
}
.arrow_wh{
  border: 1px solid #092354 !important;
  margin-bottom: 5px !important;
}
.arrow_wh::before {
  background-image: url("../img/arrow_wh.png");
  background-color: #092354;
}
.arrow_wh:after {
  background-image: url("../img/arrow_bu.png");
  background-color: #fff;
}
.arrow:after {
transform: translateX(-100%);
}
.arrow_right:hover .arrow:before {
animation-name: transformRightLeft; /* 修正: hover時のアニメーションを指定 */
animation-delay: 0s;
}
.arrow_right:hover .arrow:after {
animation-name: transformLeftRight; /* 修正: hover時のアニメーションを指定 */
animation-delay: 0.2s;
}

@keyframes transformLeftRight {
0% {
  transform: translateX(-100%);
}
100% {
  transform: translateX(0);
}
}
@keyframes transformRightLeft {
0% {
  transform: translateX(0);
}
100% {
  transform: translateX(100%);
}
}
@media screen and (max-width:1280px) {
  .arrow_right .arrow {
    overflow: hidden;
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 2px;
    width: 2.5rem;
    height :2.5rem;
    margin: auto 0;
    line-height: 1;
    border-radius: 5px;
    border: 1px solid #fff;
  }
  .arrow:before,
  .arrow:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.8rem;
    animation-fill-mode: forwards;
    animation-duration: 0.3s;
  }
  .arrow {
    margin-bottom: 10px !important;
  }
}


@media screen and (max-width:991px) {
  .arrow_right .arrow {
    overflow: hidden;
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 2px;
    width: 2.3rem;
    height :2.3rem;
    margin: auto 0;
    line-height: 1;
    border-radius: 5px;
    border: 1px solid #fff;
  }
  .arrow:before,
  .arrow:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.8rem;
    animation-fill-mode: forwards;
    animation-duration: 0.3s;
  }
  .arrow {
    margin-bottom: 5px !important;
  }
}


@media screen and (max-width:540px) {
  .arrow_right .arrow {
    overflow: hidden;
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 10px;
    width: 2rem;
    height :2rem;
    margin: auto 0;
    line-height: 1;
    border-radius: 5px;
    border: 1px solid #fff;
  }
  .arrow {
    margin-bottom: 0px !important;
  }
}











.mask_wrap{
  display: table;
  overflow: hidden;
}
.mask-wrap .mask{
  display: table;
  position: relative;
  margin-bottom: .25em;
  left: -100%;
  overflow: hidden;
}
.mask-wrap .mask-bg{
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #eaeaea;
}

.image-wrapper {
  overflow: hidden;
 /* height: 400px; /* 任意の高さに合わせて調整 */
}

.slide-in-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* 初期状態：クリップして非表示 */
  clip-path: inset(100% 0 0 0); 
  transition: clip-path 0.5s ease-out;
}




/**===========================
 gradation btn animation
 ==========================**/
.grade_link {
  display: inline-block;
}
.grade_link a {
  display: inline-block;
  transition: transform 1s ease-out;
  color: #fff;
  padding: 0.7rem 0rem;
}

.grade_blue a {
  /*width:20rem;*/
  background-image: linear-gradient(90deg, rgba(23, 67, 152, 1) 0%, rgba(23, 67, 152, 0.6) 50%, rgba(23, 67, 152, 1));
}
.grade_pink a {
  background: linear-gradient(0.25turn,#154499, #DB071B);
}
.grade_red a {
  background-image: linear-gradient(90deg, rgba(219, 7, 27, 1) 0%, rgba(219, 7, 27, 0.6) 50%, rgba(219, 7, 27, 1));
}


.grade_link a span{
  padding: 0.5rem 5rem;
  /**border-right: 1px solid #fff;**/
}

.grade_link a span.btn_text {
  position: relative;
}
.grade_link a span.btn_text:after {
  position: absolute;
  content: "";
  width: 1px;
  height: 90%;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}


.grade_link a img.arrow_img {
	width: 1rem;
	margin: 0 2rem;
  vertical-align: sub;
}

.grade_link a:hover {
  transition:0.5s;
  box-shadow: 0px 3px 6px #adadad;
}
.grade_blue a:hover {
  background-color: #174398;
}
.grade_red a:hover {
  background-color: #cb071a;
}
.grade_link a:hover img.arrow_img {
  transform: rotate(45deg);
  transition-duration: 0.3s;
}
.grade_link a:not(:hover) img.arrow_img{
  transition-duration: 0.5s;
}

@media screen and (max-width:1280px) {
  .grade_link a img.arrow_img {
    width: 1rem;
    margin: 0 1.3rem;
    vertical-align: sub;
  }
}
@media screen and (max-width:991px) {
  .grade_link a img.arrow_img {
    width: 1rem;
    margin: 0 2rem;
    vertical-align: sub;
  }
}
/**===========================
text animasion
 ==========================**/
.slide-in {
	overflow: hidden;
    display: inline-block;
}

.slide-in_inner {
	display: inline-block;
  position: relative;
  color: #174398; /* 最初は赤 */
  /*line-height: 1.3;*/
}
.leftAnime{
    opacity: 0;/
}
.slideAnimeLeftRight {
  padding-bottom: 0.7rem;
	animation-name:slideTextX100;
	animation-duration:0.5s;
	animation-fill-mode:forwards;
    opacity: 0;
    padding-bottom: 0;
    /*line-height: 1.3;*/
}
@keyframes slideTextX100 {
  from {
	  transform: translateX(-100%);
    opacity: 0;
  }

  to {
	transform: translateX(0);
    opacity: 1;
  }
}
.slideAnimeRightLeft {
	animation-name:slideTextX-100;
	animation-duration:0.5s;
	animation-fill-mode:forwards;
    opacity: 0;
}

@keyframes slideTextX-100 {
  from {
	transform: translateX(100%);
    opacity: 0;
  }
  to {
	transform: translateX(0);
    opacity: 1;
  }
}


/* 黒文字マスク */
.slide-in_inner::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #1f1b1b;
  white-space: nowrap;
  width: 100%;
  height: 100%;
  line-height: inherit;
  /* 左から色が広がるためのマスク */
  clip-path: inset(0 100% 0 0);
}

/* スライド完了後に色マスク開始 */
.slideAnimeLeftRight .slide-in_inner::after {
  animation: colorFill 0.6s ease forwards;
  animation-delay: 0.5s; /* ← スライド時間と合わせる */
}
@keyframes colorFill {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media screen and (max-width:991px) {
  .slideAnimeRightLeft {
    animation-name:slideTextX-100;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
      opacity: 0;
      font-size: 1.5rem;
      line-height: 2;
  }
}
@media screen and (max-width:540px) {
  .slideAnimeLeftRight {
    padding-bottom: 0rem;
    animation-name:slideTextX100;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
      opacity: 0;
  }
  .slideAnimeRightLeft {
    animation-name:slideTextX-100;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
      opacity: 0;
      font-size: 1.2rem;
      line-height: 2;
  }
}
/**===========================
image animation
 ==========================**/

.image-wrapper {
  overflow: hidden;
  height: fit-content;
    
}
.image-wrapper-bg {
  overflow: hidden;
  height: fit-content;
}
.slide-in-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s ease-out;
}


.image-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0;
}



/* 画像は常にフル表示 */
.slide-cover {
  display: block;
  width: 100%;
  height: auto;
}

/* 上にかぶせる色レイヤー */
.image-wrapper-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0.25turn, #DB071B, #154499);
  transform: translateX(0);
  transition: transform 0.5s ease-out;
  z-index: 2;
  transition-delay: 0.2s;

}

/* 発火後：右へ消える */
.image-wrapper-bg.is-show::before {
  transform: translateX(101%);
}

@media screen and (max-width:540px) {
  .image-wrapper-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0.25turn, #DB071B, #154499);
    transform: translateX(0);
    transition: transform 0.5s ease-out;
    z-index: 2;
    transition-delay: 0.2s;
    border: 1px solid #fff;
  }
}




/* スライドが動くラッパーに対して、等速運動（linear）を指定 */
.slide_zone .swiper-wrapper {
  transition-timing-function: linear !important;
}

/**===========================
m-story fadein right
==========================**/
/* 親要素（wrapper）は横並びにするだけで固定 */
#m-story .wrapper {
  flex-wrap: nowrap; /* 折り返さない */
  overflow: hidden; 
  padding: 50px 0;
}

/* 各セクションの初期状態（右側に大きく外れて、透明） */
#m-story .section.scroll_right {
  opacity: 0;
  transform: translateX(350px); /* 右から出てくる距離 */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 1.2s ease;
  will-change: transform, opacity;
}

/* 画面に入った時（is-visibleクラスがついた時） */
#m-story .section.scroll_right.is-visible {
  opacity: 1;
  transform: translateX(0);
  overflow: hidden;
}

/* 【重要】GA社風の時間差：各セクションが順番に動くようにする */
#m-story .section01.is-visible { transition-delay: 0.1s; }
#m-story .section02.is-visible { transition-delay: 0.3s; }
#m-story .section03.is-visible { transition-delay: 0.5s; }


@media screen and (max-width:991px) {
  #m-story .wrapper {
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 0;
    margin-top: 3.5rem;
}
  #m-story .section.scroll_right {
    opacity: 0;
    transform: translateX(150px); /* 右から出てくる距離 */
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 1.2s ease;
    will-change: transform, opacity;
  }
  
}










/**===========================
hover roll
==========================**/
.roll_btn {
    position: relative;
    display: inline-block;
    width:100%;
    text-align: center;
    outline: none;
}
.roll_btn span {
    display: block;
    position: absolute;
    right: 1rem;
    width: 100%;
    transform-style: preserve-3d;
    transition: 0.3s;
}
.rotateback span:nth-child(1) {
    transform: rotateX(0deg);
    transform-origin: 0 50%  -15px;
}
.rotateback:hover span:nth-child(1) {
    transform: rotateX(90deg);
}
.rotateback span:nth-child(2) {
    transform: rotateX(-90deg);
    transform-origin: 0 50%  -15px;
    bottom: initial;
}
.rotateback:hover span:nth-child(2) {
    transform: rotateX(0deg);
}
/*
.rotateback:hover::after {
  animation: arrow .1s;
}
@keyframes arrow {
  50% {
    top: 10px;
  }
  100% {
    bottom: 13px;
  }
}
*/





/**===================
gradetion btn hover
===================**/
.grade_btn {
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, #0160E2, #004198);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
  padding: 1.5rem 3.5rem;
  overflow: hidden; /* 擬似要素のはみ出し防止 */
  cursor: pointer;
  font-weight: bold;
}
.grade_btn:hover {
  color: #fff;
}
/* ホバー時に上に重ねる「濃い色」の層 */
.grade_btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* ここに「暗くなった後の色」を指定（rgbaで黒を重ねるのが楽です） */
  background: rgba(0, 0, 0, 0.4); 
  opacity: 0; /* 最初は透明 */
  transition: 0.5s; /* ここでアニメーション時間を指定 */
  z-index: -1; /* 文字より後ろ、背景より前に配置 */
}

.grade_btn:hover::after {
  opacity: 1; /* ホバーで浮かび上がらせる */
}

@media screen and (max-width:1280px) {
  .grade_btn {
    font-size: 1rem;
  }
}
@media screen and (max-width:540px) {
  .grade_btn {
    font-size: 1.2rem;
  }
}






/**==============
img brn hover
===============**/

a.link_bnr {
  transition: 0.5s;
}
a.link_bnr:hover {
  transition: 0.5s;
}
a.link_bnr:hover img {
  transition: 0.5s;
  box-shadow: 0px 3px 6px #d7d7d7;
}




/**==============
title_animaion
===============**/
.title_slideup {
    overflow: hidden;
}
.title_slideup span.slideup {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 2s cubic-bezier(.19, 1, .22, 1);
  will-change: transform;
}
.title_slideup.is-show span.slideup {
  transform: translateY(0);
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}





/**==========================
background color text animation
==========================**/

.text_slide {
  overflow: hidden;
  position: relative;
  display: inline-block;
  /*padding-right: 2rem;*/
}

.text_slide.is-active {
  --skewX: 0deg;
  --cover-x: 101%;
  --x: 0;
}

.text_slide::before,
.text_slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50vh;
  transform: translateX(var(--cover-x, -101%));
  transition: transform 0.6s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.text_slide::before {
  background-color: #0160E2;
}

.text_slide::after {
  background-color: #004198;
  transition-delay: 0.16s;
}

.word {
  /*text-transform: uppercase;*/
  transform: translateX(var(--x, -110%)) skewX(var(--skewX, 8deg));
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.3s;
}


.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;
}


@media screen and (max-width:1280px) {
  .text_slide {
    overflow: hidden;
    position: relative;
    display: inline-block;
    padding-right: 0.8rem;
  }
}


/**==========================
btn gradation animation
==========================**/
.btn_grade {
  display: inline-block;
  width: 250px;
  text-align: center;
  text-decoration: none;
  line-height: 60px;
  outline: none;
  color: #FFFFFF;
  background: linear-gradient(to right, #1B85FB, #FB4D8A);
  background-position: 0% 50%;
  background-size: 200% auto;
  transition: all 0.3s ease-out;
}
.btn_grade:hover {
  color: #fff;
  background-position: 100% 51%;
}








/**==========================
image hover animation
==========================**/
.img_hover {
	/*transition: transform 0.6s ease;*/
	overflow: hidden;
	border-radius: 5px;
	box-shadow: 0px 3px 6px #eee;
	transition: 0.5s;
}
.img_hover img {
	transition: transform 0.5s ease; 
    display: block;
}
.img_hover:hover img {
	transform: scale(1.1);
	/*transition: transform 0.6s ease;*/
	transition: 0.5s;
}












/**===========================
accordion
 ==========================**/
/*アコーディオン全体*/
.accordion-area{
  margin:0 auto;
}

/*アコーディオンタイトル*/
 .title {
  position: relative;/*+マークの位置基準とするためrelative指定*/
  cursor: pointer;
  transition: all .5s ease;
  padding: 0.5rem 0;
  /*padding-top: 1rem;
  padding-bottom: 1rem;*/
}

/*アイコンの＋と×*/
 .title::before,
 .title::after{
  position: absolute;
  content:'';
  width: 0.7rem;
  height: 0.1rem;  
}
 .title::before{
  top:48%;
  right: 0.2rem;
  transform: rotate(0deg);
  background: #fff;
}
 .title::after{    
  top:48%;
  right: 0.2rem;
  transform: rotate(90deg);
  background: #fff
}
/*　closeというクラスがついたら形状変化　*/
 .title.close::before{
transform: rotate(0deg);
}

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

/*アコーディオンで現れるエリア*/
.box {
  display: none;/*はじめは非表示*/
  margin-bottom: 2rem;
}

@media screen and (max-width:991px) {
  
 .title::before{
    top:48%;
    right: 1rem;
    transform: rotate(0deg);
    /**background: #38342E;**/
  }
  .title::after{
    top:48%;
    right: 1rem;
    transform: rotate(90deg);
    /*background: #38342E;*/
  }
}
