@charset "UTF-8";

/* 共通セレクター */
html {
    font-size: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Noto Serif Japanese", serif;
    overflow-x: hidden;
    /* background-color: rgb(54, 69, 79, 0.2); */
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;

}

ul,
ol {
    margin: 0;
    padding-left: 0;
    /* リストの左インデントを消す */
}


h2 {
    font-size: 2.375rem;
}

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

nav a {
    text-decoration: none;
    color: #000;
    transition: border-color 0.3s;
}

nav a:hover {
    color: #C0C0C0;
    border-bottom: 1px solid #000;
    transition: color 0.4s ease;
}

ul {
    list-style: none;
}

/* 流動的タイポ：大きさは画面幅に応じて変化 */
.top-heder-h1 {
    font-size: clamp(1.6rem, 6vw, 3rem);
}

/* h2 {
    font-size: clamp(1.25rem, 3.2vw, 2.375rem);
} */

p {
    font-size: clamp(.95rem, 2.4vw, 1rem);
}







/*---------------- heder-------------------- */
header {
    position: relative;
    /* ::before 用に必須 */
    background-image: url(../img/IMG_9937.JPG);
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 60vh;
    color: #000;
}

/* header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
    pointer-events: none;
    transition: background .2s ease;
} */



.top-heder {
    height: 600px;
    margin: 0 auto;
    display: flex;
    padding-bottom: 200px;
    justify-content: center;
    align-items: center;
}

.top-heder-h1 {
    text-align: center;
    margin-top: 145px;
    font-size: 3rem;
}

.top-heder-h1,
.top-heder * {
    position: relative;
    z-index: 2;
}


.top-main-img img {
    max-width: 400px;
    width: clamp(220px, 28vw, 400px);
    height: auto;
    margin: 0 100px 0 30px;
}

/* nav */

.top-heder-nav {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 100px;
    line-height: 3rem;

}

/* ---------fade　フェードイン------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

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

/* -----fade h1 フェードイン--------------- */
.fade-in-onload {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/*--------- トップに戻るボタン----------------- */
.backToTop-img {
    margin-top: 150px;
    width: 50px;
    position: fixed;
    right: 25px;
    bottom: 50px;
    transition: transform 0.3s ease;
}

.backToTop-img:hover {
    opacity: 0.5;
}


.backToTop-text {
    width: 50px;
    position: fixed;
    right: 18px;
    bottom: 100px;
}


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


/* スクロールアニメーション＝＝＝＝＝＝＝＝＝ */

/*スクロールダウン全体の場所*/
.t-scrolldown {
    /*描画位置※位置は適宜調整してください*/
    position: absolute;
    bottom: 200px;
    left: 90%;
}

/*Scrollテキストの描写*/
.t-scrolldown span {
    /*描画位置*/
    position: absolute;
    left: 10px;
    bottom: 10px;
    /*テキストの形状*/
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    /*縦書き設定*/
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
}

/* 丸の描写 */
.t-scrolldown:before {
    content: "";
    /*描画位置*/
    position: absolute;
    bottom: 0;
    left: -4px;

    /*丸の形状*/
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;

    /*丸の動き1.6秒かけて透過し、永遠にループ*/
    animation:
        circlemove 1.6s ease-in-out infinite,
        cirlemovehide 1.6s ease-out infinite;
}

/*下からの距離が変化して丸の全体が上から下に動く*/
@keyframes circlemove {
    0% {
        bottom: 80px;
    }

    100% {
        bottom: -5px;
    }
}

/*上から下にかけて丸が透過→不透明→透過する*/
@keyframes cirlemovehide {
    0% {
        opacity: 0
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

/* 線の描写 */
.t-scrolldown:after {
    content: "";
    /*描画位置*/
    position: absolute;
    bottom: 0;
    left: 0;
    /*線の形状*/
    width: 1px;
    height: 100px;
    background: #fff;
}

/* ↑スクロールアニメーションここまで＝＝＝＝＝＝＝＝＝ */

/* ハンバーガーボタン */
.hum-button {
    position: fixed;
    top: 20px;
    right: 40px;
    width: 30px;
    height: 25px;
    border: none;
    background: transparent;
    display: none;
    /* ← 重要 */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.hum-button.visible {
    display: block;
    opacity: 1;
}

.line {
    display: block;
    position: absolute;
    height: 2px;
    width: 150%;
    background-color: rgb(75 85 99);
    border-radius: 1px;
    transition: all 0.3s ease;
    left: 0;
    transform-origin: center;
}

.hum-button.active .line {
    background: #000;
}

.top-close {
    text-align: right;
    margin-right: 0.55rem;
}


.line1 {
    top: 0;
}

.line2 {
    top: 50%;
    transform: translateY(-50%);
}

.line3 {
    bottom: 0;
}


.hum-button.active .line1 {
    transform: rotate(45deg);
    top: 11px;
}

.hum-button.active .line2 {
    opacity: 0;
}

.hum-button.active .line3 {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* ナビゲーションメニュー（非表示） */
.nav-menu {
    display: none;
    position: absolute;
    position: fixed;
    right: 0;
    background-color: #fff;
    color: #ffff;
    width: 280px;
    height: 550px;
    padding: 20px;
    background-color: rgb(175, 175, 175, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.nav-menu.active {
    display: block;
}

/* ハンバーガーメニュー内nav */
.top-heder-nav-menu {
    padding-top: 150px;
    font-size: 1.5rem;
    text-align: center;
    line-height: 3rem;
}


/* -------------------------------------
   流れ星の線部分
------------------------------------- */
.shoot {
    position: absolute;
    top: 20%;
    /* Y位置（高さ） */
    left: -10%;
    /* 右端から出発 */
    width: 120px;
    /* 星の尾の長さ */
    height: 2px;
    /* 太さ */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0.2));
    transform: rotate(-20deg) translateX(0);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    opacity: 0;
    animation: shoot 1s cubic-bezier(.4, 0, .2, 1) forwards;
    animation-delay: 0.1s;
    /* ページ読み込み後の遅延 */
}

/* -------------------------------------
   流れ星の先端（光る丸部分）
------------------------------------- */
.shoot::after {
    content: "";
    position: absolute;
    left: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle,
            #fff 0%,
            rgba(255, 255, 255, 0.8) 60%,
            rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(1px);
}

/* -------------------------------------
   流れ星の動き（アニメーション定義）
------------------------------------- */
@keyframes shoot {
    0% {
        left: 110%;
        top: 0%;
        opacity: 0;
        transform: rotate(-20deg) translateX(0) scaleX(0.2);
    }

    10% {
        opacity: 1;
    }

    90% {
        left: -15%;
        top: 80%;
        opacity: 1;
        transform: rotate(-20deg) translateX(0) scaleX(1);
    }

    100% {
        left: -15%;
        top: 80%;
        opacity: 0;
        transform: rotate(-20deg) translateX(0) scaleX(1.2);
    }
}


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




/*--------------------main----------------------- */

/* ------------------profile---------------------- */
.top-main {
    padding-top: 200px;
    padding-bottom: 250px;
}

.top-main2 {
    padding-bottom: 400px;
}

.top-main3 {
    padding-bottom: 230px;
}

.top-profile-img {
    max-width: 31.62%;
}

.top-profile-img img {
    object-fit: cover;
    width: 392px;
    height: 292px;
    border-radius: 6px;
}


.top-profile,
.top-work {
    max-width: 67.75%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}


.top-h2 {
    padding-left: 100px;
    margin-bottom: 100px;
}

.top-main-name {
    font-weight: 500;
    font-size: 1.625rem;
    margin-bottom: 72px;
}

.top-sav-name {
    font-weight: 500;
    font-size: 1rem;
}

.top-profile-text {
    font-size: 1rem;
    max-width: 36.29%;
}


.top-profile-pr {
    width: 462px;
    line-height: 1.65rem;
    margin-bottom: 64px;
    text-align: justify;
}

.btn {
    display: inline-block;
}

.next-text {
    font: 300 1.5rem/1 futura;
    padding: 1rem;
    background-color: #000;
    color: white;
    display: inline-block;
    transform: scale(0.95);
    clip-path: polygon(0.5em 0,
            calc(100% - 0.5em) 0,
            100% 0.5em,
            100% calc(100% - 0.5em),
            calc(100% - 0.5em) 100%,
            0.5em 100%,
            0 calc(100% - 0.5em),
            0 0.5em);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn:hover .next-text {
    background-color: #000;
    opacity: 0.5;
    transform: scale(0.9);
    filter: none;
}

/*------------ h2フェードイン---------------- */
.fade-in-h2 {
    opacity: 0;
    /* 最初は見えない */
    transform: translateY(20px);
    /* 少し下にズラしておく */
    transition: all 0.8s ease;
    /* スムーズにアニメーション */
}

.fade-in-h2.active {
    opacity: 1;
    /* 表示 */
    transform: translateY(0);
    /* 元の位置に戻す */
}

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





/* ---------------- profile / work のレスポンシブ配置 -------------- */
/* 横並び要素は折り返しを許可 */
.top-profile,
.top-work,
.work-item,
.work-item-reverse {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* 各パーツの幅（柔軟に） */
.top-profile-img,
.work-item img,
.top-work img {
    flex: 0 1 clamp(200px, 35%, 420px);
    /* 最小200px〜最大420px、画面比で35% */
}

.top-profile-text,
.work-caption,
.work-item ul {
    flex: 1 1 0;
}








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


/* ----------------------work--------------------- */
.top-main2 {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: rgb(175, 175, 175, 0.2);
}

.top-sav h3 {
    margin-bottom: 30px;
}

.top-work-text {
    margin-bottom: 50px;
}

.top-work img {
    max-width: 500px;
    width: 100%;
    object-fit: cover;
    display: inline-block;
    transition: transform 0.3s ease-in-out;

}

.top-work img:hover {
    transform: scale(1.05);
}



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


/* --------------------contct-------------------- */


.top-contact {
    width: 67.75%;
    margin: 0 auto;
    padding-top: 200px;
    text-align: center;
}


.top-mail p {
    line-height: 4rem;
}

.top-mail a {
    text-decoration: none;
    color: #000;
    font-size: 1.5rem;
    padding: 10px 100px 10px 100px;
    background-color: #A58E60;
    border-radius: 10px;
}

.top-mail a:hover {
    color: #C0C0C0;
    transition: color 0.4s ease;
}

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



/* -------------------footer---------------------- */
footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;

}

.footer-nav {
    display: flex;
    justify-content: space-between;
}

.footer-nav ul {
    display: flex;
    padding: 20px 10px 20px 10px;
}

.footer-nav ul li {
    margin-left: 20px;
}

small {
    padding-top: 20px;
    justify-content: center;
    display: block;
}

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





/* レスポンシブ */

@media (max-width: 480px) {
    .top-heder {
        padding: 2rem 0;
        min-height: 50vh;
    }

    .top-heder-h1 {
        padding: .6rem;
        width: 100%;
        box-sizing: border-box;
    }

    .top-main-img img {
        width: 92%;
        height: auto;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-nav ul {
        display: none;
    }

}





@media(max-width:896px) {
    .top-heder {
        display: block;
        padding-bottom: 0;
    }


    .top-main-img {
        position: relative;
        /* 画像の上に文字を絶対配置する基準 */
        width: 100%;
        max-width: 400px;
        max-height: 600px;
        margin: 0 auto;
    }

    .top-main-img img {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .top-heder-h1 {
        position: absolute;
        /* 画像の上に重ねる */
        top: 8%;
        left: 30%;
        margin-top: 0;
        font-size: 2.5rem;
        color: white;
        text-align: center;
        width: 250px;
        z-index: 10;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 10px;
        border-radius: 8px;
    }

    /* ナビゲーションをレスポンシブの際に非表示 */
    .top-heder-nav {
        display: none;
    }

    /* profile&work レスポンシブ調整 */
    .top-profile,
    .top-work {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .top-main-name {
        margin: 0;
    }


    .top-profile-pr {
        width: 100%;
        margin-bottom: 30px;
    }

    .top-profile-text {
        max-width: 100%;
    }

    .top-h2 {
        padding-left: 0;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .top-profile-img {
        max-width: 400px;
        width: 100%;
    }

    .top-main-img img {
        margin: 0 auto;
    }


    /* ---contact--- */
    .top-contact {
        width: 100%;
        padding-top: 100px;
    }

    .top-main3 {
        padding-bottom: 100px;
    }

    .top-mail a {
        font-size: clamp(0.875rem, 2.5vw, 1.25rem);
        padding: 10px 50px;
    }

    .top-mail p {
        font-size: clamp(.80rem, 2.4vw, 1rem);
        padding: 20px 0;
    }
}