/* ============================ */
/* 共通 */
html {
    /* 標準の16pxの62.5%、つまり「10px」を基準にする */
    font-size: 62.5%; 
    font-family: "Noto Sans JP", sans-serif;
}
body {
    background-color: #ffffff;
}
a {
    text-decoration: none;
}
button {
    background: none;
    border: none;
}
.Normal_Tx {
    font-size: 1.8rem;
    line-height: 2;
    margin-top: 1rem;
}

hr {
    margin-block: 4rem;
}

/* 見出しのフォント */
.OverViews-TxTitle, h3.WorksHeading, .ProfilesTitle {
        font-weight: 600;
        /* 最小 20px、推奨 5vw（画面幅の5%）、最大 50px */
        font-size: clamp(3rem, 2.8vw, 3.8rem);
        margin-bottom: 2rem;
    }
/* ============================ */
/* ヘッダー */
.Header {
    width: 100%;
    padding-inline: 30px;
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 1);
    z-index: 2;
}
/* ヘッダーPC */
.logo {
    flex: 1; 
    display: flex;
    align-items: center;
}
.logo a {
    display: block;
    width: clamp(120px, 15vw, 180px); 
    height: auto;
}
.LogoImg {
    width: 100%;
    height: auto;
    display: block;
}

.logo,
.HeaderEmpty {
    flex: 1;
}
.HeaderEmpty {
    display: block;
}
.PcMenu {
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
}
.PcNavi {
    display: flex;
    gap: 80px;
    font-size: 2.4rem;
}
/* PcNaviのホバーアニメーション */
.PcNavi_Item{
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  color: transparent;
  background-image: linear-gradient(
    90deg,
    #000 0%,
    #000 50%,
    rgb(38, 38, 38) 50%,
    rgb(19, 187, 134) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  transition: background-position 0.5s var(--ease-out-quart);
  background-position: 0 0;
  &:hover {
    background-position: -100% 0;
  }
}
/* ヘッダーSP */
.SpMenu {
    padding: 10px;
}
.SpNavi {
    width: 80%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.8);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: all 0.3s;
}
ul.SpNavi {
    padding: 40px;
    margin-top: 55px;
}

.SpNavi > li {
    margin-bottom: 1.5em;
}
/* オープンクローズボタン */
.Button {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    height: 60px;
    padding-left: 10px;
    padding-right: 20px;
}
.ButtonLine_Top {
    position: absolute;
    top: 15px;
    width: 40px;
    height: 2px;
    background-color: #4b4b4b;
}
.ButtonLine_Middum {
    width: 40px;
    height: 2px;
    background-color: #4b4b4b;
}
.ButtonLine_Bottom {
    position: absolute;
    bottom: 15px;
    width: 40px;
    height: 2px;
    background-color: #4b4b4b;
}
/* 開閉 */
.MenuIsOpen .SpNavi {
    transform: translateX(0);
}
.MenuIsOpen .ButtonLine_Top {
    top: 50%; /* 中央に寄せる */
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s;
}
.MenuIsOpen .ButtonLine_Middum {
    opacity: 0;
    transition: opacity 0.3s;
}

.MenuIsOpen .ButtonLine_Bottom {
    bottom: 50%; /* 中央に寄せる */
    transform: translateY(50%) rotate(-45deg);
    transition: transform 0.3s;
}

/* PC表示（1024px以上）の時 */
@media (min-width: 1024px) {
    .SpMenu {
        display: none;
    }
}
/* PC表示（1024px以上）の時 */
@media (max-width: 1023px) {
    .PcMenu {
        display: none;
    }
}
/* ==================================================================================== */
/* Mv */
.Mv {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.Mv_Slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.Mv_Slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* 最初は隠しておく */
    /* 15秒かけてループ（3枚×5秒） */
    animation: zoomFade 15s infinite;
}

/* 2枚目、3枚目の開始タイミングをずらす */
.Mv_Slide:nth-child(1) { animation-delay: 0s; }
.Mv_Slide:nth-child(2) { animation-delay: 5s; }
.Mv_Slide:nth-child(3) { animation-delay: 10s; }

/* アニメーションの内容：ふわっと出て、じわっとズームして、消える */
@keyframes zoomFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 1; /* 1.5秒（10%分）かけてフェードイン */
    }
    33% {
        opacity: 1;
    }
    43% {
        opacity: 0; /* 次の画像が出るタイミングでフェードアウト */
    }
    100% {
        opacity: 0;
        transform: scale(1.15); /* 最後までゆっくりズームし続ける */
    }
}

/* 文字の背景は少し濃いめにしておくと安心です */
.MvContainer {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 3.4vw, 40px) clamp(30px, 4.6vw, 60px);
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.H2-Title {
    font-size: clamp(2.6rem, 3vw, 4rem);
    text-align: center;
    color: #fff;
}

/* ============================ */
/* OverViews */
.OverViewsContainer {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 950px;
    width: 90%;
    margin-inline: auto;
    margin: 14rem auto;
    align-items: center;
}
.OverViews-img {
    width: 50%;
    object-fit: cover;
    max-width: 480px;
}
.OverViews_Wrapper {
    flex: 1;
    .OverViews-TxTitle {

    }
}
/* ============================ */
/* Works */
h3.WorksHeading {
    margin-bottom: 2rem;
    margin-left: 4rem;
}
.WorksList {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #000;  /* 上側の線 */

    .WorksItem {
        width: 33.333%; /* 3列 */
        box-sizing: border-box;
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
        .WorksCard {
            display: block;
            transition: background-color 0.3s;
            height: 100%;
            position: relative;
            padding: 44px;
            cursor: pointer;
            &:hover {
                background-color: #e9e9e9;
                .WorksImgWrapper {
                    overflow: hidden;
                .WorksImg {
                    transform: scale(1.05);
                }
            }
            }
            .WorksImgWrapper {
                .WorksImg {
                    transition: transform .3s ease;
                }
            }
        }
        .WorksContent {
            margin-top: 40px;
            .WorksTitle {
                font-size: clamp(2rem, 1.95vw, 2.5rem);
                font-weight: 600;
            }
            .WorksTag {
                font-size: 1.6rem;
                margin-top: 1rem;
            }
            .WorksArrow {
                position: absolute;
                bottom: 20px;
                right: 20px;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: transform 0.3s ease;
                &::after {
                    content: "";
                    width: 10px;
                    height: 10px;
                    border-top: 2px solid #000;
                    border-right: 2px solid #000;
                    transform: rotate(45deg);
                    display: block;
                }
            }
        }
    }

}
@media (max-width: 820px) {
    .WorksList .WorksItem {
        width: 50%; /* 2列に変更 */
    }
}
@media (max-width: 500px) {
    .WorksList .WorksItem {
        width: 100%; /* 1列に変更 */
        border-right: none;
    }
}
/* 【演出】カードをホバーした時に矢印を少し右に動かす */
.WorksCard:hover .WorksArrow {
    transform: translateX(5px); /* 右に5pxピコッと動く */
}

/* 右線の削除CSS */
@media (min-width: 1024px) {
    .WorksItem:nth-child(3n) {
        border-right: none;
    }
}
@media (max-width: 820px) and (min-width: 501px) {
    .WorksItem { width: 50%; }
    .WorksItem:nth-child(2n) { border-right: none; }
}
@media (max-width: 500px) {
    .WorksItem { 
        width: 100%; 
        border-right: none; /* 1列の時は右線はいらない */
    }
}

/* モーダル部分 */
/* ポップアップ全体の背景（暗くなる部分） */
.Modal {
    display: none; /* 最初は隠す */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
/* 背景の黒い透過膜 */
.ModalOverlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}
/* コンテンツが入る白い箱 */
.ModalInner {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    margin: 5vh auto;
    padding: 40px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto; /* 中身が長い場合はスクロール可能に */
    z-index: 1001;
}
/* 閉じるボタン */
.ModalClose {
    position: absolute;
    top: -3px;
    right: 10px;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
}
.Works_Contents {
    width: 100%;
    max-height: 60vh; /* 画面高さの60%までに制限（お好みで調整） */
    overflow-y: auto; /* 縦にはみ出た場合のみスクロールバーを出す */
    border: 1px solid #eee; /* 境界をわかりやすく */
    background-color: #f9f9f9;
    margin-bottom: 3rem;
}
.ModalImg {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.ModalTitle {
    font-size: clamp(2rem, 1.95vw, 2.5rem);
}
.ModalText {
    margin-top: 2rem;
    strong {
        font-size: 2rem;
    }
}
p.ModalTitle_lead {
    font-size: 1.8rem;
}

/* チラシなどの横並び部分 */
ul.Works_Paper_Container {
    display: flex;
    justify-content: center;
    align-items: self-start;
    gap: 30px;
    margin-top: 2rem;
}
.Front_Back {
    font-size: 1.6rem;
}

.One_Calum {
    width: 65%;
    height: auto;
    margin-bottom: 20px;
    margin-inline: auto;
}

.Rnn_Title {
    margin-bottom: 2rem;
}

/* ============================ */
/* Profiles */
section.Profiles {
    div.ProfilesContainer {
        max-width: 950px;
        width: 90%;
        margin-inline: auto;
        margin: 14rem auto;
        .ProfilesTitle {

        }
        .Pf_name {
            font-size: 2rem;
            font-weight: 600;
            .name_rub {
                font-size: 1.2rem;
                margin-left: 1rem;
            }
        }
        .SkillTitle {
            margin-top: 4rem;
        }
        .SkillList {
            .SkillItem {
                display: inline-block;
                margin-right: 1rem;
                font-size: 1.8rem;
                line-height: 2;
            }
        }
        .QualificationTitle {
            margin-top: 4rem;
        }
        .QualificationList {
            .QualificationItem {
                display: inline-block;
                margin-right: 1rem;
                font-size: 1.8rem;
                line-height: 2;
            }
        }
    }
}
/* ============================ */
/* ============================ */
/* ============================ */
/* ============================ */
/* ============================ */
/* To PageTop */
.PageTop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 38px;
    bottom: 30px;
    background: #fff;
    /* border: solid 2px #000; */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
}

.PageTop_Arrow {
    height: 15px;
    width: 15px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
    .PageTop:hover, .PageTop:hover .PageTop_Arrow {
        border-color: #3293e7;
    }
}
/* ============================ */
/* Footer */
footer {
    text-align: center;
    margin-block: 1rem;
    font-size: 1.4rem;
}
/* ==================================================================================== */
/* CSSアニメーション */
.OverViews-img {
    /* 既存のサイズ設定などは残す */
    width: 100%; /* 例 */
    max-width: 400px; /* 例 */
    height: auto;

    /* アニメーションの設定 */
    /* 名前：spaceFloat、時間：6秒、緩急：ease-in-out、リピート：無限 */
    animation: spaceFloat 6s ease-in-out infinite;
    
    /* 動きを滑らかにするためのプロの小技 */
    will-change: transform; 
}

/* アニメーションの定義（@keyframes） */
@keyframes spaceFloat {
    0% {
        /* 初期位置：回転なし、上下移動なし */
        transform: translateY(0) rotate(0deg);
    }
    50% {
        /* 3秒後（中間）：上に15px移動、右に3度回転 */
        /* translateYの値を大きくすると、上下の幅が広がります */
        transform: translateY(-15px) rotate(3deg);
    }
    100% {
        /* 6秒後（最後）：初期位置に戻る（これでループが繋がる） */
        transform: translateY(0) rotate(0deg);
    }
}