@charset "UTF-8";

.swiper-slide2 img {
    height: auto;
    width: 100%;
}

.swiper-wrapper {
    transition-timing-function: linear;
    max-width: 1200px;
}


html {
    font-size: 100%;
    scroll-behavior: smooth;
}

:root {
    --main: #0D586F;
    --base: #E5F4FB;
    --base2: #C6E1EB;
    --sub: #71ABC0;
    --back: rgb(198, 220, 241);
}

img {
    max-width: 100%;
    display: block;
}

body {
    background-color: rgb(198, 220, 241);
    font-family: "Shippori Mincho", serif;
    font-size: clamp(0.75rem, 0.662rem + 0.376vw, 1rem);
    color: var(--main);
    overflow-x: hidden;
}

.wrapper {
    /* max-width: 375px; */
    width: 92%;
    margin: 0 auto;
    text-align: center;
}

section {
    padding: 100px 0;
    overflow-x: hidden;
}

.scroll {
    opacity: 0;
    translate: 0 50px;
    transition: all .9s;
}

.scroll.active {
    opacity: 1;
    translate: 0 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--base);
}

header {
    margin: 0 auto;
    position: relative;
}

h1 {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    font-size: clamp(1.5rem, 0.972rem + 2.254vw, 3rem);
    letter-spacing: 4px;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    z-index: 2;
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    position: absolute;
    top: 55%;
    left: 0;
    right: 0;
    z-index: 2;
    letter-spacing: 2px;
}

.nav-ul {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    z-index: 2;
}

.nav-ul li {
    display: inline-block;
    transition-duration: .4s;
}

.nav-ul li a:hover {
    display: inline-block;
    transform: scale(1.2);
    transition: transform .5s;
    /* color: #000; */
}

.fv {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

h2 {
    font-family: "Judson", serif;
    padding-bottom: 50px;
    font-size: clamp(2.5rem, 2.045rem + 1.939vw, 3.5rem);
    text-align: left;
    letter-spacing: .6rem;
    width: 92%;
    margin: 0 auto;
    position: relative;
    color: var(--main);
}

h2::after {
    content: "";
    background-color: var(--main);
    display: inline-block;
    width: 70%;
    height: 1px;
    position: absolute;
    top: 38%;
}

h3 {
    margin-bottom: 20px;
}

/* works-------------------- */
#Works{
    cursor: url(../img/cursor.cur),default;
}
#Works.swiper {
    width: 92%;
    max-width: 375px;
}

#Works .swiper-slide img {
    height: 320px;
    object-fit: contain;
    margin: 0 auto clamp(3.125rem, 1.705rem + 6.061vw, 6.25rem);
}

.works-grid li {
    margin: 0 auto;
    border-top: 1px solid var(--sub);
    padding: 30px 0;
}

.works-grid li:last-child {
    border-bottom: 1px solid var(--sub);
}

.works-grid {
    margin: 50px 0;
    text-align: center;
    width: 80%;
    margin: auto;
}

.next-btn {
    display: inline-block;
    background-color: var(--main);
    border: 1px solid var(--main);
    color: var(--base);
    padding: 4px 10px;
    margin:10px 0;
    border-radius: 30px;
}

.sora-btn{
    margin-bottom: 0;
}

.next-btn:hover {
    background-color: var(--back);
    color: var(--main);
    transition: .5s;
}

/* viewAll-------------------- */
.container {
    height: 1px;
    width: 60px;
    margin: 3px auto;
    position: relative;
}

.bar {
    position: absolute;
    transform: translateX(-50%);
    bottom: 0;
}

.bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--sub);
}

.bar::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sub);
    animation: circlemove 3s ease-in-out infinite,
        cirlemovehide 3s ease-out infinite;
}

@keyframes circlemove {
    0% {
        left: 0px;
    }

    100% {
        left: 60px;
    }
}

@keyframes cirlemovehide {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

.viewAll {
    text-align: center;
    padding: 15px 0;
}

.viewAll-link {
    font-size: 14px;
    color: var(--main);
}

.viewAll-link:hover {
    display: inline-block;
    transform: scale(1.1, 1.1);
    transition: .5s;
}

/* profile,strength-------------------- */
#Profile p,
#Strength p {
    line-height: 2rem;
    text-align: left;
    width: 100%;
    margin: 0 auto;
    padding: 100px 5%;
    position: relative;
    z-index: 3;
    color: var(--base);
}

.profile-content {
    background-image: url(../img/cake2.webp);
    background-position-x: center;
    background-size: cover;
    position: relative;
    z-index: 1;
}

.profile-content::after {
    content: "";
    background-color: rgba(65, 65, 65, 0.5);
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    top: 0;
}

.st-content {
    background-image: url(../img/strength_bg.webp);
    background-size: cover;
    background-position: 50% 80%;
}

/* skill-------------------- */
.skill-icon {
    width: 60px;
    height: 60px;
}

.skill-title {
    text-align: start;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 5%;
    margin-bottom: 20px;
}

.skill-content {
    text-align: left;
}

#Skills ul {
    text-align: left;
}

#Skills li {
    background-color: var(--base);
    padding: 8px 5px;
    display: inline-block;
    border-radius: 3px;
}

#Skills li:nth-child(1) {
    margin-bottom: 5px;
}

/* footer---------------------- */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--main);
}

#page-top {
    bottom: 5px;
    position: fixed;
    right: 20px;
}

/* #page-top a  */

.top-p{
    writing-mode: sideways-rl;
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
    color: var(--sub);
}

.page-arrow {
    width: .5px;
    height: 30px;
    background-color: var(--sub);
    position: relative;
    left: 8px;
}

.page-arrow:after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--sub);
    position: absolute;
    left: -1.5px;
}

/* ------------------------------ */
.back {
    display: inline-block;
    margin-left: 30px;
    margin-top: 30px;
    color: var(--sub);
}

.back:hover {
    color: var(--main);
}

#Works2 h2 {
    text-align: center;
}

#Works2 h2::after{
    display: inline-block;
    content: "";
    opacity: 0;
}

#Works2 img {
    margin: 0 auto;
}

.works-text {
    text-align: left;
    padding-top: 10px;
}

.works-text p {
    line-height: clamp(1.7rem, 1.564rem + 0.582vw, 2rem);
}

#Works2 li {
    padding: 50px;
    border-top: 1px solid var(--sub);
}

#Works2 li:last-child {
    border-bottom: 1px solid var(--sub);
}

.click-t {
    margin-bottom: 20px;
}

.works-ttl {
    font-size: clamp(1rem, 0.773rem + 0.97vw, 1.5rem);
}

.lb-nav a.lb-next{
    opacity: .5;
}

.lb-outerContainer{
    border-radius: 0px;
}

.lb-nav{
    left: 9%;
}



/* --------------------------------- */

.sp {
    width: 30%;
    object-fit: contain;
    margin: 0 auto 50px;
}

.pc {
    width: 65%;
    object-fit: contain;
}

.comp {
    display: flex;
    gap: 5%;
    justify-content: center;
    align-items: flex-start;
}

.sora-btn-box{
    text-align: left;
}

@media (min-width:768px) {

    .wrapper {
        max-width: 1200px;
        width: 90%;
        margin: 0 auto;
    }

    #Profile,
    #Skills {
        justify-items: center;
    }

    .logo {
        width: 400px;
        height: 250px;
        object-fit: cover;
    }

    h1 {
        justify-items: center;
    }

    h2 {
        padding-bottom: 100px;
    }

    h2::after {
        content: "";
        background-color: var(--main);
        display: inline-block;
        width: 80%;
        height: 1px;
    }

    .fv {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }

    .works-grid li {
        display: flex;
        align-items: center;
    }

    .works-grid img {
        width: 50%;
    }

    .works-text {
        margin: 0;
        width: 100%;
    }

    .profile-content,
    .st-content {
        width: 100%;
        background-position: 50% 30%;
        background-size: cover;
    }

    .profile-content p,
    .st-content p {
        text-align: right;
        line-height: 5rem;
        max-width: 1200px;
        width: 90%;
        margin: 0 auto;
    }

    #Strength p {
        padding: 100px 30% 100px 5%;
    }


    .skill-card {
        margin-bottom: 50px;
    }

    #Skills .wrapper {
        justify-items: center;
    }

    .skill-list {
        width: 600px;
    }

    #Skills li {
        display: flex;
        align-items: flex-start;
    }

    .viewAll {
        padding: 30px 0;
    }

    .click-t {
        margin-bottom: 50px;
        /* border-bottom: 1px solid var(--base);
    display: inline-block; */
    }

    #Works2 li {
        display: flex;
        align-items: center;
        padding: 50px;
        /* width: 92%; */
    }

    .works-img {
        width: 60%;
    }

    .works-img:hover {
        opacity: 0.7;
        transition: .3s;
    }

    .works-text {
        text-align: left;
        margin-left: 40px;
        width: 80%;
    }

    #Works2 h2 {
        text-align: center;
    }

    /* .sp {
        width: 350px;
        margin: 0 auto 100px;
    } */

    .works-ttl {
        margin-bottom: 20px;
    }
}