* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #0f1115;
  color: #f4f4f4;
}

.topbar {
  padding: 32px 20px;
  text-align: center;
  background: linear-gradient(135deg, #171a22, #0d0f14);
  border-bottom: 1px solid #2c3240;
}

.topbar h1 {
  margin: 0;
  font-size: 32px;
}

.topbar p {
  margin-top: 10px;
  color: #b8c0d0;
}

.container {
  width: min(1100px, 92%);
  margin: 28px auto 60px;
}

.search-box {
  margin-bottom: 28px;
}

.search-box input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #31394a;
  background: #181c25;
  color: white;
  font-size: 16px;
  outline: none;
}

.search-box input:focus {
  border-color: #6da8ff;
  box-shadow: 0 0 0 3px rgba(109, 168, 255, 0.15);
}

.section-block {
  margin-bottom: 42px;
}

.section-title-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 24px;
}

.section-sub {
  color: #98a3b8;
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.category-group {
  margin-bottom: 28px;
}

.category-group h3 {
  margin-bottom: 14px;
  font-size: 20px;
  color: #d6def0;
  border-left: 4px solid #6da8ff;
  padding-left: 10px;
}

.sound-card {
  background: #171b23;
  border: 1px solid #2b3242;
  border-radius: 18px;
  padding: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.sound-card:hover {
  transform: translateY(-3px);
  border-color: #6da8ff;
}

.sound-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.sound-desc {
  margin: 0 0 12px;
  color: #bcc5d6;
  font-size: 14px;
  line-height: 1.6;
  min-height: 44px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  background: #232b39;
  color: #8ec1ff;
  border: 1px solid #395175;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.sound-card audio {
  width: 100%;
  margin-bottom: 12px;
}

.download-btn {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: #2b6fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  transition: background 0.15s ease;
}

.download-btn:hover {
  background: #4d86ff;
}

.empty-message {
  padding: 18px;
  border: 1px dashed #3a4255;
  border-radius: 14px;
  color: #95a0b6;
  background: #151922;
}

.contact-entry-section {
  margin-top: 40px;
}

.contact-entry-box {
  margin-top: 16px;
  padding: 24px;
  border-radius: 16px;
  background: #111;
  border: 1px solid #2a2a2a;
  text-align: center;
}

.contact-entry-text {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #ddd;
}

.mail-confirm-button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #ffffff;
  color: #111;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mail-confirm-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.mail-confirm-button:active {
  transform: translateY(0);
}
