/* Shared brand treatment, ported from concreight.co.jp Header.tsx / Footer.tsx. */
:root {
  --company-display: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'Noto Serif JP', serif;
  --company-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --company-mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-space: 65px;
}
html { scroll-padding-top: 80px; scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgb(250 249 246 / .8); }
::-webkit-scrollbar-thumb { background: rgb(0 0 0 / .1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgb(0 0 0 / .25); }
body { max-width: none; }
#site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: block; height: auto; width: 100%; max-width: 100%;
  padding: 16px 0; background: rgba(250, 249, 246, .96);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: transform 280ms ease, padding 300ms, border-color 300ms, box-shadow 300ms;
}
#site-header.scrolled { height: auto; padding: 12px 0; border-color: rgb(0 0 0 / .05); box-shadow: 0 2px 20px rgb(0 0 0 / .01); }
.header-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 0; }
#site-header .wordmark { width: 150px; height: 28px; }
#site-header .wordmark img { left: calc(50% - 8px); top: calc(50% + 2px); height: 86px; width: auto; max-width: 100%; opacity: .95; filter: brightness(0); transition: filter 300ms, opacity 300ms; }
/* This page has a light hero, so the shared mark and navigation remain dark. */
#site-header .header-right { min-width: 0; gap: 20px; }
#site-header nav { display: none; align-items: center; gap: 28px; font-family: var(--company-sans); font-weight: 300; font-size: 14px; letter-spacing: .05em; color: #404040; }
#site-header nav a { transition: color 300ms; }
#site-header nav a:hover { color: #0a0a0a; }
#menu-open { width: 36px; height: 33px; padding: 8px; margin-right: -8px; align-items: flex-start; gap: 6px; border-radius: 4px; }
#menu-open span { height: 1.5px; width: 20px; background: #262626; transition: width 200ms; flex-shrink: 0; }
#menu-open span:nth-child(2) { width: 12px; }
#menu-open span:nth-child(3) { width: 16px; }
#menu-open:hover span:nth-child(2) { width: 20px; }
#hero { padding-top: calc(var(--header-space) + 44px); min-height: min(930px, 100svh); }

#site-menu { width: min(400px, 100%); max-width: 100%; height: 100dvh; max-height: none; border-left: 1px solid rgb(0 0 0 / .05); background: #faf9f6; color: #171717; overflow: auto; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); font-family: var(--company-sans); }
#site-menu[open] { animation: company-menu-in 500ms ease-in-out both; }
#site-menu.is-closing { animation: company-menu-out 500ms ease-in-out both; }
#site-menu::backdrop { background: rgb(0 0 0 / .3); backdrop-filter: none; animation: company-backdrop-in 500ms both; }
#site-menu.is-closing::backdrop { animation: company-backdrop-out 500ms both; }
#site-menu .dialog-close { top: 24px; right: 24px; width: 34px; height: 34px; padding: 6px; border: 1px solid rgb(0 0 0 / .1); border-radius: 4px; font-size: 24px; line-height: 20px; }
#site-menu .menu-inner { min-height: 100%; padding: 96px 24px 32px; justify-content: space-between; gap: 40px; }
#site-menu #menu-title { color: #a3a3a3; font-family: var(--company-mono); font-size: 9px; letter-spacing: .3em; font-weight: 400; }
#site-menu nav { display: flex; flex-direction: column; gap: 20px; margin: 0; }
#site-menu nav a { margin: 0; font-size: 20px; font-weight: 300; letter-spacing: .025em; line-height: 1.35; }
#site-menu nav a span { font-size: 11px; }
#site-menu a:hover { color: #737373; }
#site-menu .menu-platforms { margin: 0; border-color: rgb(0 0 0 / .1); padding-top: 24px; }
#site-menu .menu-platforms p { font-family: var(--company-mono); font-size: 9px; letter-spacing: .2em; color: #a3a3a3; }
#site-menu .menu-platforms a { font-family: var(--company-mono); font-size: 10px; letter-spacing: .1em; padding: 14px 16px; border: 1px solid rgb(0 0 0 / .1); border-radius: 4px; }
#site-menu .menu-platforms a:last-child { background: #171717; color: #fff; }
@keyframes company-menu-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes company-menu-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes company-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes company-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

#contact.footer { position: relative; overflow: hidden; margin: 0; padding: 0; border-top: 1px solid rgb(0 0 0 / .05); background: rgb(245 245 245 / .3); }
.footer-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 80px 24px; }
#contact .contact-row { grid-template-columns: 1fr; gap: 48px; padding-bottom: 80px; border-bottom: 1px solid rgb(0 0 0 / .05); }
#contact .section-index { display: block; padding: 0; margin-bottom: 24px; font-family: var(--company-mono); font-size: 10px; font-weight: 500; letter-spacing: .4em; }
#contact .contact-title { font-family: var(--company-display); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
#contact .contact-jp { font-family: var(--company-sans); font-size: 14px; margin-top: 24px; }
#contact .secondary-copy { max-width: 448px; margin-top: 12px; font-family: var(--company-sans); font-size: 12px; font-weight: 300; line-height: 1.625; color: #737373; }
#contact .email-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; padding-top: 16px; }
#contact .email-link, #contact #copy-email { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid #171717; border-radius: 6px; font-family: var(--company-mono); font-size: 12px; letter-spacing: .1em; background: #171717; color: white; transition: background 300ms; }
#contact .email-link:hover { background: #262626; }
#contact .email-link svg { width: 16px; height: 16px; flex-shrink: 0; }
#contact #copy-email { background: transparent; border-color: rgb(0 0 0 / .1); color: #525252; font-size: 10px; }
#contact #copy-email:hover { background: rgb(0 0 0 / .02); }
#contact #copy-email.copied { color: #047857; }
#contact .copy-status { font-family: var(--company-sans); color: #047857; min-height: 20px; font-size: 11px; }
#contact .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 0; }
#contact .footer-links h3 { font-family: var(--company-mono); color: #a3a3a3; font-size: 9px; font-weight: 600; letter-spacing: .25em; margin-bottom: 16px; }
#contact .footer-links a, #contact .footer-links .micro { font-family: var(--company-mono); font-size: 11px; color: #737373; line-height: 1.5; margin-bottom: 8px; }
#contact .footer-links a:hover { color: #171717; }
#contact .footer-links > div:last-child { grid-column: 1 / -1; }
#contact .footer-bottom { padding: 48px 0 0; border: 0; flex-direction: column; gap: 24px; }
#contact .footer-bottom > span, #contact .back-top { font-family: var(--company-mono); color: #a3a3a3; font-size: 10px; letter-spacing: .1em; }
#contact .footer-bottom > span { text-align: center; }
#contact .back-top { width: auto; padding: 4px 12px; border: 1px solid rgb(0 0 0 / .1); border-radius: 4px; white-space: nowrap; }
#contact .back-top:hover { color: #171717; border-color: rgb(0 0 0 / .3); }
#contact .footer-signature { width: 100%; overflow: hidden; margin: 0; padding-top: 48px; line-height: normal; pointer-events: none; user-select: none; font-size: inherit; letter-spacing: normal; }
#contact .footer-signature svg { display: block; width: 100%; height: auto; overflow: hidden; color: rgb(0 0 0 / .05); }
#contact .footer-signature text { font-family: var(--company-display); }
@media (min-width: 640px) {
  :root { --header-space: 81px; }
  #site-header { padding: 24px 0; }
  #site-header.scrolled { padding: 16px 0; }
  .header-inner { padding: 0 24px; }
  #site-menu .menu-inner { padding: 112px 32px 32px; }
  #site-menu nav a { font-size: 24px; }
  #contact .contact-title { font-size: 30px; }
  #contact .secondary-copy { font-size: 14px; }
  #contact .email-row { flex-direction: row; align-items: center; }
  #contact .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #contact .footer-links > div:last-child { grid-column: auto; }
}
@media (min-width: 768px) {
  .header-inner { padding: 0 32px; }
  #site-header .wordmark { width: 168px; height: 32px; }
  #site-header .wordmark img { left: calc(50% - 9px); height: 96px; }
  #site-menu .menu-inner { padding: 128px 48px 48px; }
  .footer-inner { padding: 80px 48px; }
  #contact.footer::before, #contact.footer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: rgb(0 0 0 / .02); }
  #contact.footer::before { left: 48px; }
  #contact.footer::after { right: 48px; }
  #contact .contact-title { font-size: 36px; }
  #contact .footer-bottom { flex-direction: row; }
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 48px; }
  #site-header .header-right { gap: 40px; }
  #site-header nav { display: flex; }
  #contact .contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { #site-header nav { gap: 40px; } }
@media (max-width: 700px) { #hero { padding-top: calc(var(--header-space) + 30px); min-height: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#site-header.header-hidden { transform: translateY(-100%); pointer-events: none; }
#site-header:has(:focus-visible) { transform: translateY(0); pointer-events: auto; }
