@import url('https://fonts.googleapis.com/css2?family=Anton&family=Noto+Sans+JP:wght@400;700&display=swap');

body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  background-color: #f8f8f8;
  color: #111;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #002f6c;
  color: white;
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 1.8em;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover {
  color: #00aaff;
}

.hero {
  background: url('https://images.unsplash.com/photo-1611765083536-9a21e6f3215a?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5em 1em;
  font-family: 'Anton', sans-serif;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px #000;
}

.section {
  max-width: 1000px;
  margin: 3em auto;
  padding: 2em;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
}

.section.dark {
  background-color: #e3f2fd;
}

h2 {
  font-size: 2em;
  color: #002f6c;
  border-left: 6px solid #007fff;
  padding-left: 0.5em;
  margin-bottom: 1em;
}

ul {
  line-height: 1.6;
  padding-left: 1.2em;
}

.card-grid {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
}

.player-card {
  background-color: white;
  border: 3px solid #004aad;
  border-radius: 10px;
  width: 200px;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  padding: 1em;
}

.player-card img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
}

.card-info h3 {
  margin: 0.5em 0 0.2em;
}

.footer {
  text-align: center;
  background-color: #002f6c;
  color: white;
  padding: 1.5em;
  margin-top: 3em;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  max-width: 500px;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  box-sizing: border-box;
}

form button {
  background-color: #007fff;
  color: white;
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #005fbb;
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 700px;
  margin-bottom: 2em;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 0.8em 1em;
  text-align: left;
}

table th {
  background-color: #007fff;
  color: white;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.styled-table th,
.styled-table td {
  border: 1px solid #e6f2ff;
  padding: 0.75em;
  text-align: center;
}

.styled-table thead {
  background-color: #007bff;
  color: white;
}

.section.light {
  background-color: #e6f2ff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.styled-table th, .styled-table td {
  border: 1px solid #007bff;
  padding: 0.75rem;
  text-align: center;
}

.styled-table thead {
  background-color: #007bff;
  color: white;
}

.delete-link {
  color: #d00;
  text-decoration: none;
  font-weight: bold;
}

.delete-link:hover {
  text-decoration: underline;
}

.ranking-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
}
.ranking-columns div {
  width: 30%;
}
.ranking-columns h3 {
  text-align: center;
  color: #1d428a;
}
.ranking-columns ol {
  list-style-position: inside;
  padding: 0;
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 2rem 1rem;
}

.goods-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.goods-card:hover {
  transform: translateY(-5px);
}

.goods-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 180px;
}

.goods-card h3 {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #003366;
}

.goods-card p {
  font-size: 0.95rem;
  color: #333;
}

.goods-card span {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #0066cc;
}

.user-status {
  position: absolute;
  top: 1em;
  right: 2em;
  color: #fff;
  font-weight: bold;
  background-color: rgba(0, 127, 255, 0.8);
  padding: 0.4em 0.8em;
  border-radius: 6px;
  font-size: 0.9em;
  z-index: 200;
}

