@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;
}

/*====================
loading
====================*/

.loading {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #0A1E54;
    color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    opacity: 1;
    transition: opacity 1s ease; /* フェードアウト */
    animation: fadeIn 1.5s ease-out forwards; /* ふわっと表示 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ローディング画面が消えるアニメーション */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.loaded {
    animation: fadeOut 1s ease forwards; /* フェードアウト */
}

.loading-text p {
    font-size: 1.5rem;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 2.2px;
    text-align: center;
    align-items: center;
}

.loading-text span {
    opacity: 0;
    display: inline-block;
    animation: letterFadeIn 0.05s ease forwards;
    white-space: pre;
}

@keyframes letterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (min-width: 768px) {
    .loading-text p {
        font-size: 2.8rem;
        font-weight: 500;
        line-height: 38px;
        letter-spacing: 4.78px;
    }
}

/*====================
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;
    top: 20px;
    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;
    }
}

/*====================
WORKS
====================*/
h2 {
    display: none;
}

.title__box {
    padding-top: 48px;
    align-items: center;
}

.title__logo {
    display: flex;
    padding: 20px 20px 0;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat';
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 4.32px;
}

.line {
    display: flex;
    padding: 24px;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    margin-right: 16px;
}

.subdivision {
    display: flex;
    padding: 24px 0px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat';
    font-size: 1.5rem;
    letter-spacing: 2.05px;
}

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

.works__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 24px;
}

.works__container a img {
    width: 310px;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
    display: block;
}

.works__box {
    /* display: flex; */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 334px;
}

.works__container{
    overflow: hidden;
}

.works__container a{
    transition: all .3s ease-in-out;
    transform: scale(1.1);
}

.works__container img{
    width: 100%;
    vertical-align: middle;
}

.works__container a:hover{
    transform: scale(1);
}

.sub__theme {
    display: flex;
    padding: 8px 0px 20px;
    gap: 10px;
}

.theme01, .theme02 {
    position: relative; /* 擬似要素の位置調整のため */
    padding: 8px 27px;
    font-size: 1.2rem;
    letter-spacing: 0.6px;
    min-width: 120px; /* 任意の幅で統一 */
    text-align: center;
}

.theme01 {
    background-color: rgba(255, 255, 255, 0);
    color: var(--primary-brown);
    z-index: 1;
    border: 2px solid var(--primary-brown);
    border-radius: 20px;
}

.theme01::before {
    content: '';
    position: absolute;
    top: -5px; /* 要素の上下にスペースを空ける */
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px; /* 角を丸くする */
    background-color: rgba(255, 255, 255, 0);
    z-index: -1; /* 擬似要素がテキストの背面に配置されるようにする */
}

.theme02 {
    background-color: rgba(255, 255, 255, 0);
    color: var(--primary-white);
    z-index: 1;
    border: 2px solid var(--primary-brown);
    border-radius: 20px;
}

.theme02::before {
    content: '';
    position: absolute;
    top: 0px; /* 要素の上下にスペースを空ける */
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 20px; /* 角を丸くする */
    background-color: var(--primary-brown);
    z-index: -1; /* 擬似要素がテキストの背面に配置されるようにする */
}

.site__title {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1.8px;
}

.site__subtitle {
    font-size: 1.4rem;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    line-height: 26px; /* 185.714% */
    letter-spacing: 1.4px;
}

@media screen and (min-width: 768px) {
    .article {
        display: flex;
        max-width: 1440px;
        padding: 180px 0px 80px 0px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin: 0 auto;
    }
    
    .title__box {
        width: 1160px;
        padding: 10px;
        align-items: center;
        margin: 0 auto;
    }

    .title__logo {
        font-size: 4.6rem;
        font-style: normal;
        font-weight: 900;
        line-height: normal;
        letter-spacing: 8.28px;
    }

    .subdivision {
        display: flex;
        width: 1160px;
        padding: 32px;
        justify-content: flex-end;
        align-items: center;
        gap: 24px;
        margin: 0 auto;
        font-size: 2.1rem;
        font-weight: 300;
        letter-spacing: 2.1px;
    }

    .works__item {
        display: flex;
        width: 1160px;
        padding: 56px 24px;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        gap: 80px 0;
        flex-wrap: wrap;
    }

    .works__container {
        display: flex;
        width: 550px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 40px;
        flex-shrink: 0;
    }

    .works__container a img {
        width: 470px;
        height: 310px;
    }

    .sub__theme {
        display: flex;
        padding: 24px 0px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 16px;
    }

    .works__box {
        width: 500px;
    }

    .site__title {
        font-size: 2.3rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        letter-spacing: 2.3px;
        margin-bottom: 8px;
    }

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

    .site__subtitle {
        font-size: 1.8rem;
        font-style: normal;
        font-weight: 300;
        letter-spacing: 2.5px;
    }

}

/*====================
ABOUT
====================*/
.about__box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 0;
}

.sp-photo {
    width: 334px;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.pc-photo {
    display: none;
}

.name {
    font-family: 'Montserrat';
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: 4.32px;
    padding-top: 32px;
    padding-bottom: 27px;
}

.txt__box {
    display: flex;
    padding: 0 16px;
    flex-shrink: 0;
    text-align: justify;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 28px; /* 233.333% */
    letter-spacing: 0.96px;
}

.margin {
    display: block;
    margin-top: 1.5em;
}

.career__box {
    padding: 16px;
    align-items: flex-start;
}

.career__item p {
    margin-bottom: 16px;
}

.years {
    font-size: 1.6rem;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 187.5% */
    letter-spacing: 1.6px;
}

.career__txt {
    text-align: justify;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 26px; /* 216.667% */
    letter-spacing: 0.96px;
}

.line02 {
    padding: 10px;
    align-items: center;
    gap: 10px;
}

@media screen and (min-width: 768px) {
    .sp-photo {
        display: none;
    }

    .pc-photo {
        display: block;
        width: 1106px;
        max-width: 100%;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .name {
        font-size: 4.6rem;
        font-weight: 500;
        letter-spacing: 8.28px;
        margin-top: 42px;
        margin-bottom: 32px;
    }

    .txt__box {
        width: 1100px;
        max-width: 100%;
        flex-shrink: 0;
        text-align: justify;
        font-size: 2.1rem;
        line-height: 40px;
        letter-spacing: 3.6px;
        margin-bottom: 80px;
    }

    .career__box {
        display: flex;
        width: 1100px;
        max-width: 100%;
        padding: 42px 0px 32px 16px;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 auto;
        border-bottom: 0.3px solid #838ba1;
    }

    .career__box:last-child {
        border-bottom: 0;
    } 

    .career__item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }

    .years {
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 30px; /* 142.857% */
        letter-spacing: 2.1px;
    }

    .career__txt p {
        text-align: justify;
        font-size: 1.7rem;
        font-weight: 300;
        line-height: 35px; /* 218.75% */
        letter-spacing: 0.8px;
        width: 930px;
        max-width: 100%;
    }

    .line02 {
        display: none;
        padding: 0;
    }
}

/*====================
SKILL
====================*/
.skill__box {
    display: flex;
    padding: 16px;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 17px;
}

.skill__box img {
   width: 55px;
   height: 55px;
   border-radius: 8px;
   flex-shrink: 0;
}

.txt__box02 {
    padding: 16px;
    margin-top: 32px;
    margin-bottom: 48px;
}

.txt__box02 p {
    text-align: justify;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 28px; /* 233.333% */
    letter-spacing: 0.96px;
}

@media screen and (min-width: 768px) {
    #skill {
        margin-top: 64px;
    }

    .skill__box {
        display: flex;
        width: 1160px;
        max-width: 100%;
        margin: 0 auto;
        padding: 56px;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: 56px 48px;
        flex-wrap: wrap;
    }

    .skill__box img {
        width: 95px;
        height: auto;
        flex-shrink: 0;
    }

    .txt__box02 {
        width:1160px;
        max-width: 100%;
        margin: 0 auto;
        padding: 48px;
    }

    .txt__box02 p {
        text-align: justify;
        font-size: 2.1rem;
        line-height: 40px;
        letter-spacing: 3.6px;
    }
}

/*====================
strengths
====================*/
.strengths__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 16px;
    gap: 24px;
    margin-bottom: 88px;
}

.strengths__box {
    display: flex;
    padding: 42px 24px 42px;
    gap: 32px;
    align-items: center;
    align-content: flex-start;
    justify-content: space-around;
    flex-wrap: wrap;
    border-radius: 10px;
    border: 1px solid var(--primary-blue);
    box-shadow: 4px 4px 4px 0px rgba(10, 30, 84, 0.4);
    position: relative; /* 擬似要素を配置するために必要 */
}

.strengths__box::before {
    content: '';
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* バブルの大きさ */
    height: 100px; /* バブルの大きさ */
    background: radial-gradient(circle, rgba(0, 123, 255, 0.2), rgba(255, 223, 0, 0.1)); /* 淡い青と黄色のグラデーション */
    border-radius: 35%; /* 丸い形 */
    filter: blur(20px); /* ふわっとしたぼかし */
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2); /* 影をつけて浮き上がった感じ */
    z-index: 0; /* テキストの後ろに表示 */
}

.strengths__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1; /* テキストを前面に表示 */
}

.strengths__title h4 {
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 1.8px;
}

.strengths__title p {
    font-size: 1.8rem;
    font-family: 'Montserrat';
    font-weight: 400;
    letter-spacing: 1.8px;
}

.strengths__txt {
    text-align: justify;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 26px; /* 216.667% */
    letter-spacing: 0.96px;
    z-index: 1; /* テキストを前面に表示 */
}

@media screen and (min-width: 768px) {
    .strengths__container {
        width: 1160px;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 56px;
        gap: 56px;
    }

    .strengths__box {
        gap: 40px;
        position: relative;
    }

    .strengths__item::before {
        top: 9%;
        left: 50%;
        transform: translateX(-50%);
        width: 450px;
        height: 100px;
    }

    .strengths__title {
        font-size: 2.3rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        letter-spacing: 2.3px;
    }

    .strengths__title h4 {
        font-size: 2.3rem;
        font-weight: 500;
        letter-spacing: 2.3px;
    }
    
    .strengths__title p {
        font-weight: 500;
        letter-spacing: 1.8px;
    }

    .strengths__txt {
        padding: 0 40px;
        text-align: justify;
        font-size: 1.7rem;
        font-weight: 300;
        line-height: 35px; /* 218.75% */
        letter-spacing: 0.8px;
    }
}

/*====================
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;
    }
}







