@font-face {
  font-family: "Stack Sans Headline";
  src: url("assets/stack-headline.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Stack Sans Text";
  src: url("assets/stack-text.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("assets/noto-jp.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #10191f;
  --surface: #1b2932;
  --steel: #263b46;
  --paper: #eff1ea;
  --accent: #d6bb92;
  --accent-hover: #e3cca8;
  --ink: #f2f4ee;
  --paper-ink: #192832;
  --muted: #bdcbd0;
  --light-steel: #d7e0de;
  --display: "Stack Sans Headline", "Noto Sans JP", sans-serif;
  --body: "Stack Sans Text", "Noto Sans JP", sans-serif;
  --gap: 8px;
  --margin: clamp(12px, 1.65vw, 28px);
  --pad: clamp(22px, 3.2vw, 48px);
  --small: 0.875rem;
  --body-size: clamp(1rem, 0.94rem + 0.18vw, 1.125rem);
  --lead: clamp(1.125rem, 0.96rem + 0.64vw, 1.5rem);
  --medium-title: clamp(1.4rem, 1.1rem + 1.1vw, 2.125rem);
  --title: clamp(1.5rem, 1.22rem + 1.15vw, 2.25rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--steel) var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: var(--body-size)/1.75 var(--body); }
::selection { color: var(--paper-ink); background: var(--accent); }
[hidden] { display: none !important; }
img { display: block; width: 100%; }
button, a { touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
h2, h3 { font-family: var(--display); line-height: 1.27; font-weight: 650; text-wrap: balance; }
h2 { font-size: var(--title); letter-spacing: -.033em; }
h3 { font-size: var(--lead); letter-spacing: -.025em; }
p, dd { text-wrap: pretty; }
p { max-width: 63ch; }
dt { font-weight: 650; }
.board { width: min(calc(100% - var(--margin) * 2), 1480px); margin-inline: auto; }
.tile { min-width: 0; padding: var(--pad); color: var(--ink); background: var(--surface); }
.paper { color: var(--paper-ink); background: var(--paper); color-scheme: light; }
.steel { background: var(--steel); }
.bronze { color: var(--paper-ink); background: var(--accent); color-scheme: light; }
.photo { min-width: 0; min-height: 0; overflow: clip; background: var(--steel); }
.photo img { height: 100%; object-fit: cover; }
.chapter { margin-top: clamp(48px, 6vw, 86px); scroll-margin-top: 20px; }
.skip { position: fixed; inset: 12px auto auto 12px; background: var(--paper); color: var(--paper-ink); padding: 12px 18px; z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xtek-contact-confirmation { display: none; }
.xtek-contact-confirmation:target { display: block; max-width: none; margin-bottom: var(--gap); padding: 12px 20px; color: var(--paper-ink); background: var(--paper); }

.site-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--gap); margin-block: var(--margin) var(--gap); }
.brand, .site-nav, .header-contact, .menu-toggle { min-height: 58px; background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 22px; font: 650 1.6875rem/1 var(--display); letter-spacing: -.03em; }
.brand span { font: 650 1.3125rem/1 var(--body); letter-spacing: 0; white-space: nowrap; }
.site-nav { display: flex; justify-content: flex-end; align-items: stretch; padding-inline: 12px; }
.site-nav a, .header-contact { display: flex; align-items: center; white-space: nowrap; padding: 0 clamp(10px, 1.15vw, 20px); font-size: var(--small); font-weight: 600; }
.site-nav a, .site-header:not(.inquiry-header) > .header-contact { font-size: 1rem; }
.site-nav a:hover, .brand:hover, .menu-toggle:hover { background: var(--steel); }
.header-contact { color: var(--paper-ink); background: var(--paper); justify-content: center; padding-inline: 22px; }
.header-contact:hover { background: var(--light-steel); }
.menu-toggle { color: var(--ink); border: none; padding: 0 16px; cursor: pointer; }

.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: clamp(220px, 22vw, 320px) clamp(235px, 20vw, 312px); gap: var(--gap); }
.hero-brand { grid-column: span 6; display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 1.5vw, 22px); padding: clamp(20px, 2.7vw, 42px); }
.brand-role { font-size: var(--body-size); font-weight: 600; }
.hero-heading { font: 600 clamp(1.5rem, 2.8vw, 2.625rem)/1.35 var(--display); letter-spacing: -.025em; }
.hero-city { grid-column: span 6; }
.hero-city img { object-position: 53% 54%; }
.hero-desk { grid-column: span 6; }
.hero-desk img { object-position: 53% 46%; }
.hero-intro { grid-column: span 4; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(19px, 2.25vw, 34px); }
.hero-intro h2 { font-size: clamp(1.125rem, 1.8vw, 1.625rem); text-wrap: nowrap; line-height: 1.39; }
.hero-intro p { font-size: 1.125rem; line-height: 1.62; }
.hero-action { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; padding: clamp(16px, 2.1vw, 32px); font-size: var(--body-size); font-weight: 700; }
.hero-action:hover { background: var(--accent-hover); }
.diagonal-arrow { position: relative; display: block; width: 23px; height: 23px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(90deg); }
.diagonal-arrow::before { content: ""; position: absolute; width: 29px; top: -1px; right: 0; border-top: 2px solid currentColor; transform-origin: right; transform: rotate(-45deg); }

.business { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.business-title { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.business-title p { max-width: 31ch; }
.systems { grid-column: span 8; }
.systems-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 34px); margin-top: 28px; }
.systems-list dt { margin-bottom: 7px; }
.systems-list dd { color: var(--muted); overflow-wrap: anywhere; }
.consulting { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.7fr); align-items: start; gap: min(5vw, 70px); }
.ai { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); align-content: start; align-items: start; column-gap: min(4vw, 60px); row-gap: 24px; }
.ai-heading p { margin-top: 13px; color: var(--muted); }
.ai-list { display: grid; gap: 3px; }
.ai-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 16px; min-width: 0; padding: 12px 14px; align-items: start; }
.ai-list > div:nth-child(odd) { background: var(--steel); }
.ai-list dt { line-height: 1.48; }
.ai-list dd { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 19px; }
.filters button { cursor: pointer; padding: 0 12px; min-height: 44px; color: var(--ink); background: var(--steel); border: none; font-size: var(--small); font-weight: 600; }
.filters button:hover { color: var(--paper-ink); background: var(--light-steel); }
.filters [aria-pressed="true"] { color: var(--paper-ink); background: var(--paper); }

.service, .philosophy, .company { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.service-visual { grid-column: span 7; min-height: 385px; }
.service-visual img { object-position: center 56%; }
.service-text { grid-column: span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.service-text h2 { font-size: var(--medium-title); }
.service-text p { max-width: 48ch; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: auto; text-decoration: underline; text-underline-offset: .28em; font-weight: 650; }
.text-link:hover { text-decoration-thickness: 2px; }

.principles { grid-column: span 7; display: flex; flex-direction: column; gap: 22px; }
.principles p { margin-top: 8px; }
.values { grid-column: span 5; }
.values dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.values dd { margin-top: 5px; }

.company-photo { grid-column: 1 / -1; height: clamp(150px, 19vw, 260px); }
.company-photo img { object-position: center 58%; }
.company-info, .contact { grid-column: span 6; }
.company-name { font-size: var(--lead); font-weight: 650; margin-top: 17px; }
.company-info address { margin-top: 9px; font-style: normal; }
.contact p { margin-top: 14px; }
.inquiry-button, .inquiry-submit { display: inline-flex; min-height: 48px; justify-content: center; align-items: center; padding: 8px 20px; border: 0; font-weight: 650; }
.inquiry-button { margin-top: 20px; color: var(--ink); background: var(--bg); }
.inquiry-button:hover { background: var(--steel); }

.inquiry-header { display: flex; justify-content: space-between; }
.inquiry-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.inquiry-intro h1 { font: 650 var(--title)/1.27 var(--display); letter-spacing: -.033em; }
.inquiry-intro p { max-width: 24em; margin-top: 20px; }
.inquiry-preview-note { color: var(--muted); font-size: var(--small); }
.inquiry-form { display: grid; gap: 20px; max-width: 36rem; margin-top: 20px; }
.inquiry-field { display: grid; gap: 6px; }
.inquiry-field label { font-weight: 600; }
.inquiry-field small { padding-left: 8px; color: var(--muted); font-weight: 400; }
.inquiry-field :is(input, textarea) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #6f838e; border-radius: 0; font: inherit; color: var(--ink); background: var(--bg); }
.inquiry-field :is(input, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inquiry-field textarea { resize: vertical; }
.inquiry-submit { justify-self: start; cursor: pointer; }
.inquiry-submit:hover { background: var(--accent-hover); }

.site-footer { margin-top: var(--gap); margin-bottom: var(--margin); }
.footer-mark { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: end; padding-top: var(--gap); }
.footer-mark span { display: grid; place-items: end center; height: clamp(72px, 12vw, 166px); padding-bottom: .07em; background: var(--surface); font: 520 clamp(3rem, 10vw, 9.2rem)/.78 var(--display); letter-spacing: -.04em; }
.footer-mark :is(:nth-child(2), :nth-child(4)) { background: var(--steel); }
.footer-mark:hover span { color: var(--accent); }
.footer-meta { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; color: var(--muted); padding: 0 4px; font-size: var(--small); }
.footer-meta small { font-size: inherit; }
.footer-meta a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 1120px) {
  .hero-intro { grid-column: span 5; }
  .hero-desk { grid-column: span 5; }
  .systems-list { gap: 14px; }
}
@media (max-width: 900px) {
  .site-footer { margin-top: 48px; }
  .site-nav { padding-inline: 4px; }
  .site-nav a, .header-contact { padding-inline: 10px; }
  .brand { padding-inline: 13px; gap: 8px; }
  .hero { grid-template-rows: 214px minmax(220px, auto); }
  .hero-intro { grid-column: span 6; }
  .hero-desk { grid-column: span 4; }
  .hero-action { padding-inline: 12px; font-size: var(--small); }
  .business-title { grid-column: span 4; }
  .systems { grid-column: span 8; }
  .systems-list { grid-template-columns: minmax(0, 1fr); margin-top: 16px; gap: 11px; }
  .systems-list dt { margin-bottom: 3px; }
  .ai { grid-template-columns: minmax(0, 1fr); }
  .service-visual, .service-text, .principles, .values { grid-column: span 6; }
  .values dl { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 740px) {
  :root { --gap: 6px; --margin: 12px; }
  .site-header { grid-template-columns: 1fr auto auto; }
  .brand, .menu-toggle, .header-contact { min-height: 52px; }
  .brand { padding-inline: 10px; font-size: 1.4375rem; }
  .brand span { font-size: 1.1875rem; }
  .menu-toggle, .header-contact { padding-inline: 12px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: flex-start; padding: 6px; }
  .has-menu .site-nav:not(.is-open) { display: none; }
  .site-nav a { min-height: 44px; }
  .hero { display: flex; flex-direction: column; }
  .hero-brand { min-height: clamp(158px, 44vw, 248px); }
  .hero-heading { font-size: clamp(1.375rem, 6.2vw, 2.25rem); }
  .hero-city { height: clamp(165px, 51vw, 288px); }
  .hero-intro { padding: 19px 20px; gap: 10px; }
  .hero-intro h2 { font-size: clamp(1.125rem, 5.1vw, 1.625rem); }
  .hero-desk { order: 5; min-height: 0; height: clamp(130px, 38vw, 210px); }
  .hero-action { min-height: 58px; padding: 13px 20px; flex-direction: row; align-items: center; font-size: var(--body-size); }
  .hero-action br { display: none; }
  .ai-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .diagonal-arrow { width: 18px; height: 18px; }
  .diagonal-arrow::before { width: 22px; }
  .business, .consulting, .service, .philosophy, .company { grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
  .business > *, .service > *, .philosophy > *, .company > * { grid-column: 1; }
  .consulting { gap: 10px; }
  .business-title { gap: 12px; }
  .business-title p { max-width: none; }
  .service-visual { min-height: 0; height: clamp(210px, 57vw, 350px); }
  .service-text h2 { font-size: var(--title); }
  .inquiry-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .site-header:not(.inquiry-header) > .header-contact { padding-inline: 6px; }
}
@media (max-width: 380px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-contact { grid-column: 1 / -1; min-height: 44px; }
}
@media (max-width: 350px) {
  .hero-intro h2 { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-city { animation: shutter 1050ms var(--ease-out) both; }
  .hero-city img { animation: settle 1250ms var(--ease-out) both; }
  .hero-heading, .hero-intro h2, .hero-intro p, .hero-action { animation: arrival 780ms var(--ease-out) both; }
  .hero-intro p { animation-delay: 70ms; }
  .hero-action { animation-delay: 140ms; }
  [data-enter].arrived { animation: arrival 680ms var(--ease-out); }
  [data-enter].arrived + [data-enter].arrived { animation-delay: 75ms; }
  a, button { transition: background-color 170ms ease, color 170ms ease; }
}
@keyframes shutter { from { clip-path: inset(0 38% 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes arrival { from { opacity: .72; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
