* {
  box-sizing: border-box;
  word-break: break-all;
}
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  height: 100%;
  color: #333;
}

/* メインラッパー */
.wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ログインフォームの枠 */
.container {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 400px;
  width: 100%;
  z-index: 10;
}

/* タイトル */
.container h1 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* テーブルの調整 */
form table {
  width: 100%;
  margin-bottom: 20px;
  border-spacing: 0;
}

form th {
  text-align: left;
  font-size: 14px;
  padding-bottom: 5px;
  color: #2c3e50;
}

form td {
  padding-bottom: 20px;
}

form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

/* ログインボタン */
form input[type="submit"] {
  padding: 12px 20px;
  background-color: #3498db;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form input[type="submit"]:hover {
  background-color: #2980b9;
}

/* バブル背景（装飾） */
.bg-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.bg-bubbles li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px;
  height: 40px;
  background-color: #3498db;
  bottom: -80px;
  border-radius: 50%;
  animation: rise 25s infinite ease-in;
}

.bg-bubbles li:nth-child(1) { left: 10%; animation-delay: 0s; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 60px; height: 60px; animation-delay: 2s; animation-duration: 20s; }
.bg-bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 70px; height: 70px; animation-delay: 0s; animation-duration: 22s; }
.bg-bubbles li:nth-child(5) { left: 70%; animation-delay: 3s; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 60px; height: 60px; animation-delay: 2s; animation-duration: 25s; }
.bg-bubbles li:nth-child(7) { left: 32%; animation-delay: 4s; animation-duration: 17s; }
.bg-bubbles li:nth-child(8) { left: 55%; animation-delay: 1s; animation-duration: 23s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 50px; height: 50px; animation-delay: 2s; animation-duration: 20s; }
.bg-bubbles li:nth-child(10) { left: 90%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 26s; }

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  100% {
    transform: translateY(-1000px) scale(0.5);
    opacity: 0;
  }
}

/* モバイル対応 */
@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
  }
}
@media screen and (max-width:768px){.wrapper{width:calc(100% - 40px);margin:auto}}