@charset "utf-8";

body{
    background-image: url(../img/background.png);
    background-position: center;
    background-size: contain;
    background-repeat: repeat;

}


/* =================================
loding
================================== */


#loading {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 1s ease-in-out;
}

/* ローディングテキスト */
.loading-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.8rem;
    color: #000;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 1.18rem;
}

/* テキストがフェードアウトしたとき */
.loading-text.fade-out {
}

/* ローディング全体が上にスライド */
#loading.slide-up {
    transform: translateY(-100%);
}

/* メインコンテンツ（初期は非表示） */
#main-content.hidden {
}

#main-content.show {
}

.down {
    display: block;
    margin-top: 78px;
}




/* =================================
mv
================================== */

.mySwiper {
    width: 100%;
    max-width: 100vw;
    /* 追加 */
    overflow: hidden;
}

.swiper-wrapper {
    align-items: center;
    max-width: 100%;
    /* 追加 */
}



.mv {
    position: relative;
}

.mv--container {
    position: relative;
    transform: translateY(-100px);
    z-index: -100;
}

.mv--shape {
    position: absolute;
    z-index: -10;
}


.shape--left {
    top: 0;
    width: 75vw;
    height: auto;
}

.shape--right {
    top: 472px;
    right: 0;
}

/* Swiper全体の設定 */

/* =================================
mv swiper
================================== */

/* Swiper全体の設定 */
.mySwiper {
    width: 100%;
    padding-top: 0;
    padding-bottom: 36px;
    overflow: hidden;
    min-height: 491px;
}

.mySwiper .swiper-wrapper {
    align-items: center;
    height: 465px;
}

.mySwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    height: 465px;
}

/* デフォルト状態 */
.mySwiper .swiper-slide img {
    width: 260px;
    height: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* 中央（アクティブ）*/
.mySwiper .swiper-slide-active img {
    width: auto !important;
    max-width: 458px !important;
    height: auto !important;
    max-height: 465px !important;
    transform: rotate(0deg) !important;
    z-index: 10 !important;
    object-fit: contain !important;
}

/* 左1つ隣 */
.mySwiper .swiper-slide-prev img {
    width: 291px !important;
    height: auto !important;
    transform: rotate(-5.209deg) translateX(-50px) !important;
    z-index: 5 !important;
    object-fit: contain !important;
}

.mySwiper .custom-prev-prev img {
    width: 291px !important;
    height: auto !important;
    transform: rotate(-5.209deg) translateX(-50px) translateY(42px) !important;
    z-index: 5 !important;
    object-fit: contain !important;
}

/* 右1つ隣 */
.mySwiper .swiper-slide-next img {
    width: 291px !important;
    height: auto !important;
    transform: rotate(6.024deg) translateX(50px) !important;
    z-index: 5 !important;
    object-fit: contain !important;
}

.mySwiper .custom-next-next img {
    width: 291px !important;
    height: auto !important;
    transform: rotate(6.024deg) translateX(50px) translateY(42px) !important;
    z-index: 5 !important;
    object-fit: contain !important;
}

.center {
    text-align: center;
}

.mv p {
    color: #494B4D;
    font-size: 1.6rem;
    line-height: 1.8;
    letter-spacing: 0.32rem;
}

.scroll {
    position: absolute;
    right: 8.5%;
    bottom: 30px;
    width: 30px;
    height: 87px;
    /* 縦線57px + 丸30px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 縦線 */
.scroll::before {
    content: '';
    width: 0.5px;
    height: 57px;
    background-color: #444;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 黒丸 */
.scroll::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #444;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: ballMove 3s linear infinite;
    /* ease-in-outからlinearに変更 */
}

/* 丸が縦線の上を上下に動く */
@keyframes ballMove {

    0%,
    100% {
        top: 0;
    }

    50% {
        top: 49px;
        /* 57px(縦線) - 8px(丸の高さ) = 49px */
    }
}

.scroll {
    position: absolute;
    right: 8.8%;
    bottom: 30px;
    width: 30px;
    height: 87px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 縦線 */
.scroll::before {
    content: '';
    width: 0.5px;
    height: 57px;
    background-color: #444;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 黒丸 */
.scroll::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #444;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: ballMove 2s ease-in-out infinite;
}

.scroll-text {
    position: absolute;
    left: 33px;
    top: 15%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #444;
    display: block;
}

/* 丸が縦線の上を上下に動く */
@keyframes ballMove {
    0% {
        top: 0;
    }

    80% {
        top: 49px;
    }

    80.1% {
        top: 49px;
        /* 一瞬透明に */
    }

    80.2% {
        top: 0;
        /* 上に瞬間移動 */
    }

    85% {
        top: 0;
        /* フェードイン */
    }

    100% {
        top: 0;
    }
}

/* sp 910px */
@media screen and (max-width:910px) {
    .sp__hidden {
        display: none;
    }

    .scroll {
        right: 2.5%;
    }

}






@media screen and (max-width: 1200px) {
    .mySwiper .swiper-slide-active img {
        max-width: 380px !important;
        max-height: 390px !important;
    }

    .mySwiper .swiper-slide-prev img,
    .mySwiper .custom-prev-prev img,
    .mySwiper .swiper-slide-next img,
    .mySwiper .custom-next-next img {
        width: 240px !important;
    }
}

@media screen and (max-width:1023px) {
    .mySwiper .swiper-slide img {
        max-width: 90%;
        height: auto;
        object-fit: contain;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .mySwiper .swiper-slide-active img {
        max-width: 350px !important;
        width: auto !important;
    }

    .mySwiper .swiper-slide img {
        width: auto;
        max-width: 280px;
    }
}

/* 910px以下 */
@media screen and (max-width: 910px) {
    .mySwiper .swiper-slide-active img {
        max-width: 320px !important;
        max-height: 330px !important;
    }

    .mySwiper .swiper-slide-prev img,
    .mySwiper .custom-prev-prev img,
    .mySwiper .swiper-slide-next img,
    .mySwiper .custom-next-next img {
        width: 200px !important;
    }

    .mySwiper {
        min-height: 380px;
    }

    .mySwiper .swiper-wrapper {
        height: 350px;
    }

    .mySwiper .swiper-slide {
        height: 350px;
    }
}

/* 768px以下 */
@media screen and (max-width: 768px) {
    .mySwiper .swiper-slide-active img {
        max-width: 280px !important;
        max-height: 290px !important;
    }

    .mySwiper .swiper-slide-prev img,
    .mySwiper .custom-prev-prev img,
    .mySwiper .swiper-slide-next img,
    .mySwiper .custom-next-next img {
        width: 180px !important;
    }

    .mySwiper {
        min-height: 340px;
    }

    .mySwiper .swiper-wrapper {
        height: 310px;
    }

    .mySwiper .swiper-slide {
        height: 310px;
    }

    .mySwiper .swiper-slide-prev img {
        transform: rotate(-5.209deg) translateX(0) !important;
    }

    .mySwiper .swiper-slide-next img {
        transform: rotate(6.024deg) translateX(0) !important;
    }
}

/* 480px以下
@media screen and (max-width: 480px) {
    .swiper-slide-active img {
        max-width: 240px !important;
        max-height: 250px !important;
    }
    
    .swiper-slide-prev img,
    .custom-prev-prev img,
    .swiper-slide-next img,
    .custom-next-next img {
        width: 150px !important;
    }
    
    .mySwiper {
        min-height: 300px;
    }
    
    .swiper-wrapper {
        height: 270px;
    }
    
    .swiper-slide {
        height: 270px;
    }
} */

/* sp 768px */

@media screen and (max-width:768px) {
    .mySwiper {
        padding: 0!important;
    }

    .mv p {
        font-size: 1.4rem;
        margin: 0 15%;
        line-height: 2;
        letter-spacing: 0.07rem;
        text-align: justify;
    }
}

/* =================================
service
================================== */

.pc__hidden--service{
    display: none;
}

.service {
    margin-top: 180px;
    margin-left: 10%;
    margin-right: 10%;
}

.service__group {
    margin-top: 45px;
}

.service__content {
    display: flex;
    gap: 9%;
    align-items: stretch; 
    position: relative;
}

.service__left-col {
    width: clamp(300px, 30vw, 445px);
    flex-shrink: 0;
    position: sticky; 
    align-self: flex-start; 
}

.service__title {
    position: absolute; 
    top: -125px; 
    left: 0;
    z-index: 10;
}

.service__group--left {
    width: 100%;
    aspect-ratio: 445 / 495;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.service__group--right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 400px;
    margin-bottom: 100px;
}

/* .service {
    margin-top: 180px;
    margin-left: 10%;
    margin-right: 10%; */
    /* position: relative;
    justify-content: center;
    align-items: flex-start; 
}*/


/* .service__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}  */



/* .service__title {
    position: sticky;
    z-index: 10; 
    margin-bottom: 0;
    display: inline-block;
    transition: all 0.1s ease;
    flex-shrink: 0;
}     */


/* .service__group--left {
    position: sticky;
    width: clamp(300px, 30vw, 445px);
    aspect-ratio: 445 / 495;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    flex-shrink: 0;
}

/* 右側のテキストがタイトルの下に来るように */
/* .service__group--right {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 400px;
    flex: 1;
    margin-bottom: 100px;
    position: relative;
    z-index: 1; 
} */ 


/* .service__content {
    display: flex;
    justify-content: space-between;
    gap: 9%;
    align-items: flex-start;
    position: relative;
    margin-top: 45px;
    flex: 1; 
} */


.sub {
    color: #707070;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.07rem;
    margin-top: 10px;
}

.service__group {
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service__group--left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.service__group--left img.active {
    opacity: 1;
    z-index: 1;
}
/* 表示中の画像 */
.service__group--left img.active {
    opacity: 1; 
    z-index: 1; 
}

.service__item {
    margin-top: 163px;
}

.flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.flex img {
    width: 84px;
    height: auto;
    object-fit: contain;
    vertical-align: top;

}

.service--txt h3 {
    font-size: 2.6rem;
    font-weight: 500;
    letter-spacing: 0.036rem;
}

.service--txt p {
    margin-top: 22px;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.06rem;
}

.btn {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}

.btn__img {
    width: 39px;
    height: 39px;
}

.btn__img img {
    width: 100%;
}

.btn__price p {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.09rem;
    transform: translateY(-10px);

}

@media screen and (max-width:1024px) {
    .service {
        margin-top: 80px;
        margin-left: 5.3%;
        margin-right: 5.3%;
        position: relative;
        justify-content: center;
        align-items: flex-start;
        padding-top: 0;
    }

    .sp__hidden--service {
        display: none;
    }

    .pc__hidden--service {
        display: block;
    }

    .service__group {
        margin-top: 0;
    }

    .service__left-col {
        width: 100%; 
    }

    .service__content {
        display: block; /* 縦並びに */
    }

    .service__title {
        position: static !important;
        top: auto !important;
        margin-bottom: 0;
    }

    .service__item {
        margin-top: 0;
    }

    .service__item:first-of-type {
        margin-top: 60px;
    }

    .flex {
        margin-top: 22px;
    }

    .flex img {
        width: 69px;
    }

    .service--txt h3 {
        font-size: 2.2rem;
        letter-spacing: 0.09rem;
    }

    .service--txt p {
        margin-top: 15px;
        font-size: 1.4rem;
        line-height: 2;
        letter-spacing: 0.07rem;
    }

    .btn__price p {
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 0.09rem;
        transform: translateY(-10px);
    }

    .btn {
        margin-top: 30px;
    }

    .service__group--right {
        width: 100%; /* 全幅に */
        gap: 80px;
        margin-bottom: 0;
    }

    .sp__img {
        display: flex;
        justify-content: center;
    }


    .sp__img img {
        max-width: 100%;
        width: 335px;
        height: 300px;
        object-fit: cover;
    }

    .service__group--right {
        margin-bottom: 0;
    }

}

/* sp 768px */





/* =================================
works
================================== */

.works {
    margin-top: 200px;
    padding: 0 2%;
    width: 100%;
    box-sizing: border-box;
}

.title__small {
    font-size: 3.2rem;
}

.works__group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    height: 367px;
    margin-top: 36px;
}

.works__item {
    position: relative;
    flex: 1;
    /* 均等幅で並べる */
    overflow: hidden;
    /* トリミング用 */

}

.works__btn p {
    font-size: 1.8rem;
    /* transform: translateY(8px); */

}

.works__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像を枠いっぱいにトリミング */
    display: block;
    /* 余白をなくす */
}

.works__item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 71px;
    /* 高さ指定 */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            /* 一番下：黒寄りで濃く */
            rgba(90, 90, 90, 0.79) 60%,
            /* 中間 */
            rgba(255, 255, 255, 0.6) 100%
            /* 上部：白寄りで薄く */
        );
    mix-blend-mode: multiply;
    /* “乗算”モードで画像と馴染ませる */
    pointer-events: none;
    /* クリックなどを透過 */
}

.works__item p {
    position: absolute;
    bottom: 14px;
    left: 22px;
    z-index: 2;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.07rem;
}

/* Worksセクション - 時間差アニメーション */
.works__item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.works__item.show {
    opacity: 1;
    transform: translateY(0);
}


/* sp 768px */

@media screen and (max-width:768px) {
    .works {
        margin-top: 120px;
        padding-left: 5.3%;
        padding-right: 0;
    }
    
    
    
    .works__group {
        display: block;
        margin-top: 0;
        gap:0
    }
    
    .works__item {
        margin-top: 30px;
        width: 88%;
        height: 367px;
        flex: none !important;
    }

    .works__item:first-of-type {
        margin-top: 36px;
    }

    .works__group {
        display: flex;
        flex-direction: column;
        height: auto;
        align-items: end;
    }

    .works__btn{
        padding-right: 5.3%;

    }

    .works__btn p {
        font-size: 1.8rem;
        transform: translateY(-1px);

    }




}

/* =================================
about me
================================== */

.aboutMe {
    margin: 200px 2% 0;
    padding-left: 100px;
}

.aboutMe__img {
    position: relative;
    display: inline-block;
    overflow: hidden;
    position: relative;
    width: clamp(280px, 48.5vw, 698px);
    aspect-ratio: 698 / 438;
    margin-top: 36px;
    flex-shrink: 0;
}

.aboutMe__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img__base {
    position: relative;
    z-index: 1;
}

.img__hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0; /* 初期は透明 */
    pointer-events: none;
    transition: opacity 0.5s ease-in-out; 
}

.aboutMe__img:hover .img__hover {
    opacity: 1; /* ホバー時に表示 */
}

.abourMe__group {
    display: flex;
    position: relative;
    align-items: flex-start;
}

.abourMe__text {
    position: relative;
    z-index: 2;
    background-color: #F8F8F8;
    margin-left: -97px;
    width: 677px;
    max-width: calc(100% + 97px);
    margin-top: 284px;
    box-sizing: border-box;
    padding: clamp(40px, 7.6vw, 110px) clamp(40px, 8vw, 116px);
}

.abourMe__text h3 {
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.19rem;
}

.abourMe__text p {
    margin-top: 36px;
    font-size: 1.6rem;
    line-height: 2;
    letter-spacing: 0.06rem;
}

.btn__works {
    justify-content: flex-start;
    margin-top: 36px;
}

.aboutMe__btn p {
    margin-top: 0;
    transform: translateY(-1px);

}

/* レスポンシブ対応 （後ほど書き直す）*/

@media (max-width: 1200px) {
    .abourMe__text {
        width: 100%;
        max-width: 677px;
        /* padding: 110px 17.13%; */
        /* 小さい画面では%で調整 */
    }
}

@media (max-width: 768px) {
    .aboutMe {
        margin: 120px 5.3% 0;
        padding: 0;
    }


    .abourMe__text {
        padding: 60px 8%;
        margin-left: 0;
        margin-top: 40px;
    }

    .abourMe__group {
        flex-direction: column;
    }

    .aboutMe__img {
        display: flex;
        width: clamp(240px, 20vw, 480px);
        aspect-ratio: 240 / 220;
        justify-content: center;
        align-items: center;
        margin: 42px auto 0;
    }

    .abourMe__text {
        margin-top: 64px;
        padding: 0;
        background-color: transparent;
    }

    .abourMe__text h3 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 24px;
    }

    .abourMe__text p {
        font-size: 1.6rem;
        line-height: 2;
        letter-spacing: 0.07rem;
    }

    .flex-end p {
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 0.09rem;

    }

    .btn__works {
        justify-content: end;
    }

    .aboutMe__btn{
        margin-top: 0;
    }


}

@media screen and (max-width: 320px) {
    .aboutMe__img {
        width: 80vw !important;
        max-width: none !important;
    }
}

/* =================================
sns
================================== */
.middle {
    margin: 200px 8.9% 0;
}

.sns .link {
    margin-top: 116px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    max-width: 253px;
    margin-left: auto;
}

.kari {
    position: relative;
    background-color: #707070;
    width: 100%;
    height: 500px;
    margin-top: 53px;
}

.kari::after {
    content: 'ここにプラグインが入ります';
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    font-size: 2.2rem;
    transform: translateX(-50%);
}

.link__item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 29px;
    border-bottom: 1px solid #ddd;

}

.link__item img {
    width: 15.75px;
    height: 15.75px;
    margin-right: 10px;
}

.link__item p {
    text-align: center;
    font-family: Lora;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.08rem;
}

.arrow {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 1px;
    margin-left: auto;
    border-radius: 9999px;
    background-color: #494b4d;
    transform: rotate(-45deg);
    align-self: flex-end;
}

.arrow::before,
.arrow::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.5px);
    right: 0;
    width: 5px;
    height: 1px;
    border-radius: 9999px;
    background-color: #494b4d;
    transform-origin: calc(100% - 0.5px) 50%;
}

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

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

.link__item:last-of-type {
    margin-top: 34px;
}

.instagram-feed {
    margin-top: 43px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


@media screen and (max-width:768px){
    .middle {
    margin: 120px 5.3% 0 !important;
    }

    .sns .link {
    margin-top: 71px;
    }
}
