/* AsWork company site. Flat, light, with the colour concentrated in the brand motif. */
:root {
  --ink: #111114;
  --paper: #f7f7f5;
  --line: #d8d8d4;
  --muted: #5f5f64;
  --dark-muted: #a1a1a7;
  --gutter: 5.2vw;
  --head: 96px;
  --foot: 78px;
  --clear: 820px 360px;
  --rainbow: linear-gradient(90deg, #ff8515, #ff009c, #6700ff, #002dff, #00dfdd);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, 'Helvetica Neue', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #5a19ff; outline-offset: 6px; }
::selection { background: #d4ff5a; color: var(--ink); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head {
  height: var(--head);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand svg { width: 171px; height: 24px; display: block; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 12px; letter-spacing: .04em; }
.nav a { padding: 12px 0; transition: opacity .2s; }
.nav a:hover { opacity: .5; }
.nav .nav-contact { padding: 13px 19px; border: 1px solid #a8a8a8; border-radius: 30px; transition: background-color .2s, color .2s, border-color .2s; }
.nav .nav-contact:hover { opacity: 1; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu { display: none; background: none; border: 0; padding: 12px 0 12px 20px; font-size: 11px; letter-spacing: .1em; }
.menu-close { display: none; }
.menu[aria-expanded='true'] .menu-open { display: none; }
.menu[aria-expanded='true'] .menu-close { display: inline; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 760px; height: calc(100svh - var(--head)); max-height: 1020px;
}
.hero-mark { position: absolute; top: 45px; left: var(--gutter); width: 67%; margin: 0; line-height: 1; pointer-events: none; z-index: 2; }
.hero-mark svg { display: block; width: 100%; height: auto; aspect-ratio: 316 / 44; }
/* The field ends at the foot rule and fades out under the business line, so text never sits on colour. */
.art-field {
  position: absolute; inset: 0 0 var(--foot) 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(var(--clear) at 0 100%, transparent 64%, #000 84%);
  mask-image: radial-gradient(var(--clear) at 0 100%, transparent 64%, #000 84%);
}
.art {
  position: absolute;
  width: 112%; height: 85%; top: 11%; right: -21%;
  transform-origin: 55% 50%;
  --tilt: -11deg;
  transform: rotate(var(--tilt));
  animation: drift 11s ease-in-out infinite alternate;
  will-change: transform;
}
.art img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes drift {
  from { transform: rotate(var(--tilt)); }
  to { transform: translate(-2%, 2%) rotate(calc(var(--tilt) + 7deg)) scale(1.025); }
}
.paused .art { animation-play-state: paused; }

.hero-copy {
  position: absolute; left: var(--gutter); bottom: 93px;
}
.hero-business { font-size: 13px; letter-spacing: .07em; font-weight: 500; margin: 0; }
.round-link { display: inline-flex; align-items: center; gap: 17px; font-size: 12px; min-height: 44px; }
.hero-copy .round-link { margin-top: 8px; }
.circle {
  display: grid; place-items: center; width: 37px; height: 37px;
  border: 1px solid #999; border-radius: 50%; font-size: 18px;
  transition: background-color .2s, color .2s, transform .2s, border-color .2s;
}
.round-link:hover .circle, .contact-mail:hover .circle { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 23px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid #c8c8c8; padding: 10px 0 4px;
  font-size: 10px; letter-spacing: .1em;
}
.motion { border: 0; background: none; font-size: 10px; letter-spacing: .1em; padding: 10px 0 10px 12px; min-height: 40px; }
.motion-on { display: none; }
.motion[aria-pressed='true'] .motion-off { display: none; }
.motion[aria-pressed='true'] .motion-on { display: inline; }

/* Sections */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-head { font-size: 10px; letter-spacing: .15em; margin-bottom: 63px; }
.section-head b { margin-right: 45px; font-weight: 700; }

.services-title { font-size: clamp(48px, 7vw, 108px); font-weight: 400; letter-spacing: -.065em; line-height: 1.05; margin: 0 0 60px; }
.service-row {
  display: grid; grid-template-columns: 60px 1.1fr 1fr; gap: 25px;
  padding: 42px 0; border-top: 1px solid var(--line); align-items: start;
}
.service-no { font-size: 12px; padding-top: 10px; }
.service-row h3 { font-size: 35px; letter-spacing: -.04em; margin: 0 0 14px; font-weight: 400; }
.service-row .jp { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.service-row p { font-size: 13px; line-height: 2; margin: 5px 0 18px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { font-size: 9px; letter-spacing: .06em; border: 1px solid #c7c7c7; border-radius: 20px; padding: 7px 10px; }

.work { background: #eaeae7; }
.work-title { font-size: 65px; font-weight: 400; letter-spacing: -.06em; line-height: 1.1; margin: 0 0 40px; }
.work-card { display: grid; grid-template-columns: 1.15fr 1fr; background: #f8f8f5; min-height: 460px; }
.work-visual {
  position: relative; min-height: 410px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #e3e6dc;
}
.work-visual img { width: 65%; height: auto; display: block; }
.work-detail { padding: 60px 13%; }
.small { font-size: 10px; letter-spacing: .15em; }
.work-detail h3 { font-size: 34px; font-weight: 400; letter-spacing: -.025em; margin: 35px 0 20px; }
.work-detail p { font-size: 14px; line-height: 2.1; color: #4a4a4c; margin: 0; }
.work-detail .round-link { margin-top: 30px; }

/* Contact and company (dark) */
.dark { background: var(--ink); color: #f8f8f5; position: relative; }
.dark::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--rainbow); }
.dark :focus-visible { outline-color: #9ee7ff; }
.contact { padding: 80px 0 0; }
.contact .section-head { margin-bottom: 65px; }
.contact-title { font-size: clamp(70px, 13vw, 185px); font-weight: 400; letter-spacing: -.07em; line-height: 1; margin: 0; }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 35px 0 70px; }
.contact-bottom p { font-size: 14px; line-height: 2; margin: 0; }
.contact-mail { display: inline-flex; align-items: center; gap: 24px; font-size: clamp(20px, 2.2vw, 30px); min-height: 55px; overflow-wrap: anywhere; }
.contact-mail .circle { width: 55px; height: 55px; flex: none; border-color: #77777e; }
.contact-mail:hover .circle { background: #f8f8f5; color: var(--ink); border-color: #f8f8f5; }
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-top: 1px solid #37373c; padding-top: 35px; padding-bottom: 50px; }
.company-mark { width: 160px; height: 22px; display: block; }
.company-name { font-size: 14px; letter-spacing: .06em; margin: 15px 0 0; }
.company dl { display: grid; grid-template-columns: 100px 1fr; font-size: 13px; gap: 14px; margin: 0; line-height: 1.8; }
.company dt { color: var(--dark-muted); }
.company dd { margin: 0; }
  .company dd a { display: inline-block; padding: 10px 0; margin: -10px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #77777e; transition: text-decoration-color .2s; }
.company dd a:hover { text-decoration-color: currentColor; }
.legal {
  border-top: 1px solid #37373c; padding-top: 14px; padding-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--dark-muted); letter-spacing: .08em;
}
.legal a { padding: 14px 0; transition: color .2s; }
.legal a:hover { color: #f8f8f5; }

@media (min-width: 1650px) {
  .hero { height: 900px; }
  .hero-mark, .hero-copy { left: calc((100vw - 1600px) / 2 + 83px); }
}

@media (max-width: 800px) {
  :root { --gutter: 6vw; --head: 76px; --clear: 700px 330px; }
  .brand svg { width: 143px; height: 20px; }
  .nav { gap: 19px; font-size: 11px; }
  .nav .nav-contact { padding: 10px 14px; }
  .hero { min-height: 660px; max-height: 950px; }
  .hero-mark { top: 38px; width: 87%; }
  .art { width: 145%; height: 72%; right: -48%; top: 12%; --tilt: -20deg; }
  .hero-copy { bottom: 98px; }
  .hero-business { font-size: 13px; }
  .hero-company { display: none; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head b { margin-right: 24px; }
  .services-title { font-size: 64px; margin-bottom: 35px; }
  .service-row { grid-template-columns: 25px 1fr; gap: 14px; padding: 28px 0; }
  .service-row h3 { font-size: 30px; }
  .service-desc { grid-column: 2; }
  .work-title { font-size: 51px; }
  .work-card { grid-template-columns: 1fr; }
  .work-visual { min-height: 300px; }
  .work-detail { padding: 35px; }
  .work-detail h3 { margin-top: 22px; font-size: 30px; }
  .contact { padding-top: 60px; }
  .contact-bottom { display: block; padding: 25px 0 45px; }
  .contact-mail { margin-top: 24px; font-size: 23px; }
  .company { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 520px) {
  :root { --clear: 560px 300px; }
  .menu { display: block; }
  .nav {
    display: none; position: absolute; top: calc(var(--head) - 1px); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 18px var(--gutter) 26px; background: var(--paper); border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav .nav-contact { margin-top: 10px; padding: 12px 20px; }
  .hero { min-height: 600px; max-height: 830px; }
  .hero-mark { top: 40px; width: 88%; }
  .art { top: 15%; height: 66%; width: 190%; right: -75%; }
  .hero-copy { bottom: 92px; }
  .services-title { font-size: 13vw; }
  .service-row h3 { font-size: 27px; }
  .work-title { font-size: 45px; }
  .work-visual { min-height: 240px; }
  .work-detail { padding: 30px 24px 36px; }
  .work-detail h3 { font-size: 26px; }
  .contact-title { font-size: 18vw; }
  .contact-mail { font-size: 21px; gap: 18px; }
  .company dl { grid-template-columns: 92px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art { animation: none; }
  .circle, .nav a, .legal a { transition: none; }
}
