/* GATO JAPAN v4.4 — readable on every screen.
   Original artwork, copy, project order and native cursor are preserved. */
:root {
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Manrope", "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
  --font-ui: "Manrope", "Zen Kaku Gothic New", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --font-en: var(--font-ui);
  --muted: #525c65;
}
html { scrollbar-gutter: stable; scroll-padding-top: 104px; }
body { line-height: 1.85; }
a, button, input, select, textarea { -webkit-tap-highlight-color: rgba(229,31,54,.12); }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(calc(100% - 80px), var(--container)); }
.section { padding-block: clamp(80px, 7.5vw, 120px); }
.section-head { gap: 40px; margin-bottom: 44px; }
.section-head h2, .approach-sticky h2, .company-layout h2 { line-height: 1.2; letter-spacing: -.035em; }
.section-description, .statement-subgrid > p:first-child,
.works-live-head > p, .engine-copy > p, .approach-sticky > p:not(.section-index) { font-size: 16px; line-height: 1.95; }
.eyebrow, .section-index { font-size: 11px; line-height: 1.5; letter-spacing: .12em; }
.hero { padding-top: calc(var(--header-h) + 78px); }
.hero-title { line-height: .98; }
.hero-lead { font-size: 16px; line-height: 1.95; }
.hero-sales { flex-wrap: wrap; row-gap: 8px; }
.hero-sales strong { line-height: 1.5; }
.hero-sales span { font-size: 14px; line-height: 1.65; }
.hero-actions { gap: 12px; }
.hero-actions .button { font-size: 15px; min-height: 56px; }
.hero-capabilities span { font-size: 10px; }
.statement-big { line-height: 1.16; }
.header-inner { will-change: auto; }
.nav-ja { display: none; }
.global-nav > .nav-live-work { display: none !important; }
.menu-button .menu-word { display: none; }

/* Clear choice of content; no projects are collapsed or removed. */
.works-jump-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: -10px 0 28px; }
.works-jump-nav a { min-height: 48px; padding: 11px 18px; display: inline-flex; align-items: center; gap: 16px; border: 1px solid #cdd3cf; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; }
.works-jump-nav a:first-child { border-color: var(--ink); color: #fff; background: var(--ink); }
.works-jump-nav b { font-family: var(--font-en); font-size: 12px; opacity: .7; }
.works-jump-nav a:hover { border-color: var(--accent); }
.works-grid, .live-works-grid { gap: 28px; align-items: start; }
#ip-projects, #live-creatives { scroll-margin-top: 105px; }

/* The artwork gets its own unobstructed area; all text remains real HTML. */
.works .work-card,
.live-works-grid .live-site-preview {
  display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto 1fr;
  min-height: 0; height: auto; padding: 0; align-content: start;
  border: 1px solid #d7dcd7; border-radius: 22px; overflow: hidden;
  color: var(--ink); background: #fff; text-align: left;
  box-shadow: 0 8px 28px rgba(16,22,29,.045);
}
.works .work-card > picture,
.live-works-grid .live-site-preview > picture {
  grid-column: 1 / -1; grid-row: 2; position: relative; inset: auto;
  width: 100%; height: auto; min-height: 0; margin: 0; aspect-ratio: auto;
  align-self: start; overflow: hidden; background: #f2f4f1;
}
.works .work-card > picture img,
.live-works-grid .live-site-preview > picture img {
  position: relative; inset: auto; display: block; width: 100%; height: auto;
  object-fit: contain; object-position: center; transform: none !important; filter: none;
}
.works .work-card > .work-shade, .works .work-card > .work-grid-overlay { display: none; }
.works .work-card > .work-topline,
.live-works-grid .live-site-preview > .work-topline {
  grid-column: 1; grid-row: 1; position: static; inset: auto; min-width: 0; min-height: 50px;
  padding: 12px 18px; display: flex; align-items: center; gap: 14px;
  color: #56616a; font-size: 10px; line-height: 1.4; letter-spacing: .08em;
}
.works .work-topline > span:first-child { white-space: nowrap; font-weight: 800; color: #25303a; }
.works .work-topline > span:last-child { font-size: 9px; letter-spacing: .05em; }
.works .work-card > .work-live-status,
.live-works-grid .live-site-preview > .work-live-status {
  grid-column: 2; grid-row: 1; position: static; inset: auto; margin: 10px 16px 10px 0;
  align-self: center; padding: 5px 9px; color: #374b43; border-color: #d3dfd7;
  background: #f3f8f4; backdrop-filter: none; font-size: 9px; line-height: 1.5; white-space: nowrap;
}
.works .work-card > .work-bottom,
.live-works-grid .live-site-preview > .work-bottom {
  grid-column: 1 / -1; grid-row: 3; position: relative; inset: auto; margin: 0;
  min-height: 118px; padding: 24px; display: flex; align-items: center; gap: 16px; transform: none;
}
.works .work-bottom > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.works .work-bottom strong,
.works .work-card:not(.work-card-wide) .work-bottom strong,
.live-works-grid .live-site-preview > .work-bottom strong {
  max-width: none; margin: 0; color: var(--ink); font-size: clamp(25px, 2.1vw, 34px);
  line-height: 1.35; letter-spacing: -.025em; text-wrap: pretty; overflow-wrap: anywhere;
}
.works .work-card-wide .work-bottom strong { font-size: clamp(29px, 2.8vw, 40px); }
.works .work-bottom small { color: #545f68; font-size: 14px; line-height: 1.7; letter-spacing: .01em; }
.works .work-bottom > i { flex: 0 0 46px; width: 46px; height: 46px; margin: 0; color: var(--ink); border-color: #d0d6d1; background: #f7f8f6; }
.works .work-card:focus-visible { outline-offset: 5px; }
@media (hover:hover) and (pointer:fine) {
  .works .work-card:hover { border-color: #adb9b0; box-shadow: 0 16px 40px rgba(16,22,29,.09); }
  .works .work-card:hover .work-bottom > i { color: #fff; background: var(--accent); border-color: var(--accent); transform: translate(2px,-2px); }
}
.works-live { margin-top: 76px; padding-top: 58px; }
.works-live-head { margin-bottom: 32px; }
.works-live-head h3 { line-height: 1.22; }

/* Supporting copy stays legible even when a step is not active. */
.service-card { display: flex; flex-direction: column; min-height: 0; padding: 30px; }
.service-card h3 { margin-top: 40px; font-size: clamp(23px, 1.8vw, 29px); line-height: 1.3; }
.service-card > p:not(.service-ja) { max-width: none; font-size: 15px; line-height: 1.9; }
.service-card .service-ja { font-size: 14px !important; }
.service-card ul { position: static; margin: auto 0 0; padding-top: 24px; }
.service-card li { font-size: 11px; line-height: 1.45; }
.process-step { opacity: 1; min-height: 0; padding-block: 30px; }
.process-step.is-active { transform: none; }
.process-step small { font-size: 15px; line-height: 1.9; }
.process-step h3 { line-height: 1.45; }
.about-main > p:not(.section-index), .values p { color: #c8ced4; font-size: 15px; line-height: 1.9; }
.values h3 { font-size: 19px; }
.company-table dt { font-size: 13px; }
.company-table dd { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.company-socials a { min-height: 48px; }
.contact-intro > p:not(.section-index) { font-size: 16px; line-height: 1.95; }
.contact-channel small { font-size: 13px; }
.contact-form { backdrop-filter: none; }
.contact-form label > span:first-child { font-size: 14px; line-height: 1.6; }
.contact-form label > span b { font-size: 11px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select { min-height: 54px; font-size: 16px; }
.contact-form textarea { font-size: 16px; line-height: 1.85; padding-bottom: 34px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #68727c; font-size: 14px; }
.contact-form .char-count { font-size: 11px; bottom: 10px; right: 14px; }
.contact-form .form-consent { min-height: 48px; align-items: center; }
.contact-form .form-consent input { flex: 0 0 22px; width: 22px; height: 22px; }
.contact-form .form-consent span { font-size: 13px !important; line-height: 1.8; }
.contact-form .form-errors { font-size: 14px; line-height: 1.75; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-nav a, .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
.footer-bottom, .footer-brand p { color: #aeb8c1; font-size: 11px; }
.footer-brand img { width: 100%; height: auto; object-fit: contain; }

/* A scrollable body between a permanent close button and a permanent site link. */
.project-dialog { width: min(1120px,calc(100% - 48px)); max-width: none; height: min(780px,calc(100vh - 48px)); max-height: calc(100vh - 48px); border-radius: 24px; overflow: hidden; }
@supports (height:100dvh) { .project-dialog { height: min(780px,calc(100dvh - 48px)); max-height: calc(100dvh - 48px); } }
.project-dialog[open] { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px 10px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-toolbar > p { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #59656d; }
.dialog-toolbar > p span { font-size: 13px; letter-spacing: .02em; color: var(--ink); }
.dialog-toolbar .dialog-close { position: static; width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid #d7dcd7; border-radius: 50%; background: #f2f4f1; color: #11151a; font-size: 29px; line-height: 1; transform: none !important; }
.dialog-scroll-area { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dialog-image-wrap { position: relative; display: grid; align-items: center; min-height: 0; min-width: 0; height: auto; aspect-ratio: auto; background: #0d1116; }
.dialog-image-wrap img, .dialog-image-wrap img.is-contain { width: 100%; height: auto; max-height: 540px; padding: 18px; object-fit: contain; }
.dialog-content { min-width: 0; padding: 30px; align-self: start; }
.dialog-label { font-size: 10px; line-height: 1.8; margin-bottom: 15px; }
.dialog-content h2 { font-size: clamp(26px,2.8vw,43px); line-height: 1.35; overflow-wrap: anywhere; letter-spacing: -.035em; }
.dialog-copy { margin: 16px 0 22px; font-size: 16px; font-weight: 700; line-height: 1.75; }
.dialog-body { font-size: 15.5px; line-height: 1.95; color: #4c5963; }
.dialog-tags { margin-top: 24px; padding-top: 20px; gap: 7px; }
.dialog-tags li { font-size: 10px; padding: 7px 10px; line-height: 1.45; }
.project-dialog > .dialog-actions { margin: 0; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); background: #fff; }
.dialog-status { margin: 0; font-size: 10px; line-height: 1.6; }
.dialog-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; flex: 0 0 auto; min-width: 228px; min-height: 50px; padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 800; line-height: 1.5; background: var(--accent); color: #fff; }
.dialog-link[hidden] { display: none; }
.subpage p, .status-page p { font-size: 16px; }
.subpage-back { min-height: 44px; font-size: 14px; }

@media (max-width:1120px) {
  .container { width: calc(100% - 48px); }
  .hero { padding-top: 128px; }
  .global-nav { padding: calc(86px + env(safe-area-inset-top,0px)) 24px calc(24px + env(safe-area-inset-bottom,0px)); justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; gap: 0 !important; }
  .global-nav > a:not(.nav-contact), .global-nav > .nav-live-work { display: grid !important; grid-template-columns: minmax(0,1fr) auto; align-content: center; min-height: 66px; height: auto; padding: 10px 0; gap: 3px 14px; flex-shrink: 0; font-size: 17px; line-height: 1.4; }
  .global-nav > a:not(.nav-contact) .nav-en { grid-column: 1; grid-row: 1; }
  .global-nav > a:not(.nav-contact) .nav-ja { display: block; grid-column: 1; grid-row: 2; color: #aeb8c1; font-size: 11px; letter-spacing: .035em; }
  .global-nav > a:not(.nav-contact)::after { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .global-nav .nav-socials { margin-top: 20px; flex-shrink: 0; }
  .global-nav .nav-contact, body.menu-open .global-nav .nav-contact { margin-top: 16px; flex-shrink: 0; min-height: 52px; font-size: 14px; }
  body.menu-open .header-inner, body.menu-open .site-header.is-scrolled .header-inner { justify-content: space-between; }
  body.menu-open .menu-button { margin-left: auto; flex-shrink: 0; }
  .menu-button .menu-word { display: block; position: absolute; inset: auto 0 6px; width: auto; height: auto; color: #fff; background: none; font: 700 7px/1 var(--font-ui); letter-spacing: .04em; }
  .menu-button span:first-child { top: 15px; }
  .menu-button span:nth-child(2) { top: 22px; }
  .menu-button[aria-expanded="true"] span:first-child, .menu-button[aria-expanded="true"] span:nth-child(2) { top: 19px; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
  body.menu-open .menu-button .menu-word { color: #11151a; background: none; transform: none; }
  .section { padding-block: 80px; }
  .section-head { gap: 24px; }
  .works .work-topline > span:last-child { display: none; }
  .service-card { padding: 26px; }
}
@media (min-width:701px) and (max-width:1120px) {
  .works-grid, .live-works-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .works .work-card-wide, .works .live-work-wide { grid-column: 1 / -1; }
}
@media (max-width:820px) {
  .hero-layout { gap: 32px; }
  .hero-stage-wrap { margin-inline: auto; }
  .hero-title { font-size: clamp(60px,16vw,88px); line-height: 1.03; }
  .section-head h2, .approach-sticky h2 { font-size: clamp(32px,7.8vw,52px); }
  .statement-big { font-size: clamp(40px,10.5vw,65px); line-height: 1.22; }
  .engine-copy h2 { font-size: clamp(34px,8.8vw,55px); line-height: 1.25; }
  .works-live-head h3 { font-size: clamp(34px,8.4vw,54px); }
  .project-dialog { width: calc(100% - 24px); height: calc(100vh - 24px); max-height: calc(100vh - 24px); border-radius: 20px; }
  @supports (height:100dvh) { .project-dialog { height: calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); max-height: calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); } }
  .dialog-toolbar { padding: 8px 12px 8px 20px; }
  .dialog-scroll-area { display: block; }
  .dialog-image-wrap img, .dialog-image-wrap img.is-contain { max-height: 290px; padding: 14px; }
  .dialog-content { padding: 24px 22px 30px; }
  .dialog-content h2 { font-size: clamp(26px,7vw,38px); }
  .project-dialog > .dialog-actions { padding: 12px 16px; }
  .dialog-status { max-width: 112px; font-size: 9px; }
  .dialog-link { min-width: 0; min-height: 50px; padding: 13px 17px; gap: 16px; font-size: 13px; }
}
@media (max-width:700px) {
  .container { width: calc(100% - 40px); }
  .works-grid, .live-works-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .works .work-card-wide, .works .live-work-wide { grid-column: auto; }
  .works .work-card { border-radius: 18px; }
  .works .work-card > .work-bottom { min-height: 112px; padding: 20px; gap: 12px; }
  .works .work-bottom strong, .works .work-card:not(.work-card-wide) .work-bottom strong, .works .work-card-wide .work-bottom strong { font-size: clamp(23px,6.4vw,30px); }
  .works .work-bottom small { font-size: 13px; line-height: 1.8; }
  .works .work-topline { padding: 11px 16px; }
  .works-jump-nav { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; margin-bottom: 24px; }
  .works-jump-nav a { justify-content: space-between; min-height: 48px; font-size: 14px; }
  .works-live { margin-top: 60px; padding-top: 44px; }
}
@media (max-width:620px) {
  html { scroll-padding-top: 88px; }
  .section { padding-block: 68px; }
  .hero { padding: 110px 0 52px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .08em; gap: 10px; margin-bottom: 20px; }
  .hero-title { font-size: clamp(52px,15.5vw,82px); letter-spacing: -.05em; }
  .hero-lead { margin-top: 24px; font-size: 15.5px; line-height: 1.95; }
  .hero-sales { margin-top: 18px; padding: 14px 14px 14px 17px; gap: 5px; }
  .hero-sales strong { font-size: 19px; }
  .hero-sales span { font-size: 13px; border: 0; padding: 0; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button { min-height: 54px; border-radius: 12px; font-size: 15px; }
  .hero-capabilities { margin-top: 20px; flex-wrap: wrap; }
  .hero-capabilities span { padding: 7px 10px; font-size: 9px; }
  .hero-stage { min-height: 345px; aspect-ratio: 1.06; border-radius: 22px; }
  .stage-input { top: 16%; } .stage-output { bottom: 14%; }
  .stage-core { width: 80%; } .core-wordmark strong { font-size: 51px; }
  .hero-caption { font-size: 8px; line-height: 1.8; }
  .hero-caption > span { display: none; }
  .section-head { margin-bottom: 30px; }
  .section-description, .statement-subgrid > p:first-child, .works-live-head > p { font-size: 15.5px; line-height: 1.95; }
  .statement-line { margin-block: 28px 24px; }
  .statement-en { font-size: 11px; }
  .kinetic-track { gap: 18px; } .kinetic-track span { font-size: 11px; }
  .engine-layout { gap: 32px; }
  .engine-copy > p { font-size: 15.5px; }
  .engine-status { margin-top: 24px; } .engine-status strong { font-size: 11px; }
  .engine-visual { min-height: 0; padding: 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; border-radius: 20px; }
  .engine-node { position: relative; inset: auto !important; width: auto; min-height: 118px; padding: 14px 12px; text-align: left; }
  .engine-node-a { grid-column: 1; grid-row: 1; } .engine-node-b { grid-column: 2; grid-row: 1; }
  .engine-node-c { grid-column: 1; grid-row: 3; } .engine-node-d { grid-column: 2; grid-row: 3; }
  .engine-node span { font-size: 10px; } .engine-node strong { font-size: 13px; line-height: 1.5; white-space: normal; }
  .engine-node small { display: block; font-size: 11px; line-height: 1.8; color: #bec7d0; }
  .engine-core { grid-row: 2; grid-column: 1 / -1; position: relative; inset: auto; transform: none; justify-self: center; width: 140px; height: 140px; margin: 34px 0; }
  .engine-core::after { inset: -22px; }
  .engine-output { grid-row: 4; grid-column: 1 / -1; position: relative; inset: auto; transform: none; width: auto; min-height: 100px; margin-top: 10px; padding: 18px 8px 6px; }
  .engine-output > span { font-size: 9px; } .engine-output strong { font-size: 13px; }
  .engine-output p { font-size: 13px; line-height: 1.85; color: #c7d0d9; }
  .engine-stack { margin-top: 0; } .engine-stack span { font-size: 10px; min-height: 52px; color: #c7d0d9; }
  .service-grid { gap: 18px; } .service-card { padding: 26px 24px; }
  .service-card h3 { margin-top: 32px; font-size: 25px; }
  .service-card ul { padding-top: 18px; }
  .approach-layout, .about-layout, .company-layout, .contact-layout { gap: 34px; }
  .approach-sticky { position: static; } .approach-sticky > p:not(.section-index) { font-size: 15.5px; }
  .process-step { grid-template-columns: 27px minmax(0,1fr) 26px; gap: 10px; padding-block: 26px; }
  .process-step h3 { font-size: 24px; } .process-step small { font-size: 14.5px; }
  .about-main h2 { line-height: 1.12; font-size: clamp(42px,12vw,62px); }
  .values article { padding-block: 22px; } .values h3 { font-size: 19px; } .values p { font-size: 14.5px; }
  .company-layout h2 { font-size: 42px; line-height: 1.18; }
  .company-table > div { grid-template-columns: minmax(0,1fr); gap: 7px; padding-block: 20px; }
  .company-table dt { font-size: 12px; font-weight: 700; } .company-table dd { font-size: 15.5px; }
  .company-socials { flex-wrap: wrap; }
  .contact-intro h2 { font-size: clamp(34px,9.5vw,50px); line-height: 1.3; }
  .contact-intro > p:not(.section-index) { font-size: 15.5px; }
  .contact-channel { margin-top: 28px; }
  .contact-form { padding: 24px 18px; border-radius: 20px; width: 100%; }
  .contact-form label { margin-bottom: 22px; }
  .form-head { font-size: 10px; }
  .form-row-two { grid-template-columns: minmax(0,1fr); }
  .footer-top { gap: 32px; padding-bottom: 32px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 22px; }
  .footer-links { width: 100%; } .footer-socials { width: 100%; }
  .footer-bottom { gap: 10px; }
  .footer-bottom > div { flex-wrap: wrap; gap: 8px 24px; }
  .subpage, .status-page { padding: 26px 16px; }
  .subpage-card, .status-page > div { padding: 30px 22px; }
  .subpage h1, .status-page h1 { font-size: 34px; line-height: 1.25; }
  .subpage h2 { font-size: 21px; } .subpage p, .status-page p { font-size: 15px; line-height: 1.95; }
}
@media (max-width:360px) {
  .container { width: calc(100% - 32px); }
  .works .work-card > .work-bottom { padding: 18px 16px; }
  .works .work-bottom > i { flex-basis: 40px; width: 40px; height: 40px; }
  .dialog-toolbar > p { gap: 7px; font-size: 9px; }
  .dialog-content { padding: 22px 18px; }
  .dialog-link { padding-inline: 13px; gap: 8px; font-size: 12px; }
  .project-dialog > .dialog-actions { gap: 8px; padding: 12px; }
  .dialog-status { max-width: 93px; font-size: 8px; }
}
@media (max-height:600px) and (max-width:1120px) {
  .global-nav { padding-top: 80px; }
  .global-nav > a:not(.nav-contact) { min-height: 60px; }
}
@media (prefers-reduced-motion:reduce) {
  .project-dialog[open] { animation: none; }
  .works .work-card:hover .work-bottom > i { transform: none; }
}
