:root {
  --bg-1: #1a1a2e;
  --bg-2: #16213e;
  --bg-3: #0f3460;
  --text-main: #eeeeee;
  --text-sub: #aad4f5;
  --accent: #e94560;
  --warn: #ffc107;
  --muted: #9ea4af;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: radial-gradient(1200px 700px at 10% -10%, #243b76 0%, var(--bg-1) 45%);
  color: var(--text-main);
}

a {
  color: var(--text-sub);
}

a:hover {
  color: #c4e5ff;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.navbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--bg-3);
  margin-bottom: 1rem;
}

.navbar-inner {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.age-badge {
  border: 1px solid var(--warn);
  color: var(--warn);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.42rem 0.72rem;
  border-radius: 6px;
  border: 1px solid #7085ab;
  color: #fff;
  text-decoration: none;
  font-size: 0.87rem;
  background: transparent;
}

.btn:hover {
  border-color: #96add7;
}

.btn-search {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-search:hover {
  background: #d63b56;
  border-color: #d63b56;
}

.alert {
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-compliance {
  border-color: var(--warn);
  background: rgba(255, 193, 7, 0.08);
  color: #f3df95;
}

.alert-info {
  border-color: #395489;
  background: rgba(57, 84, 137, 0.2);
}

.main {
  padding-bottom: 3rem;
}

.search-form {
  display: grid;
  grid-template-columns: 2.6fr 1fr 1fr 1fr auto;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid #e94560;
  border-radius: 6px;
  color: var(--text-main);
  padding: 0.55rem 0.65rem;
}

.input::placeholder {
  color: #8392ab;
}

.input:focus {
  outline: none;
  border-color: #f1687f;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.22);
}

.thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0f3460;
  color: #6780a3;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.card-body {
  padding: 0.6rem;
}

.card-title {
  margin: 0 0 0.3rem;
  line-height: 1.3;
  font-size: 0.85rem;
}

.card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.circle-name {
  color: var(--text-sub);
  font-size: 0.76rem;
  margin: 0 0 0.2rem;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 0.25rem;
}

.tag-list {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.tag-chip {
  border-radius: 999px;
  background: #17416f;
  color: #cae7ff;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  text-decoration: none;
}

.card-footer {
  margin-top: auto;
  padding: 0.45rem 0.6rem;
  border-top: 1px solid #15355b;
  text-align: right;
}

.pr-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.67rem;
  padding: 0.05rem 0.3rem;
  vertical-align: text-top;
}

.pager {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.pager-info {
  color: #d3d8e3;
  font-size: 0.9rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 370px) 1fr;
  gap: 1.2rem;
}

.main-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.sample-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.8rem;
}

.sample-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #1b4877;
  border-radius: 4px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.7rem;
}

.table th,
.table td {
  border-bottom: 1px solid #1f446a;
  padding: 0.45rem 0.3rem;
  font-size: 0.9rem;
}

.table th {
  width: 108px;
  color: var(--text-sub);
  text-align: left;
}

.score-wrap {
  font-size: 0.72rem;
  color: #c0c6d2;
}

.score-bar {
  background: var(--accent);
  border-radius: 999px;
  height: 6px;
}

.footer {
  border-top: 1px solid #1c3a5f;
  margin-top: 2.2rem;
  padding: 1.1rem 0 2rem;
  color: #c2c2c2;
  font-size: 0.88rem;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
}

.muted {
  color: var(--muted);
}

.list-none {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-form .full {
    grid-column: 1 / -1;
  }
  .results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 1rem));
  }
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
