:root {
  --color-bg: #f8f7ed;
  --color-paper: #fffef8;
  --color-text: #272727;
  --color-muted: #74726c;
  --color-accent: #e95f00;
  --color-card: #e8e7e3;
  --font-en: "DM Sans", sans-serif;
  --font-ja: "Noto Sans JP", sans-serif;
  --fs-body: 0.94rem;
  --fs-section: clamp(2.5rem, 6vw, 5.5rem);
  --content-width: 1120px;
  --section-space: clamp(6rem, 12vw, 11rem);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--fs-body)/1.8 var(--font-ja);
  letter-spacing: 0.04em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.sp-only {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  mix-blend-mode: difference;
  color: #fff;
}

.logo {
  font: 600 1.3rem/1 var(--font-en);
  letter-spacing: -0.06em;
}

.logo span {
  color: var(--color-accent);
}

.global-nav,
.site-footer nav {
  display: flex;
  gap: 32px;
  font: 500 0.72rem var(--font-en);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.global-nav a {
  position: relative;
}

.global-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}

.global-nav a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  border: 0;
  background: none;
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  margin: 7px 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--color-bg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--color-text);
}

.hero-art {
  position: absolute;
  height: 112%;
  width: auto;
  max-width: none;
  right: 6%;
  bottom: -14%;
  opacity: 0.31;
  object-fit: contain;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, 86vw);
}

.hero-label {
  font: 500 0.7rem var(--font-en);
  letter-spacing: 0.32em;
  margin: 0 0 24px;
  color: var(--color-accent);
}

.hero h1 {
  font: 500 clamp(4.1rem, 11vw, 9.2rem)/0.82 var(--font-en);
  letter-spacing: -0.075em;
  margin: 0 0 32px;
}

.hero-copy > p:last-child {
  font: 400 clamp(0.75rem, 1.2vw, 0.95rem) var(--font-en);
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.scroll-guide {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 0.6rem var(--font-en);
  letter-spacing: 0.2em;
}

.scroll-guide i {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--color-text);
  position: relative;
  overflow: hidden;
}

.scroll-guide i:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

.section {
  max-width: var(--content-width);
  margin: auto;
  padding: var(--section-space) clamp(22px, 4vw, 48px);
}

.section-heading {
  display: grid;
  grid-template-columns: 50px auto 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading span {
  font: 500 0.65rem var(--font-en);
  color: var(--color-accent);
  align-self: center;
}

.section-heading h2 {
  font: 500 var(--fs-section)/0.9 var(--font-en);
  letter-spacing: -0.06em;
  margin: 0;
}
.section-heading p {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin: 0 0 0.25rem;
  border-bottom: 1px solid #bdbbb4;
  padding-bottom: 9px;
  text-align: right;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-card {
  position: relative;
  background: var(--color-card);
  min-height: 390px;
  padding: 34px 30px;
  border-radius: var(--radius);
  transition:
    transform 0.4s var(--ease),
    background 0.4s;
}
.skill-card:hover {
  transform: translateY(-8px);
  background: #deddd8;
}
.skill-number {
  font: 0.65rem var(--font-en);
  color: var(--color-accent);
  margin: 0 0 24px;
}
.skill-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}
.skill-icon {
  height: 92px;
  display: grid;
  place-items: center;
  font: 400 3rem var(--font-en);
  color: #b5aaa8;
}
.skill-icon.code {
  font-size: 1.5rem;
}
.skill-card > p:not(.skill-number) {
  font-size: 0.72rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.skill-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font: 0.62rem/1.6 var(--font-en);
  color: var(--color-muted);
}
.work-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  font: 500 0.75rem var(--font-en);
  letter-spacing: 0.16em;
}
.work-category span {
  font-weight: 400;
  color: var(--color-muted);
  text-transform: none;
  letter-spacing: 0.04em;
}
.works-grid {
  display: grid;
  gap: 52px 22px;
  margin-bottom: 90px;
}
.works-grid.banners {
  grid-template-columns: repeat(3, 1fr);
}
.works-grid.websites {
  grid-template-columns: repeat(2, 1fr);
}
.work-card button {
  display: block;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  padding: 0;
}
.work-image {
  display: block;
  overflow: hidden;
  background: var(--color-paper);
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  padding: 11%;
}
.websites .work-image {
  aspect-ratio: 1.52/1;
  padding: 5%;
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.work-card button:hover img {
  transform: scale(1.035);
}
.work-meta {
  display: block;
  padding-top: 14px;
}
.work-meta b {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
}
.work-meta small {
  font: 500 0.56rem var(--font-en);
  letter-spacing: 0.1em;
  color: var(--color-muted);
}
.about {
  max-width: 1280px;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 9vw, 130px);
  align-items: center;
}
.about-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #e5e2d9;
}
.about-visual img {
  position: absolute;
  z-index: 1;
  height: 118%;
  max-width: none;
  left: 50%;
  bottom: -16%;
  transform: translateX(-50%);
  filter: invert(1);
  opacity: 0.84;
}
.about-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #f1a061;
  top: 14%;
  left: 16%;
}
.about-name-ja {
  font-size: 0.72rem;
  color: var(--color-accent);
  margin: 0;
}
.about-copy h3 {
  font: 500 clamp(2rem, 4vw, 3.8rem)/1 var(--font-en);
  letter-spacing: -0.055em;
  margin: 8px 0 12px;
}
.about-role {
  font: 0.62rem var(--font-en);
  letter-spacing: 0.15em;
  color: var(--color-muted);
  margin-bottom: 42px;
}
.about-copy > p:not(.about-name-ja, .about-role) {
  max-width: 480px;
  font-size: 0.86rem;
  line-height: 2.2;
}
.text-link {
  display: inline-flex;
  gap: 30px;
  border-bottom: 1px solid;
  padding: 12px 0;
  margin-top: 22px;
  font-size: 0.72rem;
}
.text-link span {
  color: var(--color-accent);
}
.contact {
  max-width: none;
  background: var(--color-paper);
  padding-left: max(clamp(22px, 4vw, 48px), calc((100vw - 1024px) / 2));
  padding-right: max(clamp(22px, 4vw, 48px), calc((100vw - 1024px) / 2));
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.contact-layout > div h3 {
  font: 500 clamp(2rem, 4vw, 3.5rem)/1.08 var(--font-en);
  letter-spacing: -0.05em;
  margin: 0 0 28px;
}
.contact-layout > div p {
  font-size: 0.74rem;
  color: var(--color-muted);
}
form label {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: start;
  border-bottom: 1px solid #aaa;
  padding: 18px 0;
  position: relative;
}
form label > span {
  font-size: 0.72rem;
  padding-top: 8px;
}
input,
textarea {
  border: 0;
  background: transparent;
  outline: 0;
  padding: 7px 4px;
  resize: vertical;
  width: 100%;
}
input:focus,
textarea:focus {
  background: #f8f7ed;
}
.error {
  position: absolute;
  right: 0;
  bottom: 2px;
  color: #b32c16;
  font-size: 0.6rem;
}
.send-button {
  margin-top: 32px;
  border: 0;
  border-bottom: 1px solid;
  background: transparent;
  padding: 12px 2px;
  min-width: 145px;
  text-align: left;
  font: 500 0.7rem var(--font-en);
  letter-spacing: 0.15em;
}
.send-button span {
  float: right;
  color: var(--color-accent);
}
.form-status {
  font-size: 0.7rem;
  color: var(--color-accent);
}
.site-footer {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, 5vw);
}
.site-footer p {
  font: 0.55rem var(--font-en);
  color: var(--color-muted);
}
.site-footer nav {
  font-size: 0.6rem;
}
.work-modal {
  width: min(700px, 90vw);
  border: 0;
  padding: 0;
  background: var(--color-paper);
  box-shadow: 0 30px 90px #0008;
}
.work-modal::backdrop {
  background: #111b;
}
.work-modal img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #eee;
  padding: 30px;
}
.work-modal > div {
  padding: 28px 34px;
}
.work-modal small {
  font: 0.6rem var(--font-en);
  color: var(--color-accent);
}
.work-modal h2 {
  font-size: 1.2rem;
  font-weight: 400;
}
.work-modal p {
  font-size: 0.72rem;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1;
  border: 0;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 760px) {
  :root {
    --section-space: 6.5rem;
  }
  .sp-only {
    display: block;
  }
  .site-header {
    height: 68px;
    padding: 0 22px;
    mix-blend-mode: normal;
    color: var(--color-text);
  }
  .menu-button {
    display: block;
    z-index: 2;
  }
  .global-nav {
    position: fixed;
    inset: 0;
    background: #111;
    color: #fff;
    display: grid;
    place-content: center;
    gap: 32px;
    text-align: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
  }
  .nav-open .global-nav {
    opacity: 1;
    visibility: visible;
  }
  .nav-open .menu-button span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-open .menu-button span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .hero-art {
    height: 86%;
    right: -58%;
    bottom: -4%;
    opacity: 0.28;
  }
  .hero-copy {
    width: calc(100% - 44px);
  }
  .hero h1 {
    font-size: clamp(3.6rem, 19vw, 5.4rem);
  }
  .scroll-guide {
    left: 22px;
  }
  .section-heading {
    grid-template-columns: 32px auto 1fr;
    gap: 10px;
  }
  .section-heading p {
    font-size: 0.62rem;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    min-height: 340px;
  }
  .works-grid.banners {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 12px;
  }
  .works-grid.websites {
    grid-template-columns: 1fr;
  }
  .work-meta b {
    font-size: 0.66rem;
  }
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .about-layout {
    gap: 50px;
  }
  .about-visual {
    min-height: 420px;
    order: 2;
  }
  .about-copy {
    order: 1;
  }
  .contact-layout {
    gap: 50px;
  }
  form label {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }
  .site-footer {
    height: auto;
    min-height: 180px;
    flex-wrap: wrap;
    gap: 25px;
  }
  .site-footer nav {
    width: 100%;
    order: 3;
  }
  .work-modal img {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-guide i:after {
    animation: none;
  }
}
