@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --surface: #f2f3f5;
  --muted: #a8adb5;
  --ink: #202228;
  --ink-soft: #5e626b;
  --line: #d9dce1;
  --purple: #7054a8;
  --purple-light: #a991e0;
  --shell: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 1rem/1.65 Inter, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(100% - (var(--pad) * 2), var(--shell)); margin-inline: auto; }
.mono { font-family: "IBM Plex Mono", monospace; }
.eyebrow { color: var(--purple); font-size: .78rem; font-weight: 500; letter-spacing: .13em; }
.site-header { position: relative; z-index: 10; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 600; line-height: 1.25; text-decoration: none; letter-spacing: -.02em; }
.primary-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.4rem); }
.primary-nav a { position: relative; padding: 1.8rem 0; color: #555962; font-size: .92rem; font-weight: 500; text-decoration: none; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after, .primary-nav a:hover::after { transform: scaleX(1); }

.dark-hero { overflow: hidden; color: var(--white); background: var(--ink); }
.hero-grid { min-height: min(760px, calc(100vh - 82px)); display: grid; grid-template-columns: minmax(260px, .72fr) minmax(480px, 1.28fr); align-items: stretch; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem) 0; }
.hero-copy::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: #393c43; }
.product-id { margin: 0 0 1rem; color: var(--purple-light); font: 500 .84rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .15em; }
.hero-copy h1 { margin: 0; font-size: clamp(3.5rem, 8vw, 7.2rem); line-height: .88; letter-spacing: -.065em; }
.classification { margin: 1.25rem 0 2.75rem; color: #bfc2c9; font: 400 .84rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.hero-description { max-width: 34rem; margin: 0 0 2.2rem; color: #d3d5da; font-size: clamp(1rem, 1.6vw, 1.12rem); }
.button { width: fit-content; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid var(--purple); border-radius: 1px; background: var(--purple); color: white; font-size: .92rem; font-weight: 600; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.button:hover { background: #60458f; border-color: #60458f; }
.button:focus-visible, .text-link:focus-visible, a:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 3px; }
.hero-visual { min-width: 0; display: grid; align-items: center; padding: clamp(2rem, 5vw, 5rem); background-image: linear-gradient(#303238 1px, transparent 1px), linear-gradient(90deg, #303238 1px, transparent 1px); background-size: 64px 64px; }
.product-frame { position: relative; border: 1px solid #42454d; }
.product-frame img { width: 100%; }
.visual-placeholder { position: absolute; top: 64%; inset-inline: .5rem; margin: 0; color: #d7d9de; text-align: center; font: .78rem/1.5 "IBM Plex Mono", monospace; letter-spacing: .1em; }

html[lang="ja"] body { font-family: Inter, "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; }
html[lang="ja"] :is(.eyebrow, .classification, .category, .gallery-item span, .visual-placeholder) { font-family: inherit; letter-spacing: .06em; }
html[lang="ja"] :is(.section-head h2, .company-intro h2, .overview-copy h2, .page-header h1:not([lang="en"]), .article-wrap h1:not([lang="en"]), #profile-title) { line-height: 1.25; letter-spacing: -.025em; }
html[lang="ja"] .visual-placeholder { font-size: .875rem; }

.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section-muted { background: var(--surface); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2, .company-intro h2 { max-width: 760px; margin: -.08em 0 0; font-size: clamp(2.1rem, 4.3vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.section-head p { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.section-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.text-link { color: var(--purple); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.news-list { border-top: 1px solid var(--ink); }
.news-row { display: grid; grid-template-columns: 150px 140px 1fr; gap: 1rem; align-items: center; min-height: 84px; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-row time { font-size: .84rem; color: var(--ink-soft); }
.category { color: var(--purple); font: 500 .78rem "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.news-row strong { font-size: 1.05rem; font-weight: 500; }
.empty-state { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.empty-state p { margin: 0; color: var(--ink-soft); }

.company-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.company-mark { width: min(260px, 55%); }
.company-intro p { max-width: 690px; margin: 2rem 0 0; color: var(--ink-soft); font-size: 1.1rem; }
.page-header { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-kicker { display: block; margin-bottom: 1.2rem; }
.page-header h1 { max-width: 950px; margin: 0; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.15; letter-spacing: -.045em; }
.page-header p { max-width: 650px; margin: 2rem 0 0; color: var(--ink-soft); font-size: 1.08rem; }

.product-hero .hero-grid { min-height: 650px; }
.product-hero .hero-copy h1 { font-size: clamp(3.6rem, 7.5vw, 6.8rem); }
.overview-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); }
.spec-list { margin: 0; border-top: 1px solid var(--ink); }
.spec-list div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink-soft); font-size: .86rem; }
.spec-list dd { margin: 0; font-weight: 500; }
.overview-copy h2 { margin: 0 0 1.5rem; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.03; letter-spacing: -.04em; }
.overview-copy p { max-width: 660px; color: var(--ink-soft); font-size: 1.08rem; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1px; background: #d6d9de; border: 1px solid #d6d9de; }
.gallery-item { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.3rem; background: var(--surface); }
.gallery-item:first-child { grid-row: span 2; min-height: 640px; }
.gallery-item span { color: var(--ink-soft); font: .75rem "IBM Plex Mono", monospace; letter-spacing: .1em; }
.gallery-target { align-self: center; width: 72px; height: 72px; border: 1px solid var(--muted); border-radius: 50%; position: relative; opacity: .55; }
.gallery-target::before, .gallery-target::after { content: ""; position: absolute; background: var(--muted); }
.gallery-target::before { width: 108px; height: 1px; top: 35px; left: -19px; }
.gallery-target::after { width: 1px; height: 108px; left: 35px; top: -19px; }

.demo { color: var(--white); background: #17191e; }
.demo .section-head p { color: #b8bbc3; }
.demo-shell { display: grid; grid-template-columns: 1fr 300px; min-height: 480px; border: 1px solid #3e4148; }
.demo-stage { display: grid; place-items: center; padding: 2rem; background-image: linear-gradient(#25282e 1px, transparent 1px), linear-gradient(90deg, #25282e 1px, transparent 1px); background-size: 52px 52px; }
.demo-placeholder { max-width: 360px; text-align: center; }
.demo-placeholder .target-icon { width: 82px; height: 82px; margin: 0 auto 1.5rem; border: 1px solid #575b65; display: grid; place-items: center; color: var(--purple-light); font: 1.5rem "IBM Plex Mono", monospace; }
.demo-placeholder h3 { margin: 0 0 .8rem; font-size: 1.3rem; }
.demo-placeholder p { margin: 0; color: #aeb2ba; font-size: .9rem; }
.demo-info { padding: 2rem; border-left: 1px solid #3e4148; }
.demo-info h3 { margin: 0 0 1.5rem; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.control-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-top: 1px solid #363940; color: #b8bbc3; font-size: .85rem; }
.keys { display: flex; gap: .3rem; }
.key { min-width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #60646e; color: white; font: .72rem "IBM Plex Mono", monospace; }
.integration-note { margin-top: 2rem; color: #858a94; font-size: .78rem; }

.profile-table { margin: 0; border-top: 1px solid var(--ink); }
.profile-table div { display: grid; grid-template-columns: minmax(160px, .55fr) 1.45fr; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.profile-table dt { color: var(--ink-soft); }
.profile-table dd { margin: 0; font-weight: 500; }
.article-wrap { max-width: 900px; padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(6rem, 10vw, 10rem); }
.article-empty h1, .article-header h1 { margin: 1.2rem 0 1.5rem; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.article-empty p { color: var(--ink-soft); margin-bottom: 2rem; }
.article-header { padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.news-meta { display: flex; gap: 2rem; }
.article-body { max-width: 700px; padding: 3rem 0; }

.site-footer { color: white; background: var(--ink); }
.footer-inner { min-height: 220px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 1rem 3rem; align-items: center; padding-top: 3rem; padding-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.footer-inner > p { margin: 0; color: #c5c8ce; font-size: .82rem; }
.fiction-note { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid #41444b; color: #8f939c !important; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .hero-copy::before { display: none; }
  .hero-visual { min-height: 520px; margin-inline: calc(var(--pad) * -1); }
  .section-head, .company-split, .overview-grid { grid-template-columns: 1fr; }
  .section-head { gap: 1.2rem; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-info { border-top: 1px solid #3e4148; border-left: 0; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 98px; flex-direction: column; justify-content: center; gap: .25rem; }
  .brand img { width: 30px; }
  .primary-nav a { padding: .55rem .2rem .8rem; }
  .hero-copy h1 { font-size: clamp(3.35rem, 18vw, 5rem); }
  .hero-visual { min-height: 380px; padding: 2.5rem 1.25rem; }
  .news-row { grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: 1.25rem 0; }
  .news-row strong { grid-column: 1 / -1; }
  .empty-state { align-items: flex-start; flex-direction: column; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-row: auto; min-height: 420px; }
  .gallery-item { min-height: 260px; }
  .profile-table div, .spec-list div { grid-template-columns: 1fr; gap: .3rem; }
  .footer-inner { grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; }
  .fiction-note { grid-column: auto; }
}

@media (max-width: 360px) {
  .primary-nav { gap: .7rem; }
  .product-hero .hero-copy h1 { font-size: clamp(2.7rem, 16vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
