body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: url('../img/bg010.jpg');
  background-attachment: fixed;
}

header {
  padding: 10px 14px;
  background: #c6c6e6;
  border-bottom: 2px solid #000;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

.title {
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 6px;
  color: #cc00cc;
  text-shadow: 2px 2px 0 #8080f0;
}

.header_main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  margin-top: 6px;
  font-size: 14px;
}

.menu a {
  color: #0000cc;
  text-decoration: underline;
  margin-right: 12px;
}

.wrap {
  max-width: 900px;
  margin: 14px auto;
  padding: 0 14px;
}

.panel {
  background: #ff8;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #666;
  padding: 16px;
}

.center {
  text-align: center;
}

.sp {
  height: 14px;
}

.bigPrev {
  font-weight: 800;
  font-size: 22px;
  color: #cc0000;
}
.input {
  width: min(420px, 92%);
  padding: 8px;
  border: 2px solid #000;
  font-size: 16px;
}

.btnrow {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  padding: 8px 14px;
  border: 2px solid #000;
  background: #dcdcdc;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background: #cfcfcf;
}

.err {
  color: #cc0000;
  margin-top: 8px;
  white-space: pre-line;
  font-weight: 700;
}

.history {
  margin-top: 14px;
  padding: 12px 14px;
  background: #ffffe6;
  border: 2px solid #000;
}

.line {
  padding: 7px 0;
  border-bottom: 1px dotted #666;
}

.ts {
  color: #666;
  font-size: 12px;
}

.wprev {
  font-weight: 800;
  font-size: 16px;
  color: #cc0000;
}

.wcur {
  font-weight: 900;
  font-size: 24px;
  color: #0000cc;
}

.main-image-wrap {
  margin: 8px 0 12px;
  text-align: center;
  /* 位置は好みで left にしてもOK */
}

.main-image {
  max-height: 250px;
  width: auto;
  /* 縦横比維持 */
  height: auto;
  /* 念のため */
  image-rendering: auto;
}