/* FILE ORDER: WORKS / HERO → FILTER → WEB → SYSTEM → OTHER → CTA → RESPONSIVE */
.works-archive {
  padding: clamp(100px,12vw,175px) clamp(24px,5vw,90px) clamp(120px,14vw,200px);
  color: var(--ink);
  background: linear-gradient(180deg,var(--surface-page) 0%,var(--white-pure) 22%,#f9fcff 100%);
}
.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin: 0 auto clamp(60px,8vw,110px);
  max-width: var(--content-visual);
}
.archive-head >div:first-child >p {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25em;
}
.archive-head h2 {
  margin: 0;
  font: 700 clamp(35px,4.5vw,66px) "Noto Sans JP",sans-serif;
  letter-spacing: -.05em;
}
.works-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.works-filter button {
  padding: 14px 17px;
  border: 1px solid rgba(7,91,160,.2);
  color: #60758d;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  transition: color .3s,background .3s,border-color .3s;
}
.works-filter button span {
  margin-left: 7px;
  color: #9aabbc;
  font-size: 7px;
}
.works-filter button:hover,.works-filter button.is-active {
  color: var(--white-pure);
  border-color: var(--blue);
  background: var(--blue);
}
.works-filter button.is-active span {
  color: rgba(3,21,61,.5);
}
.works-grid {
  max-width: var(--content-visual);
  margin-inline: auto;
}
.works-group +.works-group {
  margin-top: clamp(120px,14vw,210px);
}
.works-group.is-hidden {
  display: none;
}
.works-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(38px,5vw,68px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(7,91,160,.18);
}
.works-group-head >div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.works-group-number {
  color: #8b9daf;
  font-size: 9px;
  letter-spacing: .2em;
}
.works-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px,2.3vw,34px);
  letter-spacing: .04em;
}

/* カテゴリー名を単独の主見出しとして表示 */
.works-group-head h3 {
  font-size: clamp(30px, 3.2vw, 48px);
  letter-spacing: -.035em;
}
.works-group-head p {
  margin: 0;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
}
.works-group-head small {
  color: #8294a8;
  font: 400 10px "Noto Sans JP",sans-serif;
  letter-spacing: .06em;
}
.works-group-side {
  display: flex;
  align-items: center;
  gap: 22px;
}
.works-group-controls {
  display: flex;
  gap: 10px;
}
.works-group-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(7,91,160,.28);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255,255,255,.86);
  font-size: 18px;
  cursor: pointer;
  transition: color .25s,background .25s,border-color .25s,transform .25s;
}
.works-group-controls button:hover {
  color: var(--white-pure);
  border-color: var(--blue);
  background: var(--blue);
}
.works-group-controls button:active { transform: scale(.94); }
.works-group-controls button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.works-group-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(65px,7vw,110px) clamp(18px,2.2vw,36px);
}
.work-item {
  min-width: 0;
  transition: opacity .35s,transform .5s;
}
.work-item.is-hidden {
  display: none;
}
.work-visual {
  position: relative;
  aspect-ratio: 1.38/1;
  overflow: hidden;
  padding: clamp(24px,3vw,48px);
  transition: transform .65s cubic-bezier(.2,.8,.2,1),filter .45s;
}
.work-item a:hover .work-visual {
  transform: scale(.985);
  filter: brightness(1.08);
}
.work-visual >strong {
  position: absolute;
  z-index: 3;
  left: 7%;
  bottom: 8%;
  font-size: clamp(39px,4.7vw,76px);
  line-height: .84;
  letter-spacing: -.07em;
}
.work-visual img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 実画像を入れたカードでは、仮の図形と文字を非表示にできます。 */
.work-visual.work-visual--image > :not(img) {
  display: none;
}
.visual-web-01 {
  background: linear-gradient(140deg,#0c2464,var(--blue) 60%,#60dafa);
}
.browser-ui {
  position: absolute;
  top: 9%;
  right: 7%;
  width: 70%;
  height: 64%;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.44);
  background: rgba(255,255,255,.1);
  transform: rotate(4deg);
}
.browser-ui i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
}
.browser-ui::after {
  content: "";
  position: absolute;
  inset: 44px 18px 18px;
  background: linear-gradient(150deg,rgba(255,255,255,.65),rgba(255,255,255,.07));
}
.visual-system-01 {
  color: #052968;
  background: linear-gradient(140deg,#dff5ff,#6fc9f8 50%,#1975d1);
}
.system-ui {
  position: absolute;
  inset: 10% 8% 27% 34%;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 9px;
  padding: 14px;
  background: rgba(2,33,91,.88);
  box-shadow: 0 24px 50px rgba(0,41,103,.3);
}
.system-ui i {
  background: linear-gradient(135deg,rgba(86,219,255,.85),rgba(255,255,255,.08));
}
.visual-other-01 {
  background: linear-gradient(135deg,#4f49ea,#7b62f2 50%,#f08fd3);
}
.circle-ui {
  position: absolute;
  width: 57%;
  aspect-ratio: 1;
  right: -5%;
  top: -14%;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.055),0 0 0 96px rgba(255,255,255,.03);
}
.visual-web-02 {
  background: linear-gradient(145deg,#06265b,#0ca4cf 60%,#69e8dc);
}
.type-ui {
  position: absolute;
  right: 7%;
  top: 10%;
  color: rgba(255,255,255,.18);
  font-size: clamp(34px,5vw,80px);
  font-weight: 800;
  line-height: .82;
  text-align: right;
}
.visual-other-02 {
  background: linear-gradient(145deg,#e9e3d4,#c9b58d 52%,#786343);
}
.paper-ui {
  position: absolute;
  width: 49%;
  height: 72%;
  top: 8%;
  right: 12%;
  background: #f9f4e8;
  box-shadow: -22px 22px 0 rgba(52,38,18,.18);
  rotate: 7deg;
}
.paper-ui::before {
  content: "";
  position: absolute;
  inset: 14% 12%;
  border-top: 8px solid #183a4b;
  border-bottom: 1px solid #9b8969;
  background: repeating-linear-gradient(#d5c7ab 0 1px,transparent 1px 13px);
}
.visual-other-02 strong {
  color: #173442;
}
.visual-system-02 {
  background: linear-gradient(145deg,#03163d,#064c91 55%,#0bb6c9);
}
.dashboard-ui {
  position: absolute;
  inset: 10% 8% 32% 37%;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(118,231,255,.45);
  transform: perspective(600px) rotateY(-10deg);
}
.dashboard-ui i {
  background: rgba(66,204,239,.2);
  border: 1px solid rgba(128,235,255,.38);
}
.dashboard-ui i:first-child {
  grid-row: span 2;
}
.visual-web-03 {
  background: linear-gradient(140deg,#161957,#413bbd 55%,#269bd9);
}
.mobile-ui {
  position: absolute;
  top: 8%;
  right: 13%;
  width: 34%;
  height: 78%;
  border: 8px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background: linear-gradient(165deg,#4cd0ef,#3041ae);
  rotate: 7deg;
  box-shadow: -25px 28px 45px rgba(0,0,45,.28);
}
.mobile-ui::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  translate: -50%;
  width: 25%;
  height: 3px;
  border-radius: 3px;
  background: var(--white-pure);
}
.visual-other-03 {
  color: var(--ink);
  background: linear-gradient(145deg,#f3f3ef,#d3f0f1 55%,#83dfe3);
}
.poster-ui {
  position: absolute;
  top: 10%;
  right: 8%;
  padding: 22px;
  border: 1px solid rgba(7,24,63,.4);
  color: rgba(7,24,63,.48);
  font-size: clamp(25px,3.5vw,55px);
  font-weight: 800;
  line-height: .85;
  rotate: -5deg;
}
.work-info {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 25px;
}
.work-info p {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
}
.work-info h3 {
  margin: 0 0 8px;
  font: 500 clamp(17px,1.6vw,23px) "Noto Sans JP",sans-serif;
  letter-spacing: .04em;
}
.work-info span {
  color: #8393a6;
  font-size: 9px;
  letter-spacing: .1em;
}
.work-info >i {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(7,91,160,.25);
  color: var(--blue);
  border-radius: 50%;
  font-style: normal;
  transition: background .35s,color .35s,transform .35s;
}
.work-item a:hover .work-info >i {
  color: var(--white-pure);
  background: var(--blue);
  transform: rotate(45deg);
}
.no-results {
  padding: 70px 0;
  color: #718398;
  text-align: center;
}
.works-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr);
  align-items: center;
  gap: clamp(50px,8vw,130px);
  min-height: 510px;
  padding: clamp(90px,11vw,155px) clamp(24px,8vw,140px);
  overflow: hidden;
  color: var(--white-pure);
  background: linear-gradient(125deg,#071a4f,#075daf 57%,#18aee1);
}
.works-cta::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -8vw;
  top: -22vw;
  border-radius: 50%;
  background: #84efff;
  filter: blur(100px);
  opacity: .28;
}
.works-cta >* {
  position: relative;
  z-index: 1;
}
.works-cta >div p {
  margin: 0 0 24px;
  color: #7ce4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
}
.works-cta h2 {
  margin: 0;
  font: 700 clamp(38px,5vw,74px)/1.3 "Noto Sans JP",sans-serif;
  letter-spacing: -.055em;
}
.works-cta >a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 170px;
  padding: 35px;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.07);
  transition: background .35s,color .35s,transform .35s;
}
.works-cta >a:hover {
  color: #07549d;
  background: var(--white-pure);
  transform: translateY(-6px);
}
.works-cta >a small {
  display: block;
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: .24em;
}
.works-cta >a span {
  font: 500 22px "Noto Sans JP",sans-serif;
}
.works-cta >a i {
  font-size: 26px;
  font-style: normal;
}
@media (max-width:1050px) {
  .archive-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .works-group-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
/* Content typography scale */
.archive-head >div:first-child >p,.works-group-head p,.works-cta >div p {
  font-size: var(--text-small);
}
.works-group-number,.work-info p,.work-info span {
  font-size: var(--text-small);
}
.works-group-head small {
  font-size: var(--text-small);
}
.works-filter button,.works-cta >a small {
  font-size: var(--text-small);
}
@media(max-width:700px) {
  .archive-head >div:first-child >p,.works-group-head p,.works-cta >div p {
    font-size: var(--text-small);
  }
  .works-group-number,.work-info p,.work-info span,.works-group-head small {
    font-size: var(--text-small);
  }
  .works-filter button,.works-cta >a small {
    font-size: var(--text-small);
  }
}
@media (max-width:700px) {
  .works-archive {
    padding: 95px 24px 120px;
  }
  .archive-head {
    margin-bottom: 55px;
  }
  .works-filter {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .works-filter button {
    flex: 0 0 auto;
  }
  .works-group +.works-group {
    margin-top: 115px;
  }
  .works-group-head {
    display: block;
  }
  .works-group-head small {
    display: block;
    margin-top: 12px;
  }
  .works-group-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  .work-visual {
    aspect-ratio: 1.18/1;
  }
  .work-visual >strong {
    font-size: 13vw;
  }
  .works-cta {
    grid-template-columns: 1fr;
    gap: 55px;
    min-height: auto;
    padding: 95px 24px;
  }
  .works-cta h2 br {
    display: none;
  }
  .works-cta >a {
    min-height: 145px;
  }
}

/* ==================================================
   2026-10 WORKS UPDATE / カテゴリー別ドラッグレール
   ================================================== */
.works-group-grid {
  display: flex;
  gap: clamp(20px, 2.3vw, 38px);
  margin-right: calc(clamp(24px, 5vw, 90px) * -1);
  padding: 4px clamp(24px, 5vw, 90px) 34px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 126, 216, .45) rgba(7, 24, 63, .06);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.works-group-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.works-group-grid::-webkit-scrollbar {
  height: 5px;
}

.works-group-grid::-webkit-scrollbar-track {
  background: rgba(7, 24, 63, .06);
}

.works-group-grid::-webkit-scrollbar-thumb {
  background: rgba(8, 126, 216, .45);
  border-radius: 10px;
}

.works-group-grid .work-item {
  flex: 0 0 min(31vw, 480px);
  scroll-snap-align: start;
}

.work-card {
  display: block;
  color: inherit;
}

.work-visual.work-visual--print {
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #f4f7fa;
}

.work-visual.work-visual--print img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.work-visual.work-visual--image {
  aspect-ratio: 2.1 / 1;
  padding: 0;
  background: var(--white-pure);
}

.work-visual.work-visual--image img {
  z-index: 1;
  object-fit: contain;
  object-position: top center;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), filter .45s;
}

.work-item a:hover .work-visual--image img {
  transform: none;
  filter: brightness(1.03);
}

@media (max-width: 1050px) {
  .works-group-grid .work-item {
    flex-basis: min(56vw, 480px);
  }
}

@media (max-width: 700px) {
  .works-group-head {
    align-items: center;
  }
  .works-group-side {
    gap: 10px;
  }
  .works-group-side small {
    display: none;
  }
  .works-group-controls button {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .works-group-grid {
    gap: 18px;
    margin-right: -24px;
    padding-right: 24px;
  }

  .works-group-grid .work-item {
    flex-basis: 84vw;
  }
}
