@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
  color: #333;
  background: #f5f6f8;
}

img {
  max-width: 100%;
  height: auto;
}

.page {
  padding: 40px 20px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 32px;
  text-align: center;
}

.page-title {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.4;
  color: #222;
}

.page-lead {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #222;
}

.published-results,
.check-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

.published-results {
  margin-bottom: 24px;
}

.published-list {
  display: grid;
  gap: 14px;
}

.published-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
}

.published-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  font-weight: bold;
  color: #fff;
  background: #1f6fb2;
  border-radius: 999px;
}

.published-number {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #222;
  word-break: break-all;
}

.check-text {
  margin: 0 0 16px;
  color: #666;
}

.check-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.number-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #fff;
}

.number-input:focus {
  outline: none;
  border-color: #1f6fb2;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.15);
}

.check-button {
  appearance: none;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  color: #fff;
  background: #1f6fb2;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.check-button:hover {
  opacity: 0.9;
}

.result-box {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: bold;
}

.result-box.is-show {
  display: block;
}

.result-box.is-win {
  color: #7a5400;
  background: #fff4d6;
  border: 1px solid #edd18a;
}

.result-box.is-lose {
  color: #555;
  background: #f2f3f5;
  border: 1px solid #d9dde3;
}

.result-box.is-error {
  color: #b00020;
  background: #fdebec;
  border: 1px solid #f2b8be;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

@media (max-width: 767px) {
  .page {
    padding: 24px 16px;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .published-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .published-number {
    font-size: 1.1rem;
  }

  .check-button {
    width: 100%;
  }
}