@charset "utf-8";

/*  ～～～～～～～～～～～～～～～～～～～～～～～～～～～～～スマホ用（ベース設定～～～～～～～～～～～～～～～～～～～～～～～～～～～～～ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #3b8070; 
    font-family: "MS UI Gothic", "MS PGothic", "Hiragino Kaku Gothic ProN", sans-serif;
    padding: 8px;
    color: #000;
}

/* レトロウィンドウ */
#container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: #c0c0c0; 
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-shadow: 1px 1px 0 0 #000;
    padding: 4px; 
}

/* タイトルバー */
header h1 {
    font-size: 13px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #000080, #1084d0); /* 青系グラデいれる */
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ウィンドウ右上の×ボタン */
header h1::after {
    content: "×";
    display: block;
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000;
    font-size: 11px;
    line-height: 12px;
    text-align: center;
    font-weight: bold;
}

/* ウィンドウの中の白いところ */
nav {
    background-color: #fff;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    padding: 12px 8px;
}

/* 横3列固定のグリッド配置 */
nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 5px; 
}

/* アイコンを上、文字を下に */
nav ul li a {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: #000;
    text-decoration: none;
    font-size: 11px;
    padding: 6px 2px;
    border: 1px dashed transparent;
    height: 75px;
    word-break: break-all;
}

/* アイコンを絵文字で設定 */
nav ul li a::before {
    content: "📁";
    font-size: 24px; 
    margin-bottom: 4px;
}

nav ul li:last-child a::before {
    content: "💾";
}

/* マウスホバーの青反転 */
nav ul li a:hover {
    background-color: #000080;
    color: #fff;
    border-color: #fff;
}


/* ～～～～～～～～～～～～～～～～～～～～～～～～～～～～～ タブレット用（600～1024px）～～～～～～～～～～～～～～～～～～～～～～～～～～～～～ */
@media screen and (min-width: 600px) {
    body {
        padding: 20px;
    }

    header h1 {
        font-size: 15px;
    }

    nav {
        padding: 25px 20px;
        min-height: 350px;
    }

    /* タブレット時は【横4列固定】 */
    nav ul {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px 15px;
    }

    nav ul li a {
        font-size: 13px;
        padding: 8px 4px;
        height: 85px;
    }

    nav ul li a::before {
        font-size: 32px; 
        margin-bottom: 6px;
    }
}


/* ～～～～～～～～～～～～～～～～～～～～～～～～～～～～～PC（1025px〜）～～～～～～～～～～～～～～～～～～～～～～～～～～～～～ */
@media screen and (min-width: 1025px) {
    body {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 16px;
        padding: 6px 10px;
    }

    nav {
        padding: 30px;
        min-height: 420px;
    }

    /* 横6列 */
    nav ul {
        grid-template-columns: repeat(6, 1fr);
        gap: 30px 20px;
    }

    nav ul li a {
        height: 90px;
    }

    nav ul li a::before {
        font-size: 38px;
        margin-bottom: 8px;
    }
}