:root{
    --font-size: 18px;
    --text-color: #ffffff;
}

@media only screen and (max-width: 800px){
    :root{
        --font-size: 14px;
    }
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(rgba(0,0,0,1),rgba(0,0,0,0),rgba(0,0,0,1)),url('background.jpg'); /* 背景固定 */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: "montserrat", sans-serif;
    color: var(--text-color);
    font-size: var(--font-size);
    position: relative;
    background-color: #000;
}
/*
nav {
    background: rgba(0, 0, 0, 0.7);
    display: block;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

#content {
    margin-top: 60px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.3s ease;
    min-height: 400px;
}
*/

.grid-item { width: 200px; }
.grid-item--width2 { width: 400px; }

#content{
    transition: 2s;
    position: relative;
}


.ctn1_flexbox{
    display: flex;
    font-size: var(--font-size);
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    padding: 2em;
    max-width: 1500px;
    margin: auto;
    position: relative;
}

.ctn1_1{
    color: var(--text-color);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ctn1_1 > div:has(span){
    display: block;
    position: relative;
    padding: 0 2.5em;
}

.ctn1_1 > div:has(span):hover span{left: 100%;}

.ctn1_1 span{
    cursor: pointer;
    display: block;
    font-size: 5em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.015em;
    width: fit-content;
    margin: 0 50% 0 auto;
    transform: translateX(50%);
    transition: 1s;

}

.ctn1_flexbox:has(.nav_active) .ctn1_1 span{
    margin-right: 0;
    transform: translateX(0)
}

.ctn1_2{
    display: flex;
    flex-direction: column;
    transition: 1s;
    width: 0;
    overflow: hidden;
    opacity: 0;
    position: relative;
}

.ctn1_2.nav_active{
    width: 100%;
    opacity: 1;
}

.ctn1_2::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #fff;
    width: 1.5px;
    left: 0;
    transition: 0.3s;
}

.ctn1_2.nav_active::before{
    animation: nav_line 1s both 0.5s alternate;
}

.ctn1_2 a {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1.5em;
    font-size: 1.25em;
    padding: 10px;
    transition: 0.3s;
    cursor: pointer;
    width: fit-content;
    white-space: nowrap;
    transition: 0.3s;
}

.ctn1_2 a:hover{
    scale: 1.1;
}


@keyframes nav_line{
    0%{top: 50%; bottom: 50%;}
    100%{top: 0; bottom: 0;}
}

@media only screen and (max-width: 800px){
    .ctn1_1{
        position: absolute;
        inset: 0;
        justify-content: center;
        transition-timing-function: cubic-bezier(0.45, 0.05, 0.2, 0.94);
    }

    .ctn1_1 span{
        transform: translateX(0);
        margin: auto;
    }

    .ctn1_flexbox:has(.nav_active) .ctn1_1 span{
        margin: auto;
        transform: translateY(-3.5em);
        opacity: 0.35;
    }

    .ctn1_2{
        margin: auto;
        justify-content: center;
        align-items: center;
        height: fit-content;
    }

    .ctn1_2::before{
        display: none;
        width: 100%;
    }
}

/* ------- Page Fixed at 1920px width -------- */

.page{
    max-width: 1920px;
    margin: auto;
    padding: 2em;
    position: relative;
}

.page hr{
    display: block;
    border: none;
    border-top: solid 1px white;
    margin: 5em auto;
}

/* ------- Title -------- */
.ttl{
    margin-bottom: 3.5em;
}

.ttl h2{
    font-weight: 600;
    font-size: 3.5em;
    margin: 0 0 0.1em;
    line-height: 1em; 
    text-transform: uppercase;   
}

.ttl ul{
    display: flex;
    list-style: none;
    column-gap: 1em;
}

.ttl ul li{
    display: flex;
    font-size: 1.2em;
    font-weight: 400;
    margin: auto 0;
    text-align: center;
}

.ttl ul li::after{
    content: "";
    display: inline-block;
    background-color: white;
    width: 2px;
    height: auto;
    vertical-align: middle;
    margin: 0.1em 0 0.1em 1em;
}

.ttl ul li:nth-last-child(1):after{
    display: none;
}

@media only screen and (max-width: 800px){
    .ttl h2{font-size: 2em;}

    .ttl ul li{font-size: 1em;}

    .ttl ul li::after{width: 1px;}

    .home_button + .ttl{padding-top: 3em;}
}

/* ------- Home Button -------- */

.page_relative{
    display: block;
    position: relative;
}

.home_button{
    display: block;
    position: absolute;
    top: 2em;
    right: 2em;
    z-index: 99;
    transform: translateX(-50%);
    transition: 0.3s;
}

.home_button img{
    display: block;
    width: 2em;
    height: auto;
}

.home_button:hover{opacity: 0.5;}

@media only screen and (max-width: 800px){
    .page_relative .home_button{top: 0; right: 0;}
}

/* -------About Page------- */

.about_flexbox{
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.about_ctn1{
    display: flex;
    min-height: 100vh;
    position: relative;
    font-size: var(--font-size);
    font-family: "Montserrat",sans-serif;
    overflow: hidden;
    align-items: center;
    padding: 2em;
    width: 100%;
}

.about_ctn1 img.about_btn_bg{
    display: block;
    height: 100%;
    width: auto;
    position: absolute;
    inset: 0;
    object-fit: cover;
    z-index: -1;
    mask-image: linear-gradient(to right, black 65%,transparent);
    transform: translateX(-15%);
}

.about_ctn1_1{
    color: white;
    width: 55%;
    min-width: 700px;
    margin-left: auto;
}


.about_ctn1_1 p{
    font-size: 0.8em;
    margin: 3em 0;
    padding-left: 1em;
    line-height: 1.5em;
}

.about_ctn1_1 p a{
    text-decoration: underline;
    font-weight: 600;
    color: white;
}

@media only screen and (min-width: 2000px) {
    .about_ctn1{
        width: 80%;
        max-width: 1920px;
        border: solid 0.5px rgba(255,255,255,0.35);
        border-radius: 2em;
        margin: auto;
        min-height: 75vh;
        -webkit-backdrop-filter: blur(7px);
        backdrop-filter: blur(7px);
        background-color: rgba(0,0,0,0.2);
    }
}

@media only screen and (max-width: 800px){
    .about_ctn1{
        width: auto;
    }

    .about_ctn1 img.about_btn_bg{
        height: auto;
        width: 115vw;
        transform: unset;
        mask-image: linear-gradient(to bottom, black 85%,transparent);
    }

    .about_ctn1_1{width: unset;min-width: unset;margin-top: 50vw;}
}

/* -------Photo Page------- */

.gallery_flexbox{
    display: flex;
    margin: 1em auto;
    flex-wrap: wrap;
    gap: 1em;
}

.hrz .hrz_ctn{
    width: calc(33% - 1em);
    flex-grow: 1;
    min-width: 350px;
}

.vrt .vrt_ctn{
    width: calc(25% - 1em);
    flex-grow: 1;
    min-width: 250px;
}

.gallery_flexbox img{
    display: block;
    width: 100%;
    height: auto;
}


/* -------Design Page------- */

.video_flexbox{
    display: flex;
    flex-wrap: wrap;
    gap: 2em 3em;
}

.video_ctn{
    width: calc(50% - 2em);
    flex-grow: 1;
    min-width: 350px;
}

.video_ctn iframe{
    width: 100%;
    height: 50vh;
    border-radius: 1.5em;
    border: solid 1px rgba(255,255,255,0.3);
    transition: 0.3s;
}

.video_ctn:hover iframe{
    border-color: rgba(255,255,255,1);
}

.video_flexbox .video_ctn:nth-child(1n+5){
    width: calc(33% - 2em);
}

.video_flexbox .video_ctn:nth-child(1n+5) iframe{
    height: 35vh;
}

.behance_flexbox{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.behance_ctn{
    flex-grow: 1;
}

.behance_ctn iframe{
    display: block;
    margin: auto;
    width: 100%;
}


/*----- Web Design Page -----*/

.showcase_flexbox{
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
}

.showcase_ctn{
    flex-grow: 1;
    width: 100%;
}

.showcase_ctn iframe{
    height: 75vh;
}

/*----- Contact Page -----*/

.contact_page{
    min-height: 100vh;
    padding: 2em;
    max-width: 1200px;
    margin: auto;
}

.contact_page h1{
    display: block;
    margin: 0 auto 1em;
    font-size: 3em;
    text-transform: uppercase;
    text-align: center;
}

.contact_page form{
    display: flex;
    flex-direction: column;
    row-gap: 0.75em;

}

.contact_page form input,.contact_page form textarea{
    background: none;
    border-radius: 1.25em;
    border: solid 1px white;
    padding: 0.5em 1em;
    font-size: 1em;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
}

.contact_page form textarea{
    min-height: 15em;
    width: 100% !important;
}

.contact_page form button{
    display: block;
    width: fit-content;
    font-size: 1.15em;
    padding: 0.25em 1em;
    border-radius: 2em;
    border: solid 1px transparent;
    background-color: transparent;
    margin-top: 1em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.75s;
    color: black;
}

.contact_page form button:hover{
    color: white;
    border-color: white;
}

.contact_page form button::before{
    content: "";
    position: absolute;
    inset: -1em;
    background-color: #fff;
    z-index: -2;
}

.contact_page form button::after{
    content: "";
    position: absolute;
    top: -15%;
    left: 0;
    right: 0;
    background: linear-gradient(45deg,#B6348A,#123587);
    height: 0;
    width: 100%;
    z-index: -1;
    transition: 0.75s;
    border-radius: 0 0 75% 75%;
}

.contact_page form button:hover:after{
    height: 155%;
}