/* サイト全体の背景を水色に */
body {
    margin: 0;
    padding: 0;
    background: #87cefa;
}
h1 {
    font-size: 2em;
    color: #333;
    font-weight: bold;
    margin-left: 10px;
    border-bottom: 2px solid black;
}
h2 {
    margin-left: 20px;
}
/* ハンバーガー全体 */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
/* 三本線の見た目 */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    padding: 10px;
    background-color: #ccc;          /* 灰色の背景 */
    border-radius: 8px;              /* 角を丸く */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 軽い影 */
    transition: background-color 0.2s ease;
}
.menu-icon:hover {
    background-color: darkgray; /* ホバー時に少し濃く */
}
.menu-icon span {
    height: 5px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}
/* チェックボックス非表示 */
#menu-toggle {
    display: none;
}
/* グレーの背景（オーバーレイ） */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5); /* 半透明グレー */
    z-index: 1000;
    display: none;
}
/* メニュー */
.menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 10%;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 10001;
}
.menu ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}
.menu ul li {
    margin: 10px 0;
}
.menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.menu ul li a:hover {
    color: blue;
}
/* チェックが入ったときに表示 */
#menu-toggle:checked ~ .menu {
    display: block;
}
#menu-toggle:checked ~ .menu-overlay {
    display: block;
}
/* 共通：最初は表示 */
.menu-icon,
#menu-toggle,
.menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* index.html 専用：最初は非表示 */
body.index-loading .menu-icon,
body.index-loading #menu-toggle,
body.index-loading .menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* フェードイン終了後に表示 */
body.index-loading.loaded .menu-icon,
body.index-loading.loaded #menu-toggle,
body.index-loading.loaded .menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.logo_fadein {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 999;
    background: #87cefa; /* 必要なら背景色を指定 */
}
.logo_fadein img {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 50%;
    height: auto;
    transform: translate(-50%, -50%);
}
.site_logo img {
    width: 10%;
    height: auto;
}
.profile {
    background-color: #ffffff;
    width: 80%;
    margin: 10px auto;
    padding: 40px 20px;
    border-radius: 12px;
}
.profile .header {
    text-align: center;
    margin-bottom: 20px;
}
.profile .header img {
    width: 50%;
    height: auto;
}
.profile .icon {
    border-top: 2px solid darkgray;
    display: flex;
    align-items: center;
    gap: 16px; /* 画像と名前の間隔 */
    justify-content: center;
}
.profile .icon img {
    display: block;
    margin-top: 10px;
}
.profile .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.profile .name {
    font-size: 2rem; /* お好みで調整 */
    font-weight: bold;
}
.profile .info {
    font-size: 1em;
    color: #333;
    font-weight: bold;
    margin-left: 10px;
    margin-top: 4px; /* 名前との間にスペース */
    margin-bottom: 4px; /* その下との間にもスペースが必要なら */
}
.sns {
    display: flex;
    justify-content: center; /* 中央揃え */
    gap: 20px;                /* 各SNSアイコンの間隔 */
    margin-top: 20px;         /* 上のプロフィールとの間隔 */
    padding-bottom: 16px; /* 線と次の要素の間に余白が必要なら */
    border-bottom: 2px solid darkgray; /* 横線（太さ・色を自由に） */
}
.sns img {
    width: 60px; /* 好みで調整OK */
    height: 60px;
    transition: transform 0.2s ease;
}
.sns img:hover {
    transform: scale(1.1); /* ホバーでちょっと拡大する演出 */
}
.minecraft, .work, .request, .game {
    background-color: #ffffff;
    width: 80%;
    margin: 60px auto; /* 上下60px・左右中央寄せ */
    padding: 40px 20px; /* 上下40px・左右20pxの内側余白 */
    border-radius: 12px;
    margin-top: 3%;
    margin-bottom: 3%;
}

@media screen and (max-width: 768px) {
    body {
        width: 100%;
    }
    .site_logo img {
        width: 30%; /* スマホ時にロゴ大きく */
    }
    .menu {
        width: 30%;
    }
    .profile .icon {
        flex-direction: column;
        align-items: center;
    }
    .profile .icon img {
        width: 80%; /* スマホ向けに調整 */
    }
    .profile .text {
        text-align: center;
    }
    .sns {
        flex-wrap: wrap;
        gap: 12px;
    }
    .sns img {
        width: 40px;
        height: 40px;
    }
}

@keyframes poploop {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}