/* cyberkukan.com */

:root {
  --ink: #0b1b2b;
  --ink-2: #33475b;
  --ink-3: #5d6f81;
  --line: #dbe3ea;
  --bg: #ffffff;
  --bg-tint: #f3f7f9;
  --navy: #0b1b2b;
  --navy-2: #12283f;
  --accent: #0b7f72;
  --accent-strong: #086458;
  --accent-soft: #e2f3f0;
  --warm: #c9611a;
  --warm-soft: #fdf0e3;
  --blue-soft: #e6eefb;
  --blue: #2456a8;
  --radius: 12px;
  --wrap: 1140px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(11, 27, 43, 0.06), 0 8px 24px rgba(11, 27, 43, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

:lang(en) body, body:lang(en) { line-height: 1.65; }

img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.6em; letter-spacing: 0.01em; text-wrap: balance; word-break: auto-phrase; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
small { font-weight: 400; }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }

/* header */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.site-nav > a:not(.button) { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-nav > a:not(.button):hover { color: var(--accent-strong); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.8rem; }
.lang-switch a { padding: 4px 11px; text-decoration: none; color: var(--ink-3); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* buttons */

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.button-small { min-height: 38px; padding: 6px 18px; }
.button-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.button-outline { background: transparent; color: var(--accent-strong); }
.button-outline:hover { background: var(--accent-soft); color: var(--accent-strong); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.text-link { font-weight: 700; }
.text-link::after { content: " →"; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */

.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #153a52 100%); color: #fff; padding: 72px 0 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #c9d6e2; font-size: 1.08rem; max-width: 36em; }
.eyebrow { margin: 0 0 12px; color: var(--accent-strong); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow-light { color: #6fd6c4; }
.hero-figure { margin: 0; }
.mesh { display: block; width: 100%; border-radius: var(--radius); }
.hero-figure figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 0.78rem; color: #9db0c2; }
.legend { display: inline-flex; align-items: center; gap: 8px; }
.legend-scale { width: 84px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #16385a, #1c7a86, #27a08a, #8cc270, #f2c14e, #f08a24, #e4572e); }
.legend-none { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #2c4a68; background: repeating-linear-gradient(45deg, #12283f 0 3px, #2c4a68 3px 5px); }
.legend-note { flex-basis: 100%; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hero-points li { padding: 22px 24px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.hero-points li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.hero-points strong { font-size: 1rem; }
.hero-points span { color: #9db0c2; font-size: 0.88rem; }

/* sections */

.section { padding: 84px 0; }
.section-tint { background: var(--bg-tint); }
.section-lead, .lead { color: var(--ink-2); font-size: 1.04rem; max-width: 46em; }
.section-lead { margin-bottom: 36px; }
.page-head { padding-top: 56px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.note { color: var(--ink-3); font-size: 0.86rem; margin-top: 24px; max-width: 60em; }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card p { color: var(--ink-2); font-size: 0.94rem; margin: 0; }
.card-icon { display: block; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; background: var(--accent-soft); position: relative; }
.card-icon::after { content: ""; position: absolute; inset: 11px; border-radius: 4px; background: var(--accent); }
.icon-heat { background: var(--warm-soft); }
.icon-heat::after { background: var(--warm); border-radius: 50%; }
.icon-air { background: var(--blue-soft); }
.icon-air::after { background: var(--blue); inset: 17px 9px; border-radius: 3px; box-shadow: 0 -7px 0 -1px var(--blue), 0 7px 0 -1px var(--blue); }
.icon-event::after { inset: 9px; background: none; border: 3px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--accent-soft), inset 0 0 0 9px var(--accent); }
.icon-data { background: #eceff3; }
.icon-data::after { background: linear-gradient(90deg, var(--ink-2) 0 40%, transparent 40% 60%, var(--ink-2) 60%); inset: 11px 10px; border-radius: 0; -webkit-mask: linear-gradient(#000 0 40%, transparent 40% 60%, #000 60%); mask: linear-gradient(#000 0 40%, transparent 40% 60%, #000 60%); }

/* services */

.service { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.service-main { border-color: var(--accent); box-shadow: var(--shadow); }
.service h3 { font-size: 1.3rem; margin-bottom: 2px; }
.service h3 small { font-size: 0.8rem; color: var(--ink-3); margin-left: 6px; }
.service-sub { color: var(--accent-strong); font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.service p { font-size: 0.95rem; color: var(--ink-2); }
.service-action { margin: auto 0 0; padding-top: 18px; }
.badge { display: inline-block; align-self: flex-start; margin: 0 0 14px; padding: 2px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.service .badge { color: var(--ink-2); }
.badge-early { background: var(--accent-soft); }
.service .badge-early { color: var(--accent-strong); }
.badge-soon { background: var(--warm-soft); }
.service .badge-soon { color: #9a4a12; }
.badge-open { background: #eceff3; }
.ticks { margin: 4px 0 8px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 0.93rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* product page */

.hero-page { padding-top: 64px; }
.hero-page .lead { max-width: 44em; }
.hero-page .hero-points { margin-top: 48px; }
.card h3 { margin-bottom: 2px; }
.card .card-tech { color: var(--accent-strong); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.card-icon + h3 { margin-bottom: 0.6em; }
ol.cards { counter-reset: step; }
.card-step { counter-increment: step; }
.card-step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--ink-3); font-size: 0.8rem; font-weight: 700; }
.card-planned { border-style: dashed; background: transparent; }
.card-planned .badge { color: #9a4a12; }
.card-planned h3 { margin-bottom: 0.5em; }
.section-action { margin-top: 22px; }
.cta-box .button { margin-top: 6px; }
.cta-more { margin: 14px 0 0; font-size: 0.92rem; }

/* principles */

.principles { counter-reset: principle; border-top: 1px solid var(--line); }
.principles li { counter-increment: principle; display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(principle, decimal-leading-zero); grid-row: span 2; color: var(--accent-strong); font-weight: 700; font-size: 0.9rem; padding-top: 2px; }
.principles h3 { margin: 0 0 2px; }
.principles p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }

/* standards */

.std-group { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 10px; }
.std-group h3 { color: var(--accent-strong); font-size: 0.95rem; margin-bottom: 8px; }
.std-group dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.std-group dt { font-weight: 700; }
.std-group dt small { margin-left: 8px; color: var(--ink-3); font-size: 0.78rem; }
.std-group dd { color: var(--ink-2); font-size: 0.92rem; }

/* technology */

.stack { display: grid; gap: 10px; }
.stack-layer { border-radius: var(--radius); padding: 18px 22px; border: 1px solid var(--line); background: var(--bg); position: relative; }
.stack-layer p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.stack-layer .stack-name { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.stack > * { position: relative; }
.stack > * + *::before { content: ""; position: absolute; left: 50%; top: -11px; width: 2px; height: 10px; background: var(--ink-3); }
.stack-frame { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--accent); border-radius: calc(var(--radius) + 6px); background: #fff; }
.stack-frame-name { margin: 0 0 2px 6px; color: var(--accent-strong); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em; }
.stack-ops { background: var(--bg-tint); }
.stack-apps { background: var(--bg-tint); border-style: dashed; }
.stack-twin { background: var(--navy); border-color: var(--navy); }
.stack-twin p { color: #c9d6e2; }
.stack-twin .stack-name { color: #fff; }
.stack-space { background: var(--accent-soft); border-color: #b9e0d9; }
.stack-sources { border-style: dashed; }

/* references */

.ref-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ref { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 16px; display: flex; flex-direction: column; }
.ref[hidden] { display: none; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #eceff3; color: var(--ink-2); font-size: 0.74rem; font-weight: 700; }
.tag-heat, .tag-climate { background: var(--warm-soft); color: #9a4a12; }
.tag-air { background: var(--blue-soft); color: var(--blue); }
.tag-smart-city, .tag-standard { background: var(--accent-soft); color: var(--accent-strong); }
.tag-region { background: none; border: 1px solid var(--line); font-weight: 400; }
.ref-title { font-size: 1rem; margin-bottom: 6px; }
.ref-title a { color: var(--ink); text-decoration: none; }
.ref-title a:hover { color: var(--accent-strong); text-decoration: underline; }
.ref-title a::after { content: "\00a0↗"; color: var(--ink-3); font-weight: 400; }
.ref-summary { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 10px; }
.ref-meta { margin: auto 0 0; color: var(--ink-3); font-size: 0.8rem; }
.ref-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 32px 0 0; }
.ref-updated { color: var(--ink-3); font-size: 0.86rem; }
.ref-count { color: var(--ink-3); font-size: 0.9rem; min-height: 1.8em; }
.ref-empty { padding: 32px 0; color: var(--ink-3); }
.filters { display: grid; gap: 10px; margin: 28px 0 14px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { min-width: 3.5em; color: var(--ink-3); font-size: 0.84rem; font-weight: 700; }
.chip { font: inherit; font-size: 0.84rem; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* company and contact */

.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-weight: 700; }
.contact { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.contact h2 { font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 4px; }
.req { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--warm-soft); color: #9a4a12; font-size: 0.7rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9c5d0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); }
.field-check label { font-weight: 400; margin: 0; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin: 0; }
.form-status { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.6em; }
.form-status.is-ok { color: var(--accent-strong); font-weight: 700; }
.form-status.is-error { color: #a32014; font-weight: 700; }

/* prose (privacy) */

.prose h2 { font-size: 1.15rem; margin-top: 2em; }
.prose p { color: var(--ink-2); }

/* footer */

.site-footer { background: var(--navy); color: #c9d6e2; padding: 48px 0 32px; font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.footer-brand img { display: block; height: 30px; width: auto; margin-bottom: 10px; }
.footer-brand p { margin: 0; color: #9db0c2; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; justify-content: flex-end; max-width: 520px; }
.footer-nav a { color: #c9d6e2; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #9db0c2; font-size: 0.82rem; }

/* responsive */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-inner, .split { grid-template-columns: 1fr; gap: 36px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.button) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin: 16px 0 12px; }
  .lang-switch { align-self: flex-start; }
}

@media (max-width: 700px) {
  .section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .grid-2, .grid-4, .ref-list, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .hero-points { grid-template-columns: 1fr; margin-top: 36px; }
  .hero-points li, .hero-points li + li { padding: 14px 0; border-left: 0; }
  .hero-points li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .contact { padding: 24px 18px; }
}

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

@media print {
  .site-header, .site-footer, .contact, .filters { display: none; }
}
.phrase { display: inline-block; }
