:root {
  --works-container: min(1120px, calc(100% - 48px));
  --works-navy: var(--color-navy);
  --works-text: #526071;
  --works-line: rgba(7, 59, 104, .14);
}

body.works-page {
  margin: 0;
  color: #1f2a37;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  background: #eef3f7;
}

.works-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

body.works-page .site-header:not(.is-scrolled) {
  background-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.works-main { padding-top: 0; }
.works-container { position: relative; z-index: 2; width: var(--works-container); margin: 0 auto; }

.works-hero {
  --works-hero-image: url("/assets/img/haikei54.png");
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
  padding: var(--header-height) 0 94px;
  background:
    linear-gradient(180deg, rgba(5, 16, 35, .34) 0%, rgba(5, 16, 35, .16) 38%, rgba(5, 16, 35, .56) 100%),
    var(--works-hero-image) center center / cover no-repeat;
}

.works-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.works-hero__inner {
  position: relative;
  z-index: 2;
  width: var(--works-container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.works-hero__copy {
  width: 100%;
  max-width: 1100px;
  padding: 34px 32px;
  background: rgba(255, 255, 255, .20);
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 18px 34px rgba(5, 16, 35, .22), inset 0 1px 0 rgba(255, 255, 255, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.works-eyebrow {
  margin: 0 0 12px;
  color: var(--color-gold);
  background-image: var(--brand-gold-gradient);
  background-size: 180% 100%;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.works-hero__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.15rem, 3.45vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.works-hero__text {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 1.04rem;
  line-height: 1.95;
}

.page-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .90);
}

.page-scroll__text { font-size: .72rem; letter-spacing: .24em; }
.page-scroll__line { width: 1px; height: 58px; background: rgba(255, 255, 255, .74); animation: worksScrollLine 1.8s ease-in-out infinite; }

.works-cases {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding: 108px 0 112px;
}

.works-cases__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.works-cases__bg::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 100svh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .62) 48%, rgba(255, 255, 255, .78) 100%),
    url("/assets/img/haikei15.png") center center / cover no-repeat;
  transform: translateZ(0);
}

.works-heading { max-width: 900px; margin-bottom: 54px; }
.works-heading__title {
  margin: 0 0 18px;
  color: var(--works-navy);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.28;
  letter-spacing: 0;
}
.works-heading__text { margin: 0; color: var(--works-text); font-size: 1.03rem; line-height: 2.02; }

.works-list { border-top: 1px solid var(--works-line); }
.works-entry {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 52px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--works-line);
}
.works-entry__media { min-width: 0; }
.works-entry__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(7, 59, 104, .12);
  box-shadow: 0 18px 38px rgba(9, 25, 52, .14);
}
.works-entry__content { padding-top: 4px; }
.works-entry__number {
  margin: 0 0 12px;
  color: var(--color-gold);
  background-image: var(--brand-gold-gradient);
  background-size: 180% 100%;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Times New Roman", Georgia, serif;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.works-entry__title { margin: 0 0 24px; color: var(--works-navy); font-size: clamp(1.55rem, 2.3vw, 2.25rem); line-height: 1.4; }
.works-entry__title span { display: inline-block; white-space: nowrap; font-size: .72em; font-weight: 500; }
.works-entry__text { margin: 0; color: var(--works-text); font-size: .98rem; line-height: 1.95; }
.works-entry__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.works-entry__services li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(80, 132, 177, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(231, 241, 250, .78), rgba(207, 225, 241, .48));
  box-shadow: 0 10px 24px rgba(9, 25, 52, .09), inset 0 1px 0 rgba(255, 255, 255, .76);
  backdrop-filter: blur(9px) saturate(112%);
  -webkit-backdrop-filter: blur(9px) saturate(112%);
  color: var(--works-navy);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
}
.works-entry__services li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 2px;
  background: var(--brand-gold-gradient);
}
.works-entry__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 59, 104, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .56);
  color: var(--works-navy);
}
.works-entry__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.works-contact__link.works-entry__website {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin-top: 20px;
  padding-inline: 20px;
  justify-content: space-between;
  border-color: rgba(7, 59, 104, .16);
  border-radius: 8px;
  background: rgba(222, 236, 248, .48);
  text-align: left;
  line-height: 1.45;
}

.works-contact {
  padding: 102px 0 110px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 82% 18%, rgba(64, 179, 213, .14) 0%, rgba(64, 179, 213, 0) 28%),
    linear-gradient(180deg, #eef4f9 0%, #e6edf6 54%, #dde7f3 100%);
}
.works-contact__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 28px; align-items: center; }
.works-contact__title { margin: 0 0 16px; color: var(--works-navy); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.24; }
.works-contact__text { margin: 0; color: var(--works-text); font-size: 1rem; line-height: 1.95; }
.works-contact__action { display: flex; justify-content: flex-end; }
.works-contact__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 196px;
  min-height: 58px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 18px 34px rgba(8, 18, 38, .16), inset 0 1px 0 rgba(255, 255, 255, .32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--works-navy);
  font-size: 1.06rem;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--link-fill-duration) ease, border-color var(--link-fill-duration) ease;
}
.works-contact__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-navy-pattern), var(--brand-navy-gradient); transform: translateX(-101%); transition: transform var(--link-fill-duration) cubic-bezier(.22, 1, .36, 1); }
.works-contact__link::after { content: "→"; }
.works-contact__link:hover, .works-contact__link:focus-visible { color: #fff; }
.works-contact__link:hover::before, .works-contact__link:focus-visible::before { transform: translateX(0); }

.works-footer { padding: 34px 0 38px; background: var(--brand-navy-pattern), var(--brand-navy-gradient); }
.works-footer__inner { width: var(--works-container); margin: 0 auto; text-align: center; color: #fff; }
.works-footer__brand { margin: 0 0 6px; font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.works-footer__copy { margin: 0; color: rgba(255, 255, 255, .72); font-size: .9rem; letter-spacing: .04em; }

.company-reveal { opacity: 0; transform: translateY(34px); transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) cubic-bezier(.22, 1, .36, 1); will-change: opacity, transform; }
.company-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes worksScrollLine {
  0% { transform: scaleY(.2); transform-origin: top center; opacity: .4; }
  50% { transform: scaleY(1); transform-origin: top center; opacity: 1; }
  100% { transform: scaleY(.2); transform-origin: bottom center; opacity: .4; }
}

@media (max-width: 980px) {
  .works-entry, .works-contact__inner { grid-template-columns: 1fr; }
  .works-contact__action { justify-content: flex-start; }
}

@media (max-width: 767px) {
  :root { --works-container: min(100% - 32px, 1120px); }
  .works-hero { --works-hero-image: url("/assets/img/haikei64.png"); padding: var(--header-height) 0 86px; }
  .works-hero__copy { padding: 24px 18px; }
  .works-hero__title, .works-heading__title, .works-contact__title { font-size: clamp(1.95rem, 9vw, 2.4rem); }
  .works-hero__text, .works-heading__text, .works-contact__text { font-size: .98rem; line-height: 1.95; }
  .page-scroll { bottom: 18px; }
  .page-scroll__line { height: 48px; }
  .works-cases { padding: 74px 0 82px; }
  .works-heading { margin-bottom: 34px; }
  .works-entry { gap: 26px; padding: 42px 0; }
  .works-entry__media img { aspect-ratio: 16 / 10; }
  .works-entry__content { padding-top: 0; }
  .works-entry__title { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .works-entry__services { gap: 8px; }
  .works-entry__services li { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; min-height: 64px; padding: 8px; font-size: .82rem; }
  .works-entry__icon { width: 34px; height: 34px; }
  .works-entry__icon svg { width: 19px; height: 19px; }
  .works-entry__website { min-height: 56px; margin-top: 16px; padding: 12px 14px; font-size: .88rem; }
  .works-contact { padding: 76px 0 82px; }
  .works-contact__link { min-width: 100%; }
}
