@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'AppendCPandTrans';
    src:url('AppendCPandTrans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'AppendCPandTrans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロールを防止 */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* 背景が他の要素の背面に配置されるように */
}


a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


.topimg {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topimg img {
    margin: 10px 0;
}

/* コンテナとボックススタイル */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    
}

.box {
    background: #4499dd;
    border-radius: 10px;
    box-shadow: 0 5px 6px rgba(75, 74, 74, 0.4);
    width: 100px;
    height: 150px; 
    padding: 5px;
    text-align: center;
    margin: 5px auto;
    overflow: hidden;
    max-width: 1200px; /* コンテナの最大幅を設定 */
}

/* 画像の調整 */
.box-image {
    width: 100%;
    height: 80px; /* 画像の高さをボックスに合わせて調整 */
    object-fit: cover;
    border-radius: 8px;
}

.names {
    font-size: 12px;
    text-align: center; /* 横方向の中央揃え */
    margin-top: 0;      /* 外側の余白を削除 */
    margin-bottom: 0;   /* 外側の余白を削除 */
    height: 30px;       /* 親要素の高さを指定 */
    display: flex;      /* フレックスボックスを使用 */
    align-items: center; /* 縦方向の中央揃え */
    justify-content: center; /* 横方向の中央揃え */
    color: white;        /* 文字色を白に設定 */
    text-shadow: 
        -1.5px -1.5px 0 black, /* 左上 */
         1.5px -1.5px 0 black, /* 右上 */
        -1.5px  1.5px 0 black, /* 左下 */
         1.5px  1.5px 0 black; /* 右下 */
}


.vote-button-link {
    display: inline-block;  /* リンクをボタンとして表示 */
}

.vote-button-image {
    display: block;          /* 画像をリンク全体に広げる */
    width: 115px;            /* 必要に応じてボタンサイズを調整 */
    height: auto;
    cursor: pointer;         /* ホバーでカーソルが指に変わる */
}


.button a {
    color: black;
    display: flex;
    width: 100%;
    font-size: 12px;
    justify-content: center;
}

/* スマホ用のスタイル調整 */
@media (max-width: 600px) {
    .container {
        width: 100%;
        justify-content: space-around; /* ボックス間のスペースを均等に */
        gap: 1px;
    }
    .box {
        width: 30%;
        height: auto;
    }
    .box-image {
        height: auto; /* 高さは自動調整 */
    }

}

/* デスクトップ表示のためのスタイル */
@media (min-width: 601px) {

    .container{
        width: 100%;
        justify-content: space-around; /* ボックス間のスペースを均等に */
        gap: 10px;
    }
    .box {
        width: 12%; /* ボックスの幅を広げる */
        height: auto;
    }
    .names {
        font-size: 16px; /* フォントサイズを大きく */
    }
    .box-image {
        height: auto; /* 高さは自動調整 */
    }
}