body {
    background-color: #382B29;
    padding-bottom: 125px;
}
.mw980 {
    max-width: 980px;
    margin: 0 auto;
}
.mw1190 {
    max-width: 1190px;
    margin: 0 auto;
}
main {
    position: relative;
}
/* 固定フレーム */
.frame {
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 500; /* 紙吹雪より下 */
}
.frame-top { top: 0; }
.frame-bot { bottom: 0; }
.rope01 {
    position: absolute;
    width: 75%;
    top: 0;
    right: 0;
    z-index: -1;
}
.mb80 {
    margin-bottom: 80px;
}

/*===========================
スクロールエフェクト
============================*/

.fadein {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 0.6s ease;
    position: relative; /* 追加 */
    z-index: 0;         /* 擬似要素の下にしたい場合は擬似要素の z-index より小さめに */
}

.fadein.show {
    opacity: 1;
    transform: translateY(0);
    z-index: -10;
}


/*===== FV-section ===============================*/
.fv {
    padding-top: 5.7%;
    position: relative;
}


/*===== sec-2 ===============================*/
.img01-sec2 {
    width: 55%;
    margin-bottom: 200px;
    padding: 20px;
    position: relative;
}
.img01-sec2::after {
    content: "";
    background-image: url(../img/gradient.png);
    width: 250px;
    height: 250px;
    position: absolute;
    top: -35px;
    right: 90px;
    background-size: cover;
    z-index: -1;
}
.img02-sec2 {
    width: 50%;
    margin: 0 auto;
    position: relative;
}
.img02-sec2::after {
    content: "";
    background-image: url(../img/gradient.png);
    width: 450px;
    height: 450px;
    position: absolute;
    bottom: -60px;
    right: 50px;
    background-size: cover;
    z-index: -1;
}
.sec-2 {
    position: relative;
}
.fusen {
    position: absolute;
    width: 30%;
    top: -200px;
    right: 13%;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

.fusen.visible {
    opacity: 1;
    transform: translateY(0);
}

/*===== sec-3 ===============================*/
.flex-box__sec3 {
    display: flex;
    gap: 56px;
}
.flex-text__sec3 {
    width: 100%;
    position: relative;
}
.flex-text__sec3::after {
    content: "";
    background-image: url(../img/gradient.png);
    width: 450px;
    height: 450px;
    position: absolute;
    bottom: 0;
    right: 50px;
    background-size: cover;
    z-index: -1;
}
.sec-3 .flex-text__sec3 .midasi span,
.sec-3 .flex-text__sec3 .midasi h2,
.sec-3 .flex-text__sec3 .text p {
    color: #C8A064;
}
.sec-3 .flex-text__sec3 .midasi span,
.sec-3 .flex-text__sec3 .midasi h2 {
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "ＭＳ 明朝", serif ;
}
.midasi {
    padding-top: 4px;
    margin-bottom: 24px;
}
.midasi h2 {
    margin-top: 4px;
    font-size: 48px;
    letter-spacing: 0.2em;
}
.en-h {
    letter-spacing: 0.6em;
}
.j-h {
    letter-spacing: 1em;
    font-size: 13px;
}
.text {
    width: 70%;
}
.text p {
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.1em;
    margin-bottom: 38px;
}
.item-img-shadow {
    width: 80%;
    margin: 0 auto;
}
.mb80 {
    margin-bottom: 80px;
}

/*===== footer ===============================*/
footer {
    text-align: center;
    padding-bottom: 125px !important;
}
footer p {
    font-family: "メイリオ", meiryo, "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ＭＳ ゴシック", sans-serif;
    margin-top: 20px;
    color: #D7B478;
    width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}





/*===== gra animation ===============================*/
.gra01 {
    position: absolute;
    width: 50%;
    top: 1%;
    right: 20%;
    margin: 0;
    z-index: -2;
}




/*===== 紙吹雪 animation ===============================*/

.container img {
	width: 100%;
	filter: brightness(0.2);
}

/* 紙吹雪 */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti span {
	position: absolute;
	top: -10%;
	width:1.6vw;
	height: 3.2vw;
	background: linear-gradient(45deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%);
	border-radius: 2px;
}

/* 1/5だけ小さくする */
.confetti span:nth-child(5n+2) {
	width: 1.2vw;
	height: 0.8vw;
}

/* add animation */
.confetti span:nth-child(2n+1) {
	animation: confetti-anim-1 10s 0s linear infinite;
}

.confetti span:nth-child(2n+2) {
	animation: confetti-anim-2 10s 0s linear infinite;
}

/* side position for 15 confetti */
/* 左から3つだけバラバラに */
.confetti span:nth-child(1) { left: 0%;  animation-duration: 5s;  animation-delay: 0s; }
.confetti span:nth-child(2) { left: 7%;  animation-duration: 6s;  animation-delay: 0.3s; }
.confetti span:nth-child(3) { left: 14%; animation-duration: 7s;  animation-delay: 0.5s; }
.confetti span:nth-child(4)  { left: 21%; }
.confetti span:nth-child(5)  { left: 28%; }
.confetti span:nth-child(6)  { left: 35%; }
.confetti span:nth-child(7)  { left: 42%; }
.confetti span:nth-child(8)  { left: 49%; }
.confetti span:nth-child(9)  { left: 56%; }
.confetti span:nth-child(10) { left: 63%; }
.confetti span:nth-child(11) { left: 70%; }
.confetti span:nth-child(12) { left: 77%; }
.confetti span:nth-child(13) { left: 84%; }
.confetti span:nth-child(14) { left: 91%; }
.confetti span:nth-child(15) { left: 96%; }



/* animation-duration */
.confetti span:nth-child(4n+1) {
	animation-duration: 1.7s;
}

.confetti span:nth-child(4n+2) {
	animation-duration: 2.3s;
}

.confetti span:nth-child(4n+3) {
	animation-duration: 3.4s;
}

.confetti span:nth-child(4n+4) {
	animation-duration: 2.8s;
}


/* animation-delay */
.confetti span:nth-child(11n+1) {
	animation-delay: 0s;
}

.confetti span:nth-child(11n+2) {
	animation-delay: 9s;
}

.confetti span:nth-child(11n+3) {
	animation-delay: 2s;
}

.confetti span:nth-child(11n+4) {
	animation-delay: 5s;
}

.confetti span:nth-child(11n+5) {
	animation-delay: 6s;
}

.confetti span:nth-child(11n+6) {
	animation-delay: 7s;
}

.confetti span:nth-child(11n+7) {
	animation-delay: 3s;
}

.confetti span:nth-child(11n+8) {
	animation-delay: 1s;
}

.confetti span:nth-child(11n+9) {
	animation-delay: 2s;
}

.confetti span:nth-child(11n+10) {
	animation-delay: 11s;
}

.confetti span:nth-child(11n+11) {
	animation-delay: 10s;
}

/* animation */

@keyframes confetti-anim-1 {
    0% {
        top: -10%;
        transform: translateX(0) rotateZ(0deg);
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        top: 100%;
        transform: translateX(20vw) rotateZ(360deg);
        opacity: 0;
    }
}

@keyframes confetti-anim-2 {
    0% {
        top: -10%;
        transform: translateX(0) rotateX(0) rotateY(0);
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        top: 100%;
        transform: translateX(-20vw) rotateX(180deg) rotateY(360deg);
        opacity: 0;
    }
}


/* span 1 / 5 / 9 を個別 delay / duration */
.confetti span:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 3s;
}
.confetti span:nth-child(5) {
    animation-delay: 1.5s;
    animation-duration: 7s;
}
.confetti span:nth-child(9) {
    animation-delay: 0.8s;
    animation-duration: 5s;
}




/*===== レスポンシブコーディング ===============================*/

@media screen and (min-width: 1600px) {
    .fv {
        padding-top: 10%;
    }
    .fusen {
        width: 25%;
        top: -200px;
        right: 20%;
    }
}

@media screen and (max-width: 1280px) {
    .img-box__fv {
        width: 90%;
    }
    .fusen {
        top: -120px;
    }
}

@media screen and (max-width: 1024px) {
    .img01-sec2 {
        margin-left: 64px;
        margin-bottom: 120px;
    }
    .sec2-wrap {
        width: 90%;
    }
    .text {
        width: 100%;
    }
    .text img {
        width: 70%;
    }
}

@media screen and (max-width: 960px) {
    .img01-sec2 {
        width: 60%;
        margin-left: 24px;
    }
    .img02-sec2 {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    .rope01 {
        display: none;
    }
    .fusen {
        display: none;
    }
    .img01-sec2 {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        margin-bottom: 180px;
    }
    .img01-sec2::after {
        top: 5px;
        right: 180px;
    }
    .img02-sec2 {
        width: 100%;
    }
    .flex-box__sec3 {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .confetti span {
        width:4vw;
        height: 8vw;
    }
    .confetti span:nth-child(5n+2) {
        width: 2vw;
        height: 1vw;
    }
    .confetti span:nth-child(4n+1) {
        animation-duration: 4s;
    }
    .confetti span:nth-child(4n+2) {
        animation-duration: 4.6s;
    }
    .confetti span:nth-child(4n+3) {
        animation-duration: 5.7s;
    }
    .confetti span:nth-child(4n+4) {
        animation-duration: 5.1s;
    }
    .gra01 {
        width: 100%;
        top: 4%;
        right: 0%;
    }
    .frame-bot {
        display: none;
    }
    footer {
        padding-bottom: 24px !important;
    }
    @keyframes confetti-anim-1 {
        0% {
            top: -10%;
            transform: translateX(0) rotateZ(0deg);
        }
        100% {
            top: 100%;
            transform: translateX(20vw) rotateZ(360deg);
        }
    }
}

@media screen and (max-width: 500px) {
    .item-img-shadow {
        width: 70%;
    }
    .fv {
        padding-top: 20%;
    }
    .img01-sec2 {
        margin-bottom: 120px;
    }
    .img02-sec2::after {
        width: 250px;
        height: 250px;
        bottom: -20px;
        right: 50px;
    }
    .img01-sec2::after {
        top: 5px;
        right: 80px;
    }
}

@media screen and (max-width: 360px) {
    .img01-sec2::after {
        right: 30px;
    }
}

