:root {
  --ink: #101b2d;
  --ink-soft: #526073;
  --paper: #f7f9fb;
  --line: #dce3ea;
  --accent: #087d76;
  --accent-bright: #3bc5b4;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.8; }
a { color: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 1rem; padding: .6rem 1rem; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid rgba(220,227,234,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--white); background: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.04em; }
.brand-name { display: grid; font-size: 14px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; }
.brand-name small { margin-top: 5px; color: var(--ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.global-nav { display: flex; gap: 30px; align-items: center; font-size: 13px; font-weight: 700; }
.global-nav a { text-decoration: none; }
.global-nav a:hover { color: var(--accent); }
.nav-contact { padding: 9px 16px; border: 1px solid var(--ink); }
.nav-toggle { display: none; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 12px; font-weight: 800; }
.back-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: clamp(40px, 8vw, 110px); align-items: end; min-height: calc(100vh - 82px); min-height: min(calc(100vh - 82px), 900px); max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) 24px 80px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); letter-spacing: -.055em; line-height: 1.22; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 720px; margin: 34px 0 0; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 19px); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--accent); }
.button-secondary { border: 1px solid var(--line); background: var(--white); }
.hero-panel { border-top: 1px solid var(--ink); }
.signal { display: grid; grid-template-columns: 38px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.signal span { grid-row: 1 / span 2; color: var(--accent); font-size: 11px; font-weight: 800; }
.signal strong { font-size: 14px; letter-spacing: .08em; }
.signal small { color: var(--ink-soft); font-size: 12px; }
.section { max-width: var(--max); margin: 0 auto; padding: 120px 24px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.45; }
.section-heading-row { display: flex; gap: 40px; align-items: end; justify-content: space-between; }
.section-heading-row > p { max-width: 400px; margin: 0; color: var(--ink-soft); font-size: 14px; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 9vw, 130px); border-top: 1px solid var(--line); }
.about-copy { padding-top: 34px; color: var(--ink-soft); font-size: 17px; }
.about-copy p { margin: 0 0 24px; }
.products-section { max-width: none; padding-right: max(24px, calc((100vw - var(--max)) / 2)); padding-left: max(24px, calc((100vw - var(--max)) / 2)); background: var(--paper); }
.development-card { display: grid; grid-template-columns: .88fr 1.12fr; margin-top: 56px; border: 1px solid var(--line); background: var(--white); }
.development-intro { padding: 54px; color: var(--white); background: #173e4b; }
.status-service { background: #b8f0e8; }
.development-intro h3 { margin: 26px 0 18px; font-size: clamp(25px, 3vw, 36px); line-height: 1.45; }
.development-intro > p { color: #d2e2e6; font-size: 14px; }
.technology-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.technology-list li { padding: 6px 10px; border: 1px solid rgba(255,255,255,.32); font-size: 11px; font-weight: 700; }
.work-examples { display: grid; grid-template-columns: 1fr 1fr; }
.work-example { padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-example:nth-child(2) { border-right: 0; }
.work-example:nth-child(even) { border-right: 0; }
.work-example:nth-last-child(-n + 2) { border-bottom: 0; }
.work-status { display: inline-block; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.work-example h4 { margin: 14px 0 10px; font-size: 17px; line-height: 1.55; }
.work-example p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.product-divider { display: flex; gap: 18px; align-items: center; margin: 80px 0 0; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.product-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.product-card { margin-top: 56px; border: 1px solid var(--line); background: var(--white); }
.product-featured { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
.product-identity { display: flex; flex-direction: column; justify-content: center; min-height: 440px; padding: 56px; color: var(--white); background: var(--ink); }
.status { align-self: flex-start; padding: 5px 9px; color: var(--ink); background: var(--accent-bright); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.status-muted { color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.product-identity img { width: min(100%, 420px); margin: 70px 0 28px; padding: 18px 22px; background: var(--white); }
.product-tagline { margin: 0; color: #c8d1dc; font-size: 14px; }
.product-description { padding: 56px; }
.product-description > p:first-child { margin-top: 0; font-size: 16px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 32px 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 13px 0 13px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.feature-list li::before { position: absolute; left: 0; color: var(--accent); content: "—"; }
.product-note { padding: 16px 18px; color: var(--ink-soft); background: var(--paper); font-size: 12px; }
.text-link { display: inline-block; margin-top: 15px; color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.product-compact { display: grid; grid-template-columns: 120px 1fr; max-width: 760px; margin-left: auto; padding: 36px; }
.product-number { color: var(--accent); font-size: 13px; font-weight: 800; }
.product-compact h3 { margin: 14px 0 8px; font-size: 25px; }
.product-compact p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.principles-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.principle-grid article { padding: 30px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-grid article:last-child { border-right: 0; }
.principle-grid span { color: var(--accent); font-size: 11px; font-weight: 800; }
.principle-grid h3 { min-height: 58px; margin: 22px 0 12px; font-size: 18px; line-height: 1.6; }
.principle-grid p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.company-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; border-top: 1px solid var(--line); }
.company-table { margin: 0; border-top: 1px solid var(--ink); }
.company-table div { display: grid; grid-template-columns: 140px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
.company-table dt { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.company-table dd { margin: 0; font-size: 14px; }
.company-table a { color: var(--accent); font-weight: 700; }
.contact-section { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--ink); }
.contact-section .eyebrow { color: var(--accent-bright); }
.contact-section h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.04em; }
.contact-section > p:not(.eyebrow) { color: #c8d1dc; }
.button-light { margin-top: 20px; color: var(--ink); background: var(--white); }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 50px max(24px, calc((100vw - var(--max)) / 2)); background: #0a1321; color: #aab5c3; }
.footer-brand { display: grid; }
.footer-brand strong { color: var(--white); letter-spacing: .12em; }
.footer-brand span { font-size: 11px; }
.footer-links { display: flex; gap: 24px; font-size: 12px; }
.site-footer small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #253143; font-size: 10px; }
.legal-page { max-width: 840px; margin: 0 auto; padding: 100px 24px 130px; }
.legal-page h1 { margin: 0 0 35px; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.04em; }
.legal-intro { margin-bottom: 60px; color: var(--ink-soft); }
.legal-page section { padding: 25px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin: 0 0 10px; font-size: 17px; }
.legal-page section p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.legal-date { margin-top: 45px; text-align: right; font-size: 12px; }
.compact-footer { display: block; }
.error-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: var(--paper); }
.error-page main { max-width: 650px; padding: 60px; background: var(--white); border: 1px solid var(--line); }
.error-page .brand-mark { margin-bottom: 40px; }
.error-page h1 { font-size: clamp(30px, 5vw, 50px); }
.error-page p:not(.eyebrow) { color: var(--ink-soft); }
.error-page .button { margin-top: 24px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { max-width: 560px; }
  .about-section, .principles-section, .company-section { grid-template-columns: 1fr; }
  .development-card { grid-template-columns: 1fr; }
  .product-featured { grid-template-columns: 1fr; }
  .product-identity { min-height: 340px; }
  .principle-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 800px) {
  .site-header { min-height: 70px; padding: 0 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-toggle { display: block; }
  .global-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; align-items: stretch; padding: 18px; border-bottom: 1px solid var(--line); background: var(--white); }
  .global-nav.is-open { display: grid; }
  .global-nav a { padding: 10px; }
  .nav-contact { border: 0; background: var(--paper); }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-heading-row { display: block; }
  .section-heading-row > p { margin-top: 22px; }
  .product-identity, .product-description { padding: 36px 28px; }
  .product-identity img { margin-top: 50px; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 70px; }
  .hero-actions { display: grid; }
  .principle-grid { grid-template-columns: 1fr; }
  .development-intro { padding: 36px 28px; }
  .work-examples { grid-template-columns: 1fr; }
  .work-example, .work-example:nth-child(even), .work-example:nth-last-child(-n + 2) { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-example:last-child { border-bottom: 0; }
  .principle-grid article { border-right: 0; }
  .principle-grid h3 { min-height: auto; }
  .product-compact { grid-template-columns: 1fr; padding: 28px; }
  .product-number { margin-bottom: 20px; }
  .company-table div { grid-template-columns: 1fr; gap: 7px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .error-page main { padding: 35px 24px; }
}

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