@charset "utf-8";

/* ==========================
loading
========================== */
/* スピンのアニメーション */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* ローディング画面の背景色 */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* フェードアウト用 */
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
@keyframes bounceAndDisappear {
    0%, 20%, 50%, 80% {
        transform: translateY(0); /* 元の位置 */
        opacity: 1; /* 表示されたまま */
    }
    40% {
        transform: translateY(-30px); /* 上に跳ねる */
    }
    60% {
        transform: translateY(-15px); /* 少し戻る */
    }
    100% {
        transform: translate(-100%, 0); /* 左へ移動して消える */
        opacity: 0; /* フェードアウト */
    }
}

.spinner {
    width: 100px; /* 必要に応じて調整 */
    height: auto;
    animation: bounceAndDisappear 3s ease-in-out forwards; /* アニメーション設定 */
    display: block;
    margin: 0 auto;
}

/* ==========================
main visual
========================== */
/* スライドショー全体 */
.wrapper {
    position: relative;
    width: 100%; /* 親要素の幅に応じて広がる */
    max-width: 800px; /* 最大幅を設定 */
    aspect-ratio: 375 / 470; /* アスペクト比を指定（幅:高さ） */
    overflow: hidden; /* コンテナからはみ出した部分を隠す */
    margin: auto; /* センターに配置 */
}
@media screen and (min-width:769px) {
    .wrapper {
        width: 100%;
        max-width: 2880px;
        aspect-ratio: 16 / 8;
        height: auto;
    }
}

/* スライドの画像 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 非表示 */
    transform: scale(1); /* デフォルトサイズ */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* フェードとズームのトランジション */
    z-index: 0; /* 非アクティブスライドは下に配置 */
}

.slide.active {
    opacity: 1; /* 表示 */
    transform: scale(1.05); /* ズームイン効果 */
    z-index: 1; /* アクティブスライドは上に配置 */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像のアスペクト比を維持 */
}

/* 最初のスライドを表示 */
.slide.active {
    left: 0; /* 表示中のスライドを中央に配置 */
}

.slide.SP-slider-item.slider-item01 {
    background-image: url(../images/slide01-SPmain.png);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

.slide.SP-slider-item.slider-item02 {
    background-image: url(../images/slide02-SPmain.png);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
}

.slide.SP-slider-item.slider-item03 {
    background-image: url(../images/slide03-SPmain.png);
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat; 
}

.slide.SP-slider-item.slider-item04 {
    background-image: url(../images/slide04-SPmain.png);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

.slide.SP-slider-item.slider-item05 {
    background-image: url(../images/slide05-SPmain.png);
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat; 
}

@media screen and (min-width:769px){
    .slide.SP-slider-item.slider-item01,
    .slide.SP-slider-item.slider-item02,
    .slide.SP-slider-item.slider-item03,
    .slide.SP-slider-item.slider-item04,
    .slide.SP-slider-item.slider-item05,
    .slide.SP-slider-item.slider-item06 {
        display: none;
    }

    .slide.PC-slider-item.slider-item01 {
        background-image: url(../images/slide01-PCmain.png);
        background-size: cover;
        background-position: center; 
        background-repeat: no-repeat;
    }
    .slide.PC-slider-item.slider-item02 {
        background-image: url(../images/slide02-PCmain.jpg);
        background-size: cover;
        background-position: center; 
        background-repeat: no-repeat;
    }
    .slide.PC-slider-item.slider-item03 {
        background-image: url(../images/slide03-PCmain.png);
        background-size: cover;
        background-position: center; 
        background-repeat: no-repeat;
    }
    .slide.PC-slider-item.slider-item04 {
        background-image: url(../images/slide04-PCmain.png);
        background-size: cover;
        background-position: center; 
        background-repeat: no-repeat;
    }
    .slide.PC-slider-item.slider-item05 {
        background-image: url(../images/slide05-PCmain.png);
        background-size: cover;
        background-position: center; 
        background-repeat: no-repeat;
    }
}
/* slider ここまで */

/* ==========================
main header
========================== */
.main__topic {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 10px 0 25px;
    padding: 0 var(--contentPadding);
}
@media screen and (min-width:769px) {
    .main__topic {
        font-size: 3.5rem;
        margin: 25px 0 25px 45%;
    }
}

.article__txt {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6; 
    padding: 0 var(--contentPadding);
    margin-bottom: 20px;
}
@media screen and (min-width:769px) {
    .article__txt {
        font-size: 2.4rem;
        margin-left: 45%;
        line-height: 2.0;
    }
}

/* テキストアニメーション */
.article__txt {
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(20px); /* 下から */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* トランジション設定 */
}

.article__txt.active {
    opacity: 1; /* 表示状態 */
    transform: translateY(0); /* 元の位置に */
}

/* ==========================
works
========================== */
.section--works {
    padding: 90px var(--contentPadding) 10px;
    width: 100%
}
@media screen and (min-width:769px){
    .section--works {
        margin: 100px auto 20px;
        scroll-margin-top: 100px; 
    }
}

.topic--works {
    text-align: right;
}

.works__thumPC {
    display: none;
}
@media screen and (min-width:769px) {
    .works__thumPC {
        display: block;
    }
    .works__thumSP {
        display: none;
    }
    .works {
        display: flex;
        flex-wrap: wrap;
        gap: 48px;
        justify-content: space-between;
    }
    .works__item {
        flex: 0 0 calc(50% - 24px); /* 各アイテムを2列に分割（間隔を考慮） */
        box-sizing: border-box;
    }
}

.works__item {
    margin-bottom: 50px;
}

.works__item:first-of-type {
    margin-top: 30px;
}
@media screen and (min-width:769px) {
    .works__item.works__item:first-of-type {
        margin-top: 0;
    }
}

.works__topic {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 5px;
}

.works__tag {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    display: inline-block;
    padding: 2px 8px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--flame-gray, #C0C0C0);
}

.works__item {
    margin-bottom: 50px;
}

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

.works__topic {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 5px;
}

.works__tag {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    display: inline-block;
    padding: 2px 8px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--flame-gray, #C0C0C0);
}

/* フェードインアニメーション */
.fade-in-SP, .fade-in-PC {
    opacity: 0;
    transform: translateY(20px); /* または translateX(-20px) */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-SP.active, .fade-in-PC.active {
    opacity: 1;
    transform: translateY(0); /* または translateX(0) */
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in:nth-child(1) {
    transition-delay: 0.3s;
}
.fade-in:nth-child(2) {
    transition-delay: 0.6s;
}
.fade-in:nth-child(3) {
    transition-delay: 0.9s;
}
/* フェードインアニメションここまで */

/* ==========================
about
========================== */
.section--about {
    padding: 80px var(--contentPadding);
    width: 100%
}

.aboutImg__PC {
    display: none;
}

.aboutImg__SP {
    margin: 45px 0 15px;
}

.about__name {
    font-size: 2.4rem;
    font-weight: 700;
}

.about__montserrat {
    font-family: Montserrat;
    font-size: 1.8rem;
    font-weight: 500;
}

.about__txt {
    font-size: 1.4rem;
    font-weight: 400;
}
/* pc-about ここから */
@media screen and (min-width:769px){
    .section--about {
        margin: 0 auto;
        padding: 150px var(--contentPadding);
    }
    .aboutImg__SP {
        display: none;
    }
    .aboutImg__PC {
        display: block;
        aspect-ratio: 4 / 3; 
        max-width: 600px;
        height: 300pxauto;
    }
    .about__content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 80px;
        margin-top: 72px;
    }
    .about__name {
        display: inline-block;/* 横並びにする */
        margin-right: 30px; /* 隙間を調整 */
        font-size: 3.2rem;
        font-weight: 700;
    }
    .about__montserrat {
        display: inline-block;/* 横並びにする */
        font-size: 3.2rem;
        font-weight: 400;
    }
    .about__txt {
        font-size: 1.6rem;
        display: block;
        max-width: 600px;
    }
}
/* pc-about ここまで */
