@charset "utf-8";

/*====================
common
====================*/
:root {
    --primary-white: #fff;
    --primary-blue: #0A1E54;
    --primary-brown: #B39A84;
}

html {
    font-size:62.5%;
}

body {
    font-family: 
        'Zen Kaku Gothic New',
        'Montserrat',
        sans-serif;
    font-style: normal;
    color: var(--primary-blue);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

/*====================
scroll
====================*/
html {
    scroll-behavior: smooth;
}

.scrollBtn {
    position: fixed;
    bottom: 35px;
    right: 20px;
    width: 125px;
    height: 125px;
    z-index: 999; /* 他の要素より上に表示 */
    opacity: 0; /* 初期は透明 */
    visibility: hidden; /* 初期は非表示 */
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: float 2.5s ease-in-out infinite;
}

.scrollBtn.show {
    opacity: 1;
    visibility: visible;
}

.scrollBtn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* ボタンが浮き上がる高さ */
    }
}

.scrollBtn.hide {
    display: none; /* スクロールボタンを非表示にする */
}

/*====================
fadeIn
====================*/
.fadeIn {
    transform: translate(0, 50px);
    opacity: 0;
    transition: 0.8s;
}

.fadeIn.animated {
    transform: translate(0, 0);
    opacity: 1;
}

/*====================
custom-cursor
====================*/
.custom-cursor {
    width: 20px;
    height: 20px;
    background-color: rgba(10, 30, 84, 0.8);
    border: 0px solid rgba(10, 30, 84, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, background-color 0.3s ease;
    z-index: 10000;
    cursor: none;
}

.custom-cursor.hover {
    transform: scale(2) translate(-50%, -50%);
    background-color: rgba(10, 30, 84, 0.3);
    border: 0px solid rgba(10, 30, 84, 0.3);
}

* {
    cursor: none; /* 全体でデフォルトカーソルを無効化 */
}

/*====================
header
====================*/
.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 10;
}

.images {
    background-image: url("../images/karim-manjra-d8BSU7L3k-4-unsplash.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

/* ハンバーガーメニューが開いている時 */
.nav.is-open {
    background-image: url("../images/karim-manjra-d8BSU7L3k-4-unsplash.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

/* ロゴ */
.header__logo {
    height: 75px;
    position: relative; /* ロゴの位置を固定せず、元の位置に保持 */
    z-index: 5; /* ロゴのz-indexを低くしてオープンボタンの下に表示 */
    transition: transform 0.3s ease;
}

/* ハンバーガーメニューのオープンボタン */
.header__btn {
    width: 40px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    z-index: 15; /* オープンボタンはロゴよりも上に配置 */
    display: block; /* 初期状態でオープンボタンを表示 */
}

/* ナビゲーション */
.nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-top: 20px; */
    z-index: 1; /* ナビゲーションがロゴの下に来るように */
}

/* ナビゲーションが開いた時 */
.nav.active {
    left: 0;
}

/* クローズボタン（オープンボタンと同じ位置に重ねる） */
.nav__btn {
    width: 40px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20; /* クローズボタンはオープンボタンよりも前面 */
}

/* メニューリスト（デフォルトは非表示） */
.nav__list {
    display: none;
    list-style: none;
    padding: 16px 40px 24px 40px;
    margin-top: 207px;
    width: 100%;
    text-align: center;
    font-family: 'Montserrat';
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 1.25px;
}

/* メニューが開いたら表示 */
.nav.active .nav__list {
    /* display: block; */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.nav.active .vector {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 32px;
    gap: 24px;
    width: fit-content;
    height: auto;
}

.nav.active .vector img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ハンバーガーメニューが開いた時にオープンボタンを隠す */
.nav.active ~ .header .header__btn {
    display: none; /* オープンボタン非表示 */
}

/* ロゴの動き（オープンボタンが押された時） */
.nav.active ~ .header .header__logo {
    transform: translateY(-20px); /* 上に移動 */
}

/* オープンボタンが非表示の状態 */
.header__btn.hide {
    display: none;
}

.main__logo {
    display: flex;
    width: 375px;
    height: 651px;
    padding: 132px 30px 35px 31px;
    flex-direction: column;
    gap: 88px;
    font-family: 'Montserrat';
    font-size: 4.2rem;
    font-weight: 600;
    letter-spacing: 7.38px;
}

.portfolio {
    display: inline-block;
    margin-top: 1em;
}

@media screen and (min-width: 768px){
    .nav {
        position: static;
        height: auto;
        flex-direction: row;
        justify-content: flex-end;
        background: none;
        align-items: center;
    }

    .nav__list {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 0;
        padding: 0;
    }

    .nav__item {
        font-size: 1.8rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        letter-spacing: 3.78px;
    }

    .nav__item:hover {
        font-weight: bold;
        
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 80px;
    }

    .header__logo {
        width: 100px;
        height: auto;
    }

    .header__content {
        display: flex;
        align-items: center;
        gap: 20px;
        min-width: 50%;
        flex-shrink: 0;
    }

    .header__btn,
    .nav__btn {
        display: none;
    }

    .vector {
        display: none;
    }

    .main__logo {
        position: relative;
        top: 10%;
        left: 54%;
    }

    .main {
        font-size: 6.0rem;
        font-weight: 600;
        letter-spacing: 12.42px;
    }
}





/*====================
footer
====================*/
.footer {
    display: flex;
    padding: 42px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background-image: url("../images/karim-manjra-d8BSU7L3k-4-unsplash.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.footer__vector{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.footer__vector img {
    width: 32px;
    object-fit: contain;
}

.footer__name {
    font-family: 'Montserrat';
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 200% */
    letter-spacing: 3.75px;
    margin-bottom: 16px;
}

.copy {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1.44px;
    margin-top: 16px;
}

@media screen and (min-width: 768px) {
    .footer__group {
        display: flex;
        padding:32px 0px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        align-self: stretch;
    }

    .footer__name {
        display: none;
    }

    .nav__list {
        display: flex;
        padding: 8px;
        justify-content: center;
        align-items: center;
        gap: 114px;
    }

    .nav__item {
        font-size: 1.8rem;
        letter-spacing: 3.78px;
    }

    .footer__vector img {
        width: 37px;
        height: 37px;
    }
    
    .copy {
        font-size: 1.6rem;
        font-family: 'Montserrat';
        line-height: 30px; /* 187.5% */
        letter-spacing: 1.92px;
    }
}







