@cahrset "utf-8";

html, body {
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 16px !important;
    height: auto;
	overflow-x: hidden;
    background-color: #E3F2FF !important;
    display: flex;
    flex-direction: column;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
	padding-bottom: 40px;
}

.box_container {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}


/* ニックネームのスタイル（画面の左上に配置、アイコンを2倍に） */
.nickname-container {
    position: fixed;
    top: 0px; /* 画面の左上に配置 */
    left: -10px;
    font-size: 20px;
    font-weight: normal; /* 太文字を解除 */
    background-color: transparent;
    padding: 8px 20px;
    border-radius: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    white-space: nowrap; /* ニックネームが改行されないようにする */
}

.nickname-container img {
    width: 80px; /* アイコンの大きさを2倍に調整 */
    height: auto;
    margin-right: 8px; /* ニックネームとの間隔 */
}

/* ページのローディング中の背景色を変更 */
html {
    background-color: #E3F2FF;
}

/* 読み込みが完了するまでコンテンツを非表示にする */
body.loading {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}


.center-button-container {
    display: flex;
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 縦方向で中央揃え */
    align-items: center;
    min-height: auto; /* 不要な高さを削除 */
}

.box_container {
    display: inline-block;
    margin: 0;
    padding-bottom: 40px;
}

.center-button-container form {
    margin: 0; /* フォームの余白をなくす */
}

.button2 {
    padding: 10px 20px; /* ボタンのサイズ調整 */
    font-size: 16px; /* 文字サイズ */
    border: none; /* ボーダーを削除 */
    background-color: #007BFF; /* ボタンの背景色 */
    color: white; /* ボタンの文字色 */
    border-radius: 5px; /* ボタンの角丸 */
    cursor: pointer; /* カーソルをポインタに変更 */
}

.button2:hover {
    background-color: #0056b3; /* ホバー時の色変更 */
}

.button-img {
    width: 80%;  /* 必要に応じて調整 */
    height: auto;
    cursor: pointer;
    border:0;
}

.titlebar {
    display: flex;
    align-items: center;
    padding-left: 40px !important;
}

.category {
    margin-left: 0; /* titlebar で余白を設定するのでリセット */
    padding-left: 0;
}


.center-content {
    text-align: center; /* 中央寄せ */
    margin: 0 auto; /* 中央寄せの補助 */
    display: flex;
    flex-direction: column;
    align-items: center; /* アイテムも中央に */
}

.category_title {
    font-size: 20px;
}

.category_body {
    font-size: 16px;
}



hr {
    border: none;
    border-top: 5px dotted gray;
    width: 40%;
    margin-left: 0;
}

.image-button {
    border: 0;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

/* フォームやテーブルの背景色を統一 */
.form-container, table {
    background-color: #E3F2FF !important;
}

/* 画像ボタンのフチを削除 */
input[type="image"] {
    border: none;        /* 枠線をなくす */
    background: none;    /* 背景を透明にする */
    outline: none;       /* フォーカス時の枠もなくす */
    padding: 0;          /* 余白を削除 */
}

/* 画像ボタンの基本スタイル */
.button-img {
    width: 100px;  /* 初期サイズ */
    height: auto;
    max-width: 100%;  /* 画像が大きくなりすぎないように制限 */
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* レスポンシブ最小限調整：元レイアウトを壊さない */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .box_container {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px; /* 中央に集めつつ、大きくなりすぎないように */
    }
	.button-center {
	    display: flex;
	    justify-content: center;
	    align-items: center;
	    flex-direction: column;
	    gap: 20px;
	}

}

@media screen and (max-width: 600px) {
    .category_title {
        font-size: 16px;
    }

    .category_body {
        font-size: 16px;
    }
	.button-img {
	    width: 80px;  /* スマホの小さい画面向け */
	    height: auto;
	}
}