:root {
  --ink: #101914;
  --green: #0f3c2c;
  --leaf: #2e8b57;
  --paper: #fff9ed;
  --line: rgba(16, 25, 20, 0.16);
  --yellow: #f3c74f;
  --blue: #215f90;
  --pink: #e96362;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 60, 44, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 60, 44, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, rgba(243, 199, 79, 0.42), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(33, 95, 144, 0.2), transparent 22rem),
    #f7f3e7;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  font-family: "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.bg-proof {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-proof::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 243, 231, 0.5), rgba(247, 243, 231, 0.86)),
    radial-gradient(circle at 50% 16%, rgba(255, 249, 237, 0.46), transparent 28rem);
}

.bg-proof__img {
  position: absolute;
  object-fit: cover;
  opacity: 0.08;
  filter: grayscale(0.9) blur(2px);
  mix-blend-mode: multiply;
}

.bg-proof__img.a {
  top: -6vh;
  right: -12vw;
  width: 55vw;
  transform: rotate(6deg);
}

.bg-proof__img.b {
  top: 52vh;
  left: -10vw;
  width: 45vw;
  transform: rotate(-8deg);
}

.bg-proof__img.c {
  right: -6vw;
  bottom: -8vh;
  width: 40vw;
  transform: rotate(4deg);
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(255, 249, 237, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 118px;
  padding: 7px 9px;
  background: white;
  border: 1px solid var(--line);
}

.brand span {
  font-family: "M PLUS 1p", sans-serif;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: 78vh;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 78px) 42px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10vw 18% 48%;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--green), var(--green) 36px, transparent 36px, transparent 68px);
  transform: rotate(-8deg);
  opacity: 0.32;
}

.kicker {
  margin: 0 0 16px;
  color: var(--leaf);
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 900;
}

h1,
h2,
h3 {
  font-family: "M PLUS 1p", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: auto-phrase;
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 10em;
  font-size: clamp(2.45rem, 7vw, 6.5rem);
  line-height: 1.02;
}

.lead {
  max-width: 43rem;
  margin: 24px 0 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.work-stack {
  position: relative;
  min-height: 700px;
}

.work-card {
  position: absolute;
  width: min(88%, 420px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(16, 25, 20, 0.18);
  animation: float 7s ease-in-out infinite;
}

.work-card.back {
  width: min(60%, 280px);
  opacity: 0.86;
  z-index: 0;
  box-shadow: 0 14px 40px rgba(16, 25, 20, 0.12);
}

.work-card.back figcaption {
  display: none;
}

.work-card.back-one {
  top: 38px;
  left: 19%;
  transform: rotate(-8deg);
}

.work-card.back-two {
  bottom: 92px;
  left: -4%;
  transform: rotate(7deg);
}

.work-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f5f7f3;
}

.work-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-card.artwork-card {
  width: min(68%, 320px);
}

.work-card.back.artwork-card {
  width: min(48%, 220px);
}

.work-card figcaption {
  padding: 12px 14px;
  font-weight: 900;
}

.work-card.one {
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(3deg);
}

.work-card.two {
  top: 132px;
  left: 0;
  z-index: 3;
  transform: rotate(-4deg);
  animation-delay: -2s;
}

.work-card.three {
  right: 24px;
  bottom: 0;
  z-index: 4;
  transform: rotate(1deg);
  animation-delay: -4s;
}

.ticker {
  overflow: hidden;
  padding: 12px 0;
  background: var(--green);
  color: white;
  font-family: "M PLUS 1p", sans-serif;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 900;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 30s linear infinite;
}

.section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 78px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.service-card,
.proof-card,
.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(16, 25, 20, 0.08);
}

.service-card {
  display: grid;
  min-height: 320px;
  padding: 24px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(16, 25, 20, 0.16);
}

.service-card--visual {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 38vw, 400px);
  color: white;
  background: var(--green);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 72px rgba(16, 25, 20, 0.16);
  isolation: isolate;
}

.service-card--visual:hover {
  box-shadow: 0 30px 84px rgba(16, 25, 20, 0.28);
}

.service-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.service-card--website .service-card__media {
  object-position: center 32%;
}

.service-card--print .service-card__media {
  object-position: center top;
}

.service-card--movie .service-card__media {
  object-position: center center;
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 25, 20, 0.05) 0%, rgba(16, 25, 20, 0.38) 45%, rgba(16, 25, 20, 0.84) 100%),
    linear-gradient(90deg, rgba(16, 25, 20, 0.5), transparent 54%);
  transition: opacity 0.3s ease;
}

.service-card--visual b,
.service-card--visual strong,
.service-card--visual p {
  position: relative;
  z-index: 2;
}

.service-card--visual b {
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.service-card--visual strong {
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.service-card--visual p {
  max-width: 23em;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
}

.service-card--visual:hover .service-card__media {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.service-card--visual:hover .service-card__overlay {
  opacity: 1;
}

.play-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(16, 25, 20, 0.55);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card b {
  color: var(--leaf);
  font-family: "M PLUS 1p", sans-serif;
  font-size: 0.95rem;
}

.service-card strong {
  align-self: end;
  display: block;
  font-family: "M PLUS 1p", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.proof-card {
  overflow: hidden;
}

.proof-card img,
.proof-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101914;
}

.movie-proof video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.proof-card .body,
.panel {
  padding: clamp(18px, 3vw, 28px);
}

.proof-card h3,
.panel h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.format-card {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 117, 94, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 54px rgba(16, 25, 20, 0.08);
}

.format-card b {
  color: var(--green);
  font-family: "M PLUS 1p", sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
}

.format-card span {
  font-weight: 800;
  line-height: 1.75;
}

.live-site-preview {
  margin: 24px 0 18px;
  overflow: hidden;
  background: #f4f6f3;
  border: 1px solid rgba(16, 25, 20, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(16, 25, 20, 0.16);
}

.live-site-preview__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 13px;
  color: rgba(16, 25, 20, 0.72);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(16, 25, 20, 0.12);
  font-size: 0.76rem;
}

.live-site-preview__dots {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ea7467;
  box-shadow: 14px 0 #e7b64d, 28px 0 #4faf78;
  margin-right: 28px;
}

.live-site-preview__viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3ef;
}

.live-site-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.print-hero-duo {
  position: relative;
  margin: 0;
  min-height: clamp(360px, 42vw, 560px);
  isolation: isolate;
}

.print-hero-duo::before {
  content: "";
  position: absolute;
  inset: 20% 4% 2% 0;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(16, 25, 20, 0.24), transparent 62%);
  filter: blur(24px);
}

.print-hero-duo > img,
.print-hero-duo__brochure {
  position: absolute;
  display: block;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  box-shadow: 0 34px 92px rgba(16, 25, 20, 0.22);
}

.print-hero-duo__brochure {
  top: 0;
  right: 8%;
  width: min(46%, 300px);
  overflow: hidden;
  background: #fff;
  transform: perspective(1000px) rotateY(-5deg) rotateX(1.5deg) rotate(1.1deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.print-hero-duo__brochure:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(0.5deg) rotate(0.3deg) translateY(-4px);
  box-shadow: 0 40px 100px rgba(16, 25, 20, 0.28);
}

.print-hero-duo__brochure img {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
}

.print-hero-duo__flyer {
  left: 2%;
  bottom: 0;
  width: min(58%, 340px);
  transform: perspective(1000px) rotateY(7deg) rotateX(2deg) rotate(-4deg);
}

.print-hero-duo__flyer {
  z-index: 2;
}

.print-product {
  padding-top: clamp(28px, 5vw, 72px);
  scroll-margin-top: 96px;
}

.print-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1.12fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.print-product-alt .print-product-grid {
  grid-template-columns: minmax(340px, 1.12fr) minmax(0, 0.78fr);
}

.print-copy {
  position: relative;
  z-index: 2;
}

.print-mockup {
  position: relative;
  margin: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(16, 25, 20, 0.1);
  border-radius: 12px;
  box-shadow: 0 28px 84px rgba(16, 25, 20, 0.16);
}

.print-mockup::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 10%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(16, 25, 20, 0.24), transparent 64%);
  filter: blur(18px);
}

.print-mockup img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.print-mockup.brochure {
  transform: perspective(1100px) rotateY(-4deg) rotateX(1deg) rotate(-1.2deg);
}

.print-mockup.flyer {
  transform: perspective(1100px) rotateY(4deg) rotateX(1deg) rotate(1.2deg);
}

.print-mockup figcaption {
  margin-top: 10px;
  color: rgba(16, 25, 20, 0.72);
  font-weight: 900;
  font-size: 0.92rem;
}

.a4-brochure-preview {
  position: relative;
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 25, 20, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 84px rgba(16, 25, 20, 0.16);
}

.a4-brochure-preview::before {
  content: "";
  position: absolute;
  inset: 12% -3% -8% 8%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(16, 25, 20, 0.2), transparent 65%);
  filter: blur(20px);
}

.a4-brochure-preview__pages {
  display: grid;
  grid-template-columns: minmax(90px, 0.78fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(90px, 0.78fr);
  gap: clamp(3px, 0.7vw, 8px);
  align-items: center;
}

.a4-brochure-page {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 25, 20, 0.14);
  box-shadow: 0 16px 34px rgba(16, 25, 20, 0.18);
  line-height: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.a4-brochure-page.cover {
  transform: perspective(900px) rotateY(4deg) rotate(-1.2deg);
}

.a4-brochure-page.back {
  transform: perspective(900px) rotateY(-4deg) rotate(1.2deg);
}

.a4-brochure-page:hover {
  z-index: 2;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 46px rgba(16, 25, 20, 0.24);
}

.a4-brochure-page img {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
}

.a4-brochure-preview figcaption {
  margin-top: 14px;
  color: rgba(16, 25, 20, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.6;
}

.steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border-left: 6px solid var(--yellow);
}

.steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--green);
  color: white;
  border-radius: 50%;
}

.cta {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background: var(--green);
  color: white;
  border-radius: 8px;
}

.cta h2 {
  margin: 0;
}

.cta .button {
  width: fit-content;
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.footer {
  padding: 36px clamp(18px, 5vw, 78px);
  background: #101914;
  color: white;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
  }

  .topbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .cards,
  .split,
  .print-product-grid,
  .print-product-alt .print-product-grid,
  .format-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 20px 34px;
  }

  .print-product {
    scroll-margin-top: 180px;
  }

  .hero > * {
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.12;
  }

  .work-stack {
    min-height: 690px;
  }

  .work-card.artwork-card {
    width: min(74%, 300px);
  }

  .bg-proof__img.b,
  .bg-proof__img.c,
  .work-card.back {
    display: none;
  }

  .bg-proof__img.a {
    width: 96vw;
    opacity: 0.065;
  }

  .work-card {
    width: 82%;
  }

  .work-card.one {
    right: 0;
  }

  .work-card.two {
    top: 150px;
  }

  .work-card.three {
    bottom: 0;
    right: 0;
  }

  .print-hero-duo,
  .print-mockup.brochure,
  .print-mockup.flyer {
    transform: none;
  }

  .print-hero-duo {
    width: 100%;
    min-height: 430px;
  }

  .print-hero-duo__brochure {
    right: 4%;
    width: min(47%, 260px);
    transform: none;
  }

  .print-hero-duo__flyer {
    width: 58%;
  }

  .a4-brochure-preview__pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .a4-brochure-page.cover,
  .a4-brochure-page.back {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card,
  .ticker span {
    animation: none;
  }

  .ticker span {
    padding-left: 0;
  }

  .service-card__media {
    transition: none;
  }
}
