/*
Theme Name: cmind-catalog-theme
*/
:root {
  --bg: #f8fafc;
  --card-bg: #fff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

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

.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header a {
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  background: #fff;
}

.main {
  padding: 24px 0 48px;
}

/* Archive grid */
.archive-title{
	text-align: center;
	margin: 60px 0;
}
.catalog-archive__filter {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin: 0 0 1rem;
}

.catalog-grid {
  display: grid;
  gap: clamp(12px, 2vw, 24px);
  grid-template-columns: repeat(2, 1fr);
}


@media (max-width:767px) {
  .catalog-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.catalog-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  overflow: hidden;
  border: 1px solid var(--border);
}

.catalog-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.catalog-card__thumb{
	display:block;
  width:100%;
  aspect-ratio: 4 / 3; 
  overflow:hidden;
  background:#eee;
}
.catalog-card__thumb img {
 width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.catalog-card__title {
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0 1rem;
}

.catalog-card__cats {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding: 0 1rem 1rem;
  margin: 0;
  list-style: none;
}

.catalog-card__cats li {
  font-size: .8rem;
  background: #f2f4f7;
  border-radius: 999px;
  padding: .2rem .6rem;
}


/* Single */
.catalog-hero__img {
  width: 100%;
  height: auto;
  display: block;
	padding: 80px 0;
}

.catalog-header {
  margin: 24px 0;
	display: flex;
	justify-content: space-between;
}

.catalog-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 .5rem;
}

.catalog-subtitle {
  color: var(--muted);
  margin: 0 0 .75rem;
}

.catalog-cats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  list-style: none;
  padding: 0;
}

.catalog-cats li {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: .25rem .6rem;
}

.btn--site {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: .6rem 1.5rem;
  border-radius: 50vh;
  text-decoration: none;
}

.catalog-detail {
  margin: 60px 0;
}

.catalog-detail__list .row {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: .5rem 1rem;
  padding: .5rem 0;
}

.catalog-detail__list dt {
  color: var(--muted);
}

.catalog-sitemap,
.catalog-layouts {
  margin: 60px 0;
}

.catalog-sitemap__figure img,
.catalog-layouts__grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

.catalog-layouts__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 60px;
}


.pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pager a,
.pager span {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

.pager .current {
  font-weight: 700;
}

.catalog-archive__filter {
  display: grid;
  gap: 30px;
  align-items: start;
  margin: 0 0 80px;
}

.filter-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
border: none;
	border-bottom: 1px solid #E2E2E2;
	padding-bottom: 20px;
}

.filter-group legend {
  font-weight: 700;
  padding: 0 10px 4px;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
	justify-content: center;
}

.filter-actions button{
	background: #333;
    color: white;
    padding: 5px 30px;
    border-radius: 9999px;
    width: fit-content;
    transition: all 0.3s;
    border: 1px solid #333;
    cursor: pointer;
}

.filter-actions .reset {
  color: #6b7280;
  text-decoration: none;
	padding: 5px 30px;
    border-radius: 9999px;
	border: 1px solid #6b7280;
		background: #fff;
	font-size: 12px;
}

.catalog-back{
	margin: 80px 0;
}


.catalog-tax-cloud {
  margin: 48px 0 0;
	padding: 80px 0px 100px;
}

.catalog-tax-cloud__divider {
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 40px 0;
}

.catalog-tax-cloud__group+.catalog-tax-cloud__group {
  margin-top: 20px;
}

.catalog-tax-cloud__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.catalog-tax-cloud__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.catalog-tax-cloud__list a {
  text-decoration: none;
  border-bottom: 1px dotted #aaa;
}

.catalog-tax-cloud__list a:hover {
  border-bottom-style: solid;
}

@media (max-width:767px) {
	.filter-group{
		gap: 0;
	}
  .catalog-layouts__grid {
    grid-template-columns: 1fr;
  }
	
	.catalog-header{
		flex-direction: column;
	}
	
	.catalog-detail__list .row{
	grid-template-columns: 1fr;
	}
	.catalog-detail__list .row dd{
		margin: 0;
	}
	.btn--site{
		margin-top: 20px;
	}
	.catalog-hero__img{
		padding: 60px 0 0;
	}
	.catalog-back{
		margin: 40px 0;
	}
	.catalog-tax-cloud{
		padding: 40px 0
	}
}
