/* 全体 */
body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #010E1C; /* ← 新テーマ背景 */
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}
@font-face {
    font-family: "MyFont";
    src: url("fonts/MyFont.ttf") format("truetype");
    font-weight: normal;
}

/* トグルボタン */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 28px;
    color: #F4B002;
    cursor: pointer;
    z-index: 1000;
    user-select: none;
}

/* サイドメニュー（隠れてる状態） */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px; /* ← 横からスライド */
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding-top: 80px;
    transition: left 0.3s ease; /* ← アニメーション */
    z-index: 999;
}

/* 展開時（アニメーション対象） */
.side-menu.open {
    left: 0;
}

/* メニュー内容 */
.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu li {
    padding: 15px 20px;
}

.side-menu a {
    text-decoration: none;
    color: #F4B002;
    font-size: 20px;
    transition: 0.2s;
}

.side-menu a:hover {
    color: #ffd66e;
}
/* 現在のページのハイライト */
.side-menu a.active-page {
    background-color: #B30404;
    color: #ffffff !important;
    font-weight: bold;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
}



/* ヘッダー画像 */
.header-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 見出し */
h1 {
    color: #F4B002;
    border-bottom: 2px solid #F4B002;
    padding-bottom: 10px;
    font-family: "MyFont", "Archivo Black", sans-serif;
    text-align: center;  /* ← これを追加！ */
}

h2 {
    color: #F4B002;              /* サブ見出しも同じ色 */
    border-left: 4px solid #F4B002;
    padding-left: 10px;
}

/* 注意書き */
.warning {
    color: #F4B002;
    font-weight: bold;
    background: rgba(244, 176, 2, 0.15);
    padding: 10px;
    border-radius: 5px;
}

/* リンク */
a {
    color: #F4B002;        /* ハイライト色 */
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #ffd66e;
    text-decoration: underline;
}

/* SNSリスト */
.sns-list {
    list-style: none;
    padding: 0;
}

.sns-list li {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #F4B002;
    border-radius: 5px;
}
/* アバターギャラリー全体 */
.avatar-section h2 {
    color: #F4B002;
    border-left: 6px solid #F4B002;
    padding-left: 10px;
    margin-bottom: 20px;
}

/* グリッドレイアウト（2×2） */
.avatar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* カードデザイン */
.avatar-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(244, 176, 2, 0.25);
}

/* 名前（上部表示） */
.avatar-name {
    font-size: 20px;
    font-weight: bold;
    color: #F4B002;
    margin-bottom: 10px;
    line-height: 1.3;
}

.avatar-name span {
    font-size: 16px;
    color: #ffd66e;
}

/* 画像 */
.avatar-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
/* SNSアイコンの並び */
.sns-icons-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 10px 0 20px 0;
}

/* アイコン全体がクリック範囲 */
.sns-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: 0.2s;
}

/* ホバーで少し大きく */
.sns-icon img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}



/*プロフィールCSS*/
.software-list {
    display: flex;
    gap: 20px;          /* 画像の間隔 */
    align-items: center;
    flex-wrap: wrap;    /* 画面が狭いとき折り返し */
}

.software-icon {
    width: 80px;        /* お好みで変更OK */
    height: 80px;
    object-fit: contain;
}

/* カウンターの見た目 */
.visitor-counter {
    margin-top: 80px;      /* 上のコンテンツとの距離 */
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(244, 176, 2, 0.3);
    color: #F4B002;
    font-size: 16px;
    clear: both;
}

#visit-count {
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
    background: #B30404; /* ハイライト色 */
    padding: 2px 10px;
    border-radius: 4px;
    margin: 0 5px;
    box-shadow: 0 0 8px rgba(179, 4, 4, 0.6);
}


/* ================================
   スマホ（幅600px以下）向け表示最適化
================================ */
@media (max-width: 600px) {
    .menu-toggle {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 30px;
        z-index: 1000;
    }

    /* ページ全体の調整 */
    body {
        padding: 15px;
        margin: 0 auto;
        max-width: 100%;
    }

    /* タイトルをスマホ向けに調整 */
    h1 {
        font-size: 26px;
        margin-top: 50px; /* メニューと被らないように余白を追加 */
    }

    /* ギャラリーを1列に変更 */
    .avatar-grid,
    .photo-grid {
    }
  }

.side-menu {
        width: 100%;
        height: auto;
        position: fixed;
        top: -100%;       /* 上に隠す */
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 80px 0 20px 0;
        transition: top 0.4s ease-in-out;
        z-index: 999;
    }

    .side-menu.open {
        top: 0;           /* 上から降りてくる */
    }
}
/* メニューが開いた時のクラス（JavaScriptで制御する場合） */
.side-menu.open {
    left: 0;             /* 画面の左端にピッタリ合わせる */
}

    /* ソフトアイコンの並びを折り返し */
    .software-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center; /* 中央寄せにするとより綺麗です */
    }

    .software-icon {
        width: 70px;
        height: 70px;
    }
} /* ここでメディアクエリを閉じます */

