html {
    background-color: #010E1C;
    height: 100%;
}

body {
    font-family: 'Helvetica Neue', Arial, "M PLUS Rounded 1c", sans-serif;
    line-height: 1.6;
    color: #e0e0e0;

    background-color: transparent;
    max-width: 980px;
    margin: 40px auto;
    padding: 20px;

    /* 背景の設定 */
    background-size: auto;
    background-repeat: repeat;
    background-position: top left;
    background-attachment: fixed;
}


#bg-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.95) 100%);
pointer-events: none;
z-index: -100;
}

.menu-toggle {
    position: fixed;
    top: 20px;
    left: 25px;
    font-size: 28px;
    color: #F4B002;
    cursor: pointer;
    z-index: 2000;
    user-select: none;
    background: rgba(1, 14, 28, 0.8);
    padding: 10px 15px;
    border-radius: 6px;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding-top: 100px;
    transition: all 0.3s ease;
    z-index: 1500;
}

.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;
}

.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;
    text-align: center;
}

h2 {
    color: #F4B002;
    border-left: 4px solid #F4B002;
    padding-left: 10px;
    margin-top: 30px;
}

.avatar-section {
    margin-top: 30px;
}

/* ==========================================
 *  アバターカード：3D反転・名刺風アニメーション
 *  ========================================== */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.avatar-card-container {
    perspective: 1000px;
    height: 380px; /* カードの縦幅 */
    width: 100%;
}

.avatar-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* JSで付与して裏返す */
.avatar-card-inner.flipped {
    transform: rotateY(180deg);
}

/* 表裏共通デザイン */
.avatar-card-front, .avatar-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    border: 1.5px solid rgba(244, 176, 2, 0.5);
    background: linear-gradient(135deg, rgba(2, 22, 43, 0.95) 0%, rgba(1, 14, 28, 0.98) 100%);

    /* 浮かせるドロップシャドウ効果 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(244, 176, 2, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ホバー時にさらに浮かせる */
.avatar-card-container:hover .avatar-card-inner:not(.flipped) {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 6px 15px rgba(244, 176, 2, 0.12);
}
.avatar-card-container:hover .avatar-card-inner.flipped {
    transform: rotateY(180deg) translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 6px 15px rgba(244, 176, 2, 0.12);
}

/* アバター表面 */
.avatar-card-front .avatar-name {
    font-size: 18px;
    font-weight: bold;
    color: #F4B002;
    margin: 0 0 12px 0;
    text-align: center;
    line-height: 1.3;
}

.avatar-card-front .avatar-name span {
    font-size: 13px;
    color: #a0a0a0;
    font-weight: normal;
}

.avatar-card-front img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-hint {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(244, 176, 2, 0.4);
    letter-spacing: 0.5px;
}

/* アバター裏面 */
.avatar-card-back {
    transform: rotateY(180deg);
    justify-content: center;
    text-align: center;
    padding: 25px;
}

.avatar-back-name {
    font-size: 20px;
    font-weight: bold;
    color: #F4B002;
    margin-0: 0 0 10px 0;
}

.avatar-desc {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 30px;
}

/* 裏面の購入ボタン */
/* 裏面の購入ボタン */
.buy-button {
    display: block;                /* インラインブロックからブロック要素に変更 */
    background-color: #B30404;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    border: 1px solid rgba(244, 176, 2, 0.4);
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* ボタン同士の上下の隙間を空ける設定 */
    margin: 10px auto;             /* 上下に10pxの隙間を空け、左右は中央寄せ */
    width: 85%;                    /* ボタンの横幅を揃えて見栄えを良くする */
    text-align: center;            /* 文字を中央に揃える */
}

.buy-button:hover {
    background-color: #d60505;
    transform: scale(1.05);
}

/* ========================================== */

.sns-icons-row img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border: 1px solid rgba(244, 176, 2, 0.2);
    transition: transform 0.2s ease;
}

.sns-icons-row img:hover {
    transform: scale(1.12);
}

.software-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.software-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(244, 176, 2, 0.2);
    transition: transform 0.2s ease;
}

.software-icon:hover {
    transform: scale(1.08);
}

/* スマホ向け（小さめ） */
@media (max-width: 820px) {
    .software-icon {
        width: 70px;
        height: 70px;
    }
}

/* スマホ向け設定 (820px以下) */
@media (max-width: 820px) {
    .menu-toggle {
        left: 50%;
        transform: translateX(-50%);
        font-size: 30px;
    }

    .side-menu {
        width: 100%;
        left: 0;
        top: -100%;
        height: auto;
        padding-bottom: 40px;
        transition: top 0.3s ease;
    }

    .side-menu.open {
        top: 0;
        left: 0;
    }

    body {
        padding-top: 80px;
    }

    .avatar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .avatar-card-container {
        height: 400px;
    }

    .sns-icons-row img {
        width: 50px;
        height: 50px;
    }
}
