/* 共通のbody表示 */
body {
  font-family: "Arial", sans-serif;
  background-color: #fefefe;
  margin: 0;
  padding: 0;
}

/* 共通のimg表示 */
img {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 5px auto;
}

/* 共通のヘッダスタイル */
h1 {
  text-align: center;
  margin: 20px 0 30px;
  font-size: 32px;
}

/* ユーザー情報ボックス（右上固定） */
#user-info {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f8f8f8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* ログイン・ログアウトボタン */
#user-info .auth-button {
  padding: 6px 10px;
  font-size: 14px;
  border: none;
  background-color: #3a89c9;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#user-info .auth-button:hover {
  background-color: #2f6da5;
}

/* 退会ボタン */
.auth-button.danger {
  padding: 6px 10px;
  font-size: 14px;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  background-color: #cc3b3b;
}

.auth-button.danger:hover {
  background-color: #a62828;
}

/* ユーザー名表示 */
#user-info .login-status {
  color: #333;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

/* 各種ボタン（例：問題リンク） */
.button-style {
  display: inline-block;
  background-color: #007acc;
  color: #fff;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  margin: 6px 0;
  transition: background-color 0.3s;
}

.button-style:hover {
  background-color: #005fa3;
}

/* 問題文のフォントなど */
.content {
  font-family: "IPAゴシック", "IPAGothic", sans-serif;
  max-width: 800px;
  margin: 10px auto;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
}

/* fixed-button（TOPへ、設問、などのボタン） */
.fixed-button {
  position: fixed;
  right: 10px;
  padding: 14px 24px;
  font-size: 18px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.fixed-button:hover {
  background-color: #0056b3;
}

.fixed-button:nth-of-type(1) {
  bottom: 60px;
}

.fixed-button:nth-of-type(2) {
  bottom: 150px;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 10px;
  text-align: center;
}





/* ★ モバイル画面幅に対応するレスポンシブ調整 */
@media screen and (max-width: 600px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 22px;
    margin: 16px 0 24px;
  }


  img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1px auto;
  }

  #user-info {
    top: auto;
    bottom: 10px;
    right: 10px;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
    padding: 10px;
    gap: 6px;
  }

  #user-info .auth-button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  #user-info .login-status {
    max-width: 160px;
    text-align: right;
    font-size: 14px;
  }

  .button-style {
    width: 100%;
    font-size: 18px;
    padding: 12px 0;
    text-align: center;
  }
}