@charset "utf-8";




body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;

}

header {
    background-color: #141284;
    color: white;
    padding: 20px;
}




/* 固定ヘッダー */
.fixed-header {
    position: fixed;
    /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    /* 他の要素より前面に */
    padding: 10px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 下に影をつけて浮かせる感 */
}

/* 固定ヘッダーによる調整 */
#body {
    margin-top: 170px;
}

/* ポートフォリオの目次 */
nav ol {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
}

section {
    padding: 20px;
    background-color: white;
    margin: 10px;
    border-radius: 8px;
}

.project {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #141284;
    color: white;
}








/* ヘッダー */
/* ハンバーガー */

body {
    margin: 0;
    font-family: sans-serif;
}




/* ライブ参戦歴の文字を左寄せ */
#top {
    background-color: gray;
    color: white;
    padding: 20px;
    text-align: center;
    /* ←ここを left に変更 */
}

.header {
    display: flex;
    justify-content: space-between;
    /* 左にタイトル、右にメニュー */
    align-items: center;
    background-color: gray;
    /* ヘッダー兼ハンバーガーメニューの色 */
    padding: 1em;
    position: relative;
    color: white;
}

.site-title {
    margin: 0;
    font-size: 2.5em;
    text-align: left;
}



/* ハンバーガーメニューのサイズ調整 */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    /* ←拡大 */
    height: 28px;
    /* ←拡大 */
    cursor: pointer;
    /* ハンバーガーアイコンを右上に固定 */
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 5px;
    /* ←線の太さを少し太く */
    background-color: white;
    border-radius: 2px;
    width: 25px;
    transition: all 0.3s ease;
    
}



/* チェックボックスは非表示にする */
.menu-toggle {
    display: none;
}





/* メニュー本体 */
.menu {
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    background: #fefefe;
    padding: 20px;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}






.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 16px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ハンバーガーがチェックされたらメニュー表示 */
.menu-toggle:checked~.hamburger+.menu {
    transform: translateX(0);
}







/* ここから別
－－
*/






/* 共通部分
------------------------------- */


body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
    line-height: 1.7;
    color: #432;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* レイアウト */
.wrapper {
    max-width: 1120px;
    margin: auto;
    padding: 0 1.5rem;
}

.align-center {
    text-align: center;
}





/* ボタン */
.btn {
    display: inline-block;
    font-size: 1.5rem;
    background-color: var(--cl);
    color: #fff;
    border-radius: 8px;
    padding: .75rem 1.5rem;
    transition: .5s;
}

.btn:hover {
    background-color: #0090aa;
}

/* アイコン 色変更*/

main-nav a:hover .i {
    color: #0090aa
}


/* iframe
      urlを読み込んで表示させるタグ。 */
iframe {
    width: 100%;
}





/* ヘッダー
------------------------------- */
.page-header {
    padding-top: .5rem;
}

.logo {
    width: 210px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.5rem;
    list-style: none;
}

.main-nav a {
    color: #432;
}

.main-nav a:hover {
    color: var(--cl);
}



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

/* ポートフォリオ
------------------------------- */

.grid {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
}

.item p {
    font-size: .875rem;
}

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




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


/* デスクトップ版
------------------------------- */
@media (min-width: 800px) {


    /* MENU */
    .grid {
        gap: 3rem 2rem;
        grid-template-columns: repeat(3, 1fr);
    }

    .item img {
        margin-bottom: .5rem;
    }

    .item p {
        font-size: 1rem;
    }

    /* .item-big{
        grid-column: 1/3;
        grid-row: 1/3;
    } */

    /* 演習問題
    　アボカド大きくする画像の位置変更 縦1-3　横2-4*/

    .item-big {
        grid-column: 2/4;
        grid-row: 1/3;
    }

    .item-big img {
        height: 94.5%;
        width: 100%;
    }

    /* モバイル表示用の調整 (必要なら) */
        
            .nav-menu {
                flex-direction: column;
                /* 縦並びに変更 */
            }
    
            .nav-menu li {
                margin: 10px 0;
                /* 縦並び時のスペースを調整 */
            }
        


}