/*
Theme Name: Unique Crown
Text Domain: unique-crown
Version: 1.0.0
Description: A minimalist starter theme for Unique Crown.
Author: Antigravity
*/



/* Add your custom styles below */
:root{
    /* ダークモード回避 */
    color-scheme: light;

    /* color */
    --color-white: #fff;
    --color-offwhite: #FFFEFB;
    --color-blue: #3AA3D4;
    --color-blue2: #F1F6F7;
    --color-gray: #DDE4EC;
    --color-black: #333;
    --color-black2: #777777;

    /* font-family */
    --font-gloal:  "Roboto","yu-gothic-pr6n", sans-serif;
    --font-yu-m:  "Roboto",'A+EqpB-游ゴシック体 Pr6N M', sans-serif; 

    /* font-size */
    --fs-12: 12px;
    --fs-14: 14px;
    --fs-16: 16px;
    --fs-18: 18px;
    --fs-28: 28px;
    --fs-35: 35px;
    --fs-40: 40px;
    --fs-48: 48px;

    /* font-weight */
    --font-bold: 700;
    --font-regular: 400;
    --font-light: 300;
    --font-medium: 500;

    /* size */
  --size-4: 4px;
  --size-5: 5px;
  --size-6: 6px;
  --size-7: 7px;
  --size-8: 8px;
  --size-9: 9px;
  --size-10: 10px;
  --size-11: 11px;
  --size-12: 12px;
  --size-13: 13px;
  --size-14: 14px;
  --size-15: 15px;
  --size-16: 16px;
  --size-17: 17px;
  --size-18: 18px;
  --size-19: 19px;
  --size-20: 20px;
  --size-21: 21px;
  --size-22: 22px;
  --size-23: 23px;
  --size-24: 24px;
  --size-25: 25px;
  --size-26: 26px;
  --size-27: 27px;
  --size-28: 28px;
  --size-29: 29px;
  --size-30: 30px;
  --size-31: 31px;
  --size-32: 32px;
  --size-33: 33px;
  --size-34: 34px;
  --size-35: 35px;
  --size-36: 36px;
  --size-37: 37px;
  --size-38: 38px;
  --size-39: 39px;
  --size-40: 40px;
  --size-41: 41px;
  --size-42: 42px;
  --size-43: 43px;
  --size-44: 44px;
  --size-45: 45px;
  --size-46: 46px;
  --size-47: 47px;
  --size-48: 48px;
  --size-49: 49px;
  --size-50: 50px;
  --size-51: 51px;
  --size-52: 52px;
  --size-53: 53px;
  --size-54: 54px;
  --size-55: 55px;
  --size-56: 56px;
  --size-57: 57px;
  --size-58: 58px;
  --size-59: 59px;
  --size-60: 60px;
  --size-61: 61px;
  --size-62: 62px;
  --size-63: 63px;
  --size-64: 64px;
  --size-65: 65px;
  --size-66: 66px;
  --size-67: 67px;
  --size-68: 68px;
  --size-69: 69px;
  --size-70: 70px;
  --size-71: 71px;
  --size-72: 72px;
  --size-73: 73px;
  --size-74: 74px;
  --size-75: 75px;
  --size-76: 76px;
  --size-77: 77px;
  --size-78: 78px;
  --size-79: 79px;
  --size-80: 80px;
  --size-81: 81px;
  --size-82: 82px;
  --size-83: 83px;
  --size-84: 84px;
  --size-85: 85px;
  --size-86: 86px;
  --size-87: 87px;
  --size-88: 88px;
  --size-89: 89px;
  --size-90: 90px;
  --size-91: 91px;
  --size-92: 92px;
  --size-93: 93px;
  --size-94: 94px;
  --size-95: 95px;
  --size-96: 96px;
  --size-97: 97px;
  --size-98: 98px;
  --size-99: 99px;
  --size-100: 100px;
  --size-101: 101px;
  --size-102: 102px;
  --size-103: 103px;
  --size-104: 104px;
  --size-105: 105px;
  --size-106: 106px;
  --size-107: 107px;
  --size-108: 108px;
  --size-109: 109px;
  --size-110: 110px;
  --size-111: 111px;
  --size-112: 112px;
  --size-113: 113px;
  --size-114: 114px;
  --size-115: 115px;
  --size-116: 116px;
  --size-117: 117px;
  --size-118: 118px;
  --size-119: 119px;
  --size-120: 120px;
  --size-121: 121px;
  --size-122: 122px;
  --size-123: 123px;
  --size-124: 124px;
  --size-125: 125px;
  --size-126: 126px;
  --size-127: 127px;
  --size-128: 128px;
  --size-129: 129px;
  --size-130: 130px;
  --size-131: 131px;
  --size-132: 132px;
  --size-133: 133px;
  --size-134: 134px;
  --size-135: 135px;
  --size-136: 136px;
  --size-137: 137px;
  --size-138: 138px;
  --size-139: 139px;
  --size-140: 140px;
  --size-141: 141px;
  --size-142: 142px;
  --size-143: 143px;
  --size-144: 144px;
  --size-145: 145px;
  --size-146: 146px;
  --size-147: 147px;
  --size-148: 148px;
  --size-149: 149px;
  --size-150: 150px;
}

/* タブレットサイズ (820px以下) */
@media (max-width: 820px) {
    :root {
    /* font-size */
    --fs-28: 24px;
    --fs-35: 28px;
    --fs-40: 32px;
    --fs-48: 36px;
    }
}

/* スマホサイズ (480px以下) */
@media (max-width: 767px) {
    :root {
    --fs-28: 20px;
    --fs-35: 22px;
    --fs-40: 24px;
    --fs-48: 28px; 

    /* size */
    --size-72: 48px;
    --size-100: 50px;
    }
}


/* ---------- 共通 ---------- */
*{
    box-sizing: border-box;
    letter-spacing: 0.05em;
    padding: 0;
    margin:  0;

    /* font-feature-settings: "palt"; */
}
html{
    scroll-behavior: smooth;
}
body{
    margin: 0;
    padding: 0;

    font-family: var(--font-gloal);
    background-color: var(--color-offwhite);
    color: var(--color-black);

    
}

/* 読み込みが完了するまでコンテンツを透明にしておく */
body {
    opacity: 0;
    transition: opacity 0.3s ease; /* 念のためのバックアップ */
}

/* 読み込み完了後に付与するクラス */
body.is-loaded {
    opacity: 1;
}
a{
    text-decoration: none;
    
}
a.cmn_link{
    border-bottom: 1px solid var(--color-black);
    width: fit-content;
    margin: 0 auto;
    transition: all .3s;
}
a.cmn_link:hover{
    opacity: 0.5;
}
.cmn_btn{
    margin: 40px auto 0;
    display: block;
    color: var(--color-white);
    background-color: var(--color-blue);
    border-radius: 1px;
    text-align: center;
    height: 54px;
    line-height: 54px;
    /* max-width: 280px;
    width: 100%; */
    width: 280px;

    border: none;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    z-index: 1;
    position: relative;
}


.cmn_btn.cta{
    padding: 0;
}

.item {
  position: relative; 
  overflow: hidden;    
  cursor: pointer;
}
.item:hover{
    img{
            transform: scale(1.05);
            filter: brightness(75%);
    }
  }
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  box-sizing: border-box;
}

/* 【ホバー】線だけの波紋 */
.ripple-hover {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: ripple-out 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* 【クリック】塗りつぶしの波紋 */
.ripple-click {
  background: rgba(255, 255, 255, 0.3); /* 塗りの濃さ */
  border: none;
  animation: ripple-out 1s ease-out forwards;
}

@keyframes ripple-out {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
.cmn_btn.redo{
    background-color: #929292;
}

/* リビールアニメーション */
.js-reveal {
  position: relative;
  /* display: inline-block; */ /* 画像のサイズに合わせる場合 */
  overflow: hidden;
  visibility: hidden; /* 最初は隠しておく */
}
/* アニメーション実行用のクラス */
.js-reveal.is-show {
  visibility: visible;
}

/* 塗りつぶしの板 */
.js-reveal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #95c9e4; /* 好きな色に変更してください */
  transform: translateX(-101%);
}

/* 板が「ひゅうっ」とスライドする動き */
.js-reveal.is-show::after {
  animation: reveal-slide 1.2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

/* 中身を少し遅れて表示させる（一瞬消えて見えるのを防ぐ） */
.reveal-content {
  opacity: 0;
}
.js-reveal.is-show .reveal-content {
  animation: content-show 0.1s 0.6s forwards; /* 0.6sは板が全体を覆ったタイミング */
}

/* アニメーションの定義 */
@keyframes reveal-slide {
  0% { transform: translateX(-101%); }
  50% { transform: translateX(0); } /* ここで要素を完全に覆う */
  100% { transform: translateX(101%); }
}

@keyframes content-show {
  to { opacity: 1; }
}


button,input[type="submit"]{
        background-color: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        padding: 0;
        appearance: none;
}
input[type="checkbox"],
input[type="radio"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select{
    background-color: var(--color-white)!important;
}
section.cmn{
    max-width: 1000px;
    width: 100%;
    margin: var(--size-100) auto;
    padding: 0 40px;
   
}
.container.cmn{
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}
/* ---------- ヘッダー ---------- */
/* header{

}
header nav ul{
    display: flex;
    column-gap: 50px;
}
header nav ul li span{
    text-align: center;
    display: block;
}
header nav ul li .sub_txt{
    color: var(--color-black2);
    font-size: var(--fs-12);
} */
header {
    width: 100%;
    padding: 0 40px;
    position: sticky;
    position: fixed;
    top: 40px;
    z-index: 9999;
    .logo{
        font-weight: var(--font-light);
        font-size: 24px;
        position: relative;
        z-index: 1000;
    }
    div{
        display: flex;
        justify-content: space-between;
        align-items: center;
        nav{
            ul{
                display: flex;
                column-gap: 50px;
                li{
                    span{
                        text-align: center;
                        display: block;
                    }

            
                    .main_txt{
                        /* color: var(--color-black); */
                        font-size: var(--fs-18);
                    }
                    .sub_txt{
                        color: var(--color-black2);
                        font-size: var(--fs-12);
                        font-weight: var(--font-light);

                        color: transparent;
                        /* オレンジと黒が50%の位置で切り替わるグラデーション */
                        background: linear-gradient(to right, var(--color-blue) 50%, var(--color-black2) 50%) 100%;
                        /* 背景をテキストで切り抜く */
                        background-clip: text;
                    
                        /* 横幅は200%にしてグラデーションの青部分は見えないようにする */
                        background-size: 200% 100%;
                    
                        transition: background-position 0.3s;
                    }
                    a{
                        display: inline-block;
                        color: transparent;
                        /* オレンジと黒が50%の位置で切り替わるグラデーション */
                        background: linear-gradient(to right, var(--color-blue) 50%, var(--color-black) 50%) 100%;
                        /* 背景をテキストで切り抜く */
                        background-clip: text;
                    
                        /* 横幅は200%にしてグラデーションの青部分は見えないようにする */
                        background-size: 200% 100%;
                    
                        transition: background-position 0.3s;
                    }
                    a:hover{
                        /* グラデーションの位置を移動して、オレンジ部分を見せる */
                        background-position: 0 100%!important;
                        .sub_txt{
                            background-position: 0 100%!important;
                        }
                    }
                }
            }
        }
    }

}



/* ---------- フッター ---------- */
footer{

}
footer{
    padding: var(--size-100) 0 50px;
    background-color: var(--color-gray);
    .logo{
        font-size: 40px;
        font-weight: var(--font-light);
        text-align: center;
    }
    a:hover{
        opacity: 0.5;
        transition: all .3s;
    }
    ul{
        display: flex;
        column-gap: 50px;
        justify-content: center;
        margin-bottom: var(--size-100);
        margin-top: 60px;
        li{
            a{
                font-weight: var(--font-light);
                transition: all .3s;
            }
        }
    }
    .copyright{
        font-size: var(--fs-14);
        text-align: center;
    }
}

/* ---------- トップページ ---------- */
html{
    overflow-x: hidden;

    margin:0;
    padding: 0;
    scroll-padding-top: 60px;
}
body.home{
    width: 100%;
    

    margin: 0;
    padding: 0;
}
body.home{
    h2{
        margin-bottom: 25px;
        text-align: center;
    }
    h3 {
        font-size: var(--fs-28);
        font-weight: var(--font-light);
    }
    .sub_body{
        overflow-x: hidden;
    }
    main{
        /* padding: 120px 0 0 0; */
       
        .kv{
            width: 100%;
            height: calc(100vh - 124px);
            height: 100vh;
            position: relative;
            padding: 0 40px;
/*         
            background-image: url("images/kv_img.svg");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: right -230px top 0px; */

            .container{
                max-width: 1320px;
                width: 100%;
                height: 100%;
                margin: 0 auto;
                
                
                position: relative;
                /* padding: 0 40px; */
            }

            img{
                pointer-events: none;
                /* aspect-ratio: 837 / 661; */
                position: absolute;
                right: -230px;
                top: 200px;
                /* top: -100px; */
                /* top: -100px; */
                /* top: -200px; */
                /* width: fit-content; */
                width: 837px;
                height: auto;
                z-index: -1;
            }
            .copy_txt{
                position: absolute;
                top: 220px;
                top: 400px;
                top: 300px;
                top: 36%;
            }
            .copy{
                font-size: var(--fs-35);
                letter-spacing: 0;

                .bracket{
                    .txt{
                        color: var(--color-blue);
                        letter-spacing: 0.05em;

                        /* アニメーション用 */
                        opacity: 0;
                        filter: blur(20px);
                    
                    }
                }
                /* かぎかっこ */
                .bracket::before,
                .bracket::after{
                    content: "";
                    display: inline-block;
                    width: 10px;
                    height: 27px;
                    background-image: url("images/brackets.svg");
                    background-size: contain;
                    background-repeat: no-repeat;
                    margin-right: 10px;
                    vertical-align: text-top;
                }
                .bracket::after{
                    transform: rotate(180deg);
                    vertical-align: text-bottom;
                    margin-left: 10px;
                }
            }
            .sub_txt{
                margin-top: 14px;
                font-size: var(--fs-16);
                color: #9B9B9B;
                letter-spacing: 0.1em;
                
            }


        }
    }
    h2{
        font-size: var(--fs-48);
        font-weight: var(--font-light);
        text-align: center;
    } 
}

/* ネストすると動かないため外側に記述 */
/* スクロールダウンの位置 */
.scroll {
position: absolute;
left: 0;
bottom: 250px;
bottom : 180px;
writing-mode: vertical-rl;
}
/* 線のアニメーション部分 */
.scroll::before {
animation: scroll-line 2s infinite;
background-color: #000;
bottom: -115px;
content: "";
height: 100px;
left: 0;
margin: auto;
position: absolute;
right: 0;
width: 1px;

display: block;
}
/* 線のアニメーション */
@keyframes scroll-line {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }
    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }
    51% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }
    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}


/* ---------- トップページ　service ---------- */
section#service{

}
section#service{
    /* margin-top: 50px; */
    margin-bottom: 150px;
    margin-top: 150px;
    .title_txt{
            position: relative;
            margin-bottom: 200px;
        p{
            text-align: center;
            line-height: 1.8;
        }
    }
    .title_txt:before{
        content: "";
        display: block;
        background-image: url("images/top_service_bg.svg");
        background-size: contain;
        background-repeat: no-repeat;

        width: 315px;
        height: 390px;

        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        z-index: -1;
    }
    .skill{
        position: relative;
        display: flex;
        position: relative;
        margin-bottom: 150px;
        .txt{
            background-color: var(--color-offwhite);
            padding: 50px;
            max-width: 600px;
            width: 100%;

            position: absolute;
            bottom: 0;
            right: 0;
            h3{
                margin-bottom: 30px;
            }
            p{
                line-height: 1.8;
            }
        }
    }
    .skill:nth-child(even){
        flex-direction: row-reverse;
        .txt{
            left: 0;
        }
    }
    .skill:before,
    .skill:after{
        content: "";
        display: block;
        background-repeat: no-repeat;
        background-size: contain;
        position: absolute;
        z-index: 1;
    }
    .skill:nth-child(1):before{
        background-image: url("images/same01.svg");
        width: 256px;
        height: 380px;
        
        top: -150px;
        right: -200px;
    }
    .skill:nth-child(1):after{
        background-image: url("images/fish01.svg");
        width: 660px;
        height: 135px;
        
        bottom: -75px;
        right: -500px;
    }
    .skill:nth-child(2):before{
        background-image: url("images/same02.svg");
        width: 230px;
        height: 341px;
        
        top: -50px;
        left: -200px;
    }
    .skill:nth-child(3):before{
        background-image: url("images/same03.svg");
        width: 256px;
        height: 380px;
        
        top: -100px;
        right: -200px;
    }

    .skill:nth-child(3):after{
        background-image: url("images/fish02.svg");
        width: 317px;
        height: 82px;
        
        bottom: -100px;
        left: -300px;
    }
}
section#works{
    background-color: var(--color-blue2);
    max-width: unset;
    padding-top: var(--size-100);
    position: relative;
    padding-bottom: var(--size-100);
    
    h2{
        margin-bottom: 50px;
        text-align: left;
    }
    ul{
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        column-gap: 40px;
        row-gap: 60px;
        .item{
            img {
                transition: all .3s;
            }
            h3{
                transition: all .3s;
            }
            width: calc(50% - 20px);
            .tag_container{
                display: flex;
                column-gap: 16px;
                margin: 16px 0 10px;
                color: var(--color-black2);

            }
            .frame{
                overflow: hidden;
                display: block;
                transition: all .3s;
            }
        }
        .item:hover{
            transition: all .3s;
            h3{
                opacity: 0.5;
            }
            .frame{
                overflow: hidden;
                img {
                        
                        /* transform: scale(1.05);
                        filter: brightness(75%); */
                }
            }

        }
    }
}

section#works:before{
    content: "";
    display: block;
    background-image: url("images/crown_bg.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 361px;
    height: 203px;
    position: absolute;
    top: -185px;
    right: 0px;
}

section#profile{
    position: relative;
    h2{
        margin-bottom: 50px;
    }
    h3{
        width: fit-content;
        margin: 0 auto 50px;

       span{
        display: block;

       }
       .sub_txt{
            color: var(--color-black2);
            margin-top: 4px;
            font-size: var(--fs-16);
            text-align: left;
       }
    }
    img{
        margin: 0 auto 50px;
    }
    p{
        line-height: 1.8;
    }
    h3,img,p{
        display: block;
        text-align: center;
    }
}
section#profile::before{
    content: "";
    display: block;
    background-image: url("images/profile_bg.svg");
    background-repeat: no-repeat;
    background-size: contain;

    width: 1226px;
    height: 251px;

    position: absolute;
    left: 50%;
    top: 120px;
    transform: translateX(-50%);
    z-index: -1;
}
section#gallery{
    p{
        text-align: center;
        margin: 30px auto 60px;
        line-heigh: 1.8;
    }
    .gallery_container{
        display: flex;
        justify-content: space-between;
        column-gap: 12px;
        a{
            overflow: hidden;
        }
        img{
            max-width: 326px;
            width: 100%;
            transition: all .3s;
        }
        img:hover{
            transform: scale(1.05);
        }
    }
}
/* 初期状態：透明で少し下に配置 */
#gallery .item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* アニメーション実行時のクラス */
#gallery .item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
section#contact{
    padding: 0px 40px;
   
    div{
        padding: var(--size-100) 20px;
        background-color: var(--color-blue2);
    }
    h2{
        font-size: var(--fs-48);
        font-weight: var(--font-light);
        text-align: center;

        margin-bottom: 30px;
    }
    p{
        text-align: center;
    }
    .cta{
        margin: 40px auto 0;
        display: block;
        
        color: var(--color-white);
        background-color: var(--color-blue);
        border-radius: 1px;
        text-align: center;
        height: 70px;
        line-height: 70px;
        max-width: 345px;
        
    }
}

/* プライバシーポリシー */
main.privacypolicy{
    ul{
        li{
            margin-bottom: 40px;
            h2{
                margin-bottom: 8px;
                text-align: left;
                text-wrap: auto;
            }
            ul{
                margin-top: 12px;
                li{
                    margin-bottom: 8px;
                    font-weight: var(--font-medium);
                    font-family: var(--font-yu-m);
                }
                li:before{
                    content: "・";
                }
            }
        }
    }
}
/* 作品ページ */
main.works_detail{
    .link_container{
        width: fit-content;
        margin: 0 auto;
        word-break: break-all;
    }
    .cmn_link{
        display: inline!important;
    }
}
/* ---------- お問い合わせ ---------- */
main.contact{
    section.cmn{
        background-color: var(--color-blue2);
        padding: 70px;
        .required,.optional{
            display: inline-block;
            width: 50px;
            height: 24px;
            line-height: 24px;
            font-size: var(--fs-14);
            font-weight: var(--font-medium);
            font-family: var(--font-yu-m);
            background-color: #929292;
            text-align: center;
            color: var(--color-white);
            margin-right: 10px;
        }
        .required{
            background-color: #C96576;
        }

        /* パーツ */
        .mw_wp_form .horizontal-item + .horizontal-item{
            margin-left: 0;
        }
        .form_item{
            width: 100%;
            margin-bottom: 40px;
            display: flex;
            justify-content: space-between;
            input[type="text"],input[type="email"],textarea{
                border: 1px solid #ccc;
                border-radius: 2px;
                width: 100%;
            }
        }
        .form_item.privacy{
            display: block;
            margin: 0 auto;
            width: fit-content;
            span,a{
                display: inline-block;

            }
            a{
                display: block;
            }
        }

        input[type="text"],input[type="email"]{
            height: 36px;
            padding: 8px;
        }
        textarea{
            padding: 8px;
        }
        input[type="text"]::placeholder{
            color: #999999;
        }
        input[type="text"]:focus-visible,
        input[type="email"]:focus-visible,
        textarea:focus-visible{
            outline: unset;
            box-shadow: unset; 
            outline-offset: unset;
        }
        /* input[type="text"],input[type="email"],textarea,.radio_container{ */
        .radio_container,.item_container{
            max-width: 590px;
            display: inline-block;
            width: calc(100% - 270px);
        }
        .radio_container{
            display: flex;
            flex-wrap: wrap;
            gap: 18px 40px;
            label{
                font-size: 15px;
            }
        }
        .error{
            display: block!important;
        }
        .btn_container{
            display: flex;
            justify-content: center;
            gap: 40px;
            .cmn_btn{
                margin-right: 0;
                margin-left: 0;
                input{
                    width: 100%;
                }
            }
        }
    }

}
.thanks{
    width: fit-content;
    margin: 0 auto;
}
/* サブページ　共通 */
.sub_page_container{
    /* max-width: 1000px;
    width: 100%; */
    margin: 0 auto;
    padding: 0 40px;
    .head{
    max-width: 1360px;
    width: 100%;
    margin: 120px auto 0px;
    display: block;
    width: 100%;
    height: 200px;
    background-image: url('images/sub_hd_bg.png');
    background-repeat: no-repeat;
    /* background-size: cover; */
    display: flex;
    align-items: center;
    justify-content: center;
    }
    h1{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-40);
        font-weight: var(--font-medium);
        /* font-family: var(--font-yu-m); */
        font-family: 'A+EqpB-游ゴシック体 Pr6N M', sans-serif; ;
    }
    h1:before,
    h1:after{
        content: "";
        display: inline-block;
        background-image: url('images/sub_page_bracket.svg');
        width: 18px;
        height: 51px;
        margin-bottom: 20px;
        margin-right: 20px;
    }
    h1:after{
        transform: rotate(180deg);
        margin-bottom: 0;
        margin-top: 20px;
        margin-right: 0;
        margin-left: 20px;
    }
    h2{
        margin-bottom: 20px;
        text-align: center;
        font-size: var(--fs-28);
        font-weight: var(--font-medium);
        font-family: var(--font-yu-m);
    }
}
/* ---------- 投稿ページ ---------- */
article.sub_page_container{
    .txt{
        width: fit-content;
        margin: 0 auto;
        a{
            display: block;
            text-align: center;
        }

        .about_txt{
            white-space: pre-wrap;
            max-width: 600px;
        }
        .item{
            margin-top:var(--size-72);
        }
        ul{
            display: flex;
            column-gap: 16px;
            justify-content: center;
            margin: 16px 0 10px;
            color: var(--color-black2);
        }
    }

    /* 画像部分 */
    .thumb {
        display: flex;
        justify-content: center;
        /* 横並び */
        gap: 10px;
        /* 画像同士の間隔 */
        margin-top: 10px;
    }

    .thumb-item {
        width: 25%;
        /* 4つの時にぴったり（可変なら固定幅でもOK） */
        cursor: pointer;
        /* マウスを乗せると指マークになる */
        overflow: hidden;
    }

    .thumb-item img {
        width: 100%;
        height: auto;
        display: block;
        transition: all .3s;
        /* object-fit: cover; */
        /* aspect-ratio: 16 / 9; */
    }
    .thumb-item:hover img{
        transform: scale(1.05);
        filter: brightness(75%);
    }

    }

/* ---------- 404ページ ---------- */
main.notfound{
    h1{
        font-weight: var(--font-regular);
    }
    .detail{
        a{
            margin-top: 20px;
            display: block;
            margin-left: 0;
        }
    }
}


/* ----------  ---------- */
/* レスポンシブ対応 */
/* ----------  ---------- */
/* メニューが開いている時、bodyのスクロールを完全に無効化する */
/* メニューが開いている間、背後のスクロールを止める */
body.is-locked {
    overflow: hidden; /* 基本のスクロール禁止 */
    overscroll-behavior: none; /* iPhoneでの引っ張り更新やバウンスを防止 */
}

/* PC対応　FHD WQHD対応など */
/* @media (min-width: 1450px) and (max-width: 1920px) { */
@media (min-width: 1450px){
    body.home main .kv img {
        width: 1000px;
        top: 100px;
    }
}
/* ---------- タブレット ---------- */
@media (max-width: 1024px){
    body.home {
    main {
        .kv {
            /* height: 70vh; */
        }
    }
    }
    main.contact{
        
        section.cmn{
            .radio_container, .item_container,.radio_container{
                width: 100%;
                max-width: unset;
            }
            .label_container{
                display: block;
                margin-bottom: 8px;
            }
            .radio_container{
                row-gap: 12px;
                margin-top: 16px;
            }
            .form_item{
                display: block;
            }
        }
    }
}
@media (max-width: 820px) {
    header{
        nav{
            position: fixed;
            top: 0;
            right: -100%; /* 最初は画面の外に隠す */
            width: 100%;
            height: 100vh;
            background: rgba(255, 255, 255, 0.95);
            z-index: 90;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: right 0.5s;
        }
        nav.is-open{
            right: 0; /* 開いた時 */
        }
        nav ul{
            flex-direction: column;
            text-align: center;
            li{
                margin-bottom: 24px;
            }
            li:last-child{
                margin-bottom: 0;
            }
        }

    }
    section#service {
        .title_txt{
            /* margin-bottom:500px; */
        }
        .skill {
            /* margin-bottom: 300px; */
            display: block;
            img{
                aspect-ratio: 16 / 9;
                object-fit: cover;
                width: 100%;
                margin-bottom: 0;
            }
            .txt {
                /* bottom: -200px; */
                position: relative;
                margin-top: -200px;
                margin-right: 0;
                margin-left: auto;
            }
        }
        .skill:nth-child(even){
            .txt {
                /* bottom: -200px; */
                position: relative;
                margin-top: -200px;
                margin-right: auto;
                margin-left: 0;
            }
        }
        .skill:before, .skill:after{
            zoom: .5;
            z-index: -1;

        }
        .skill:nth-child(1):before{
            top: -350px;
            right: -0px;
            display: none;
        }
        .skill:nth-child(2):before{
            top: -400px;
            left: 0px;
        }
        .skill:nth-child(3):before{
            top: -400px;
            right: -50px;

        }
        .skill:nth-child(1):after{
            bottom: -350px;
            right: -200px;
            zoom: .7;
        }
        .skill:nth-child(3):after{
            bottom: -250px;
            left: -100px;
            zoom: .9;
        }
    }
    section#profile{
        img{
            width: 200px;
        }
    section#profile::before{
        background-size: 70%;
        background-position: center;
    }
    }
    section#works:before{
        background-size: 60%;
        background-position: bottom;
    }
    main.contact{
        section.cmn{
            padding: 60px 40px;
        }
    }


    /*=============================
    .btn-trigger
    =============================*/
    .btn-trigger {
    position: relative;
    width: 50px;
    height: 44px;
    
    cursor: pointer;
    transform: scale(0.6);
    z-index: 1000;
    }
    .btn-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    border-radius: 4px;
    }
    .btn-trigger, .btn-trigger span {
    display: inline-block;
    transition: all .5s;
    box-sizing: border-box;
    }
    .btn-trigger span:nth-of-type(1) {
    top: 0;
    }
    .btn-trigger span:nth-of-type(2) {
    top: 20px;
    }
    .btn-trigger span:nth-of-type(3) {
    bottom: 0;
    }

    /*=============================
    #btn18
    =============================*/
    #btn18 span:nth-of-type(1) {
    -webkit-animation: btn18-bar01 .5s forwards;
    animation: btn18-bar01 .5s forwards;
    }
    @-webkit-keyframes btn18-bar01 {
    0% {
        -webkit-transform: translateY(21px) rotate(-45deg);
    }
    100% {
        -webkit-transform: translateY(0) rotate(0);
    }
    }
    @keyframes btn18-bar01 {
    0% {

        transform: translateY(21px) rotate(-45deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
    }
    #btn18 span:nth-of-type(2) {
    -webkit-animation: btn18-bar02 .5s forwards;
    animation: btn18-bar02 .5s forwards;
    }
    @-webkit-keyframes btn18-bar02 {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
    }
    @keyframes btn18-bar02 {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
    }
    #btn18 span:nth-of-type(3) {
    -webkit-animation: btn18-bar03 .5s forwards;
    animation: btn18-bar03 .5s forwards;
    }
    @-webkit-keyframes btn18-bar03 {
    0% {
        -webkit-transform: translateY(-21px) rotate(45deg);
    }
    100% {
        -webkit-transform: translateY(0) rotate(0);
    }
    }
    @keyframes btn18-bar03 {
    0% {
        transform: translateY(-21px) rotate(45deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
    }
    #btn18::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    content: '';
    width: 30px;
    height: 30px;
    margin: -16px 0 0 -16px;
    border-radius: 50%;
    border: 1px solid var(--color-black2);
    transition: all .1s;
    opacity: 0;
    }
    #btn18.active::after {
    -webkit-animation: circle .5s;
    animation: circle .5s;
    }
    @-webkit-keyframes circle {
    0% {
        -webkit-transform: scale(.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(3.5);
        opacity: 0;
    }
    }
    @keyframes circle {
    0% {
        transform: scale(.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
    }
    #btn18.active span:nth-of-type(1) {
    -webkit-animation: active-btn18-bar01 .5s .5s forwards;
    animation: active-btn18-bar01 .5s .5s forwards;
    }
    @-webkit-keyframes active-btn18-bar01 {
    0% {
        -webkit-transform: translateY(0) rotate(0);
    }
    100% {
        -webkit-transform: translateY(21px) rotate(-45deg);
    }
    }
    @keyframes active-btn18-bar01 {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(21px) rotate(-45deg);
    }
    }
    #btn18.active span:nth-of-type(2) {
    -webkit-animation: active-btn18-bar02 .5s .5s forwards;
    animation: active-btn18-bar02 .5s .5s forwards;
    }
    @-webkit-keyframes active-btn18-bar02 {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
    }
    @keyframes active-btn18-bar02 {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
    }
    #btn18.active span:nth-of-type(3) {
    -webkit-animation: active-btn18-bar03 .5s .5s forwards;
    animation: active-btn18-bar03 .5s .5s forwards;
    }
    @-webkit-keyframes active-btn18-bar03 {
    0% {
        -webkit-transform: translateY(0) rotate(0);
    }
    100% {
        -webkit-transform: translateY(-21px) rotate(45deg);
    }
    }
    @keyframes active-btn18-bar03 {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(-21px) rotate(45deg);
    }
    }
}
@media (max-width: 768px){
    body.home {
        main {
            .kv {
                /* height: 100vh; */
            }
        }
    }
}
@media (max-width: 767px){ /*---　ipad mini以下はスマホ対応 ---*/
    header{
        top: 20px;
        padding: 0 20px;
    }

    section.cmn{
        padding: 0 20px;
    }
    footer{
        .flex{
            padding: 0 40px;
        }
        .logo{
            text-align: left;
            font-size: 32px;
        }
        ul{
            display: block;
            margin-top: 40px;
            li{
                margin-bottom: 16px;
            }
            li:last-child{
                margin-bottom: 0;
            }
        }
    }
    section#service {
        .skill {
            
            img{
                height: 280px;
                margin-bottom: 100px;
            }
            .txt {
                padding: 40px 24px;
                /* bottom: -80%; */
                max-width: calc(100% - 60px);

                letter-spacing: 0;
                line-height: 1.5;
            }
        }
    }
    .sub_page_container {
        padding: 0 10px;
        h1:before,
        h1:after{
            width: 12px;
            height: 34px;
            margin-bottom: 20px;
            margin-right: 20px;
        }
        .head{
            height: 150px;
            margin-top: 90px;
        }
        h1:after{
            transform: rotate(180deg);
            margin-bottom: 0;
            margin-top: 20px;
            margin-right: 0;
            margin-left: 20px;
        }
    }
    article.sub_page_container{
        .txt{
            .about_txt{
                max-width: unset;
            }
        }
    }
    section#contact{
        padding: 0 30px;
        padding: 0 20px;
        .cta{
            max-width: 300px;
            max-width: 280px;
            height: 60px;
            line-height: 60px;
        }
    }

    /*---　トップページ ---*/
    body.home{
        section.kv{
            img{
                object-fit: contain;
                /* width: 150%;         
                max-width: unset; */
                height: auto;
                right: -250px;
            }
            .copy_txt{
                top: 50%;
                left: 80px;
                transform: translateY(-50%);
                writing-mode: vertical-rl;
                height: max-content;
                .copy{
                    letter-spacing: 0.1em;
                    
                    line-height: 2;
                    font-size: 32px;
                    font-size: 24px;
                    /* font-size: 22px; */
                .bracket::before {
                        transform: rotate(90deg);
                        /* margin-right: -1px; */
                    }
                
                    .bracket::after {
                        transform: rotate(-90deg);
                        /* margin-left: -1px; */
                    }

                }
                .sub_txt{
                        writing-mode: vertical-rl;
                        margin-top: 7px;
                }
            }
            .scroll{
                bottom: 180px;
            }

        }
        section#works{
            ul{
                li{
                    width: 100%;
                }
            }
        }
        section#works:before{
            background-size: 40%;
            right: -90px;
        }
        section#profile{
            p{
                text-align: left;
            }
        }

    }
    main.contact{
        section.cmn{
            padding: 30px 20px;
            .btn_container{
                width: fit-content;
                margin: 0 auto;
                display: block;
            }
        }
    }  
}
@media (max-width: 480px){
    .pc_disp{
        display: none;
    }
    body.home{
        section.kv{
            height: calc(100vh - 60px);
            img{
                width: 150%;         
                max-width: unset;
            }
            .copy_txt{
                font-size: 20px;
                left: 40px;
                /* top: 5%; */
                /* top: 45%; */
                top: 55%;
                .sub_txt{
                    font-size: 12px;
                }
            }
        }
        section#service{
            .title_txt:before{
                zoom: .8;
            }
            .skill:before,
            .skill:after {
                zoom: .3;
            }
            .skill:nth-child(3):after{
                zoom: .5;
                bottom: -500px;
            }
            .title_txt {
                margin-bottom: 150px;
                p{
                    text-align: left;
                    br{
                        display: none;
                    }
                }
                
            }
        } 
        section#gallery{
            p{
                width: fit-content;
                text-align: left;
                margin: 15px auto 40px;
                /* line-heigh: 1.8; */
            }
        }
    }
    main.contact{
        section.cmn{
            padding: 30px 20px;
            .radio_container{
                row-gap: 8px;
            }
        }
    }
    main.works_detail{
        h1{
            font-size: 22px;
            padding: 0 12px;
        }
        h1:before{
            margin-right: 10px;
        }
        h1:after{
            margin-left: 10px;
        }
    }
}
@media (max-width: 375px){
    body.home{
        section.kv{
            .copy_txt{
                left: 40px;
                /* top: 55%; */
                .copy{
                    font-size: 20px;
                }
                .sub_txt{
                    font-size: 12px;
                }
            }
        }
    }
}


/* 1. スクロール禁止用クラス */
body.is-loading {
  overflow: hidden !important;
  height: 100vh;
}

/* 2. ローディング外枠（全画面） */
/* 1. スクロール禁止用クラス */
body.is-loading {
  overflow: hidden !important;
  height: 100vh;
}

/* 2. ローディング外枠（全画面） */
/* スクロール禁止 */
body.is-loading {
  overflow: hidden !important;
  height: 100vh;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #fff; /* 背景は白 */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
}
.loading-msg{
    font-size: 32px;
}
#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* 波を収納するエリア */
.wave-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* 波本体 */
.wave {
  position: absolute;
  left: 0;
  width: 200%; /* 横長にして動かす */
  height: 120vh; /* 画面より少し高くして完全に覆う */
  top: 100%; /* 最初は画面の下に隠す */
  transition: top 0.4s ease-out; /* 上昇アニメーション */
}

/* 波の「頭」部分の形（SVG） */
.wave::before {
  content: "";
  position: absolute;
  top: -100px; /* 波の高さ分、上に浮かせる */
  top: -160px;
  left: 0;
  width: 100%;
  height: 100px;
  height: 160px;
  /* 塗りつぶされた波のSVG：白背景に対して青い波が見えるように設定 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,100 C150,100 150,20 300,20 C450,20 450,100 600,100 C750,100 750,20 900,20 C1050,20 1050,100 1200,100 V120 H0 Z' fill='%233498db'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120%;
}

/* 背面の波：色が薄く、動きが遅い */
.wave.-back {
  background-color: rgba(52, 152, 219, 0.3);
  z-index: 1;
  animation: wave-flow 4s linear infinite;
}
.wave.-back::before {
  opacity: 0.3;
}

/* 前面の波：色が濃く、動きが早い */
.wave.-front {
  background-color: rgba(52, 152, 219, 1);
  z-index: 2;
  animation: wave-flow 2s linear infinite;
}

/* 波が横に流れるアニメーション */
@keyframes wave-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 中央テキスト：波が来ても見えるように白にするか影をつける */
.loader-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #2c3e50;
  mix-blend-mode: difference; /* 背景色に合わせて反転する魔法の指定（白背景なら黒、青背景なら白になる） */
}

.percent-area {
  font-size: 5rem;
  font-weight: bold;
}