@font-face {
  font-family: "Space Grotesk";
  src: url("space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --dark: #101114;
  --paper: #f7f7f5;
  --ink: #181b20;
  --muted: #4d5661;
  --line: #ccced0;
  --blue: #4a607c;
  --white: #f3f4f6;
  --silver: #c1c8d2;
  --dark-line: #373c45;
  --gutter: clamp(1.25rem, 5.6vw, 5rem);
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  scroll-padding-top: 5.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.8; }
h1, h2, h3, h4, p, figure, dl, dd, ol { margin: 0; }
h1, h2, h3, h4 { line-height: 1.42; font-weight: 700; }
a { color: inherit; text-underline-offset: .24em; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid #356298; outline-offset: 5px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: #b8d4f6; }
.skip { position: fixed; z-index: 10; inset: .5rem auto auto .5rem; padding: .5rem 1rem; transform: translateY(-200%); background: white; color: #111; }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - var(--gutter) * 2, 79rem); margin-inline: auto; }
.dark { background: var(--dark); color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--dark);
  color: var(--white);
  border-bottom: 1px solid var(--dark-line);
}
.site-header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: block; width: 9.65rem; flex: none; }
.wordmark img { width: 100%; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
.primary-nav a { color: #e4e7eb; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { color: white; text-decoration: underline; }
.primary-nav .nav-contact { padding: .48rem .95rem; border: 1px solid #666e7a; }
.primary-nav .nav-contact:hover { background: #242a34; text-decoration: none; }
.menu-toggle { display: none; }

.hero { overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: minmax(28rem, .87fr) minmax(0, 1.13fr); align-items: center; min-height: clamp(33rem, 44.5vw, 42rem); }
.hero-copy { position: relative; z-index: 1; padding-block: 3.75rem 4.25rem; }
.eyebrow, .category {
  color: var(--blue);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
}
.dark .eyebrow { color: #bed0e5; }
.hero .eyebrow { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.75rem; }
.hero .eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: #9ab1cd; }
.hero h1 { margin-left: -.055em; font-size: clamp(3rem, 5.35vw, 5.375rem); font-feature-settings: "palt"; line-height: 1.23; letter-spacing: -.028em; }
.hero h1 span { display: block; }
.hero-description { margin-top: 1.65rem; max-width: 28rem; color: var(--silver); line-height: 1.95; }
.hero-visual { position: relative; width: 118%; margin-inline-start: -8%; pointer-events: none; }
.hero-visual img { width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.2rem; text-decoration: none; font-size: .875rem; font-weight: 700; line-height: 1.5; transition: color .15s ease, background-color .15s ease; }
.button-light { color: var(--dark); background: var(--white); border: 1px solid var(--white); }
.button-light:hover { background: #cbd8e8; border-color: #cbd8e8; }
.hero .button, .service-hero .button { margin-top: 1.65rem; }

.section { padding-block: clamp(3.9rem, 7.4vw, 7.2rem); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(1.8rem, 3.3vw, 3rem); }
.section-head h2, .privacy-hero h1 { margin-top: .5rem; font-size: clamp(1.7rem, 3.1vw, 3.1rem); letter-spacing: -.017em; font-feature-settings: "palt"; }
.section-head > p { color: var(--muted); max-width: 32rem; }

.projects { background: var(--paper); }
.project { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(2.5rem, 5.7vw, 6rem); align-items: center; border-block: 1px solid var(--line); padding-block: clamp(1.6rem, 3.1vw, 2.8rem); }
.project + .project { border-top: 0; }
.project-copy { padding-block: .5rem; }
.category { letter-spacing: .085em; }
.category span { margin-inline: .24rem; color: #5f6c7b; }
.project-name { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 1rem; margin: .36rem 0 .65rem; }
.project-name > :first-child { font: 700 clamp(3.75rem, 6.7vw, 6.2rem)/.98 var(--display); letter-spacing: -.052em; }
.project-name-jp { font-size: .95rem; font-weight: 700; }
.project-lead { margin-bottom: .55rem; font-size: clamp(1.12rem, 1.6vw, 1.35rem); font-weight: 700; }
.project-copy > p:not(.category):not(.project-lead) { max-width: 28rem; color: var(--muted); }
.project-art { background: #1a2230; }
.project-art img { width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1.2rem; text-decoration-thickness: 1px; font-size: .94rem; font-weight: 700; }
.text-link:hover, .policy-email:hover { color: var(--blue); text-decoration-thickness: 2px; }

.works { background: #eeefee; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.work { padding-block: clamp(1.65rem, 3.1vw, 2.65rem); padding-inline-end: clamp(1.3rem, 2.9vw, 2.7rem); }
.work + .work { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(1.3rem, 2.9vw, 2.7rem); }
.work:last-child { padding-inline-end: 0; }
.work-icon { color: #4b6484; margin: 0 0 1.12rem -.42rem; }
.work h3 { font-size: clamp(1rem, 1.75vw, 1.3rem); margin-block: .42rem .65rem; font-feature-settings: "palt"; }
.work > p:last-child { color: var(--muted); }

.philosophy { background: #191e26; color: var(--white); }
.philosophy .eyebrow { color: #bed0e5; }
.philosophy-layout, .about-layout { display: grid; grid-template-columns: minmax(13rem, .68fr) minmax(0, 1.32fr); gap: clamp(1.9rem, 5vw, 5rem); }
.philosophy .section-head, .about .section-head, .contact .section-head { display: block; margin: 0; }
.principles { border-top: 1px solid #59616e; }
.principle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(1rem, 2vw, 2rem); border-bottom: 1px solid #59616e; padding-block: 1.35rem; }
.principle h3 { color: var(--white); font: 500 clamp(2.07rem, 4.9vw, 4.7rem)/1.1 var(--display); letter-spacing: -.075em; }
.principle h3 span { color: #a9c2e0; }
.principle h4 { margin-bottom: .18rem; font-size: 1rem; }
.principle p { color: #c1cbd8; }

.about { background: var(--paper); position: relative; isolation: isolate; overflow: hidden; }
.about .section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.7rem); text-wrap: balance; }
.about::before { content: ""; position: absolute; z-index: -1; width: clamp(20rem, 57vw, 47rem); aspect-ratio: 988 / 720; inset: auto auto -65% -9%; opacity: .38; background: url("watermark.svg") center / contain no-repeat; }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(5rem, .28fr) minmax(0, 1fr); gap: .9rem; padding-block: .98rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .94rem; }
.facts dd { font-size: 1rem; }
.representative { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-size: 1.3rem; }
.name-latin { margin-inline-start: .8rem; color: var(--muted); font-family: var(--display); font-size: .92rem; letter-spacing: .06em; }

.contact { padding-block: clamp(3.1rem, 6vw, 5.4rem); }
.contact-layout { display: grid; grid-template-columns: minmax(13rem, .68fr) minmax(0, 1.32fr); gap: clamp(1.2rem, 5vw, 5rem); align-items: start; }
.contact-copy p { max-width: 35rem; color: var(--silver); }
.email-link { display: inline-flex; align-items: center; gap: .48em; margin-top: .8rem; min-height: 2.75rem; font: 500 clamp(1.1rem, 2.4vw, 1.95rem)/1.45 var(--display); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.email-link img { filter: invert(1); width: .85em; min-width: .85em; }
.email-link:hover { color: #b8d4f6; }

.site-footer { border-top: 1px solid var(--dark-line); }
.footer-inner { min-height: 7rem; padding-block: 1.4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem 2rem; }
.footer-inner .wordmark { width: 8.3rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.footer-inner nav a { min-height: 1.5rem; font-size: .875rem; color: #c8ced8; text-decoration: none; }
.footer-inner nav a:hover, .footer-inner nav [aria-current] { text-decoration: underline; }
.footer-inner small { white-space: nowrap; color: #aeb8c7; font: 400 .8125rem/1.5 var(--display); }

.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem; padding-top: 1.6rem; color: var(--silver); font-size: .875rem; }
.breadcrumb [aria-current] { color: var(--white); }
.breadcrumb a:hover { color: white; }
.service-hero-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5.4vw, 5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4.6rem) clamp(3.3rem, 7vw, 6rem); }
.service-hero h1 { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 1.1rem; margin-block: .9rem 1.1rem; }
.service-hero h1 > :first-child { font: 700 clamp(5.25rem, 10vw, 9.55rem)/.87 var(--display); letter-spacing: -.052em; margin-left: -.05em; }
.service-hero h1 > :last-child { font-size: clamp(.95rem, 1.8vw, 1.2rem); }
.service-lead { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 700; letter-spacing: -.024em; }
.service-summary { color: var(--silver); max-width: 30rem; margin-top: .55rem; }
.service-art { width: 100%; }
.service-index { border-bottom: 1px solid var(--line); background: #edeeef; }
.service-index .wrap { display: flex; flex-wrap: wrap; gap: .25rem clamp(1rem, 4vw, 3.5rem); padding-block: .48rem; }
.service-index a { display: flex; align-items: center; min-height: 2.55rem; font-size: .875rem; text-decoration: underline; text-decoration-color: #858b93; }
.service-index a:hover { text-decoration-thickness: 2px; }
.service-capabilities .work { padding-block: clamp(1.35rem, 2.6vw, 2.25rem); }
.workflow { margin-top: 2.1rem; background: #e8edf2; border: 1px solid #c9d2dd; padding: clamp(1rem, 2vw, 1.7rem); }
.workflow h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.workflow ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: 1px; background: #aab8c8; border: 1px solid #aab8c8; }
.workflow li { display: grid; padding: .8rem 1rem; background: #f6f8fa; }
.workflow li span { color: var(--muted); font-size: .94rem; }
.service-cases { background: #eaeef2; }
.case-list, .process-list { border-top: 1px solid var(--line); }
.case-list article, .process-list li { display: grid; grid-template-columns: minmax(10.5rem, .52fr) minmax(0, 1.48fr); gap: .65rem 2rem; align-items: baseline; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.case-list h3, .process-list h3 { font-size: 1.11rem; }
.case-list p, .process-list p { color: var(--muted); max-width: 48rem; }
.process-list { padding: 0; list-style: none; counter-reset: process; }
.process-list li { counter-increment: process; grid-template-columns: 2rem minmax(10rem, .52fr) minmax(0, 1.48fr); }
.process-list li::before { content: counter(process, decimal-leading-zero); color: var(--blue); font: 600 .875rem/1.6 var(--display); }

.privacy-hero .eyebrow { margin-top: clamp(2rem, 5.5vw, 4.8rem); }
.privacy-hero h1 { padding-bottom: clamp(2.6rem, 5.6vw, 4.9rem); }
.policy-layout { max-width: 61rem; padding-block: clamp(2.5rem, 5.5vw, 5rem); }
.policy-intro { margin-bottom: 2rem; color: var(--muted); max-width: 46rem; }
.policy-layout section { border-top: 1px solid var(--line); padding-block: 1.55rem; }
.policy-layout h2 { font-size: clamp(1.12rem, 1.8vw, 1.45rem); margin-bottom: .4rem; }
.policy-layout section p { max-width: 47rem; }
.policy-layout section p + p { margin-top: .8rem; }
.policy-email { overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .hero-layout { grid-template-columns: minmax(22rem, .94fr) minmax(0, 1.06fr); }
  .hero-visual { width: 127%; margin-inline-start: -10%; }
  .principle p { font-size: .95rem; }
}

@media (max-width: 820px) {
  .site-header-inner { gap: .7rem; }
  .primary-nav { gap: .95rem; }
  .wordmark { width: 8.2rem; }
  .hero-layout { grid-template-columns: minmax(18.75rem, .95fr) minmax(0, 1.05fr); }
  .hero h1 { font-size: clamp(2.45rem, 6.15vw, 3.4rem); }
  .hero-visual { width: 142%; margin-inline-start: -15%; }
  .philosophy-layout, .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { scroll-padding-top: 4.75rem; }
  .site-header-inner { min-height: 4rem; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; margin-inline-end: -.38rem; padding: .35rem .38rem; color: #e6e9ef; background: transparent; border: 0; font-size: .875rem; cursor: pointer; }
  .menu-icon, .menu-icon::after { display: block; width: 1.1rem; height: 1px; background: currentColor; }
  .menu-icon { position: relative; top: -.18rem; }
  .menu-icon::after { position: absolute; top: .36rem; content: ""; }
  .menu-toggle[aria-expanded="true"] .menu-icon { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-90deg); }
  .primary-nav { flex-basis: 100%; flex-wrap: wrap; gap: 0 .8rem; }
  .primary-nav a { display: flex; align-items: center; min-height: 2.75rem; }
  .primary-nav .nav-contact { border: 0; padding: 0; }
  .menu-toggle:not([hidden]) + .primary-nav { display: none; }
  .menu-toggle[aria-expanded="true"] + .primary-nav { display: grid; position: absolute; inset: 100% 0 auto; padding: .4rem var(--gutter) .75rem; background: var(--dark); border-bottom: 1px solid var(--dark-line); }
  .menu-toggle[aria-expanded="true"] + .primary-nav a { border-top: 1px solid var(--dark-line); }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 3.35rem 0; }
  .hero .eyebrow { margin-bottom: 1.2rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.1vw, 4.65rem); }
  .hero-description { margin-top: 1.1rem; line-height: 1.8; }
  .hero .button { margin-top: 1.2rem; }
  .hero-visual { width: min(112%, 32rem); margin: -.4rem auto -.1rem; justify-self: center; }
  .section-head { grid-template-columns: 1fr; gap: .78rem; }
  .project, .service-hero-layout, .contact-layout { grid-template-columns: 1fr; }
  .project { gap: 1.4rem; }
  .project-copy { padding: 0; }
  .project-name { margin-top: .6rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work, .work + .work { padding-inline: 0; }
  .work + .work { border-inline-start: 0; border-top: 1px solid var(--line); }
  .work-icon { width: 3rem; height: auto; margin-bottom: .55rem; }
  .principle h3 { font-size: clamp(2.1rem, 7.3vw, 3.4rem); }
  .about::before { inset: auto auto -30% -16%; }
  .service-hero h1 { margin-top: .8rem; }
  .service-hero-layout { gap: 2rem; }
  .case-list article, .process-list li { grid-template-columns: 1fr; }
  .process-list li { grid-template-columns: 1.65rem minmax(0, 1fr); column-gap: .7rem; }
  .process-list li p { grid-column: 2; }
}

@media (max-width: 390px) {
  .principle { grid-template-columns: 1fr; gap: .55rem; }
  .service-index .wrap { gap: .2rem .9rem; }
  .workflow ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
