@charset "utf-8";

/* 共通設定 */

html{
    font-size: 62.5%; /*1rem=10px*/
}

:root {
    --white: #fff;
    --black: #282828;
    --blue: #1D2088;
    --red: #c30D23;
    --svg-red: brightness(0) saturate(100%) invert(15%) sepia(79%) saturate(4738%) hue-rotate(348deg) brightness(80%) contrast(91%);
    --svg-blue: brightness(0) saturate(100%) invert(13%) sepia(62%) saturate(3303%) hue-rotate(232deg) brightness(94%) contrast(105%);
    --svg-wh:brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(249deg) brightness(103%) contrast(105%);
    /* PC (padding150*2-1440=内包1140)/1440*100=79.2% */
    --contentWidth-pc: 79.2%;
    /* PC (padding150) */
    --contentPadding-pc: 10.4%;
    /* SP (padding20*2-375=内包335)/375*100=89.3% */
    --contentWidth-sp: 89.3%;
    /* SP (padding20) */
    --contentPadding-sp: 5.3%;
}

/* フォント設定 */
body {
    font-family:
        "Noto Sans JP",
        "Fugaz One",
        sans-serif;
        color: var(--black);
        font-size: 1.4rem;
        font-style: normal;
        font-weight: 400;
        line-height: 2;
        overflow-x: hidden;
}


img {
    width: 100%;
}

/*loading*/

body {
    opacity: 0;
    transform: scale(1.05); /* ← ちょっと拡大から始める */
    transition: opacity 1s ease, transform 1s ease;
  }
  
  body.loaded {
    opacity: 1;
    transform: scale(1); /* ← 元サイズに戻す（ズームダウン） */
  }
  

/* navのアンダーバー調整 */
.adjust-underscore {
    vertical-align: 10px; /* スペース */
    display: inline-block;
}

/* セクション余白 */
.section {
    padding:80px var(--contentPadding-sp);
}

/* セクションタイトル */
.section__topic {
    color: var(--white);
    text-shadow: 4px 4px 0px var(--black);
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: var(--black);
    font-family: "Fugaz One";
    font-size: 12.8vw;
    line-height: normal; 
}


/* logo */

.logo {
    width:150px;
    filter: var(--svg-wh);
}

/* ////////////////////////////
    pc 769px～
//////////////////////////// */

@media screen and (min-width:769px) {


    /*共通*/
    body {
        font-size: 2rem;
        font-weight: 400;
    }
    .section {
        padding:120px var(--contentPadding-pc);
    }
    .section__topic {
        -webkit-text-stroke-width: 4px;
        font-size: 9.6rem;
    }

    .spBr {
        display: none;
    } 

    /* logo */
    .logo {
        width:200px;
    }

}



/* ==============================
            header
============================== */

/*SPでは表示なし*/
.header {
    display: none;
}

@media screen and (min-width:769px) {

    .header {
        display: block;
        background-image: url('../images/footer-bg.webp');
        background-size: cover;
        background-position: top;
        position: relative;
        width:100vw;
    }
    
    .header__logo {
        padding: 30px 50px;
    }

}

/* ==============================
            nav
============================== */

.nav {
    position: relative;
    width: 272px;
    /* 余白 */
    padding: 100px 30px 20px;
    /* スタイル */
    border-radius: 20px;
    border: 2px solid #000;
    background-color: var(--blue);
    box-shadow: 4px 4px 0px 0px #000;
    /* フォント関係 */
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--white);
    color: transparent;
    font-family: "Fugaz One";
    font-size: 3.2rem;
    line-height: 0.8;
    /* 固定 */
    position: fixed;
    top: -570px;
    left: 50%;
    transform: translateX(-50%); /* X方向の中央揃え */
    transition: 0.3s ease-in-out; 
    z-index: 100;
}

/* ========= オーバーレイノイズ */

.nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/setup/noise.webp');
    opacity: 0.2; /* 透明度 20% */
    pointer-events: none; /* クリックを邪魔しない */
    mix-blend-mode: overlay; /* オーバーレイ */
}

.nav__item {
    margin-top: 35px;
}


.nav__item img{
    width: 25px;
    margin-right: 15px;
}

.nav__item:first-of-type{
    margin-top: 0px;
}

.nav__item:nth-of-type(4) ,.nav__item:nth-of-type(5){
    font-size: 2.4rem;
}

.nav__item:nth-of-type(5) {
    margin-top: 40px;
}

.nav__logo {
    margin-top: 30px;
    filter: var(--svg-red);
}

.nav__menu {
    display: block;
    margin: 30px auto 0;
}

/* ======== .navホバーでニュッ */
.nav:hover {
    transform: translate(-50%, 10px);
    transition: 0.3s ease-in-out; 
}

/* ========== JS */

.nav.active {
    top: -50px;
    transition: 0.3s ease-in-out; 
}

.nav.hidden-sp-nav {
    top: -700px !important;
}


/* ========= リンクホバーアニメーション */
.nav__item a {
    position: relative;
    display: inline-block;
}

.nav__item a::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px; /* 下線の太さ */
    background-color: var(--red); /* 下線の色 */
    transition: width 0.3s ease; /* アニメーション */
}

.nav__item a:hover::before {
    width: 100%; /* ホバー時に下線が全幅に広がる */
}

/* ////////////////////////////
    pc 769px～
//////////////////////////// */

@media screen and (min-width:769px) {

    .nav {
        position: relative;
        width: 352px;
        /* 余白 */
        padding: 100px 40px 30px;
        /* スタイル */
        box-shadow: 8px 8px 0px 0px #000;
        /* フォント関係 */
        font-size: 4rem;
        line-height: 0.8;
        /* 固定 */
        position: fixed;
        top: -675px;
        left: 82.5%;
        transform: translateX(-50%); /* X方向の中央揃え */
        z-index: 999;
    }
    .nav__item {
        margin-top: 50px;
    }
    .nav__item img{
        width: 35px;
    }
    .nav__item:nth-of-type(4) ,.nav__item:nth-of-type(5){
        font-size: 3.2rem;
    }
}


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

.article__works {
    background-image: url('../images/setup/top-works-bg-2.webp');
    background-size: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section__topic {
    margin-top:150px;
}

.filter {
    margin: 40px 6.6vw 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap:10px;
}

.filter button {
    /*スタイル*/
    border-radius: 40px;
    border: 2px solid var(--black);
    background: #FFF;
    box-shadow: 4px 4px 0px 0px var(--black);
    padding: 10px 22px;
    /*フォント*/
    font-family: "Fugaz One";
    font-size: 2rem;
    line-height: normal;
    /*アニメ*/
    transition: transform 0.5s ease-in-out;
}

/* ========= ホバー時のアニメーション */

.filter button:hover {
    border: 2px solid var(--red);
    color: var(--red);
}

/* ======== click */

.category.active {
    background-color: var(--red);
    color: var(--white);
    border-color: var(--black);
}

.category.active:hover {
    color: var(--white);
    border-color: var(--black);
}

/*--*/
.contents__item {
    margin: 10.6vw 6.6vw 0;
}

.works__item {
    margin: 40px auto 0;
    width: min(74.6vw,400px);
    aspect-ratio: 1/1;
    border-radius: 20px;
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0px 0px var(--black);
    overflow: hidden; /* はみ出た部分を隠す */
    position: relative;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.works__item img {
    max-width: 100%; /* `.works__item` の幅いっぱいに */
    height: 100%; /* `.works__item` の高さいっぱいに */
    object-fit: cover; /* 画像の比率を維持しつつ、はみ出す部分をカット */
    transition: transform 0.3s ease-in-out; /* ズームアニメーション */
    will-change: transform;
}

/* ========= ホバー時のアニメーション */
.works__item:hover {
    border: 4px solid var(--red);
}
.works__item:hover img {
    transform: scale(1.2); /* 1.2倍に拡大 */
}

.works__txt {
    margin-top: 20px;
    font-size: 2rem;
    font-weight: 700;
    line-height: normal;
}

.contents__item time{
    display: inline-block;
    margin-top: 10px;
    padding: 5px 30px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: normal;
    border: 2px solid var(--black);
}

    /* ========= 装飾 */

    /* 稲妻 */
    .article__works::before {
        content: '';
        position: absolute;
        top: 172px;
        left: 0;
        width: min(9vw,200px);
        height: min(32vw,230px);
        transform: rotate(37.788deg);
        background-image: url('../images/mono-stk/tatoo_18.webp');
        background-size: contain; /* 画像のサイズを自動調整 */
        background-repeat: no-repeat;
    }

    /* 女神 */
    .article__works::after {
        content: '';
        position: absolute;
        top: 77px;
        right: max(-7vw,-53px);
        width: min(28.5vw,200px);
        height: min(44vw,250px);
        transform: rotate(-23.417deg);
        background-image: url('../images/mono-stk/tatoo_29.webp');
        background-size: contain; /* 画像のサイズを自動調整 */
        background-repeat: no-repeat;
        z-index: 1;
    }

    /* トラ */
    .section__topic::before {
        content: '';
        position: absolute;
        top: 77px;
        left: -20px;
        width: min(40vw,200px);
        height: min(24.2vw,142px);
        transform: rotate(-21.468deg);
        background-image: url('../images/mono-stk/tatoo_28.webp');
        background-size: contain; /* 画像のサイズを自動調整 */
        background-repeat: no-repeat;
    }

/* ////////////////////////////
    pc 769px～
//////////////////////////// */

@media screen and (min-width:769px) {

    .section__topic {
        margin-top:120px;
    }

    .filter {
        margin: 80px 6.8vw 0;
        gap:20px;
    }
    
    .filter button {
        /*スタイル*/
        padding: 10px 3.4vw;
        /*フォント*/
        font-size: 2.2vw; /*画面サイズ合わせて*/
    }

    .contents__item {
        margin: 0; /*sp用余白リセット*/
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%; /* グリッドで幅を管理する */
        text-align: center;
    }

    .contents {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(501px, 1fr));
        row-gap: 70px;
        margin: 90px 8.3vw 13.8vw;
        justify-content: center;
        position: relative; /*z-index用*/
        z-index: 3;
    }
      
      
    .works__item {
        margin: 0 auto;
        width: clamp(400px,27.7vw,450px);
    }
    
    .works__txt {
        font-size: 2.4rem;
        max-width: 100%;
        word-break: break-word; /* 長い単語があっても折り返す */
        white-space: normal;    /* 折り返しOK */
    }
    
    .contents__item time{
        font-size: 2rem;
    }

    
        /* ========= 装飾 */

    /* 稲妻 */
    .article__works::before {
        content: '';
        position: absolute;
        top: max(15vw, 173px);
        left: 3vw;
        width: max(5.4vw, 58px);
        height: max(19.3vw, 218px);
        transform: rotate(37.788deg);
        background-image: url('../images/mono-stk/tatoo_18.webp');
        background-size: contain; /* 画像のサイズを自動調整 */
        background-repeat: no-repeat;
    }

    /* 女神 */
    .article__works::after {
        content: '';
        position: absolute;
        top: 5px;
        right: -7vw;
        width: max(20.6vw, 197px);
        height: max(32.1vw, 363px);
        transform: rotate(-23.417deg);
        background-image: url('../images/mono-stk/tatoo_29.webp');
        background-size: contain; /* 画像のサイズを自動調整 */
        background-repeat: no-repeat;
        z-index: 1;
    }

    /* トラ */
    .section__topic::before {
        content: '';
        position: absolute;
        top: 47px;
        left: 10px;
        width: max(20.9vw, 252px);
        height: max(12.7vw, 133px);
        transform: rotate(-21.468deg);
        background-image: url('../images/mono-stk/tatoo_28.webp');
        background-size: contain; /* 画像のサイズを自動調整 */
        background-repeat: no-repeat;
    }
    
}



/* ==============================
            Contact
============================== */

.Btn--Contact {
    display: block;
    margin-top: 32vw;
    padding: 5px 0;
    width: 100%;
    border-radius: 500px 500px 0px 0px;
    border-top: 2px solid var(--black);
    border-right: 2px solid var(--black);
    border-left: 2px solid var(--black);
    background: #FFF;
    position: relative;
}

.btn__title {
    font-family: "Fugaz One";
    font-size: 4rem;
    line-height: normal;
}


/* ========= 装飾 */

.leftsticker ,.rightsticker {
    position: absolute;
    width:100vw;
}

/*peace*/
.peace {
    position: absolute;
    width: 32vw;
    height: 44.5vw;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
    transform: rotate(22.213deg);
    top: -38vw;
    left: -9px;
}

/*g*/
.g {
    position: absolute;
    width: 9.6vw;
    height: 21.8vw;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
    transform: rotate(14.899deg);
    top: -44vw;
    left: -9px;
}

/*star*/
.star {
    position: absolute;
    width: 14.4vw;
    height: 15.2vw;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
    top: -14vw;
    left: 13vw;
}

/*crown*/
.crown {
    position: absolute;
    width: 11.2vw;
    height: 13.3vw;
    transform: rotate(19.097deg);
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
    top: -11vw;
    right: 11vw;
}

/*princess*/
.princess {
    display: none; /*sp版非表示*/
}

/*rose*/
.rose {
    position: absolute;
    width: 12.2vw;
    height: 10.6vw;
    transform: rotate(-19.349deg);
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
    top: -18vw;
    right: 0;
}

/*pinksoccer*/
.pinksoccer {
    position: absolute;
    width: 32vw;
    height: 47.2vw;
    transform: rotate(-10.527deg);
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
    top: -39vw;
    right: -1vw;
}

/* ========= ホバー時のアニメーション */


/*ステッカーたち*/
.Btn--Contact:hover .leftsticker img,
.Btn--Contact:hover .rightsticker img {
    transform: translateY(-10vw);
}

.leftsticker img,
.rightsticker img {
    transition: all 0.6s ease;
}


.Btn--Contact:hover .leftsticker img,
.Btn--Contact:hover .rightsticker img {
    transform: translateY(-2vw); /* ふわっと飛び出す！ */
}


/*btn*/
.Btn--Contact {
    position: relative;
    z-index: 1;
}

/* チャージ用の擬似要素 */
.Btn--Contact::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%; /* 最初はゼロ */
    background: var(--blue);
    z-index: 0; /* テキストより下に */
    transition: height 0.5s ease;

    border-radius: 500px 500px 0px 0px;
    border-top: 2px solid var(--black);
    border-right: 2px solid var(--black);
    border-left: 2px solid var(--black);
}

.Btn--Contact:hover::before {
    height: 100%; /* 下から上へ */
}

.Btn--Contact:hover .btn__title {
    color: var(--white);
    transition: color 0.3s ease;
}

.Btn--Contact .btn__title {
    position: relative;
    z-index: 2;
}


@media screen and (min-width:769px) {

    .Btn--Contact {
        margin-top: min(27vw,350px);
        padding: 30px 0;
        border-top: 3px solid var(--black);
        border-right: 3px solid var(--black);
        border-left: 3px solid var(--black);
    }

    .btn__title {
        font-size: 6.6vw;
    }

    /* ========= 装飾 */

    /*peace*/
    .peace {
        position: absolute;
        width: 20vw;
        height: 28.1vw;
        filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
        transform: rotate(22.213deg);
        top: -21vw;
        left: 75px;
    }

    /*g*/
    .g {
        position: absolute;
        width: 8.1vw;
        height: 18.4vw;
        filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
        transform: rotate(14.899deg);
        top: -24vw;
        left: 47px;
    }

    /*star*/
    .star {
        position: absolute;
        width: 11.2vw;
        height: 11.8vw;
        filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
        top: -8vw;
        left: 17vw;
    }

    /*crown*/
    .crown {
        position: absolute;
        width: 8.1vw;
        height: 10vw;
        transform: rotate(-31.959deg);
        filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
        top: -11vw;
        right: 23vw;
    }

    /*princess*/
    .princess {
        display: block; /*表示*/
        position: absolute;
        width: 16.2vw;
        height: 34.8vw;
        transform: rotate(21.629deg);
        filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
        top: -31vw;
        right: 3vw;
    }

    /*rose*/
    .rose {
        position: absolute;
        width: 9.8vw;
        height: 8.6vw;
        transform: rotate(-19.349deg);
        filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
        top: -7vw;
        right: 3vw;
    }

    /*pinksoccer*/
    .pinksoccer {
        position: absolute;
        width: 16.4vw;
        height: 24.2vw;
        transform: rotate(-10.527deg);
        filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25)); /* シャドウの適用 */
        top: -22vw;
        right: 11vw;
    }
    
}



/* ==============================
            line
============================== */

.wrapper {
    width: 100vw;
    overflow: hidden; /* はみ出た部分を隠す */
    position: relative;
    z-index: 10;
}

.line {
    display: flex;
    width: max-content; /* 子要素の合計サイズ分の幅を持つ */
    animation: loop 30s linear infinite; /* 10秒でループ */
}

.line img {
    width: 334px; /* 画像の横幅 */
    height: 50px;
    flex-shrink: 0; /* 画像のサイズを固定 */
}

@keyframes loop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ////////////////////////////
    pc 769px～
//////////////////////////// */

@media screen and (min-width:769px) {

    .line img {
        width: 668px; /* 画像の横幅 */
        height: 100px;
        flex-shrink: 0; /* 画像のサイズを固定 */
    }

}



/* ==============================
            footer
============================== */

.footer {
    position: relative;
    background-image: url('../images/footer-bg.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.footer__logo {
    padding-top: 30px;
}

.footer__menu {
    margin: 20px 50px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 30px; /* 横の間隔 */
}

.menu__txt {
    color: var(--white);
    font-family: "Fugaz One";
    font-size: 2rem;
}

.copy {
    color: var(--white);
    font-size: 1rem;
}


/* ===== リンクホバーアニメ */
.menu__txt a {
    position: relative;
    display: inline-block;
    color: transparent;
    background-image: linear-gradient(to right, var(--red) 50%, var(--white) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.4s ease;
    text-decoration: none;
}

.menu__txt a:hover {
    background-position: left bottom;
}

/* ////////////////////////////
    pc 769px～
//////////////////////////// */

@media screen and (min-width:769px) {

    .footer__logo {
        padding-top: 60px;
    }
    .footer__menu {
        margin: 0px 0 30px;
    }
    .menu__txt {
        font-size: 3.2rem;
    }
}


/* ==============================
          modal（SP版）
============================== */

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;  /* ←これが重要！ */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: rgba(29, 32, 136, 0.5);
    transition: opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
  }
  
  .modal.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  
  .modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
  }
  
  .modal__content {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 30px;
    border: 2px solid var(--black);
    box-shadow: 5px 6px 0px 0px var(--black);
    padding: 80px 10.6vw 40px;
    width: 90vw;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* メイン画像 */
  .modal__img {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .modal__img img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  
  /* 矢印ボタン（常に左右に固定） */
  .modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: min(8vw, 50px);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
  }
  
  #modalPrev {
    left: 10px;
  }
  
  #modalNext {
    right: 10px;
  }
  
  .modal__arrow img {
    width: 100%;
    height: 100%;
  }
  
  /* テキストエリア */
  .modal__text {
    text-align: center;
    padding: 10px 20px 0;
  }
  
  .modal__title {
    color: var(--black);
    font-size: 2rem;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 10px;
  }
  
  .modal__client,
  .modal__text time {
    display: block;
    margin: 5px 0;
    color: var(--black);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 100%;
  }
  
  .modal__note {
    display: none;
  }

  /* モーダルアニメ */

  .modal.show .modal__content {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  /* 切り替え時のふわっとポップアニメ */
  @keyframes fadePop {
    0% {
      opacity: 0;
      transform: scale(0.9) rotate(-2deg);
    }
    100% {
      opacity: 1;
      transform: scale(1) rotate(0);
    }
  }
  
  .modal__img img.switch-anim {
    animation: fadePop 0.4s ease;
  }

/* ========== modal（PC版） */

@media screen and (min-width: 769px) {
    .modal__content {
        padding: 100px 10px 50px;
        border-radius: 70px;
    }

    .modal__img {
        width: 100%;
        margin-bottom: 10px;
    }

    .modal__arrow {
        width: 80px;
    }

    .modal__title {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }

    .modal__client,
    .modal__text time {
        font-size: 2.4rem;
        margin: 10px 0;
    }
}


