/*
 *.shutter
 * -------------------------------------------------------------------
 */
.shutter {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cce648;
    z-index: 9999;
    animation: byeShutter 2.5s forwards;
    overflow: hidden;
}
.shutter::before, .shutter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
}
.shutter::before {
    background: #f1f6d6;
    width: 0;
    height: 1px;
    animation: shutterOpen1 2.5s forwards;
}
.shutter::after {
    width: 120%;
    height: 0;
    margin-left: -10%;
    background: #fff;
    animation: shutterOpen2 2.5s forwards;
}

@keyframes byeShutter {
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
        z-index: -1;
    }
}
@keyframes shutterOpen1 {
    0% {
        width: 0;
        height: 1px;
    }
    50% {
        width: 100%;
        height: 1px;
    }
    90% {
        width: 100%;
        height: 100%;
    }
    100% {
        width: 100%;
        height: 100%;
    }
}
@keyframes shutterOpen2 {
    60% {
        width: 120%;
        height: 0;
        transform: rotate(5deg);
    }
    90% {
        width: 120%;
        height: 100%;
        transform: rotate(-5deg);
    }
    100% {
        width: 120%;
        height: 100%;
        transform: rotate(-5deg);
    }
}



/*
 *.mainvisual_horizontal
 * -------------------------------------------------------------------
 */
.mainvisual {
	position: relative;
	height: 100vh;
}

body:has(#bm02) .mainvisual::before,
body:has(#bm02) .mainvisual::after {
	content: '';
	position: fixed;
	left: 0;
	display: block;
	width: 100%;
}
body:has(#bm02) .mainvisual::before {
	top: 47.5%;
	height: 200%;
	background: #f1f6d6;
	transform: skewY(-30deg);
	z-index: -1;
}
body:has(#bm02) .mainvisual::after {
	top: 0;
	height: 100%;
	background-image: repeating-linear-gradient(to bottom, transparent 25px, rgba(0, 0, 0, 0.04) 26px,  rgba(0, 0, 0, 0.04) 26px,
      transparent 27px,  transparent 51px,  rgba(0, 0, 0, 0.04) 52px,  rgba(0, 0, 0, 0.04) 52px, transparent 53px,  transparent 77px, 
      rgba(0, 0, 0, 0.04) 78px,  rgba(0, 0, 0, 0.04) 78px, transparent 79px,  transparent 103px,  rgba(0, 0, 0, 0.04) 104px,  rgba(0, 0, 0, 0.04) 104px,
      transparent 105px,  transparent 129px,  rgba(0, 0, 0, 0.04) 130px,  rgba(0, 0, 0, 0.04) 130px),
      repeating-linear-gradient(to right, transparent 25px, rgba(0, 0, 0, 0.04) 26px,  rgba(0, 0, 0, 0.04) 26px, transparent 27px,  transparent 51px, 
      rgba(0, 0, 0, 0.04) 52px,  rgba(0, 0, 0, 0.04) 52px, transparent 53px,  transparent 77px,  rgba(0, 0, 0, 0.04) 78px,  rgba(0, 0, 0, 0.04) 78px,
      transparent 79px,  transparent 103px,  rgba(0, 0, 0, 0.04) 104px,  rgba(0, 0, 0, 0.04) 104px, transparent 105px,  transparent 129px,  rgba(0, 0, 0, 0.04) 130px,  rgba(0, 0, 0, 0.04) 130px);
	z-index: -2;
}

.mainvisual__text {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
	left: 5.5vw;
	font-size: 4vw;
	font-weight: 700;
	color: var(--accent-color);
	letter-spacing: 0.0875rem;
}
body:has(#bm02) .mainvisual__text {
	color: #222222;
}

.mainvisual__en {
	color: #cce648;
	font-size: max(16px, 1.5vw);
    font-weight: bold;
	animation: slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 2s;
	opacity: 0;
}

.mainvisual__text-small {
	font-size: 75%;
}

.mainvisual__text  .text {
	letter-spacing: -0.0875em;
	animation: slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 2.25s;
	opacity: 0;
}

.mainvisual__text  .text.is-active {
  --opacity: 1;
  --scale: 1;
}

.mainvisual__text  .char {
  display: inline-block;
  transform: scale(var(--scale, 0));
  opacity: var(--opacity, 0);
  transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1), transform 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  transition-delay: calc(0.125s * var(--char-index));
}
.mainvisual__text  .char:nth-last-child(-n+3) {
	padding-top: .4em;
	background-position: top left -0.15em;
	background-repeat: repeat-x;
	background-size: 1.3em .3em;
	background-image: radial-gradient(.125em .125em at center center,#cce648,#cce648 100%,transparent);
}

.mainvisual__sub {
	padding-top: 2.5rem;
	color: #222222;
	font-size: 1.35vw;
	font-weight: 500;
	line-height: 2.0;
	animation: slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 2.5s;
	opacity: 0;
}
 
@keyframes slideIn {
  0% {
    transform: translateX(-180px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
  }
  40%,100% {
    opacity: 1;
  }
}

.mainvisual__image{
	position: fixed;
	right: -17.5vw;
	bottom: -9vw;
	z-index: 0;
	display: flex;
	justify-content: flex-end;
    align-items: flex-end;
	width: 100vw;
	overflow: hidden;
}

body:has(.section-wrapper.active) .mainvisual__image{
	z-index: -1;
}

@media (max-width: 991.98px) or (orientation: portrait) or (max-aspect-ratio: 5/4)  {
	/*.mainvisual__image {
		background: orange;
	}*/

	.mainvisual__text {
		top: 17.5vh;
		width: 90%;
		transform: translateY(0);
		font-size: min(10.5vw, 4rem);
	}
	
	.mainvisual__sub {
		font-size: min(3.325vw, 20px);
	}
}

@media (max-aspect-ratio: 16/9)  {
	.mainvisual__image {
		bottom: 0;
		/*background: red;*/
	}
}

@media (max-aspect-ratio: 4/3)  {
	.mainvisual__image {
		bottom: -12.5vw;
		/*background: yellow;*/
	}
}

@media (max-aspect-ratio: 1/1)  {
	.mainvisual__image {
		width: 130vw;
		right: -15vw;
	}
}

@media (max-aspect-ratio: 3/4)  {
	.mainvisual__image {
		justify-content: center;
		right: -25vw;
		bottom: -10vw;
		width: 150vw;
		/*background: lime;*/
	}
}

@media (max-aspect-ratio: 9/16)  {
	.mainvisual__text  {
		top: 15vh;
	}

	.mainvisual__image {
		justify-content: center;
		right: -36.5vw;
		bottom: -10vw;
		width: 180vw;
		/*background: blue;*/
	}
}