:root {
  --cream: #fdf8f2;
  --cream-dark: #f5ede0;
  --border: #c8b89a;
  --border-lt: #ddd0bc;
  --accent: #B82343;
  --gold: #c8a870;
  --gold-lt: #e8d4a8;
  --text: #3a2a18;
  --text-sub: #7a6050;
  --text-mute: #a08870;
  --c-autumn: #c85a00;
  --c-summer: #0077a8;
  --c-spring: #b8306a;
  --c-winter: #3a5f8a;
  --c-love: #9b3060;
  --c-travel: #2d6e55;
  --c-farewell: #5a4e8a;
  --c-misc: #5a5040;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

#search-input {
  border: 1px solid #c8b89a;
  background: #ffffff;
  border-radius: 3px;
  padding: 0.45rem 0.8rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  color: #3a2a18;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
}
#search-input:focus {
  border-color: #c8a870;
}
#search-input::-moz-placeholder {
  color: #a08870;
}
#search-input::placeholder {
  color: #a08870;
}

#result-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: #a08870;
  white-space: nowrap;
}

.controls-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  background: #f5ede0;
  border: 1px solid #ddd0bc;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.controls-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.controls-label {
  font-size: 0.72rem;
  font-family: "noto-sans-pro", sans-serif;
  color: #a08870;
  letter-spacing: 0.08em;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn, .sort-btn {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid #c8b89a;
  border-radius: 2px;
  background: #ffffff;
  color: #7a6050;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.filter-btn:hover, .sort-btn:hover {
  background: #e8d4a8;
  border-color: #c8a870;
  color: #B82343;
}
.is-active.filter-btn, .is-active.sort-btn {
  background: #B82343;
  border-color: #B82343;
  color: #ffffff;
}
.filter-btn:active, .sort-btn:active {
  transform: scale(0.97);
}

.controls-divider {
  width: 1px;
  background: #ddd0bc;
  align-self: stretch;
  margin: 0 0.25rem;
}

.poet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.section-header {
  grid-column: 1/-1;
  font-family: "Kaisei HarunoUmi", serif;
  font-size: 1.1rem;
  color: #B82343;
  border-bottom: 1px solid #c8b89a;
  padding: 0.5rem 0 0.3rem;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

@media (min-width: 1200px) {
  .section {
    width: 1200px;
  }
}
.poet-card {
  display: block;
  background: #ffffff;
  border: 1px solid #ddd0bc;
  border-radius: 3px;
  text-decoration: none;
  color: #3a2a18;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  animation: cardIn 0.25s ease both;
}
.poet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 168, 112, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.poet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(80, 50, 20, 0.12);
  border-color: #c8a870;
}

.card-number {
  position: absolute;
  top: 0.55rem;
  left: 0.6rem;
  font-family: "Kaisei HarunoUmi", serif;
  font-size: 0.7rem;
  color: #ffffff;
  background: #B82343;
  border-radius: 2px;
  padding: 0.05rem 0.4rem;
  line-height: 1.5;
}

.card-body {
  padding: 2.2rem 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-name {
  font-family: "noto-sans-pro", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}
.card-name ruby {
  ruby-align: center;
}
.card-name rt {
  font-size: 0.55em;
  font-weight: 400;
  color: #333;
}

.card-img > img {
  position: absolute;
  top: 15%;
  right: 5%;
}

.card-date, .card-source, .card-outline {
  font-size: 0.73rem;
  color: #7a6050;
  font-family: "noto-sans-pro", sans-serif;
}

.card-poem {
  font-size: 0.75rem;
  color: #7a6050;
  line-height: 1.6;
  margin: 0.15rem 0;
  font-family: "noto-sans-pro", sans-serif;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.card-theme {
  font-size: 0.68rem;
  font-family: "Noto Sans JP", sans-serif;
  border-radius: 2px;
  padding: 0.1rem 0.45rem;
  font-weight: 700;
  color: #ffffff;
  background: #a08870;
}
.card-theme[data-theme=autumn] {
  background: #c85a00;
}
.card-theme[data-theme=summer] {
  background: #0077a8;
}
.card-theme[data-theme=spring] {
  background: #b8306a;
}
.card-theme[data-theme=winter] {
  background: #3a5f8a;
}
.card-theme[data-theme=love] {
  background: #9b3060;
}
.card-theme[data-theme=travel] {
  background: #2d6e55;
}
.card-theme[data-theme=farewell] {
  background: #5a4e8a;
}
.card-theme[data-theme=misc] {
  background: #5a5040;
}

.card-job {
  font-size: 0.68rem;
  color: #a08870;
  font-family: "Noto Sans JP", sans-serif;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.zukan-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid #ddd0bc;
  color: #a08870;
  font-size: 0.78rem;
}

@media (max-width: 1024px) {
  .poet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .zukan-header h1 {
    font-size: 1.5rem;
  }
  .poet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #search-input {
    width: 160px;
  }
}
@media (max-width: 480px) {
  .poet-grid {
    grid-template-columns: 1fr;
  }
  #search-input {
    width: 100%;
  }
  .search-wrap {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .zukan-header {
    padding: 1.25rem 0 1rem;
  }
}/*# sourceMappingURL=zukan.css.map */