/* 全体的なレイアウト */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.container {
    display: flex; /* Flexboxを使用 */
    width: 100%;
    max-width: 1400px; /* 最大幅を設定 */
    margin: auto; /* 中央寄せ */
}

/* ゲームエリア */
.game-area {
    width: 60%; /* ゲームエリアの幅 */
    padding: 20px;
    box-sizing: border-box;
}

/* 広告エリア */
.ad-area {
    width: 40%; /* 広告エリアの幅 */
    padding: 20px;
    box-sizing: border-box;
    background-color: #e0e0e0;
    border-left: 1px solid #ccc;
    border-radius: 10px;
}

h1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 0;
}

h1 img {
    width: 200px;
    height: auto;
    pointer-events: none;
    margin-top: 0;
    margin-bottom: 0;
}

.pushbtn {
    background-color: #fff;
    border: solid 2px #191970;
    color: #191970;
    border-radius: 20px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1em;
    box-shadow: 0 5px 0 #191970;
    display: inline-block;
    transition: .3s;
    margin-top: 0;
    margin-bottom: 15px;

}
.pushbtn:hover {
    color: #191970;
    transform: translateY(5px);
    box-shadow: 0 0 0 #191970;
}

.target {
    display: block;
    position: relative;
    padding: 0.25em 1em;
    border-top: solid 2px #191970;
    border-bottom: solid 2px #191970;
    color: #191970;
    font-weight: bold;
    font-size: x-large;
    width: 90%;
    margin-top: 8px;
    margin-bottom: 10px;
}
.target:before, .target:after {
    content: '';
    position: absolute;
    top: -7px;
    width: 2px;
    height: -webkit-calc(100% + 14px);
    height: calc(100% + 14px);
    background-color: #191970;
}
.target:before {
    left: 7px;
}
.target:after {
    right: 7px;
}

.target2 {
    display: block;
    position: relative;
    padding: 0.25em 1em;
    border-top: solid 2px #191970;
    border-bottom: solid 2px #191970;
    color: #191970;
    font-weight: bold;
    font-size: x-large;
    width: 70%;
    margin-top: 8px;
    margin-bottom: 10px;
    margin-left: 5px;
}
.target2:before, .target2:after {
    content: '';
    position: absolute;
    top: -7px;
    width: 2px;
    height: -webkit-calc(100% + 14px);
    height: calc(100% + 14px);
    background-color: #191970;
}
.target2:before {
    left: 7px;
}
.target2:after {
    right: 7px;
}
.counter {
    color: #191970;
    font-weight: bold;
    font-size: x-large;
    position: relative;
    padding:0.6rem 0.6rem calc(1rem);
    border: 2px solid #191970;
    width: 25%;
    margin-left: 5px;
    margin-top: 0;
    margin-bottom: 5px;
}

.counter:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    content: '';
    border-top: 2px solid #191970;
    background-image: -webkit-repeating-linear-gradient(135deg, #191970, #191970 1px, transparent 2px, transparent 5px);
    background-image: repeating-linear-gradient(-45deg, #191970, #191970 1px, transparent 2px, transparent 5px);
    background-size: 7px 7px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

.article-container {
    position: relative; /* 相対位置指定 */
    display: block;
    width: 100%; /* コンテンツを表示する幅 */
    height: 600px; /* コンテンツを表示する高さ */
    overflow: auto; /* スクロールバーを表示 */
    border: 1px solid #ccc; /* 境界線 (オプション) */
    border-radius: 5px; /* 角丸にする場合 */
    padding: 10px; /* 内側の余白 (オプション) */
    box-sizing: border-box;
}

.field {
    display: flex;
}

.iptxt {
    position: relative;
    width: 70%;
    margin: 5px;
}

.iptxt input[type='text'],
.iptxt input[type='password'] {
    font: 15px/1.6 sans-serif;
    box-sizing: border-box;
    width: 100%;
    padding: 0.3em;
    color: #333333;
    border: 1px solid #191970;
    border-radius: 4px;
    transition: 0.3s;
}

.ef input[type='text']:focus,
.ef input[type='password']:focus {
    border: 1px solid #191970;
    box-shadow: 0 0 5px 1px rgba(64, 96, 238, 0.5);
    outline: none;
}

/* モーダルのスタイル */
.modal {
    display: none; /* 最初は非表示 */
    position: fixed; /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    z-index: 1000; /* 最前面に表示 */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#game-description {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    max-width: 100%;
    margin: 20px auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left; /* 左寄せに変更 */
    box-sizing: border-box;
}

#game-description h2 {
    color: #191970;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#game-description p {
    margin-bottom: 15px;
}

#game-description ul {
    list-style-type: disc;
    margin-left: 20px;
}

#game-description li {
    margin-bottom: 8px;
}

#game-description b {
    color: #555;
    font-weight: 600;
}

.big {
    color: #191970;
}

.nom {
    color: #191970;
}

.login-status {
    color: #191970;
    display: flex;
    justify-content: center; /* 中央寄せ */
    font-weight: bold;
}

#auth-form {
    display: flex;
    justify-content: center; /* 中央寄せ */
}

#login-form,
#register-form {
    width: 300px; /* フォームの幅 */
    box-sizing: border-box;
}

.iptxt2 {
    position: relative;
    width: 90%;
    margin: 5px;
    box-sizing: border-box;
}

.iptxt2 input[type='text'],
.iptxt2 input[type='password'] {
    font: 15px/1.6 sans-serif;
    box-sizing: border-box;
    width: 100%;
    padding: 0.3em;
    color: #333333;
    border: 1px solid #191970;
    border-radius: 4px;
    transition: 0.3s;
}

.ef input[type='text']:focus,
.ef input[type='password']:focus {
    border: 1px solid #191970;
    box-shadow: 0 0 5px 1px rgba(64, 96, 238, 0.5);
    outline: none;
}

.adlink {
    color: #191970;
    text-decoration: none;
}

.logo {
    width: 50%;
    height: auto;
}

.ranklist {
    list-style:none;
    font-weight: bold;
}

#loading-indicator {
    position: absolute; /* 絶対位置指定 */
    top: 50%; /* 上から50%の位置 */
    left: 50%; /* 左から50%の位置 */
    transform: translate(-50%, -50%); /* 中央寄せ */
    font-size: 1.2em;
    color: #888;
    text-align: center; /* テキストを中央寄せ */
    width: 100%; /* 幅を100%にして中央寄せを確実にする */
}