﻿/* 黒背景 + 背景画像（PNG対応） */
body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
    font-family: sans-serif;
}

    /* 背景画像を半透明で中央に表示 */
    body::before {
        content: "";
        position: fixed; /* ← スクロールに追従させたいなら absolute → fixed にするのがおすすめ */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('BackGround2.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.5;
        z-index: -1; /* ← 背景を最背面にする！ */
    }


    /* ハードアイコン追加 */
.image-container {
    position: relative;
    display: inline-block;
}

.button-img {
    display: block;
    width: 100%;
    height: auto;
}

.genkai1-icon {
    position: absolute;
    top: 8px; /* お好みで調整 */
    left: 8px;
    height: 70px; /* ロゴサイズ調整 */
    width: auto;
    opacity: 0.9; /* 任意：ちょっと透かすと上品に */
}

.genkai2-icon {
    position: absolute;
    top: 8px; /* お好みで調整 */
    left: 70px;
    height: 48px; /* ロゴサイズ調整 */
    width: auto;
    opacity: 0.9; /* 任意：ちょっと透かすと上品に */
}

.nikome-icon {
    position: absolute;
    top: 8px; /* お好みで調整 */
    left: 64px;
    height: 48px; /* ロゴサイズ調整 */
    width: auto;
    opacity: 0.9; /* 任意：ちょっと透かすと上品に */
}

.ikkome-icon {
    position: absolute;
    top: 8px; /* お好みで調整 */
    left: 8px;
    height: 48px; /* ロゴサイズ調整 */
    width: auto;
    opacity: 0.9; /* 任意：ちょっと透かすと上品に */
}

/* ロゴ共通 */
.logo-img {
    width: 400px;
    height: auto;
    max-width: 90%;
    margin-top: 20px;
}

/* momohanaロゴ */
.momohana-logo img {
    width: 400px;
    height: auto;
    margin-top: 20px;
}

/* ボタンコンテナ */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    z-index: 10; /* ← 明示的に::beforeより上に */
    position: relative;
}

/* ボタン共通スタイル */
.hover-button {
    display: flex;
    justify-content: center; /* テキスト中央寄せ。左寄せにしたい場合は flex-start */
    align-items: center;
    padding: 20px;
    background-color: rgba(211, 211, 211, 0.5);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 400px; /* ボタン幅を固定 */
    max-width: 90%; /* スマホ対応 */
    z-index: 11;
    transition: transform 0s ease, background-color 1.0s ease;
}


.legal-text {
    max-width: 90%;
    margin: 0 auto 1em;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word; /* 長い単語で折り返し可能に */
    white-space: normal;
}


    .hover-button:hover {
/*        transform: scale(1.05);*/
        background-color: rgba(211, 211, 211, 0.1);
    }

    /* ボタン内テキスト */
    .hover-button .button-text {
        z-index: 1;
    }

    /* ボタンのホバー効果（背景） */
    .hover-button.button1:hover,
    .hover-button.button2:hover,
    .hover-button.button3:hover,
    .hover-button.button4:hover,
    .hover-button.button5:hover,
    .hover-button.button6:hover {
        background-size: cover;
        background-position: right center;
        color: white;
    }

    /* ボタン右にホバー画像 */
    .hover-button::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -40px;
        transform: translateY(-50%);
        width: 80px;
        height: 80px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 0;
        opacity: 0;
        transition: opacity 0.3s ease, right 0.3s ease;
    }

/*    .hover-button.button4:hover::after {
        background-image: url('Momo.png');
        opacity: 1;
        right: 10px;
    }

    .hover-button.button5:hover::after {
        background-image: url('Aki.png');
        opacity: 1;
        right: 10px;
    }

    .hover-button.button6:hover::after {
        background-image: url('Tumugi.png');
        opacity: 1;
        right: 10px;
    }
*/
/* Steamリンクページ */
.button-area {
    text-align: center;
    margin-top: 30px;
}

.image-link {
    display: inline-block;
    cursor: pointer;
}

.button-img {
    width: 400px; /* 適宜サイズ調整 */
    height: auto;
    transition: transform 0.2s;
}

.image-link:hover .button-img {
    transform: scale(1.05);
}
