/* 制作実績ページ・トップの制作実績セクション用(style.css のあとに読み込む) */
.works-page header.top {
  animation: none;
  opacity: 1;
}
.works-main {
  padding: 150px 24px 96px;
}
.works-head {
  max-width: 1040px;
  margin: 0 auto 40px;
  text-align: center;
}
.works-head h1 {
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.works-head p {
  margin-top: 14px;
  color: var(--sub);
}
.works-list {
  max-width: 1040px;
  margin: 0 auto;
  scroll-margin-top: 110px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.work {
  border-radius: 32px;
  overflow: hidden;
  background: var(--row-bg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(125, 90, 217, 0.45);
}
.work-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.thumb {
  position: relative;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--t1, #d9ecfa), var(--t2, #e9e1fb));
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb .ph {
  position: relative;
  width: 40%;
  opacity: 0.55;
  stroke-width: 3;
}
.work-body {
  padding: 22px 26px 28px;
}
.cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--a2);
  box-shadow: inset 0 0 0 1px rgba(143, 111, 214, 0.35);
}
.work-body h3 {
  margin-top: 12px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
}
.work-body p {
  margin-top: 4px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.9;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.pager button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(143, 111, 214, 0.25);
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1 Montserrat, "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pager button:hover:not(:disabled) {
  border-color: var(--a2);
}
.pager button[aria-current="page"] {
  background: var(--btn);
  border-color: transparent;
  color: #fff;
  font-weight: 500;
}
.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pager button:focus-visible {
  outline: 2px solid var(--a2);
  outline-offset: 3px;
}

.more {
  text-align: center;
  margin-top: 44px;
}
.more .btn {
  font-family: Montserrat, "Noto Sans JP", sans-serif;
  letter-spacing: 0.08em;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thumb::before {
    filter: brightness(0.5) saturate(0.9);
  }
}
:root[data-theme="dark"] .thumb::before {
  filter: brightness(0.5) saturate(0.9);
}
@media (max-width: 620px) {
  .works-main {
    padding: 112px 18px 64px;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .work-body {
    padding: 20px 22px 24px;
  }
}
